Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-07-2024, 10:08 AM   #1
Sigil-Heb
Junior Member
Sigil-Heb began at the beginning.
 
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?
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	58
Size:	61.6 KB
ID:	208738  
Sigil-Heb is offline   Reply With Quote
Old 06-07-2024, 01:27 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,641
Karma: 195154104
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.
DiapDealer is offline   Reply With Quote
Advert
Old 06-07-2024, 02:14 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,793
Karma: 5446592
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 08:46 PM.
KevinH is online now   Reply With Quote
Old 06-08-2024, 01:25 PM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,618
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Sigil-Heb View Post
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.
Sigil definitely supports RTL languages such as Hebrew and Arabic.
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 01:28 PM.
Doitsu is offline   Reply With Quote
Old 06-08-2024, 03:35 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,165
Karma: 148321048
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-06-08 123310.png
Views:	26
Size:	20.8 KB
ID:	208750   Click image for larger version

Name:	Screenshot 2024-06-08 123401.png
Views:	20
Size:	17.2 KB
ID:	208751   Click image for larger version

Name:	Screenshot 2024-06-08 124626.png
Views:	22
Size:	20.5 KB
ID:	208752  

Last edited by DNSB; 06-08-2024 at 03:47 PM.
DNSB is offline   Reply With Quote
Advert
Old 06-08-2024, 04:20 PM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,618
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
I've just embedded Noto Sans Arabic/Hebrew and the diacritics are shown for both languages.
Attached Thumbnails
Click image for larger version

Name:	noto_he_ar.png
Views:	25
Size:	21.9 KB
ID:	208754  
Attached Files
File Type: epub noto_he_ar.epub (104.6 KB, 12 views)
Doitsu is offline   Reply With Quote
Old 06-08-2024, 04:38 PM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,793
Karma: 5446592
Join Date: Nov 2009
Device: many
But isn't that layout is LTR instead of the desired RTL?
KevinH is online now   Reply With Quote
Old 06-08-2024, 04:53 PM   #8
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,618
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
But isn't that layout is LTR instead of the desired RTL?
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.
Attached Thumbnails
Click image for larger version

Name:	google_translate_en_he.png
Views:	20
Size:	20.6 KB
ID:	208758  

Last edited by Doitsu; 06-08-2024 at 05:10 PM.
Doitsu is offline   Reply With Quote
Old 06-08-2024, 06:38 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,165
Karma: 148321048
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-06-08 212115.png
Views:	17
Size:	154.0 KB
ID:	208759  

Last edited by DNSB; 06-09-2024 at 12:23 AM. Reason: Dug back a couple of years...
DNSB is offline   Reply With Quote
Old 06-09-2024, 02:15 AM   #10
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,618
Karma: 23190435
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:
Originally Posted by DNSB View Post
One thing I noticed was that for epub2, I had specified text-align: right as the default.
text-align: right; wasn't in my stylesheet, because I followed the W3C RTL recommendation to use the dir="rtl" attribute, which ADE 4.5 apparently ignores in epub2 books.

Structural markup and right-to-left text in HTML
Doitsu is offline   Reply With Quote
Old 06-09-2024, 10:01 AM   #11
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,793
Karma: 5446592
Join Date: Nov 2009
Device: many
Yes according to ADE docs I found in web, only epub3 is supported for full RTL language support.
KevinH is online now   Reply With Quote
Old 06-11-2024, 05:24 PM   #12
isaacbh
Connoisseur
isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.isaacbh ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 201178
Join Date: Mar 2015
Location: Israel
Device: Kobo Aura H20
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).
isaacbh is offline   Reply With Quote
Old 06-12-2024, 10:08 AM   #13
Sigil-Heb
Junior Member
Sigil-Heb began at the beginning.
 
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.
Sigil-Heb is offline   Reply With Quote
Old 06-12-2024, 02:39 PM   #14
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,641
Karma: 195154104
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Sigil-Heb View Post
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.
Did you remember to do this?

Quote:
Originally Posted by isaacbh View Post
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).
DiapDealer is offline   Reply With Quote
Old 06-18-2024, 01:34 PM   #15
Sigil-Heb
Junior Member
Sigil-Heb began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2024
Device: none
thanks!

Quote:
Originally Posted by DiapDealer View Post
Did you remember to do this?
I didn't notice it. However, this looks really advanced for my level now so please enlighten me. What is and where is content.opf?
Sigil-Heb is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing text in Sigil Davvy123 Sigil 4 10-03-2018 12:53 PM
Text alignment in Hebrew odedta Kindle Formats 6 09-24-2014 06:53 AM
Text alignment in Sigil wdaly Sigil 34 01-24-2013 02:45 PM
Free (Kindle) English-Hebrew Hebrew-English arcadata Deals and Resources (No Self-Promotion or Affiliate Links) 0 12-01-2010 05:46 AM
Spiritual Hebrew Bible:Jewish Publication Society 1917 Text v 1.0 01Nov07 Yaakov BBeB/LRF Books 13 02-22-2009 07:35 AM


All times are GMT -4. The time now is 10:16 AM.


MobileRead.com is a privately owned, operated and funded community.