Incorrect conversion japanese MOBI

Bug #1194766 reported by Jeonghwan Choi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Calibre make incorrect conversion of japanese ebooks (AZW3) aka MOBI
Japanese ebook page flows right-to-left. But Calibre make it left-to-right. This is important because ebooks, like a japanese ebooks, which is page progression is right-to-left, only display first page of each chapters. When press next page, it moves to next chapter, not next page. I will attach 1 japanese azw3 file to test.

This occurs lack of attribute on Spine tag in opf file. It's **page-progression-direction="ltr"** When I manually added this attribute, it shows all page correctly.
Please see following url:
http://www.idpf.org/epub/30/spec/epub30-publications.html#sec-spine-elem

Maybe, not only japanese ebooks, also all other ebooks which page progression is right-to-left, need this attribute.

I saw the mobi8.py file. On extract_resource: method, it ignores "RESC" file. But, when I unpack azw3 file, there was metadata file contains Spine tag with page-progression-direction="ltr". I hope this could be help you.

Thank you for reading and making this great application!

Tags: conversion
Revision history for this message
Jeonghwan Choi (shining84) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1194766

That is an EPUB 3 property, calibre does not support EPUB 3 at this
time. http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.4

If support for EPUB 3 is ever added, feel free to re-open this issue.

I'll check if support for this property alone can be added without too
much disruption, however, reading systems should really be smart enough
to figure out page turn direction from the language metadata in the OPF.

If I find adding it is possible, I'll re-open this bug-report. You are
also welcome to submit a patch, if you wish to implement it yourself.

 status wontfix

Changed in calibre:
status: New → Won't Fix
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Won't Fix → Fix Released
Revision history for this message
Jeonghwan Choi (shining84) wrote :

Thank you for fast response.

Revision history for this message
David Gómez (dabisu) wrote :

This problem also seems to happens when converting from epub to azw3. Although the japanese epub has the page-progression-direction property set to rtl, the generated azw3 flows from left to right, and only first page of each chapter is available. Should i open a bug for this?

Revision history for this message
Kovid Goyal (kovid) wrote :

I have no clue how to implement page-progression-direction in azw3, or if that is even possible, since internally, azw3 has no OPF.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.