messy search for RTL languages

Bug #2009217 reported by farhad
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qpdfview
New
Undecided
Unassigned

Bug Description

Hi
I have a PDF which is written in Persian (Which is a RTL language)
When I search a word, the line which contains the searched word is not shown correctly in the Box. I attached a screenshot

Revision history for this message
farhad (farhadmax69) wrote :
Revision history for this message
Adam Reichold (adamreichold) wrote :

Hello Farhad,

Thank you for taking the time to report this! Just to make sure I understand this because I can't read Persian: The bug is that the surrounding is incorrect, i.e. does not contain the search term?

It looks like it is the same line but rendered LTR instead of RTL, is that correct?

Could you attach a suitable document which can be used to test this? Thanks!

Regards,
Adam

Revision history for this message
farhad (farhadmax69) wrote :

I explained the problem in a video. (I added a zip file containing the video and a pdf file. I couldn't attach it here so i uploaded to my google drive)

you can search for this Persian word to reproduce the bug : معنا

(just copy and paste into the search box in qpdfview)

https://drive.google.com/file/d/1IOqGmYYun7_SvzKGcoW78Oli-fOUAy3p/view?usp=share_link

Revision history for this message
Adam Reichold (adamreichold) wrote :
Revision history for this message
Adam Reichold (adamreichold) wrote :

Ok, I think I better understand the issue now. The extracted text is not display in the correct RTL fashion, but rather LTR. A solution might a bit of time and effort though as we had to manually implement the text rendering for that UI element and hence we probably need to manually add RTL support there as well.

Revision history for this message
farhad (farhadmax69) wrote :

ok, thanks for your support🙏

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.