06-07-2024, 11:08 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2024
Device: none
|
Hebrew Text in Sigil
Hey guys, I'm new here and new to Sigil.
I tried editing a text with Hebrew characters, which appear normal in Sigil's preview window. However, in Adobe Digital Editions the encoding is all wrong, and the .epub file is unreadable. I have seen others talking about other problems with Hebrew texts, but no one said that the encoding is wrong and the file is unreadable. So, I conclude it's either Adobe Digital Editions, or it is a minor problem to fix which I don't know, being a beginner. I have included in this message a capture of the screen on Adobe Digital Editions. Can anyone please help? |
06-07-2024, 02:27 PM | #2 |
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You probably need to embed a font within the epub that ADE can use.
Having the font on your machine allows Sigil to display it properly, but that font won't travel with your epub unless you embed it. |
Advert | |
|
06-07-2024, 03:14 PM | #3 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Also please test with known up-to-date epub3 e-readers like Thorium to help isolate the issue. The Thorium reader is available for free on all major platforms and is very spec compliant. ADE e-readers are often old and not based on the latest SDK version.
AFAIK, You would need the very latest ADE version 4 or later to support RTL text properly. And according to ADE, even then it will only work for epub3 not the older epub2 epubs. Last edited by KevinH; 06-07-2024 at 09:46 PM. |
06-08-2024, 02:25 PM | #4 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Here's a link to a simple sample RTL file that I created. Most likely the text in your book is not encoded as UTF-8. If you open any .xhtml file in Code View, do you see Hebrew characters? Last edited by Doitsu; 06-08-2024 at 02:28 PM. |
|
06-08-2024, 04:35 PM | #5 |
Bibliophagist
Posts: 40,588
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For what it may be worth, I opened the sample epub in ADE 4.5.11 and it did not show Hebrew characters while Thorium and Sigil did. I tried embedding the Stam Ashkenaz CLM font which did display the characters in ADE but ltr and without the accents so basically, for me, ADE 4.5.11 is a non-starter for right to left languages.
Last edited by DNSB; 06-08-2024 at 04:47 PM. |
Advert | |
|
06-08-2024, 05:20 PM | #6 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
I've just embedded Noto Sans Arabic/Hebrew and the diacritics are shown for both languages.
|
06-08-2024, 05:38 PM | #7 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
But isn't that layout is LTR instead of the desired RTL?
|
06-08-2024, 05:53 PM | #8 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
No it's rendered correctly. For comparison, see the Google Translate website.
DNSB's statement "I tried embedding the Stam Ashkenaz CLM font which did display the characters in ADE but ltr" is incorrect, because the last screenshot shows the characters in the correct order. סֵפֶר The left-most character that looks like a 7 is the last letter of the word sefer. I.e. Resh. Last edited by Doitsu; 06-08-2024 at 06:10 PM. |
06-08-2024, 07:38 PM | #9 |
Bibliophagist
Posts: 40,588
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The characters are rtl but the text should be on the right side of the page as in the Sigil and Thorium images.
Edit: I dug back a couple of years and found a test epub2 file I had created that was in Hebrew. I munged that with the Hebrew and Arabic chapters of my font test file. One thing I noticed was that for epub2, I had specified text-align: right as the default. Sample render from ADE 4.5.11 attached. Last edited by DNSB; 06-09-2024 at 01:23 AM. Reason: Dug back a couple of years... |
06-09-2024, 03:15 AM | #10 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
ADE 4.5 is indeed showing RTL text left-aligned in my epub2 test book. IIRC, ADE 4.5 is using different rendering engines for epub2 and epub3 books. An older epub3 test book is rendered RTL and right-aligned. So is an Arabic epub3 book that I uploaded to MR.
Quote:
Structural markup and right-to-left text in HTML |
|
06-09-2024, 11:01 AM | #11 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Yes according to ADE docs I found in web, only epub3 is supported for full RTL language support.
|
06-11-2024, 06:24 PM | #12 |
Connoisseur
Posts: 60
Karma: 201178
Join Date: Mar 2015
Location: Israel
Device: Kobo Aura H20, Kobo Forma
|
OP, as one who struggled with Hebrew in epubs before:
1. Only use epub3, not epub2 (as KevinH mentioned). 2. Every file that contains text for the book should have lang="he" dir="rtl" in its <html> tag. 3. Embed a Hebrew font and enable it with @font-face in the stylesheet. 4. Add page-progression-direction="rtl" to the <spine> tag in content.opf. I have seen so many well-formatted Hebrew epubs that for some reason neglect to do this, resulting in the wrong page flipping direction (assuming the reader program supports it). |
06-12-2024, 11:08 AM | #13 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2024
Device: none
|
Wow, so helpful!
Thanks, everybody!
So I opened my ebooks on Thorium and the Hebrew letters do appear correctly. The text is also aligned rtl. I did add the attributes "lang='he'" and "dir='rtl'" to my html tag, as was suggested. In Thorium, it shows the pages side by side on the "paginated" mode in settings, but the pages are on the wrong sides. Meaning, if I have page 1 and page 2, they would appear on screen with page 1 on the left and page 2 on the right. That's the correct order for English, but Hebrew is read from right to left of course, so how do I display the pages in the correct order? Thank you again. Sorry for the late reply, I have exams soon. I am really interested in learning how to edit and paginate with Sigil instead of with InDesign, for example. So your help is much appreciated. |
06-12-2024, 03:39 PM | #14 | |
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
06-18-2024, 02:34 PM | #15 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2024
Device: none
|
thanks!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Replacing text in Sigil | Davvy123 | Sigil | 4 | 10-03-2018 01:53 PM |
Text alignment in Hebrew | odedta | Kindle Formats | 6 | 09-24-2014 07:53 AM |
Text alignment in Sigil | wdaly | Sigil | 34 | 01-24-2013 03:45 PM |
Free (Kindle) English-Hebrew Hebrew-English | arcadata | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 12-01-2010 06:46 AM |
Spiritual Hebrew Bible:Jewish Publication Society 1917 Text v 1.0 01Nov07 | Yaakov | BBeB/LRF Books | 13 | 02-22-2009 08:35 AM |