Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 01-22-2022, 12:25 PM   #1
sjml
Junior Member
sjml began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2022
Device: none
Hebrew niqqud not rendering right with embedded font

I'm trying to create a book that contains some Hebrew, and running into problems with embedding a font that renders properly. In the ePUB version, I'm embedding David Libre, which works fine. But, when I load it on the Kindle (converted with Calibre), the niqqud (Hebrew diacritics) don't get placed properly around the letters.

In the first image below, you can see that "Publisher Font" is selected, indicating it's using the embedded font file in the converted azw3 file. (To debug this problem, I've stripped out all CSS except for the rule that sets the font and aligns it to the right.) The niqqud are all shifted off of their letters, like the combiner is not working.

In the second image, I've changed the font to the copy that I added to the Kindle's font directory (so it shows up in the available font list) -- it's the exact same file as the embedded one, but now the niqqud display properly. (The same thing happens with any built-in font, or at least whatever they're using for the Hebrew fallback, since the characters look the same whether the rest of the body is in Futura/Bookerly/etc.)

I tried a number of other Hebrew fonts to make sure it wasn't an issue with David Libre, but they all exhibit the same phenomenon -- it functions fine when set to be the font for the whole book, but the embedded version is broken.

Is there some additional CSS that the Kindle applies when it overrides a book's font? Is there some other way I need to encode this text to make sure it can render properly? Or is using an embedded font for Hebrew just a lost cause?
Attached Thumbnails
Click image for larger version

Name:	IMG_8570.jpeg
Views:	187
Size:	75.9 KB
ID:	191781   Click image for larger version

Name:	IMG_8569.jpeg
Views:	190
Size:	73.5 KB
ID:	191782  
sjml is offline   Reply With Quote
Old 01-23-2022, 08:24 AM   #2
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,585
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
I was able to reproduce this issue. This is most likely a limitation of the AZW3 format.
IIRC, Amazon never officially supported RTL AZW3 books.


In the .kfx version, the two embedded RTL fonts (Noto Sans and David Libre) were rendered, regardless of the Publisher Font setting.
BTW, since all eInk Kindles that support RTL books also come with Hebrew fonts, you won't have to embed a Hebrew font.
Attached Thumbnails
Click image for larger version

Name:	publisher_font.png
Views:	180
Size:	17.2 KB
ID:	191804   Click image for larger version

Name:	awz3_no_publisher_font.png
Views:	182
Size:	19.6 KB
ID:	191807   Click image for larger version

Name:	azw3_publisher_font.png
Views:	180
Size:	17.2 KB
ID:	191808  
Attached Files
File Type: epub RTL_test.epub (104.1 KB, 192 views)
File Type: zip RTL_test.zip (115.3 KB, 176 views)
File Type: azw3 RTL_test.azw3 (111.4 KB, 211 views)

Last edited by Doitsu; 01-23-2022 at 09:56 AM.
Doitsu is offline   Reply With Quote
Old 01-24-2022, 03:44 AM   #3
sjml
Junior Member
sjml began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2022
Device: none
Thanks for the reproduction! Good to know it wasn't just me. (Also I only just realized I could screenshot my Kindle thanks to your post, so double-thanks.)

I know I could get away without embedding a font... I'm just being fussy about typesetting, I guess. I wonder what percentage of readers override the publisher font anyway. Wondering if it's worth trying to distribute KFX files or just stick with my current solution (of a Kindle-specific version that hides the niqqud).
sjml is offline   Reply With Quote
Old 01-24-2022, 10:44 AM   #4
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by sjml View Post
Thanks for the reproduction! Good to know it wasn't just me. (Also I only just realized I could screenshot my Kindle thanks to your post, so double-thanks.)

I know I could get away without embedding a font... I'm just being fussy about typesetting, I guess. I wonder what percentage of readers override the publisher font anyway.

MANY. I can't tell you how many people I've met who don't even know that their Kindle PPW, Voyage, Oasis, etc. just defaults to some other font and Publisher Font has to be actively chosen by the reader. It won't open, by default, in PF, even if you've broken Amazon's rules and told the "body" element to be David Libre or what-have-you.


Quote:
Wondering if it's worth trying to distribute KFX files or just stick with my current solution (of a Kindle-specific version that hides the niqqud).

Excellent question. Does the extant, Kindle-provided Hebrew font work worth a damn for you, when you don't embed one?

Hitch
Hitch is offline   Reply With Quote
Old 01-24-2022, 10:54 AM   #5
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,507
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Doitsu View Post
BTW, since all eInk Kindles that support RTL books also come with Hebrew fonts, you won't have to embed a Hebrew font.
Could you elaborate on that please?

Do you mean that the standard set of fonts (Amazon Ember, Bookerly, etc.) have glyphs for Hebrew, that there are specific fonts for Hebrew, or are you referring to the fallback font (Code2000 I believe)?
jhowell is offline   Reply With Quote
Old 01-24-2022, 12:40 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,585
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by jhowell View Post
Do you mean that the standard set of fonts (Amazon Ember, Bookerly, etc.) have glyphs for Hebrew, that there are specific fonts for Hebrew, or are you referring to the fallback font (Code2000 I believe)?
I was referring to the Code 2000 fallback font. AFAIK, starting with the Kindle Keyboard, Amazon bundled Code 2000, which includes Hebrew glyphs with diacritics.
Doitsu is offline   Reply With Quote
Old 01-24-2022, 01:30 PM   #7
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,507
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Doitsu View Post
I was referring to the Code 2000 fallback font. AFAIK, starting with the Kindle Keyboard, Amazon bundled Code 2000, which includes Hebrew glyphs with diacritics.
That makes sense. I was wondering if I had missed something.
jhowell is offline   Reply With Quote
Old 01-24-2022, 02:03 PM   #8
sjml
Junior Member
sjml began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2022
Device: none
Quote:
Originally Posted by Hitch View Post
Excellent question. Does the extant, Kindle-provided Hebrew font work worth a damn for you, when you don't embed one?
Oh, it's fine. There's only just the one of course, and it doesn't always match with the other publisher fonts, but it's perfectly serviceable. I'm just always someone who will be picky about font selection, if it's at all available to me. But at the end of the day, the content (and the reader's ease at reading it) is the most important element.

I also don't know Hebrew well enough to feel like my opinion is truly informed; mostly going by aesthetics here. (Arabic characters I have much stronger feelings about, but thankfully this particular text I'm preparing can get away without them. )
sjml is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedded Style and Embedded Font labels truncated in KA1 sladflob KOReader 2 06-25-2020 08:43 PM
Stuck on embedded Hebrew font in ePub Gringo ePub 29 03-22-2016 12:37 AM
Certain font characters not rendering in the correct font omskillet Kindle Formats 14 11-29-2013 03:12 PM
Mini advanced font settings ignored in one book - embedded font? lordofazeroth Kobo Reader 4 09-20-2013 02:15 PM
embedded font - now line with embedded font not re-flowing Kaylee Skylyn ePub 23 08-09-2012 07:30 PM


All times are GMT -4. The time now is 12:05 PM.


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