Bug 326479 - smart facing mode
Summary: smart facing mode
Status: RESOLVED INTENTIONAL
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 04:17 UTC by Matthieu Lagouge
Modified: 2013-10-26 10:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Lagouge 2013-10-23 04:17:07 UTC
It would be nice if okular could provide a "smart" face view:
one page is the current page being read,
the facing "frame" shows all the last references figures and / or preview of hyperlinks, etc.
This is a more generalized version of what was proposed in https://bugs.kde.org/show_bug.cgi?id=196616
I currently work around this by opening twice the same document in 2 instances.

Reproducible: Always
Comment 1 Albert Astals Cid 2013-10-23 17:04:50 UTC
And how are we suppoed to code that smartness?
Comment 2 Matthieu Lagouge 2013-10-23 18:04:23 UTC
Thanks for your reply!

The truth is if I really had the answer, I would probably try to do at least a crappy demo. But I'm a humble user, so I can only propose features that I believe others could enjoy as much as me and I'm not really capable of producing any decent code.

So I can only speculate on a feasable method:
Parse the current and previous page(s) text to find the links, build the "smart" frame content by copy-pasting the referenced content in a new page (would be a first step for the figures).

I'm not naive enough to believe okular will guess the meaning of a text, so I assume the existence of internal links in the document poiting to the material of interest.

As the "main" page is scrolled, the "smart" frame will remove older figures to replace them with the new ones, transition being triggered by new internal links appearing on the page.

Content other than figures could be managed in further evolution of the feature: bibliography references, maybe small preview of external webpages?

Bottom line is I'm no developer and I'm not an expert in okular's code, so I don't know if this is doable or not, and if yes, how much work it would require.

Please take it as what it is: a wishlist item
Comment 3 Albert Astals Cid 2013-10-23 18:32:21 UTC
So you basically want a frame that shows previews of where links end?
Comment 4 Albert Astals Cid 2013-10-23 18:32:53 UTC
somehow set it to invalid by mistake
Comment 5 Matthieu Lagouge 2013-10-24 06:15:48 UTC
A preview of the document to where the link end would be a start. That would actually automate what I usually do manually.

Further down the road, I was thinking about something more complicated, but that could be difficult if not impossible (?) to implement:

-Suppose the page you're reading has one link, and the previous page had another link. You may assume the text in the page is associated with these links (figure description, etc.).
-Suppose also that the 2 links related content are not on the same page either.
-Then the "smart" frame would display the 2 linked figures, and only the 2 linked figures.

One could imagine a first program that goes through the whole document and keeps only figures, tables, and "target" location for link (I don't know how this works exactly). That's used to build the "smart" content document.
Then based on the latest links that have appeared in the original document being read, the smart frame display the "right" portion of the generated document.

Later evolution of the feature would be to handle more and more linked content in the generated document.

Is that realistic?
Comment 6 Albert Astals Cid 2013-10-25 19:06:06 UTC
Actually no, what you're asking is pretty much impossible to do. I can leave this open if you want us to ask for the feature of implement of following links or if you don't find valuable we should close the wish item.
Comment 7 Matthieu Lagouge 2013-10-26 10:02:55 UTC
In that case, I think we should better close it. I'm thinking that "following link" may impede reading if let's say you have several links close to each other.

Anyway, thanks for having taken the time to answer me and thanks for okular.
I'll still be a happy user!
Comment 8 Albert Astals Cid 2013-10-26 10:46:12 UTC
Input always appreciated, keep it coming :-)