View Single Post
Old 03-21-2016, 06:07 AM   #21
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Working with three bits of Hebrew text in a German book. Everything is working fine thanks to the great suggestions in this thread.

BUT: I'm running into problems with one passage which ends a paragraph of otherwise German text. It should be to the right of the German text, obviously, but my Kobo (and only my Kobo - ADE, Sigil Bookview and Calibre Preview all display it correctly) puts the Hebrew text to the left of the German text that should come before it, and even switches the punctuation directly outside the Hebrew span from ltr to rtl. Obviously, the easy, dirty fix would be putting the Hebrew into a new paragraph, but it isn't in a new paragraph in the original, so I would like to avoid that. And also - we wouldn't be here if we wanted easy, dirty fixes, would we?

So, respected Witches and Wizards, any suggestions?

Here's the code, lifted from Doitsu's great Arabic test epub:

Text:
Code:
<p>... Der Herr behüte uns vor allem Bösen. <span class="hebrew"><span class="ade">ער לכמ ונרמשי ׳ה</span><span class="noade">ה׳ ישמרנו מכל רע</span></span> …«</p>
CSS:
Code:
.hebrew {font-family: "TaameyFrankCLM"; direction:rtl}
.ade {display:none;}
doubleshuffle is offline   Reply With Quote