Skip to content

Book info: more informative Pages infomessage#14493

Merged
hius07 merged 4 commits into
koreader:masterfrom
hius07:bookinfo-pages-info
Oct 31, 2025
Merged

Book info: more informative Pages infomessage#14493
hius07 merged 4 commits into
koreader:masterfrom
hius07:bookinfo-pages-info

Conversation

@hius07

@hius07 hius07 commented Oct 22, 2025

Copy link
Copy Markdown
Member

Addresses #14473 (comment).

1 2 3

This change is Reviewable

@jonnyl2

jonnyl2 commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

To fully explain Publisher and Screen pages (as requested by @poire-z), I'd suggest adding these two extra lines:

Publisher pages:
Total page count (last page number)

Screen pages:
(including hidden flows)
__

Is the previous information with publisher page source info and first and last page labels still accessible? I'm only getting the above now on short tap, and long-press has no effect.

@hius07

hius07 commented Oct 22, 2025

Copy link
Copy Markdown
Member Author

publisher page source info

It's in the menu Stable page numbers - Publisher page numbers source info.

@jonnyl2

jonnyl2 commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

I think it could be added at the bottom of this help screen as well? It should all fit on one 6" screen.

@poire-z

poire-z commented Oct 27, 2025

Copy link
Copy Markdown
Contributor

I agree with the above suggestions, the more info the better, this InfoMessage has room and is called on purpose to get that more info.
Also, for publisher pages (we could also show the (p) symbol), you could show the first page label too (it may not always be 1, it could be ii), ie. 544 (ii - 530)

@hius07

hius07 commented Oct 28, 2025

Copy link
Copy Markdown
Member Author
1 2

@poire-z

poire-z commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

"total" feels a a bit odd in "Screen pages total:", no?

@hius07

hius07 commented Oct 28, 2025

Copy link
Copy Markdown
Member Author

It's instead of "including hidden flows".

@Frenzie

Frenzie commented Oct 28, 2025

Copy link
Copy Markdown
Member

"Total screen pages" should sound more natural. Was there an objection to "including hidden flows"?

@hius07

hius07 commented Oct 28, 2025

Copy link
Copy Markdown
Member Author

Was there an objection to "including hidden flows"?

This wording makes sense only when there are hidden flows and there is a discrepancy between the status bar and the book info window.
So one more check must be done in bookinfo. And there are 3 "Screen pages" cases there.

"Total screen pages" is neutral and can be used in any case.

@Frenzie

Frenzie commented Oct 28, 2025

Copy link
Copy Markdown
Member

Alright.

@hius07

hius07 commented Oct 29, 2025

Copy link
Copy Markdown
Member Author

Optimized 'Screen pages' info, can mention hidden flows when available.

1 2

Comment on lines +171 to +174
if self.is_current_doc and self.ui.pagemap and self.ui.pagemap.has_pagemap then
local t = {}
local screen_pages = _("Screen pages") .. ":\n" .. pages
if self.document:hasHiddenFlows() then
screen_pages = screen_pages .. " " .. _("(including hidden flows)")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we could have "(including hidden flows)" even when no has_pagemap ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not show this infomessage on tap when there is no pagemap.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But yes, I see, we can show it just in the bookinfo table.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately no, the line in the bookinfo table is short, there is no room for "(including hidden flows)" when has_pagemap.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say: keep it short in Bookinfo in all cases. And show the popup with words in all cases (even if it doesn't say much more). For consistency.

@hius07 hius07 merged commit 340732f into koreader:master Oct 31, 2025
4 checks passed
@hius07 hius07 deleted the bookinfo-pages-info branch October 31, 2025 16:14
@hius07 hius07 added this to the 2025.10 milestone Oct 31, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants