03-07-2024, 04:04 PM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2024
Device: na
|
text direction from left to right
I used Caliber to convert dozens of Arabic files, but I am facing a problem with converting the text direction from left to right and aligning the text to the justify middle of the page.
I've read dozens of instructions but there's no way they can be applied to a group of files at once |
03-07-2024, 04:24 PM | #2 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2024
Device: na
|
Quote:
|
|
Advert | |
|
03-07-2024, 08:02 PM | #3 | |
the rook, bossing Never.
Posts: 11,854
Karma: 87663463
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I'm confused. Arabic is Right to Left.
Are these mixed epubs with also Roman-Latin, Greek or Cyrillic text? Quote:
What are you converting from and what is the conversion to? I know you mention epub, but that can be the source, or destination or both. |
|
03-13-2024, 07:36 AM | #4 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2024
Device: na
|
Quote:
|
|
03-13-2024, 01:03 PM | #5 | ||
the rook, bossing Never.
Posts: 11,854
Karma: 87663463
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Marking a paragraph as RTL https://www.w3schools.com/tags/att_global_dir.asp Marking the language as Arabic (or whatever that uses Arabic script). https://www.w3schools.com/tags/att_lang.asp I often have Lang in a span as only part of a English text paragraph may have Irish, German or French dialogue. I expect dir needs to be at least <p> level as few ereaders and ereader apps can render LTR and RTL on the same line (usually a table is only safe way to achieve that by two columns, unless you are using epub3. The lang attribute is a Global Attribute, and can be used on any HTML element. So can be set at body tag to make entire file be Arabic, and then <div lang= en><p dir=ltr>“<span lang="fr">Ceci est un plume</span>,” she said.</p></div> will work in any lanaguage ebook. Arabic font is separate from an Arabic language. Quote:
So simply translating English to Arabic (or any language not using LTR and not using Latin-Roman fonts) is only part of it. By default ebooks and webpages are LTR and English if nothing is set. Ancient Greek before 750 BC was RTL. I'm nearly sure Turkish used to use Arabic script and RTL, but now is Latin-Roman script and LTR. Last edited by Quoth; 03-13-2024 at 01:09 PM. |
||
Advert | |
|
03-13-2024, 06:04 PM | #6 | |
null operator (he/him)
Posts: 20,755
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Interestingly, similar reforms to other Turkic languages occurred over the same time frame. BR |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sending EPUB to Kindle Changes Text Direction | morty92222 | Calibre | 5 | 07-21-2022 01:17 PM |
Calibre E-Book Reader - Change Reading Direction - Right to Left for Manga? | Inukami | Library Management | 1 | 02-20-2020 10:08 AM |
Calibre Viewer and vertical writing, right-to-left page progression direction books | iBooks | Calibre | 1 | 12-26-2019 07:41 AM |
proper use and setting of text direction CSS vs structural in epub3 | KevinH | ePub | 12 | 03-29-2018 10:55 AM |
Right-to-left writing direction in epub | albertp007 | KOReader | 3 | 11-01-2017 02:02 PM |