Bug 358061 - Improved/consistent mechanism to add/modify inline note
Summary: Improved/consistent mechanism to add/modify inline note
Status: REPORTED
Alias: None
Product: okular
Classification: Unclassified
Component: general (show other bugs)
Version: 0.24.0
Platform: Other Linux
: NOR wishlist with 10 votes (vote)
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2016-01-16 09:50 UTC by Simone Gaiarin
Modified: 2018-04-06 18:30 UTC (History)
3 users (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 Simone Gaiarin 2016-01-16 09:50:16 UTC
Currently the text of the inline note is not entered inline, but a qt message box to input the text appears. In this way we cannot have a live preview of how the note will look like.

Moreover when we edit the inline note and we double click onit, it's opened as a popup note for editing (but the first time we entered it we need to do it via a different popup dialog box). 

In my opinion the inline note should be both inserted and modified inline (if technically possible) or at least it should have a consistent way for inserting and modifying it in order to create less confusion to the user and have a better appearance.

Reproducible: Always
Comment 1 Simone Gaiarin 2017-05-03 07:09:05 UTC
Given that someone gave some love to the inline note I bump this bug which is related.
Comment 2 Tobias Deiminger 2018-01-22 20:58:58 UTC
+1 for inline editable (WYSIWYG) notes.

This would IMO require new API methods to render single annotations individually on poppler side.

Atm, poppler renders (slices of) pages. An inline editable note needed to trigger page rendering for each key stroke. This is a bit heavy considering processing time. Even if we only rendered the relevant page slice there'd still be overhead during rendering. Plus the corresponding Okular code would look ugly. There was a related bug for moving inline notes: https://bugs.kde.org/show_bug.cgi?id=333981. It's currently solved by only drawing an empty rectangle, which is obviously not an option during editing:) 

This is a matching wish on the poppler list: https://lists.freedesktop.org/archives/poppler/2017-April/012165.html. I guess it currently lacks interest and patches. Maybe we can bump and patch a bit?

As a bonus, https://bugs.kde.org/show_bug.cgi?id=325119 should get solved "for free".
Comment 3 Tobias Deiminger 2018-03-29 07:02:07 UTC
Just started a patch series on poppler that tries to provide a solution to the problem described in comment 2: https://bugs.freedesktop.org/show_bug.cgi?id=105796
Comment 4 Simone Gaiarin 2018-03-29 10:37:24 UTC
Cool. Thanks for the work!