View Single Post
Old 10-22-2022, 09:55 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,360
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
That's pretty easily done with css by setting the direction:rtl for a particular line.

There are some caveats:
- you can only designate a paragraph, div, or table row, etc. as rtl. You can't designate a particular line as rtl if the paragraph spans more than one line. And you can't know how many lines a paragraph will use with a reflowable epub especially when the user can change font size, margin size, and orientation (landscape/portrait)

- some devices might not support the css so you would have to play around with which one works. Attached are two different ways you can try...personally I prefer the nth-child method but your device may not support it.
Attached Thumbnails
Click image for larger version

Name:	cap1.png
Views:	111
Size:	273.0 KB
ID:	197308   Click image for larger version

Name:	cap2.png
Views:	108
Size:	279.2 KB
ID:	197309  

Last edited by Turtle91; 10-22-2022 at 09:59 AM.
Turtle91 is offline   Reply With Quote