Bug 465681

Summary: RTL annotations text appears reversed with characters separated
Product: [Applications] okular Reporter: medin <med.medin.2014>
Component: generalAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: AnasSdiq, eido.askayo, kde, sh.yaron
Priority: NOR Keywords: rtl
Version First Reported In: 22.12.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: RTL annotations text appears reversed with characters separated

Description medin 2023-02-13 19:16:58 UTC
Created attachment 156203 [details]
RTL annotations text appears reversed with characters separated

Typing annotation in Arabic shows the order of characters reversed and separated. See attached image.
Comment 1 Anas Mohammad Siddiq 2024-12-18 14:38:17 UTC
1y later, nothing changed
Comment 2 Sune Vuorela 2024-12-18 16:02:50 UTC
(In reply to Anas Mohammad Siddiq from comment #1)
> 1y later, nothing changed

https://invent.kde.org/graphics/okular/-/merge_requests/595 might be relevant, but needs someone with RTL involvement
Comment 3 Anas Mohammad Siddiq 2024-12-30 09:21:25 UTC
(In reply to Sune Vuorela from comment #2)
> (In reply to Anas Mohammad Siddiq from comment #1)
> > 1y later, nothing changed
> 
> https://invent.kde.org/graphics/okular/-/merge_requests/595 might be
> relevant, but needs someone with RTL involvement

the pr was 2 years ago
do they need developers or something?
Comment 4 Yaron Shahrabani 2024-12-30 13:24:37 UTC
There's a lot of conversation going on in the MR, I can help you compile it yourself and test it if you wish.
Comment 5 Sune Vuorela 2025-01-02 11:39:46 UTC
(In reply to Anas Mohammad Siddiq from comment #3)
> (In reply to Sune Vuorela from comment #2)
> > (In reply to Anas Mohammad Siddiq from comment #1)
> > > 1y later, nothing changed
> > 
> > https://invent.kde.org/graphics/okular/-/merge_requests/595 might be
> > relevant, but needs someone with RTL involvement
> 
> the pr was 2 years ago
> do they need developers or something?

We always needs developers. There was found flaws in the MR, some needed changes in rest of Okular to properly fix. That has happened, now we need the MR adapted. And please don't hold you breath for me doing it.
Comment 6 Eido A. 2025-06-14 16:49:16 UTC
Confirming this issue persists on modern systems.

The scope is wider than just annotations and critically breaks interactive PDF form filling. This appears to be the correct master bug to track this, as it has the MR linked.

I found several duplicates pointing to the same core RTL rendering problem, some going back over a decade:

*   #469359 (Arabic text)
*   #454552 (Typewriter tool)
*   #184399 (Copy/paste)
*   #156380 (Text selection)

As a fellow dev, happy to help test any patches or provide more specific diagnostics.

**Repro Environment:**
- Okular: 25.04.1
- OS: Ubuntu 24.04.2 LTS / GNOME 46.0
Comment 7 Anas Mohammad Siddiq 2025-06-14 17:55:34 UTC
(In reply to Eido A. from comment #6)
> Confirming this issue persists on modern systems.
> 
> The scope is wider than just annotations and critically breaks interactive
> PDF form filling. This appears to be the correct master bug to track this,
> as it has the MR linked.
> 
> I found several duplicates pointing to the same core RTL rendering problem,
> some going back over a decade:
> 
> *   #469359 (Arabic text)
> *   #454552 (Typewriter tool)
> *   #184399 (Copy/paste)
> *   #156380 (Text selection)
> 
> As a fellow dev, happy to help test any patches or provide more specific
> diagnostics.
> 
> **Repro Environment:**
> - Okular: 25.04.1
> - OS: Ubuntu 24.04.2 LTS / GNOME 46.0

so in other words, a rewrite is needed, right?
Comment 8 Eido A. 2025-06-14 18:40:11 UTC
(In reply to Anas Mohammad Siddiq from comment #7)
> (In reply to Eido A. from comment #6)
> > Confirming this issue persists on modern systems.
> > 
> > The scope is wider than just annotations and critically breaks interactive
> > PDF form filling. This appears to be the correct master bug to track this,
> > as it has the MR linked.
> > 
> > I found several duplicates pointing to the same core RTL rendering problem,
> > some going back over a decade:
> > 
> > *   #469359 (Arabic text)
> > *   #454552 (Typewriter tool)
> > *   #184399 (Copy/paste)
> > *   #156380 (Text selection)
> > 
> > As a fellow dev, happy to help test any patches or provide more specific
> > diagnostics.
> > 
> > **Repro Environment:**
> > - Okular: 25.04.1
> > - OS: Ubuntu 24.04.2 LTS / GNOME 46.0
> 
> so in other words, a rewrite is needed, right?

Thanks for the quick reply.
Yes, that's exactly my conclusion too.

A rewrite seems to be the only path forward given the stalled MR.

Here's hoping a developer can pick this up soon.
Comment 9 Anas Mohammad Siddiq 2025-06-14 18:49:03 UTC
I hope so, but it's highly unlikely since it's a rewrite of the program

Sent from Proton Mail Android


-------- Original Message --------
On 14‏/6‏/2025 9:40 م, Eido A. <bugzilla_noreply@kde.org> wrote:

>  https://bugs.kde.org/show_bug.cgi?id=465681
>  
>  --- Comment #8 from Eido A. <eido.askayo@gmail.com> ---
>  (In reply to Anas Mohammad Siddiq from comment #7)
>  > (In reply to Eido A. from comment #6)
>  > > Confirming this issue persists on modern systems.
>  > >
>  > > The scope is wider than just annotations and critically breaks interactive
>  > > PDF form filling. This appears to be the correct master bug to track this,
>  > > as it has the MR linked.
>  > >
>  > > I found several duplicates pointing to the same core RTL rendering problem,
>  > > some going back over a decade:
>  > >
>  > > *   #469359 (Arabic text)
>  > > *   #454552 (Typewriter tool)
>  > > *   #184399 (Copy/paste)
>  > > *   #156380 (Text selection)
>  > >
>  > > As a fellow dev, happy to help test any patches or provide more specific
>  > > diagnostics.
>  > >
>  > > **Repro Environment:**
>  > > - Okular: 25.04.1
>  > > - OS: Ubuntu 24.04.2 LTS / GNOME 46.0
>  >
>  > so in other words, a rewrite is needed, right?
>  
>  Thanks for the quick reply.
>  Yes, that's exactly my conclusion too.
>  
>  A rewrite seems to be the only path forward given the stalled MR.
>  
>  Here's hoping a developer can pick this up soon.
>  
>  --
>  You are receiving this mail because:
>  You are on the CC list for the bug.