![]() Registered Member ![]()
|
Hello,
I have been working on a new zoom setting for Okular: "fit best" zoom. This zoom level complements the existing "fit width" and "fit page". The patch that demonstrates my zoom setting is document in the Git Review Board issue 110003. The idea of "fit best" is to transparently switch between "fit width", "fit page", and a hypothetical "fit height", based on the size relation between the shown page and Okular's window size. The three images below show each of the three cases:
Notice, that in all cases the chosen zoom level is "Fit Best", i.e. when the screenshots were made, only Okular's window size was changed to trigger the changes. The hard-coded threshold for the changes are if the ratio between the document area's aspect ratio and the page's aspect ratio passes 1.25 and 1/1.25, respectively (see the patch for details). Now, Albert Astals Cid, maintainer of Okular, asked me to put this feature to discussion in the forum before it may be included in Okular. His concerns are (1) whether such a zoom level is useful or necessary, (2) the name "fit best" describes it correctly or if another name should be chosen, and (3) how it compares to Evince's "best fit" zoom. The third concern is easily answered: Evince's "best fit" zoom is essentially the same as Okular's "fit page". The first two concerns I would like to open for discussion here, to ease aacid's mind and to allow a git commit. ![]() |
![]() Administrator ![]()
|
From what I can see here, this looks like quite useful behaviour - I have had to change the zoom level manually from time to time when viewing documents in the past for various reasons, and they would probably show up properly more often with this behaviour.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() KDE Developer ![]()
|
|
![]() Registered Member ![]()
|
I agree with Gallaecio. " Auto Fit" might be a better choice to avoid potential user confusion with those who are used to evince (even though your usage makes more sense). All in all, I think it is wonderful.
|
![]() Registered Member ![]()
|
I don't see "auto" conveying any more information than "best". If space weren't an issue, "fit to largest dimension" would be a good choice. Perhaps some icons could be used to express this better in a pull-down menu...
karthikp, proud to be a member of KDE forums since 2008.
|
![]() Registered Member ![]()
|
I'd consider "Auto fit" a better choice, too. In my eyes it conveys more clearly that there is a heuristic at work instead of something that somehow objectively is "the best" regardless of the user's specific intent. Just fits the feature better and thus causes less confusion, I think.
|
![]() Registered Member ![]()
|
From your description, it seems like a very useful feature. I'd definitely like to see it in okular.
I second the "auto fit" suggestion. If it was that clear what's "best", evince would probably do it the same way. "Automatic" is neutral and fits the description. In the reviewboard you mentioned some edge-cases. Could you illustrate the worst-case behaviour of your algorithm? |
![]() Registered Member ![]()
|
It sure is a nice idea which some people will love I guess. But I don't like automatic view adjustments. I don't care about them as long as the whole thing is optional and I can turn it off. The view modes Okular has are fine for me, I seldom use fit to whatsoever with PDFs, I use a certain zoom level so I can read the text without my nose nearly touching the display.
|
![]() Registered Member ![]()
|
Can you detect coumns within a document and accont for this in best fit? I'm not sure when or how, but when PDFs are layed out in columns there are probably cases where you can fit more of the column on the page with a different zoom.
|
![]() Registered Member ![]()
|
I like "Fit Best", but another suggestion would be (for English) "Fit Nearest" or "Fit Closest"; just because it's consistent with current "Fit Page" and "Fit Width"
The menu icon should be a 16:9 'screen' rectangle over a page that's slightly bigger... Perhaps the "Fit Page" and "Fit Width" icon could be revisited to show the 'screen' rectangle; yeah I know the little boxes in the current icons are supposed to suggest that. I'm all for "Fit Height" to round it off ![]() It would be interesting know how complicated a hypothetical "Fit Content" would be. (Perhaps Henry is thinking along the same lines) Perhaps a brute force method would be to render the page to a small pixmap (or blur), threshold and try and discover the background colour and the edge of the content - something like that could work for a book with page numbers way outside of the content and big page borders... ignore outlier page number and crop the borders... Yeah, I know, won't work for everything and I can see holes in it already (like equal size but oppositely oriented page gutters would mean wrong rectangle for every other page) |
![]() Registered Member ![]()
|
I like this, but I would also like the "fit height" option to have it all together. There have been many instances where the latter would have been of great use and I am not sure whether the former would have been appropriate in each and every case.
|
![]() Manager ![]()
|
It looks as though the sidepanel has a scrollable view, in which case I think this would be quite useful to many people. However I too would like the option to turn it off, or, even better, to turn it off for the current viewing. I would also welcome any discussion about how best to handle columnar text. I find reading such report very annoying. I can't imagine, though, how this can be improved unless it's possible to identify white space and scroll down only the section to the left (useless for LtoR languages, even if it worked). Someone must have a better solution.
annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org |
![]() Registered Member ![]()
|
I like the idea and agree to its inclusion.
Regarding the name, I also prefer "auto fit". "best" is subjective and does not really make clear what it does. I suggest a pool for the name. |
![]() Registered Member ![]()
|
I think the ideal solution is to make this the default as said above, but...
It would be nice if it were a button similar to the one on the shutdown/restart/hibernate/etc window, where the most important one (in this case, fit best) is obviously there very clearly and the dropdown arrow on it is more implicit. Basically, 99% of users will go for this option so you might as well make it the 'default' so to speak, and leave the others just beneath it but not as the preferred option. I wish I could make a mockup, but unfortunately I'm a terrible artist. ![]() |
![]() KDE Developer ![]()
|
Resounding "Yes!" from my side - this is my favorite zoom mode in image viewers, and implementing it in Gwenview has been on my todo list for a long time. My plan was to call it "Fill Viewport" there, but I'm also OK with "Fit Best" since it avoids the techy jargon.
Edit: Here's the Gwenview ticket: https://bugs.kde.org/show_bug.cgi?id=195579
Plasma, apps hacker. KDE e.V. vice president.
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]