Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2024, 04:04 PM   #1
awakil
Junior Member
awakil began at the beginning.
 
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
awakil is offline   Reply With Quote
Old 03-07-2024, 04:24 PM   #2
awakil
Junior Member
awakil began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2024
Device: na
Quote:
Originally Posted by awakil View Post
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
I mean Epub Files
awakil is offline   Reply With Quote
Advert
Old 03-07-2024, 08:02 PM   #3
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,165
Karma: 85874891
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:
text to the justify middle of the page
Do you mean centred text?

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.
Quoth is offline   Reply With Quote
Old 03-13-2024, 07:36 AM   #4
awakil
Junior Member
awakil began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2024
Device: na
Quote:
Originally Posted by Quoth View Post
I'm confused. Arabic is Right to Left.

Are these mixed epubs with also Roman-Latin, Greek or Cyrillic text?


Do you mean centred text?

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.
I translate stories from English to Arabic, but the text direction in the epub files remains from left to right, and this is an error
awakil is offline   Reply With Quote
Old 03-13-2024, 01:03 PM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,165
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by awakil View Post
I translate stories from English to Arabic, but the text direction in the epub files remains from left to right, and this is an error
You can't just swap the text. The file (if all Arabic) or the paragraph or span (if partial text) needs both the "dir" and "Lang"

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:
Languages can be written in more than one script. For example, Azeri can be written in any of the Latin, Cyrillic, or Arabic scripts. When written in Latin or Cyrillic scripts, Azeri is written left-to-right (LTR). When written in the Arabic script, it is written right-to-left.
https://www.w3.org/International/questions/qa-scripts

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.
Quoth is offline   Reply With Quote
Advert
Old 03-13-2024, 06:04 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Quoth View Post
I'm nearly sure Turkish used to use Arabic script and RTL, but now is Latin-Roman script and LTR.
But not that long ago - first the alphabet from Arabic to a Latin-Roman - 1928. Then the language, e.g. purging the Arabic and Iranian loan words - that took several decades.

Interestingly, similar reforms to other Turkic languages occurred over the same time frame.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:43 PM.


MobileRead.com is a privately owned, operated and funded community.