Bug 147345 - Feature Request: Ability to navigate using document page number if page 1 starts later in document
Summary: Feature Request: Ability to navigate using document page number if page 1 sta...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Navigator Scrolling-PageUpDown
  Show dependency treegraph
 
Reported: 2022-02-10 13:28 UTC by rferraro
Modified: 2024-08-29 07:29 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
test document (10.55 KB, application/vnd.oasis.opendocument.text)
2024-08-17 16:11 UTC, Dieter
Details
Go to virtual page demo (937.98 KB, video/x-matroska)
2024-08-19 03:22 UTC, Jim Raykowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rferraro 2022-02-10 13:28:21 UTC
Description:
I have an 800 page document. My page 1 starts about 22 pages in after table of contents etc.

It is difficult and cumbersome to navigate around the document e.g. go to page number and printing a few pages is also cumbersome as you have to use the absolute page numbers.

Please include an option to navigate using page number in document.

e.g. at the bottom left of the screen where it shows page x of x (page y), it would be nice to differentially be able to click on the section in parenthesis and go to that page in the document or click on the non-parenthesis section and it would go to that absolute page.

When a person is editing and improving they will edit by selecting pages that would be in the printed version and need an easier way to navigate those pages.

Actual Results:
Feature request

Expected Results:
Feature request


Reproducible: Always


User Profile Reset: No



Additional Info:
I have an 800 page document. My page 1 starts about 22 pages in after table of contents etc.

It is difficult and cumbersome to navigate around the document e.g. go to page number and printing a few pages is also cumbersome as you have to use the absolute page numbers.

Please include an option to navigate using page number in document.

e.g. at the bottom left of the screen where it shows page x of x (page y), it would be nice to differentially be able to click on the section in parenthesis and go to that page in the document or click on the non-parenthesis section and it would go to that absolute page.

When a person is editing and improving they will edit by selecting pages that would be in the printed version and need an easier way to navigate those pages.
Comment 1 BogdanB 2023-08-04 04:47:37 UTC
A new report stays in an Unconfirmed state, until someone else confirm it.
Please keep the status of this report as Unconfirmed.
Thanks.
Comment 2 Dieter 2024-08-17 16:11:37 UTC
For me this is a valid request. But let's ask design-team and also Jim Raykowski, because erhaps it is possible to add a "page number" option into "Go-To"-Dialog or into "Navigate By" list within the navigator.

I'll also add a test document. I couldn't find a method to navigate to a certain page number.
Comment 3 Dieter 2024-08-17 16:11:57 UTC
Created attachment 195877 [details]
test document
Comment 4 Regina Henschel 2024-08-17 18:27:38 UTC
(In reply to Dieter from comment #2)
> I couldn't find a method to navigate to a
> certain page number.

To go to a certain physical page number: Single-Click on page number field in status bar or short cut Ctrl+G opens the "Go to page" dialog. Or use "Navigate by" with value "Page" in the Navigator.

We could add a special character before the number, with the meaning that an entered number is a "logical" number. But I see the problem, that a document can have several parts that have a logical page number 1, for example. Which part is then chosen?
Comment 5 Jim Raykowski 2024-08-18 04:29:21 UTC
Would Menu > Format > Title Page... possibly be of help here?
Comment 6 Dieter 2024-08-18 12:16:31 UTC
(In reply to Regina Henschel from comment #4)
> To go to a certain physical page number: Single-Click on page number field
> in status bar or short cut Ctrl+G opens the "Go to page" dialog. Or use
> "Navigate by" with value "Page" in the Navigator.

Yes, I know this, but if you have a look at the sample document page with page number field "3" is physical page 9. So I see a difference between document page and page number
 
> We could add a special character before the number, with the meaning that an
> entered number is a "logical" number.
I agree

> But I see the problem, that a document
> can have several parts that have a logical page number 1, for example. Which
> part is then chosen?
Good point. I don't have an idea to solve this problem.
Comment 7 Jim Raykowski 2024-08-19 03:22:57 UTC
Created attachment 195894 [details]
Go to virtual page demo

In the code there is the terms physical page and virtual page. This is why the description for the check box as shown in the demo is "Virtual page". This physical virtual page approach does not work with the sample document that Dieter has attached. For that document the virtual and physical pages are the same. More thought on how to go to a page by comparing the value of the page number field in the page header is needed.
Comment 8 Heiko Tietze 2024-08-19 05:20:01 UTC
This solution [1] might be possible but the approach has limits when it comes to restarted page numbers (bug 153259, bug 71583, bug 115288) and either is not available at the sidebar or clutters the UI heavily. 

How about an option on the F&R dialog? So not go_to but search_for a certain page number.

[1] "virtual" is not clear, could be "[ ] Include title pages"
Comment 9 Eyal Rozenberg 2024-08-20 19:04:42 UTC
I've never personally used the "Title Pages" mechanism, so I can't really say something meaningful about those

... except that they are not in very wide use, and at any rate - a lot of the use-cases for this request regard documents which don't have such title pages.


Another point I'll make is to ask whether Writer even "knows" what the user considers to be the page number. After all, one can insert multiple "page number" fields in different places on the page.

But even supposing there is some clear notion of what the page number is, we need to think about a more complex and general case than just delayed numbering:

* The document may have several sequences of numbered pages.
* The document may have multiple un-numbered pages, some non-contiguous.
* The page numbers may start at different values - possibly zero or negative values.
* The page numbers may be non-digits, but other strings.

In fact, one might even go as far as supporting another complication:

* Some sets of disjoint pages may share the same page number.


My intuition says that if one can know at all what "the page number" of a page is, then the navigation pane text box should show both the page number as it is styled and manipulated by the document, and the plain-vanilla page number counted from 1 and ignoring anything and everything. Either we see them size by side, or with the ability to toggle between them. And it should be possible to enter a "fancy" page number and get to it.
Comment 10 Heiko Tietze 2024-08-29 07:29:39 UTC
We discussed the topic in the design meeting.

Since virtual or relative page numbers, meaning those that will be visible on the printout versus absolute or physical page numbers, are not necessarily unique any approach to toggle between the two will fail. So we propose to add the option 

(o) Absolute page number
( ) Relative page number

and show some next/prev interaction in the second case that allows to search through the document for the value (would be nice to find a term that easily distinguishes between the two "numbers"). The next/prev interaction could be icon-only buttons right-of or underneath the spin edit.

I suggest to keep the Navigator simple but if we want to add the same feature it might be a separate entry additional to page, eg. Page Number, and again next/prev buttons to show the functionality.