|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,852
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 |
|
|
|
|
|
#2 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83,857
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? |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
![]() |
|
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 |