Bug 456414

Summary: inline notes does not support RTL (bidirectional text support and shaping)
Product: [Applications] okular Reporter: Zayed Al-Saidi <zayed.alsaidi>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: aacid
Priority: NOR    
Version First Reported In: 22.04.2   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: test document

Description Zayed Al-Saidi 2022-07-06 19:03:16 UTC
Created attachment 150450 [details]
test document

The Arabic inline notes are not rendered correctly. It lacks the bidirectional text support as well as the proper shaping (i.e. the letters are disconnected.)

In the attached test document, the same text which are in original PDF is put as inline note. 
The text is: بسم الله الرحمن الرحيم


for reference: https://github.com/HOST-Oman/libraqm
Comment 1 Albert Astals Cid 2022-07-06 21:47:44 UTC
Do I understand that you're saying that both lines of text should be rendered the same?

Not even Adobe Reader is doing that https://i.imgur.com/59UpQfa.png  

Which if I'm not making a mistake is exactly the same that Okular renders, no?
Comment 2 Zayed Al-Saidi 2022-07-07 10:53:59 UTC
(In reply to Albert Astals Cid from comment #1)
> Do I understand that you're saying that both lines of text should be
> rendered the same?
Yes. They should be rendered the same.

> Not even Adobe Reader is doing that https://i.imgur.com/59UpQfa.png  
It is a bug in Adobe Reader :) and I can't report it because it is a closed software. 

> Which if I'm not making a mistake is exactly the same that Okular renders,
> no?
Unfortunately, you are correct.