View Single Post
Old 03-23-2018, 03:07 PM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
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 View Post
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 View Post
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 epub2 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.
Doitsu is offline   Reply With Quote