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 04-23-2017, 10:22 AM   #1
esagi
Junior Member
esagi began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2017
Device: Kindle app for Android
Page flip direction gone when converting PRC to AZW3

Hello,
I'm trying to convert a PRC file to AZW3.
When viewed on the kindle app for android, the original PRC page flip direction is right to left (the book is in Hebrew).
When converting to AZW3, the page flip is reset to the default latin languages behavior.
The only other change to the file that I did is embeddeing Tahoma font.

Please advice, thank you very much.
esagi is offline   Reply With Quote
Old 04-23-2017, 12:23 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's not a PRC book, it is already an AZW3 book, Just rename it.
kovidgoyal is offline   Reply With Quote
Old 04-23-2017, 12:30 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And converting the attached file gives me an azw3 with the page-progression-direction correctly set in the spine of the OPF.
kovidgoyal is offline   Reply With Quote
Old 04-24-2017, 06:59 AM   #4
esagi
Junior Member
esagi began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2017
Device: Kindle app for Android
Thank you for the reply - I did as you suggested and simply renamed the prc file to azw3.

However, any change to the file "breaks" the right to left page progression.
The page-progression-direction still correctly set on the OPF, but the kindle app ignores it and flips the pages left to right.
(changing the metadata from Calibre main menu is alright)

Attached are 3 files:
"Metadata title change only.azw3" - the original prc file renamed, works OK
"Metadata title change and single word change.azw3 " - edited a single work in the text, doesn't work
"With font embbeded.azw3" - embedded fonts, doesn't work

I tried comparing all of these file and didn't see any difference that should matter, without any success. Any idea what should I do?

Thank you very much
Attached Files
File Type: azw3 Metadata title change only.azw3 (1.71 MB, 344 views)
File Type: azw3 Metadata title change and single word change.azw3 (1.78 MB, 145 views)
File Type: azw3 With font embbeded.azw3 (2.70 MB, 114 views)
esagi is offline   Reply With Quote
Old 04-24-2017, 07:23 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In that case it is likely there is some other proprietary bit in the azw3 file that needs to be set -- unfortunately the only way to figure that out is via reverse engineering and I dont have the time for it right now.

If you are technically inclined you can dump the contents of the azw3 file using

calibre-debug file.azw3

do it for the before and after files and see if you can spot any significant differences
kovidgoyal is offline   Reply With Quote
Old 04-24-2017, 08:19 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I took a aquick look and there is one obvious EXTH header field being removed, this should fix it: https://github.com/kovidgoyal/calibr...2e2724ae041b0d

but as I said I dont have the time to test it properly just now.
kovidgoyal is offline   Reply With Quote
Old 04-24-2017, 09:16 AM   #7
esagi
Junior Member
esagi began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2017
Device: Kindle app for Android
Just to be clear - you mean running a conversion and adding the debug option, and then looking at the files generated at the "input" folder?
esagi is offline   Reply With Quote
Old 04-24-2017, 09:47 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, just running

calibre-debug file.azw3


It will inspect the azw3 and output detailed info about its internal structures.
kovidgoyal is offline   Reply With Quote
Old 04-25-2017, 03:10 AM   #9
esagi
Junior Member
esagi began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2017
Device: Kindle app for Android
Update: no info gained from the output files.
The work around was converting the prc\azw3 to epub and embedding the desired fonts, and then using kindlegen convert the epub to mobi(kf8).
Right to left works now, and the embedded font (would have tried it earlier, but I thought mobi didn't support embedded fonts).

Thanks anyway for the reply
esagi is offline   Reply With Quote
Old 04-25-2017, 03:31 AM   #10
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,504
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
It will be worth trying again in a week or two with the latest version of calibre to see if the fix Kovid's just added to the calibre code does the trick.
pdurrant is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Too many page breaks when converting from .azw3 to epub Kaetrin Conversion 15 08-10-2016 03:00 AM
Kindle Page Flip AudibleHippo Devices 1 06-28-2016 10:54 PM
azw3 vs mobi vs prc/pdb on a Kindle dhdurgee Kindle Developer's Corner 37 02-09-2016 04:41 PM
FXL & page-progression-direction odedta ePub 20 06-16-2015 06:29 AM
Converting ePub > AZW3 so the cover shows up as the first page JSWolf Kindle Formats 5 06-30-2014 01:52 PM


All times are GMT -4. The time now is 09:22 AM.


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