foobnix / LibreraReader

Book Reader for Android
http://librera.mobi
Other
2.92k stars 309 forks source link

Feature Request: Goes to logical page when entering page number #1213

Closed gannaiju closed 9 months ago

gannaiju commented 9 months ago

If there're foreword, preface before main text, we can re-paginate page according to the official website help page (https://librera.mobi/faq/relative-page-numbers/).

The problem is, we still cannot go to the logical page when we enter a page number, instead librera will lead you to the physical page before re-paginating. Is it possible to go to the logical page when entering a page number?

TheHardew commented 9 months ago

Have you seen #1197?

gannaiju commented 9 months ago

Have you seen #1197?

I use Librera only to read PDF files, not EPUB or other file formats. I test several PDF files, all failed, but goes to the first page instead. (Android version 8.9.115, installed from F-Droid.)

foobnix commented 9 months ago

Sorry, I can't clearly understand the problem you have described

TheHardew commented 9 months ago

I believe they want the feature that's implemented for epub 3 to also be ported to pdf

https://answers.acrobatusers.com/why-sets-page-numbers-q42394.aspx

foobnix commented 9 months ago

In PDF is always correct page numbers, PDF is not resized.... Do you mean if you make PDF reflow to add epub3 original page numbers also?

TheHardew commented 9 months ago

PDF can include a second set of page numbers. I guess it's for cases like books, where the first physical page starts with the introduction or dedications and the first logical page would be the content?

gannaiju commented 9 months ago

Sorry, I can't clearly understand the problem you have described

Sorry, I can't clearly understand the problem you have described

Sorry for my ambiguous description. But just as @TheHardew said: Physical page number starts with foreword, preface etc, Logical page number starts with real contents. In Librera, enter a page number doesn't go to the correct logical page though the PDF files are re-paginated.

gannaiju commented 9 months ago

PDF can include a second set of page numbers. I guess it's for cases like books, where the first physical page starts with the introduction or dedications and the first logical page would be the content?

Yes.

foobnix commented 9 months ago

Now I understand Just long click on page number then set number like on the page Screenshot_20231222_073958

foobnix commented 9 months ago

https://librera.mobi/faq/relative-page-numbers/

gannaiju commented 9 months ago

Now I understand Just long click on page number then set number like on the page Screenshot_20231222_073958

As the image you show, when you want to switch to Page 55, you must enter 75 because there're some pages before main texts (Because there're preface, foreword, table of contents, or other chapters or sections exist.) Can I go to Page 55 when just type 55?

foobnix commented 9 months ago

@gannaiju Thanks, fixed in new beta.librera.mobi