Bug 423841 - Page number widget is clickable only on the total page number, not on the current page number, if pages have names different to their usual number
Summary: Page number widget is clickable only on the total page number, not on the cur...
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.10.1
Platform: unspecified Unspecified
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-03 14:21 UTC by Laura David Hurka
Modified: 2020-07-07 20:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Page number widget with a text box for the page name, but not for the page number (11.19 KB, image/png)
2020-07-03 14:21 UTC, Laura David Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laura David Hurka 2020-07-03 14:21:51 UTC
Created attachment 129879 [details]
Page number widget with a text box for the page name, but not for the page number

SUMMARY
This is a bit inconvenient. When you view a LaTeX presentation which holds multiple versions of the same slide, many slides have the same number, and you can’t type an exact page number into the page number widget.

The page number widget is like this:
< [ page ] of pages >
When pages have names other than just numbers it is like this:
< [ name ] number of pages >
So you can only enter a name, like 16, but not a number like 144, 148, 150, ...
Entering 16 is not sufficient, because many pages have this name.

Would it make sense to additionally allow entering a number, like by clicking on the number (i. e. on the 150 in the screenshot)?

ADDITIONAL INFORMATION
– Equivalent for the page bar, which isn’t the default anymore.
– I call it page name here, because I don’t remember the precise name for this.
Comment 1 Albert Astals Cid 2020-07-03 20:53:43 UTC
Attach such a file
Comment 2 Laura David Hurka 2020-07-04 13:06:45 UTC
https://www.uncg.edu/cmp/reu/presentations/Charles%20Batts%20-%20Beamer%20Tutorial.pdf

Example use case: Go to page 2
1. Enter “2”

Observed result:
Goes to page 15
Comment 3 Albert Astals Cid 2020-07-04 16:26:56 UTC
Honestly i don't see this being a bug in okular, that pdf is broken having multiple pages with the same page name. We have to choose one of them, i guess we're choosing the last one.

If you want to really really really go to page *number* 2 use Ctrl+G (you can access the same dialog by pressing on the page number total (i.e. the 110))
Comment 4 Laura David Hurka 2020-07-04 20:51:59 UTC
(In reply to Albert Astals Cid from comment #3)
> If you want to really really really go to page *number* 2 use Ctrl+G (you
> can access the same dialog by pressing on the page number total (i.e. the
> 110))

Aaah, that is what I was looking for. I only tried to click the current page number, not the total page number.

Making the current page number clickable too is probably not worth the coding, but would make it a bit more idiot proof. :/
Comment 5 Nate Graham 2020-07-07 19:35:05 UTC
I agree with Albert that this is mostly the PDF's fault for being broken.

But I suppose if we want to be really nice to the user, we could have Okular display a dialog asking you which page you want to switch to when you ask to switch to a page whose number is shared among multiple pages in the document.
Comment 6 Laura David Hurka 2020-07-07 20:54:41 UTC
Make the page name line edit an editable combo box, so it suggests completions?

Enter “2”, it suggests:
2 (Page 15) [Default choice]
2 (Page 2)
2 (Page 3)
2 (Page 4)
...

Pretty useless in this case, but maybe helpful for other documents with sophisticated page names. (Never seen such a document.)

I think it should suggest TOC entries instead.

> That pdf is broken having multiple pages with the same page name. [...]
> I guess we're choosing the last one.
Choosing the last page is probably the best choice, it displays the slide without parts covered by overlays. Considering that, I don’t think the PDF is broken, it just uses the slide number as page name.