Quote:
Originally Posted by KevinH
I need help. What I know about using rtl text in general would not fill a thimble. I have been searching up on this to help "fix" how Sigil handles it.
|
I haven't noticed any RTL issues with Sigil. Have other users reported specific problems?
Quote:
Originally Posted by KevinH
Based on a web search, there seems to be a conflict about whether to use CSS or use the html5 attributes instead.
|
IMHO, adding a
dir="rtl" attribute to the html/body tag seems to be the most robust solution for epub3 and epub2 books. (For more information see this
W3C FAQ.)
BTW, in the semi-official IDPF epub3 sample files, the authors used:
Code:
<body style="text-align:right" dir="rtl">
in [
israelsailing]
and
Code:
<html xml:lang="ar" lang="ar" dir="rtl">
in [
regime-anticancer-arabic]
If you want to run your own tests, here's a simple
Arabic MR epub3 file that passes epubcheck 4.0.2.
Quote:
Originally Posted by KevinH
I am talking about epub3 here but would also like to know what holds for epub2 as well.
|
dir="rtl" body/html attributes also work fine in epub2 books, and books that contain them pass epubcheck 4.0.2., however, AFAIK, there's not a single epub
2 app that actually supports valid epub2 RTL epubs. I.e., there's nothing you have to do because epub2 books with
dir="rtl" body/html attributes display fine in Sigil and pass epubcheck 4.0.2.