-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Adds ReaderPageMap, to optionally show source pages numbers #6004
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hold_callback = function(touchmenu_instance) | ||
local use_page_labels = G_reader_settings:isTrue("pagemap_use_page_labels") | ||
UIManager:show(MultiConfirmBox:new{ | ||
text = use_page_labels and _("The default (★) for newly opened books that have a page map is to use these page labels instead of the renderer page numbers.\n\nWould you like to change it?") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not ecstatic about "renderer page numbers" but atm I can't think of a good alternative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this one was hard.
I wanted to have the buttons "Renderer pages" | "Source pages (★)" but these got truncated...
So, we could end up with a sentence and Disable | Enable.
ceb0ecf
to
08304e4
Compare
So, no particular thought against calling that/them "Source pages" ? |
Oh, I don't like that one bit. :-P What about something along the lines of basic page numbers and advanced page numbers? |
Reference page number? Or, let's finally call it what it actually is instead of a stupid skeuomorphism: screen number vs. page number? |
No, our page numbers are page numbers - renderer page numbers.
None of each is either basic or advanced. These "source page numbers", althought sometimes useful, are more bothering (jumps, gaps, multiples consecutive on the same screen page...)
That could work I guess. |
But isn't a renderer page number technically one screen's height? |
Yes, technically, in page mode, we show one page per screen :) (even more technically, and out of this context, pages can be smaller than a screen height, with page breaks between chapters - so, when switching to scroll mode, you can have 2 or 3 renderer pages in the screen view). Just insisting I'd like to keep these ones called simply "page numbers" :) |
Plural mark on the rightmost noun of a compound is correct ;). EDIT: Here, there's technically always one label per page, so we're concerned with labels, not pages. |
What about "Reference page list" vs "Reference pages list" ? |
It's a single list of reference page numbers? (I'd tend to prefer adding an explicit 'number' mentioned somewhere there, so |
The |
By basic I mean 1-99 without Latin, letters or whatever. As such we have some slight miscommunication here in that you can have "advanced" page numbers perfectly fine without jumps or gaps. Anyway, I said along the lines of for a reason. ^_^ I don't literally mean the word advanced. I mean the general concept or association of advanced, complete, proper, thorough, paper-like, etc.
In paged media the distinction isn't between screens and pages but in the fact that page 1 doesn't start till page 20, before that it's page i-ixx, a-p, or whatever. That's basically my angle here. Dumb/basic Arabic page numbers vs labeled page numbers. Ideally the phrasing is compatible with both labeled paper-like page numbers in EPUB and labeled DjVu/PDF page names/numbers. We can also do it (partially) without words, something like
|
But you can have source/reference page numbers that are also 1-99, starting at 1 without any roman numbers, contiguous, increasing with no gap. (You cross ref'ed the issues with PDF & DJVU page numbers - but I have no idea how/if the code I added could be of use with them - probably simpler as for them, there is a one-to-one mapping between renderer pages vs reference/source page numbers.) |
What are they called on Kindle or Kobo? |
In Kindle there are three types of positions.
|
PS In DjVu/PDF it's often as simple as the cover not being included in numbering. @mergen3107 |
No idea :) But in the various mobiread links given in #4521: I'm fine with "Reference", which is a little less absolute than "Absolute" :) |
I think "page labels" might be clearer than "reference page numbers," but maybe I'm just saying that because of PDF. |
08304e4
to
974a3f1
Compare
text = _("Reference pages"), | ||
sub_item_table ={ | ||
{ | ||
text = _("Reference source info"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we might want to throw in some @translators
notes. A reference source just sounds like a dictionary or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, added 2 - feels a bit excessive to add more... Hopefully, translators will meet all of them near each others and will know what it's about.
bump crengine: support for EPUB3 nav toc and page maps Includes: - Fix lvRect:isRectInside(rc) with 0-width or 0-height rect - TOC: parse EPUB3 nav toc, fallback to spine when no toc - Parse and cache various hardcopy page list maps - epub.css: hide EPUB3 <span epub:type="pagebreak"> content cre.cpp: add a few PageMap helper functions. Adds ReaderPageMap which will add a new menu (under TOC and Bookmarks) that will allow: - to list source page numbers (like a TOC) - to show visible page labels in the right margin - to use these source page numbers in the footer, the TOC, the GoTo and SkimTo widgets, and to use the source page number in the standard bookmark and highlight initial text.
974a3f1
to
b7c3051
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
bump crengine: support for EPUB3 nav toc and page maps
Includes koreader/crengine#336
cre.cpp: add a few PageMap helper functions.
Adds ReaderPageMap which will add a new menu (under TOC and Bookmarks) that will allow:
It will not be often used (less than 5% of my publishers' EPUB have a page map/list), and most people will probably disable it when it appears, as it's rarely useful. It's just nice to have (for when you see in a book "See note page 48" and that references the hardcopy book, with no internal link to that note in the EPUB).
So, we'll get this (only when there is a pagemap in the book):
An option to use the source/hardcopy page number in the footer, TOC, Bookmark names, Goto and SkimTo widgets:
and one to show the page labels in the margin:
Opinions and suggestions welcome on the wording in the screenshots above for this feature and these page maps/lists I used "Source pages" because I'm not sure it's always reference to hardcopy paper book pages, but I dunno...
(still need to include the bump for koreader/koreader-base#1070)
Also include:
BookInfo: add File date, handle zip sub-suffix (.fb2.zip)
, as mentionned in #5956 (comment)Also include koreader/koreader-base#1068: Update OpenSSL to 1.1.1e Update OpenSSH to 8.2p1
This change is