Page 1 of 3

"Type Ahead Find" bug for RTL texts

Posted: 25 Dec 2021 15:42
by amirvf
Hi,

I have many file/folders which include names only in Persian Language which is in RTL format.
When I want to use "Type Ahead Find" in such file/folders, the written text which is shown in yellow background, is aligned to the left of the file/folder name, which is not compatible with the present file/folder name. In such scenarios, the written text should be shown in yellow background and aligned to the right side of the file/folder name, which is the beginning of the text in RTL languages.

I have shown the bug in the following snapshot.
RTL Bug.jpg
Regards,
Amir

Re: "Type Ahead Find" bug for RTL texts

Posted: 26 Dec 2021 07:47
by yusef88
admin wrote: ↑31 Jan 2018 11:29 Oh yes, confirmed. That's tough to fix. I will add the "Highlight matches" option.
viewtopic.php?p=155844#p155844

Re: "Type Ahead Find" bug for RTL texts

Posted: 27 Dec 2021 12:18
by admin
Can you give me some of those folder names and the typed letter as text, please. (I cannot type Arabic here, just copy and paste.)

Re: "Type Ahead Find" bug for RTL texts

Posted: 27 Dec 2021 22:59
by yusef88
a simple word to test محبوب
the typed letter: م
highlight should be like this
hil.png

Re: "Type Ahead Find" bug for RTL texts

Posted: 28 Dec 2021 15:28
by admin
Not easy because not only is the direction reversed but the width of each character varies depending on the context. The next beta should be better, but it's not perfect yet.

Re: "Type Ahead Find" bug for RTL texts

Posted: 30 Dec 2021 14:57
by yusef88
text unreadable after the new changes

Re: "Type Ahead Find" bug for RTL texts

Posted: 30 Dec 2021 16:33
by admin
Damn, I forgot about dark mode. Next beta will try a new strategy.

Re: "Type Ahead Find" bug for RTL texts

Posted: 30 Dec 2021 20:32
by yusef88
since fix is not possible at the moment, can we disable highlighting for right-to-left language?

Re: "Type Ahead Find" bug for RTL texts

Posted: 30 Dec 2021 21:37
by admin
:? It's fixed in v22.60.0205 - 2021-12-30 17:38

Re: "Type Ahead Find" bug for RTL texts

Posted: 30 Dec 2021 23:07
by yusef88
not fixed, sorry to tell that.
highlighted letters jumps over the other word الفيلم العربي- الجسر في
v22.60.0205 .png

Re: "Type Ahead Find" bug for RTL texts

Posted: 31 Dec 2021 10:24
by admin
Oh, that's a new type of problem. Man, Arabic is full of surprises. Should work better in next beta.

Re: "Type Ahead Find" bug for RTL texts

Posted: 31 Dec 2021 11:03
by yusef88
I believe fix is close, the only thing that delays it is lack of knowledge of characteristics of the this text

Re: "Type Ahead Find" bug for RTL texts

Posted: 31 Dec 2021 11:53
by admin
Well, not so close. The whole thing is full of trouble. :maf: See e.g.:
https://opensource.com/life/16/3/twiste ... ge-support

Since it also takes time I might make it optional in the next version.

Re: "Type Ahead Find" bug for RTL texts

Posted: 31 Dec 2021 18:14
by yusef88
RTLHighlightSupport=0 is '0' supposed to disable highlighting? still working after change value to 0.
seems that tweak changes the way highlighting handles RTL text

Re: "Type Ahead Find" bug for RTL texts

Posted: 31 Dec 2021 18:43
by admin
Yes, RTLHighlightSupport=0 goes back to the state before this thread.