-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Double Pages Not Able to Cycle Through Offset to line up properly #796
Comments
You misunderstand what the feature is about. You cannot dynamically change what double pages are shown by toggling the cover/no-cover. At best it's a random side effect, depending on the book. Komga builds spreads in an absolute manner, depending on the pages, their dimensions (if they have been analyzed), and the display mode (single, double no cover, double). If you have a page, say number 3, that is landscape, it will change the subsequent spreads, because it would be shown as a single page, not a double page. You need to verify the pages and their dimensions to see how the spreads would be built. You can check |
Ok, gotcha. That's how tachiyomi, cdisplayx, and cover work as well though so I've never run into this issue with other readers. The side effect fixes the issue for odd numbered pages, but as I showed, even-numbered comics aren't shown properly. |
The file is badly ripped. I have no intention on adding dynamic double-pagesin the Webreader that would change depending on the page you currently are at. |
A couple things I gathered from Gotson on how to actually get this implemeted.
Gotson's initial Outline
Thinking about it a little deeper after talking I think there's probably a solution that could accomplish the desired behavior of allowing a user to quickly shift between layouts and keeping things deterministic (not needing to recalculate spreads based on page numbers). Problem Statement Approach Current code
So if a spreads looks like: E: Empty Page So the important thing here is that there should never be a single page of the spread that lands on the same side on both DPs spread: Imagine Pages 3 & 4 are actually a split double spread:
So what about landscape pages at random points? It's important to note that it's ok for L's to end up as the only page in the spread in both layouts. That shouldn't break the alternating flow of single pages though.
In summary the only change needed is to inject an empty page after a L for DPNC layouts. Additional Issue 1
By taking the last page, you can get into a double page situation like this: [last page, E] which was taken from a spreads that looked like this: [[1,2],[3, last page]] Resulting in this little awkward situation: [[1, 2], [3, E], [last page, E] Additional Issue 2 |
Steps to reproduce
Have a comic with an even number of pages
Select Double Pages (no cover)
Switch to Double Pages
4. It shows the same view instead of moving ahead by one page and offsetting the cover properly
Expected behavior
Desired behavior would be to allow a user to change where the double page is for even numbered comics, just like it does for odd-numbered pages comics (even numbered page to odd numbered page or odd numbered page to even numbered page) as it previously worked in Komga - I believe it was working prior to my last issue #772 (though I just confirmed the bug existed on 0.137.0 too).
Actual behavior
Komga shows the same view instead of moving ahead by one page and offsetting the cover properly. With double pages sometimes they can even get off by one if there's an additional page of explanation or info, so being able to switch on the fly is necessary.
Logs
No response
Komga version
0.148.3
Operating system
Windows 10
Other details
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: