![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Apr 2020
Device: Kindle Paperwhite 4
|
Right to Left Languages
Hello,
For languages reading from right to left, is it possible to edit the direction the book reads? It was a PDF I converted to AZW3, so it initially read from up to down, which wasn't as disorienting as it is to now turn from left to right, and read from right to left. I tried adding the following line of css: extra_css="body {direction: rtl;}" But the pages still turn from left to right in both AZW3 and ePub. My experience with css is next to none, so it’s possible I am just making an error. I also apologize, because I posted yesterday in the wrong thread. Any help with this would be much appreciated! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,000
Karma: 89771343
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
For Kindle books to change pages in the RTL direction should put the following in the OPF metadata:
<meta name="primary-writing-mode" content="horizontal-rl"/> |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Apr 2020
Device: Kindle Paperwhite 4
|
Quote:
Where do I go to add this line? Thank you again. Last edited by pdurrant; 05-04-2020 at 06:28 AM. |
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,000
Karma: 89771343
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Apr 2020
Device: Kindle Paperwhite 4
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,000
Karma: 89771343
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Apr 2020
Device: Kindle Paperwhite 4
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,000
Karma: 89771343
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
The only other thing I can think of to try is set the page-progression-direction.
To do that, if your spine element in the OPF is: <spine toc="ncx"> Change it to: <spine toc="ncx" page-progression-direction="rtl"> If that does not work then I am out of ideas. (Based on your original statement, "But the pages still turn from left to right", this is all about changing the page turn direction so that you can tap the left side of the screen to advance and the right side to go back. This metadata has nothing to do with the direction of text on individual pages. And just to verify: You are trying this out on your Kindle? I don't think that calibre's e-book reader pays attention to reversed page turn direction in books.) Last edited by jhowell; 05-13-2020 at 04:24 PM. |
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
The World Wide Web Consortium recommends using dedicated bidi markup to describe RTL content, where markup is available and epub books with RTL styles will fail EPUBCheck.
For example, Code:
body {direction: rtl;} Code:
ERROR(CSS-001): The 'direction' property must not be included in an EPUB Style Sheet. Try replacing all <body> tags with <body dir="rtl"> tags. |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Apr 2020
Device: Kindle Paperwhite 4
|
@jhowell this did the trick! Thanks for your help!
@Doitsu thank you for also being there for this! |
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2022
Device: Kindle paperwhite
|
Right to left direction
Hi, i knwo this thread is kinf of old,
would you mind sharing with me what script did the trick for you and where should i be insering it? Thanks a lot! |
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Please provide a short HTML excerpt and a screenshot of the rendering isssue(s). |
|
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2022
Device: Kindle paperwhite
|
Right to left direction
Hi, Thanks for helping here.
im trying to work with a hebrew text which goes from right to left. i followed the instructions on the thread and in the OPF file i changed the following: <spine toc="ncx" page-progression-direction="rtl"> it didnt seem to work for me. please see screenshot below. Thank you! |
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2022
Device: Kindle paperwhite
|
Im trying to have the text to show from right to left.
In addition the text is revesible, Every single word is spelled backwards. is there a way to change it? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
File names in Right to left languages | doron | KOReader | 2 | 04-03-2018 05:04 PM |
different languages | vdem | Introduce Yourself | 5 | 12-04-2011 02:39 PM |
Languages That Can Be Used | Nathan Campos | Kindle Developer's Corner | 3 | 11-09-2010 04:51 PM |
Calibre support for Right-to-Left languages | kiklop74 | Calibre | 7 | 04-11-2009 02:02 PM |
Other languages? | irishjew | Sony Reader | 2 | 07-17-2007 03:30 PM |