![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2017
Location: Argentina
Device: Kindle
|
Hebrew letter
When preparing a math book in Word, on infinites, I must use the Hebrew letter aleph and with subscripts 0, 1, 2, etc. And occasionally in parentheses.
When opening the final ebook in Sigil to give definitive format (and also in other readers), the equation appears "broken": the subscript to the left instead of to the right, the closing parenthesis also to the left ... Then I noticed that, being the Hebrew writing from right to left, reverses the position of the characters. Is there any way to prevent this? I have provisionally replaced the character with an image. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Do you happen to have sample code or EPUB to show this off?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2017
Location: Argentina
Device: Kindle
|
Thanks, but I have minutely checked the Times New Roman character / symbol table in Word, and found that the letter aleph has "common" version with Unicode 2135, and the Hebrew alphabet is Unicode 05D0.
![]() ![]() Thank you as well. regards |
![]() |
![]() |
![]() |
#4 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,938
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Use the U+2135 aleph, as that one is the correct one for use in mathematics.
|
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Sargont will also have to embed a suitable font, e.g. DejaVu Sans or Linux Libertine. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Code:
<p class="equation">Example e = mc<sup>2</sup></p> There are a whole lot of things that could have been the problem here: It could be you used the wrong character (which seems to be the case, as pdurrant and Doitsu pointed out). It could actually be a bug in Sigil. It could be you had the EPUB's or HTML's lang marked improperly. Or you accidentally had CSS "direction: rtl;" somewhere. Could have been invisible Unicode characters lurking in your code. [...] Quote:
http://www.stixfonts.org/ That font probably includes every single maths character you would ever need. (It is one of the few that also handles actual OpenType Math.) Last edited by Tex2002ans; 08-31-2017 at 03:02 PM. |
||
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2017
Location: Argentina
Device: Kindle
|
Prepare a small ePub with the two versions of Alef, to distinguish the behavior of both.
Thanks for your advice. Regarding the use of specific typography for mathematics, I think that implies that it must be embedded in the epub, so that everyone can read the text correctly. Is it so? |
![]() |
![]() |
![]() |
#8 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
![]() If you tested your EPUB in Adobe Digital Editions (ADE), you would also see that the hebrew alef completely confused it: Quote:
I would recommend wrapping your formulas in a class like this: Code:
<p class="p5">En la cual <span class="t8">n</span> representa un número finito cualquiera.</p> <p class="p0">Asimismo.</p> <p class="formula">(ℵ<span class="t3">0</span>)<sup>2</sup> = ℵ<span class="t3">0</span> <span class="t7">x</span> ℵ<span class="t3">0</span> = ℵ<span class="t3">0</span></p> <p class="p2">y, por lo tanto.</p> <p class="formula">(ℵ<span class="t3">0</span>)<span class="t10">n</span> = ℵ<span class="t3">0</span></p> <p class="p2">donde <span class="t8">n</span> es un número natural finito.</p> Code:
p.formula { font-family: "STIX Two Math",serif; // This is the important line where you set your font text-indent: 0; text-align: center; margin-top: .25em; margin-bottom: .25em; } Then what you would want to do, is "Embed the Font" into the EPUB + optionally do "Font Subsetting". If you aren't comfortable with CSS, Calibre's Editor makes embedding+subsetting fonts pretty easy: https://manual.calibre-ebook.com/edi...ferenced-fonts or there are many other topics discussing how to do it manually, like this one: https://www.mobileread.com/forums/sh...d.php?t=175609 You have to add the font into your EPUB and add a "src: url("../Fonts/Example.otf");" line into your CSS classes + @font-face. Side Note: You may want to take the above steps even further. To make all the variables/math match, you could include them ALL as a different font: Spoiler:
Depending on how familiar you are with Word, and how clean your document is, this may be something easier to adjust there. Side Note #2: You seem to be working with some very heavy maths... did you ever hear of LaTeX? ![]() Last edited by Tex2002ans; 08-31-2017 at 10:28 PM. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura Hebrew dictionary and keyboard | elazarcoh | Kobo Reader | 3 | 06-14-2016 12:03 PM |
Hebrew keyboard? | user743 | Kindle Developer's Corner | 1 | 04-09-2014 03:50 AM |
Calibre in Hebrew | doto | Development | 5 | 06-06-2013 05:08 AM |
Free (Kindle) English-Hebrew Hebrew-English | arcadata | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 12-01-2010 05:46 AM |
Classic Hebrew fonts | udiko | Barnes & Noble NOOK | 0 | 07-26-2010 02:20 PM |