Bug 491876

Summary: Feature: Rectangle Tool: Add Option to XOR the Colour
Product: [Applications] okular Reporter: Leonard Mada <leo.mada>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: PDF document with example of Rectangle tool
Masked Heading marked with the Rectangle tool

Description Leonard Mada 2024-08-18 20:46:12 UTC
Created attachment 172735 [details]
PDF document with example of Rectangle tool

Rectangle Tool: Add Option to XOR the Colour

SUMMARY
It is sometimes useful to highlight an entire paragraph or segment of text. The rectangle tool offers a nicer geometry than the Highlighter tool. However, the color is simply added over, making it more difficult to read due to the poor contrast. Implementing a XOR-variant of the Rectangle tool (similar to the Highlighter tool) would improve the visibility of the text.

Note:
The attached pdf document has various Headings which are "embedded" in the main text (see on page 2 and following pages). This defies the purpose of the heading (but this is in the scope of the journal)! I used the Rectangle tool to mark these headings: the geometry is better than with the Highlighter tool.


STEPS TO REPRODUCE
1. Open attached pdf document
2. See examples on page 1: Highlighter vs Rectangle
3. See examples on page 2: Rectangle tool for hidden Headings

OBSERVED RESULT
The text is partly obscured with the Rectangle tool: very poor contrast.

EXPECTED RESULT
Implement option for Rectangle tool that behaves like the Text highlighter: the colour needs probably to be XOR'ed.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
Note:
The Rectangle tool may also have a nicer geometry with text with superscripts: e.g. the document contains a lot on expressions like "CD4+", "CD8+", where the "+" is superscript. Other documents may include references as superscript. Highlighting an entire paragraph using the Rectangle tool may look nicer in these instances.
Comment 1 Leonard Mada 2024-08-18 20:49:05 UTC
Created attachment 172736 [details]
Masked Heading marked with the Rectangle tool

The colour overlay masks the main text: adding the XOR-option would improve the visibility of the text.