-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Offset value for pagination #1318
Comments
You're probably thinking of the "Odd Pages Left" setting in Evince. |
Currently the page layout for double pages always seems to be like this:
Which is not what any standard book does and thus it also destroys the layout of a spread/centerfold. Instead this would be correct:
Seems like this could be the default, without any offset setting needed, no? |
As far as I can tell, yes, for PDF and CBZ, odd page recto should be the default. But the setting is still needed because a large number of documents require odd pages to be verso. Not entirely sure about fixed-layout EPUB/Kindle books, though. I don't see a particular requirement in the spec and my interpretation has been that it should default to verso, and this is indeed what at least some books assume. |
At least for the EPUBs which I have, all of them would look better with odd page recto as default. They have a cover page, which would be on the right side (or centered, or left) but definitely alone on the first 2-up view. But yeah as you said, likely a lot of documents still require a setting anyway. However I would be curious to know if it’s really the majority of documents which do not assume a cover page? |
With EPUB, it doesn't really have anything to do with cover pages. You're supposed to specify the The problem only arises when the EPUB fails to include this info. According to the spec, if you don't specify, it basically means that the spread placement is unimportant:
I could be missing something, but it doesn't seem to say anything about the default placement of the first page. It only says,
But we should just do whatever other reading systems are doing. I might be missing something, but from testing with the file from koreader/koreader#6215, which doesn't seem to have any A counter example is "The Real Mother Goose" from https://bbebooksthailand.com/samples.html. This books doesn't use the standard EPUB properties. Instead it relies on the proprietary It must be emphasized, though, that the above doesn't necessarily apply to KF8 (AZW3) files. Currently it will read the RESC record, which might contain the correct But from Amazon's guidelines, if you don't specify Anyway, the only way to be sure would be to prepare a bunch of test cases and open them with Apple Books, Thorium Reader, Kindle Previewer, etc. |
Hi again @johnfactotum, I checked a bit more regarding this. :) To be clear, my background is design and UX, so I’m looking at this very much from the user perspective and what would be expected, less from what can technically be defined in the formats. The metadata of the specific epub I tested has these properties, but no
This is what happens with other apps with this specific ebook:
Also UX-wise it makes sense to show the first page alone, and just assuming it is a title page:
@johnfactotum I wouldn’t interpret it exactly like that, as it says:
So rather it sounds like "it doesn’t matter whether you show a single page or both at the same time". But it doesn’t really clarify showing pages two-up with odd page verso? |
Apple has a its own option called
The fix is unreleased, but one can test it at https://johnfactotum.github.io/foliate-js/reader.html. |
@johnfactotum yeah, I saw your edit before my comment and did test with the online version – but at least with the epub I tested with, it’s showing the title page verso, unlike Apple Books or Thorium when viewing the same epub. |
Hmmm. Yes, you're right. If you don't specify any However now we have the opposite problem. Namely, why does the file from koreader/koreader#6215 render correctly in Thorium? So after some testing, I think the problem is that, for some godforsaken reason, apparently you're supposed to ignore
I suppose this is the reason why KindeUnpack will almost always insert an extra cover page? That was something that always puzzled me... And it's still a mystery to me, how one is supposed to determine when to insert that cover page. Additionally, looking at /~https://github.com/kobolabs/epub-spec, it seems that for the Kobo iOS app at least, it's in fact impossible to set the first page to the left.
Apparently Thorium also has that kind of automatic "first page centered" rendering. But not always. Only in some cases, and I'm at a loss as to how it's doing that. But this is less important, I guess, as it does not affect the contents of the book. TL;DR: For EPUB, it needs to make first page recto by default, and ignore For Kindle, the same applies. On top of that, one needs to investigate when to insert extra cover page. |
This matches the behavior of other reading systems. See johnfactotum/foliate#1318 (comment)
@johnfactotum awesome, tested in the online version and it works great now! Let me know when the flatpak is updated, I can test that too. |
I don't mind mostly double pages appearing if Epubs don't have those properties to enforce pagination always, but I feel there should be an offset value to offset the first page;
most of the time, it's this issue of unmatched pages getting into double page-view instead of displaying with the next one. An offset setting would help a lot.
I may be confused with another software, but I used to use this long ago.
related #1147
The text was updated successfully, but these errors were encountered: