Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 07:01 AM   #1
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,853
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Hebrew Characters

Hi,

This one has me stumped.

A page in an ebook I am reading has a few Hebrew characters. I have a font embedded in the epub to display them (FreeSerif.otf). The epub is v3

In Calibre viewer and in the Editor previewer, both display the paragraphs correctly.

On my Libra2, the paragraphs are messed up. Part of the paragraph is forced ltr and the other part is rtl. See images.

I've added <p dir="ltr"> to each affected paragraph, but it does not fix it.

In the opf, I've added <spine toc="toc" page-progression-direction="ltr">. This does not fix it either.

What is the trick to getting this to work correctly? I want it to read ltr. Normal English reading, with a couple of Hebrew characters in the paragraph.

Thanks
Attached Thumbnails
Click image for larger version

Name:	hebrew1.jpg
Views:	22
Size:	125.4 KB
ID:	224005   Click image for larger version

Name:	hebrew2.jpg
Views:	20
Size:	145.9 KB
ID:	224006  
Karellen is offline   Reply With Quote
Old Today, 07:04 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 83,861
Karma: 153649587
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Given that you are reading it in ePub, you cannot use directional commands for the text. It doesn't work.

Can you show your code for that page including the CSS?
JSWolf is offline   Reply With Quote
Advert
Old Today, 08:23 AM   #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: 9,732
Karma: 6774572
Join Date: Nov 2009
Device: many
In the old days you used bdi (Bi-Directional Isolation) tags surrounding just the Hebrew char. Or try a span with dir="rtl" around just the Hebrew char, or maybe both.

The presence of the Hebrew char without those is confusing the reader to change the whole paragraph to rtl.
KevinH is offline   Reply With Quote
Old Today, 05:25 PM   #4
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,853
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Thanks @KevinH. I just cannot get it to work on the Libra2. I've used the <bdi> tags, I've tried <span dir="rtl">, nested the rtl and ltr. Any combination I could think of, I tried. None of it worked. I guess the libra2 software needs some tweaking.

I've replaced the characters with svg, so now working ok. Yep a cowards way out, but I've spent a good hour and a half fiddling with this.

@jswolf thanks, but using svg files for the characters instead.
Karellen is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
replace the encoded characters "&#…;" with accented characters JeanM Editor 2 12-15-2024 02:43 AM
Enhancement request: special characters, invisible characters and html entities. PenguinCEO Editor 15 04-08-2020 05:26 PM
Hebrew letter Sargont Sigil 7 08-31-2017 10:23 PM
¿Convert unicode decomposed characters to unique/normal characters? JohnQwerty Calibre 3 04-05-2012 12:08 PM
Free (Kindle) English-Hebrew Hebrew-English arcadata Deals and Resources (No Self-Promotion or Affiliate Links) 0 12-01-2010 05:46 AM


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


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