Quote:
Originally Posted by KevinH
According to W3c you can use a dir attribute on a span in html5. Does this not work in epub3?
|
You can, of course, add a
dir="rtl" attribute" to a <span> tag and the text is properly rendered as RTL text, however it'll be aligned left. What I meant is that multiline text in
<span> tags can't be aligned right via CSS. (I've updated my post.)
Code:
<p><span style="text-align: right;" dir="rtl">وَبَشِّرِ الَّذِينَ آمَنُوا وَعَمِلُوا الصَّالِحَاتِ أَنَّ لَهُمْ جَنَّاتٍ تَجْرِي مِن تَحْتِهَا الْأَنْهَارُ ۖ كُلَّمَا رُزِقُوا مِنْهَا مِن ثَمَرَةٍ رِّزْقًا ۙ قَالُوا هَٰذَا الَّذِي رُزِقْنَا مِن قَبْلُ ۖ وَأُتُوا بِهِ مُتَشَابِهًا ۖ وَلَهُمْ فِيهَا أَزْوَاجٌ مُّطَهَّرَةٌ ۖ وَهُمْ فِيهَا خَالِدُونَ</span><br/> And give good tidings to those who believe and do righteous deeds that they will have gardens [in Paradise] eath which rivers flow. Whenever they are provided with a provision of fruit therefrom, they will say, "This is what we were provided with before." And it is given to them in likeness. And they will have therein purified spouses, and they will abide therein eternally.</p>
(If you compare the screenshot with the first screenshot you'll notice that the second line is aligned left.)