"Type Ahead Find" bug for RTL texts

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: "Type Ahead Find" bug for RTL texts

Post by amirvf »

admin wrote: ↑31 Dec 2021 11:53 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.
Thanks for the job.

I have tried the latest beta, and the direction of highlight is changed, however, still weird behavior for highlighted text is noted.
RTL Bug - v22.60.0207.jpg
In this example, for type ahead, two characters are written: مح

Regards,
Amir
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67240
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Type Ahead Find" bug for RTL texts

Post by admin »

You have to give me some sample filenames in Arabic.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: "Type Ahead Find" bug for RTL texts

Post by yusef88 »

Code: Select all

ام كلثوم
ام كلثوم - بعيد عنك
ام كلثوم...دارت الايام
وصفولي الصبر ام كلثوم
كل ص ام

admin
Site Admin
Posts: 67240
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Type Ahead Find" bug for RTL texts

Post by admin »

It's complex (= fascinating). Next version should be better again.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: "Type Ahead Find" bug for RTL texts

Post by yusef88 »

Significant progress :tup:
The remaining problem is deal with letter as if a standalone letter, not part of a word.
x2.png
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67240
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Type Ahead Find" bug for RTL texts

Post by admin »

I know, but this is not possible without a very special and rarely used API (and as always with MS since Vista: hardly documented). No time for this ATM.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: "Type Ahead Find" bug for RTL texts

Post by yusef88 »

In these circumstances, this result is more than enough and we should be happy with it. Thank you

admin
Site Admin
Posts: 67240
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Type Ahead Find" bug for RTL texts

Post by admin »

My pleasure. It was fun to do.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: "Type Ahead Find" bug for RTL texts

Post by yusef88 »

Sorry to bother you, just a suggestion you may see later.

is It possible to highlight the whole word instead of just matched letters OR make highlighting assume that the matched characters are a word (no problem in highlighting words)

admin
Site Admin
Posts: 67240
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Type Ahead Find" bug for RTL texts

Post by admin »

You ask because you cannot stand viewtopic.php?p=194644#p194644 ? :)

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: "Type Ahead Find" bug for RTL texts

Post by yusef88 »

it is a minor thing that does no harm.
the issue is the matched letters sometimes covers the letters before and hides them.
I notice certain letters disappear if highlight came after it

admin
Site Admin
Posts: 67240
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Type Ahead Find" bug for RTL texts

Post by admin »

I'm trying alpha-blend. Could you live with this?:
To see the attached files, you need to log into the forum.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: "Type Ahead Find" bug for RTL texts

Post by yusef88 »

looks fine.
please make sure first letter (at right) of each word is not hidden after apply highlighting

Code: Select all

وصفو لصفو
صف
in my opinion,full word makes more sense and will save you a lot of trouble
post has been edited

admin
Site Admin
Posts: 67240
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Type Ahead Find" bug for RTL texts

Post by admin »

yusef88 wrote: ↑03 Jan 2022 14:45 in my opinion,full word makes more sense and will save you a lot of trouble
Well, I looked at that and it's full of trouble as well. :)

So, I will go with alphablend for now. One day I will find the time to extract the exact measurements of Arabic letters in context.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: "Type Ahead Find" bug for RTL texts

Post by yusef88 »

no more mess with positions of letters :tup:
I want to bring to your attention Arabic diacritics might have something to do with that chaos
viewtopic.php?p=144458#p144458 anyway current fix is good
why color is pale and transparent? :eh:

Post Reply