View Single Post
Old 03-13-2015, 02:10 PM   #5
verydeepwater
Member
verydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 86
Karma: 12586
Join Date: Nov 2012
Device: Ipad and Kindle Fire
Thank you very much, Odedta. I am using EPUB 3. I was trying to add the direction rule to the stylesheet, but it looks as though I should add it to the html. The majority of the text is in English, so I should add dir="rtl" to all the Arabic paragraphs and add dir="ltr" to the <html... at the top as you have shown. And forget about the stylesheet. This is what I needed to know, thanks.


[QUOTE=odedta;3063758]dir="rtl" or dir="ltr" is the correct form of telling the device of the text direction in an EPUB3. In EPUB2 you should use CSS rule "direction:rtl;".

You should use the dir="rtl" attribute if the majority of the text on that page is in Arabic, for all the English paragraphs you add dir="ltr". e.g.

[PHP]<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" lang="ar" xml:lang="ar">

Last edited by verydeepwater; 03-13-2015 at 02:12 PM.
verydeepwater is offline   Reply With Quote