Hebrew Text Direction Issue
Learn / Forums / EPUB and eBook / Hebrew Text Direction Issue
- This topic has 3 replies, 1 voice, and was last updated 6 years, 6 months ago by Aaron Troia.
-
AuthorPosts
-
-
October 9, 2017 at 12:54 pm #98705Aaron TroiaParticipant
This might be super confusing, but I’m working on an ebook with Hebrew characters which hve been entered in the correct order from right to left (but entered in left to right) and I believe the Hebrew characters exported from InDesign correctly, but now Chrome and ADE display the characters in a reversed order like it sees they are Hebrew and is trying to reverse them to read correctly, but I want them to read from the left to right direction so they display correctly from right to left. I tried using the CSS direction attribute to try and revers the direction of the text from what is displaying but ePC throws an error that it’s not supported.
Here is the display in the print:
https://www.dropbox.com/s/bw2hxkxe3akw3f3/print.png?dl=0Here is the display in HTML:
https://www.dropbox.com/s/w6vnfgc046pypq2/HTML.png?dl=0Here is the display in Chrome/ADE:
https://www.dropbox.com/s/mtbopf9862ly1xu/chrome.png?dl=0 -
October 9, 2017 at 1:35 pm #98707Aaron TroiaParticipant
After searching some more, I found a handy tag to fix this,
<bdo dir="ltr">text</bdo>
changes the direction with no errors from ePC https://www.w3schools.com/tags/tag_bdo.asp -
October 9, 2017 at 1:53 pm #98708Aaron TroiaParticipant
Well after some testing, the <bdo> tag works in Chrome/ADE/iBooks but appears to be ignored by Kindle devices.
-
October 9, 2017 at 3:24 pm #98709Aaron TroiaParticipant
It appears Kindle devices do not respond to HTML tags or CSS to change text from LTR to RTL, you have to manually change the direction of the Hebrew characters so they are in the reverse order for Hebrew to display correctly on Kindle devices. It seems by default Hebrew characters are displayed in RTL order and I havent found a way to disable that or keep it from happening.
-
-
AuthorPosts
- You must be logged in to reply to this topic.