Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Generate page-spread properties #697

Open
1and2papa opened this issue May 18, 2024 · 0 comments
Open

[Feature Request] Generate page-spread properties #697

1and2papa opened this issue May 18, 2024 · 0 comments
Labels
good first issue Good for newcomers Kobo Kobo device

Comments

@1and2papa
Copy link

Kobo readers, e.g. Libra 2, support combing 2 spreads of page when reading in horizontal mode.
Right now, it combines every 2 pages of the generated comic book. That should work in ordinary scenario but in case there are odd pages add between in the books, the Kobo reader might combines the pages in an unexpected way.

I found that there are properties values for itemref that Kobo utilises for identifying the left or right spreads and it will combines the spreads accordingly, which are:

  • page-spread-left
  • page-spread-right

I observe that KCC does actually identify the spreads and generate left/right spreads by different suffix in idref e.g. kcc, kcc-b or kcc-c, so I'm now fixing this issue by adding such properties with calibre ebook-edit by global replacing the suffix, like below:

From:

<itemref idref="page_Images_kcc-XXX-kcc"/>
<itemref idref="page_Images_kcc-XXX-kcc-b"/>
<itemref idref="page_Images_kcc-XXX-kcc-c"/>

to:

<itemref idref="page_Images_kcc-XXX-kcc" properties="page-spread-left"/>
<itemref idref="page_Images_kcc-XXX-kcc-b" properties="page-spread-right"/>
<itemref idref="page_Images_kcc-XXX-kcc-c" properties="page-spread-left"/>

The above is an example of book in Manga mode(i.e. right to left) and I believe similar mechanism of generating different spreads for left to right is also used in KCC.

My request is simple, it would be nice if KCC can generate such properties in itemref for different spreads. I think there has already been a logic for that so adding such properties should not be a great effort but it improve the reading experience for Kobo owners.

@axu2 axu2 added Kobo Kobo device good first issue Good for newcomers labels May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Kobo Kobo device
Projects
None yet
Development

No branches or pull requests

2 participants