Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-14-2014, 07:51 PM   #1
Gringo
Junior Member
Gringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterGringo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 1
Karma: 12678
Join Date: Mar 2014
Device: iPad
Unhappy Stuck on embedded Hebrew font in ePub

Hello folks!

A company converted half of a job to ePub format, and when they quit, it was handed to me. Things had been humming along ok until a couple of the books started using a Hebrew font. So I fiercely read up on how to embed fonts. The only problem is that the Hebrew font used to create the original book (in InDesign) is not easy to work with. From my testing, it will not embed. (Here it is: http://cl.ly/1m1e0N1E1k2S) And when I use a different Hebrew font which can be embedded, it shows up like this.

But now I'm confused, as I look over the work they had done previously. For example, when I explode their ePub in Calibre and check out their text, I find:

Code:
O verbo hebraico, זגר (rāgăz), significa ou ser agitado pela ira, ou pelo temor.
So that three letter word is good Hebrew, so I looked up their xhtml file:

Code:
O verbo hebraico, <span class="simbolo">זגר</span>
And their freaking CSS file has only:

Code:
span.simbolo {
	font-family: "Times New Roman";
	font-weight: normal;
	font-style: normal;
}
The heck? How did they get that Hebrew text to show up? They worked off of the Adobe InDesign publisher's file just like I am, and did they simply go copy/paste the Hebrew word directly to the ePub files? That would have taken forever — because Hebrew words are all over the place!

I've run laps around the web looking for a break but haven't found a fix. Any help is appreciated! I know I'm missing something — I just don't know what yet.
Gringo is offline   Reply With Quote
Old 03-14-2014, 11:28 PM   #2
DomesticExtremis
Addict
DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.
 
DomesticExtremis's Avatar
 
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
Micro$oft's TNR font covers the Hebrew Unicode range.
DomesticExtremis is offline   Reply With Quote
Advert
Old 03-15-2014, 02:05 AM   #3
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,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Gringo View Post
Code:
O verbo hebraico, זגר (rāgăz), significa ou ser agitado pela ira, ou pelo temor.
First of all, Hebrew is written from right to left. However, in the example sentence that you posted, Hebrew text is written left to right. (זגר reads Z-G-R from right to left; however it should be displayed as רגז = R-G-Z). I.e., before fixing the font issue, you'll have to figure out how to format RTL text in InDesign so that it'll export correctly. If you only have the ePub to work with, you'll probably have to manually rearrange all Hebrew letters unless the the author only used three letter Hebrew roots, in which case you might be able to rearrange them with a regular expression.

Quote:
Originally Posted by DomesticExtremis View Post
Micro$oft's TNR font covers the Hebrew Unicode range.
Ezra SIL is free and will do nicely.

Last edited by Doitsu; 03-15-2014 at 02:10 AM.
Doitsu is offline   Reply With Quote
Old 03-15-2014, 02:12 AM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Since on the readers Hebrew is usually not includeded (if any at all). you indeed need to embed the font. To keep the size under control, I advise to subset the font.
Toxaris is offline   Reply With Quote
Old 03-15-2014, 05:46 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Doitsu View Post
First of all, Hebrew is written from right to left.
With a Unicode-compliant system, you'd enter the letters in their natural order (the order in which they should be read), and the system should take care of arranging them left-to-right or right-to-left, depending on their "intrinsic" directionality (which is rtl for Hebrew letters, of course).

But ADE does not support right-to-left in any way, manual or automatic, so your only choice would be entering the letters in reverse order, which is wrong, and would show wrongly in compliant systems.
Jellby is online now   Reply With Quote
Advert
Old 03-15-2014, 07:00 AM   #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,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Jellby View Post
But ADE does not support right-to-left in any way, manual or automatic, so your only choice would be entering the letters in reverse order, which is wrong, and would show wrongly in compliant systems.
You're of course right. The only way to display Hebrew correctly on ADE/RMSDK-based readers is to reverse the order of the letters. (Since five Hebrew letters have special final forms, these forms also need to be hard-coded.)

However, since the OP apparently owns an iPad, I was assuming that he wants to create an ePub for the iBookstore. Since iBooks supports RTL text, it'll display זגר instead of רגז.

The only way to display RTL strings correctly on ADE and non-ADE readers is to use your XPGT method to show LTR text on ADE readers and the RTL text on all other readers. I used a variation of it with embedded Arabic text. (The Arabic text was included twice: one pre-shaped LTR version and one regular RTL version.)
Doitsu is offline   Reply With Quote
Old 05-23-2014, 11:27 PM   #7
Monica Xiao
Junior Member
Monica Xiao began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2014
Device: none
Have you fixed it? I met the same problem. Looking for a solution....
Monica Xiao is offline   Reply With Quote
Old 05-24-2014, 12:44 AM   #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,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Monica Xiao View Post
Have you fixed it? I met the same problem. Looking for a solution....
AFAIK, the only solution for RTL ePubs that work both with ADE devices and iBooks is to include RTL text twice (RTL and LTR) and hide one of them. Have you looked at my Arabic demo file?
Doitsu is offline   Reply With Quote
Old 05-24-2014, 07:13 AM   #9
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
One thing that was only alluded to is that Times New Roman is NOT a free font. It is one which probably require an expensive contract with the font provider. That is why Ezra SIL was mentioned and it or something like it needs to be used.
mrmikel is offline   Reply With Quote
Old 05-24-2014, 07:28 AM   #10
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Gringo, when you put hebrew letters in an HTML file within an ePub and load it on your iPad, you will see the Hebrew letters perfectly and when you look at the font it will say "Times New Roman", you don't need to embed a hebrew font in order to see hebrew letters (in the correct order - RTL), at least on the iPad.

As for:
Quote:
<span class="simbolo">זגר</span>
Doitsu explained it really well, basically it should say רגז and not זגר
It probably happens since your InDesign version does not have hebrew support.

You can still try to use the CSS rule: "direction:rtl" for the .simbolo class, i'm not a 100% sure it will reverse the letters order, if it wouldn't, you either have to manually reverse their order which can be done via Regex or add hebrew support to your InDesign.
If you need to convert just a couple of files I can help you with that.

by the way, the image you posted here looks weird, those symbols between the hebrew characters ס and פ doesn't look familiar, it feels like the font is not a hebrew font and that's why the device finds a different character from the charset

Last edited by odedta; 05-24-2014 at 07:30 AM.
odedta is offline   Reply With Quote
Old 05-27-2014, 08:06 PM   #11
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,460
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 Doitsu View Post
AFAIK, the only solution for RTL ePubs that work both with ADE devices and iBooks is to include RTL text twice (RTL and LTR) and hide one of them. Have you looked at my Arabic demo file?
Which is why we turn down jobs that have both English and Hebrew in them. Far, far too much brain-damage. I try really hard not to think about individual pages in which we're supposed to have both, or, yet more fun, facing pages with, say, English (l-to-r) on the verso and Hebrew (r-to-l) on the verso. Thanks, but...no thanks. Certainly not without charging the bloody earth. The conversion house that took that job were idiots if they didn't know upfront that Hebrew was going to be a problem for a professionally-produced book. And let's not forget those page flips!

(This isn't to say we don't do single-language r-to-left; we do. But mixing them up? Oish).

Hitch
Hitch is offline   Reply With Quote
Old 05-28-2014, 12:56 AM   #12
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
I dealt with some mixed text in the wiki and I just put the Hebrew letters text and English words on different lines and let the html viewer merge the lines as would be expected. Lo and behold it worked.

Dale
DaleDe is offline   Reply With Quote
Old 05-28-2014, 01:42 AM   #13
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
I really don't see the problem there Hitch, dir="rtl" would solve all your problems :P
odedta is offline   Reply With Quote
Old 05-28-2014, 04:02 AM   #14
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by odedta View Post
I really don't see the problem there Hitch, dir="rtl" would solve all your problems :P
Not even that, just write Latin and Hebrew letters normally, the Unicode bidi algorithm deals with the rest
Jellby is online now   Reply With Quote
Old 05-28-2014, 05:59 AM   #15
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,460
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 Jellby View Post
Not even that, just write Latin and Hebrew letters normally, the Unicode bidi algorithm deals with the rest
Not to be uncommonly dense, but: when they're on the same page, which way do the page flips flip? Oh--I see why you guys are confused. This is a FF book, which means, automated page flipping.

On a more serious note: the books we've turned down aren't one or the other. I am not making this up: one had English on the verso and Hebrew on the recto, and the client wanted it to auto-play, optionally, in both directions. Now, I'm all for fun and games, if someone is paying, but honestly: I'm not sure I'm that interested, commercially, in making a book that flips in both directions, automatically. It sort of makes my brain hurt. I'm opting, at the moment, to let Liz or the guys at Azardi or odedta figure it out first.

And is someone here claiming that it will work in all readers? Methinks not.

Hitch
Hitch is offline   Reply With Quote
Reply

Tags
embed, fonts, hebrew


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini advanced font settings ignored in one book - embedded font? lordofazeroth Kobo Reader 4 09-20-2013 02:15 PM
Epub - embedded font problems aterry13 Conversion 2 06-13-2013 04:27 PM
embedded font - now line with embedded font not re-flowing Kaylee Skylyn ePub 23 08-09-2012 07:30 PM
How to correct word breakage in ePUB (Tamil font embedded) Raja1205 ePub 10 06-19-2012 10:45 AM
How to correct word breakage in ePUB (Tamil font embedded) Raja1205 ePub 6 06-19-2012 12:13 AM


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


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