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 06-28-2020, 07:24 AM   #1
msoutopico
Member
msoutopico began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2019
Device: Kindle
Wrong order of wors when converting Arabic ebook

Hi there,

I have tried converting some ebooks (epub) in Arabic for a Kindle.

The words look good, but the order of words is wrong. For example, this would be the correct right-to-left order:

.Arabic in sentence a is This



When I open the epub (before conversion) in my computer, in Calibre's Viewer, it looks good. But when I open it in my Kindle, the text is aligned to the left (as in English) and the order of words is left to right (as in English).



Is there any special setting that I must use to keep the correct order and alignment?

Cheers, Manuel
msoutopico is offline   Reply With Quote
Old 06-28-2020, 09:13 AM   #2
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,070
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Are you converting your book to KFX format for Kindle?

As far as I know that is the only Kindle format that correctly renders books in Arabic.
jhowell is offline   Reply With Quote
Advert
Old 01-06-2021, 10:17 PM   #3
msoutopico
Member
msoutopico began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2019
Device: Kindle
Hi jhowell,

Thanks for your reply.

I don't see KFX as an output format in Calibre. Could you please give me more details?

Cheers, Manuel
msoutopico is offline   Reply With Quote
Old 01-06-2021, 10:53 PM   #4
msoutopico
Member
msoutopico began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2019
Device: Kindle
I have found the plugin to convert to KFX, but I get an error:

calibre, version 5.8.1
ERROR: KFX conversion failed: <p><b>Cannot convert عالم صوفي</b><br><br><b>Conversion error:</b> Exception('Kindle Previewer 3 not installed as expected. (C:\\Users\\souto\\AppData\\Local\\Amazon\\Kindle Previewer 3 missing)')</p>

Any tips?
Cheers, Manuel
msoutopico is offline   Reply With Quote
Old 01-07-2021, 02:49 AM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,181
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by msoutopico View Post
I have found the plugin to convert to KFX, but I get an error:

calibre, version 5.8.1
ERROR: KFX conversion failed: <p><b>Cannot convert عالم صوفي</b><br><br><b>Conversion error:</b> Exception('Kindle Previewer 3 not installed as expected. (C:\\Users\\souto\\AppData\\Local\\Amazon\\Kindle Previewer 3 missing)')</p>

Any tips?
Cheers, Manuel
Install Kindle Previewer 3? See Kindle Previewer on Amazon.com for the download links.
DNSB is offline   Reply With Quote
Advert
Old 01-07-2021, 04:31 AM   #6
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,070
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by msoutopico View Post
I have found the plugin to convert to KFX, but I get an error:

calibre, version 5.8.1
ERROR: KFX conversion failed: <p><b>Cannot convert عالم صوفي</b><br><br><b>Conversion error:</b> Exception('Kindle Previewer 3 not installed as expected. (C:\\Users\\souto\\AppData\\Local\\Amazon\\Kindle Previewer 3 missing)')</p>

Any tips?
Cheers, Manuel
As DNSB wrote, install the Kindle Previewer. See the Installation section of the plugin documentation for more information.
jhowell is offline   Reply With Quote
Old 12-26-2021, 02:23 PM   #7
msoutopico
Member
msoutopico began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2019
Device: Kindle
I have managed to install the plugin and I now see the KFX format in the conversion dialog. However, when I send the book to my kindle, the result is the same: still left to right directionality.

Anything else that I might be doing wrong?

Thanks. Manuel
msoutopico is offline   Reply With Quote
Old 12-26-2021, 05:54 PM   #8
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,070
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Possibly something is wrong with the metadata or html coding of the book. Check that the language of the book is set to Arabic and the text direction is rtl.
jhowell is offline   Reply With Quote
Old 12-26-2021, 10:55 PM   #9
msoutopico
Member
msoutopico began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2019
Device: Kindle
thanks jhowell,

The stylesheet.css file has `direction: rtl;` in every element and every html has `dir="rtl" lang="ar" xml:lang="ar"` in the root html file.

Is there anything else I should check?

The original epub file looks fine when I open it in Calibre Viewer, which makes me think that the problem must be in the conversion into the format that is sent to my Kindle.

Thanks. Manuel

Last edited by msoutopico; 12-26-2021 at 10:57 PM.
msoutopico is offline   Reply With Quote
Old 12-27-2021, 08:31 AM   #10
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,070
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
I don't know what could be happening here.

A sample that demonstrates the problem would help. You could produce an EPUB with a couple of paragraphs of generic text, convert that to KFX, and verify that it reads incorrectly. Then if you post both the EPUB and KFX files here I will take a look and see if I can tell what is going wrong.
jhowell is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting arabic Books sami19 Conversion 5 12-24-2014 06:06 AM
Wrong author sorting order Gnolive PocketBook 3 11-15-2013 04:32 PM
Wrong sort order when slash (/) in ebook name rfog Calibre 4 07-31-2012 09:55 AM
arabic not displayed correctly after converting with calibre mhmohamadi Apple Devices 0 05-23-2010 02:26 PM
Books added to Reader in wrong order BeccaAnn Calibre 2 12-23-2009 09:47 PM


All times are GMT -4. The time now is 08:57 AM.


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