search files and folders ignoring umlauts (Köln = Koln)

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
abc550
Posts: 38
Joined: 18 Feb 2010 09:46

search files and folders ignoring umlauts (Köln = Koln)

Post by abc550 »

Hi,

Is there any option to search for files and folders, ignoring umlauts and other diacritic symbols? That is to make XY by search request "Koln" to find the both "Koln" and "Köln"?

NB!
I am acknowledged of the proper tool in XY Renane Special menu, also I've read this topic too http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=2420). But I can not change these files names. What I need is, that XY would somewhere internally regard all umlaut-diactritic letters to be equal to their English letters ASCII "sisters" (Ä = A, Ö = O etc).
Say, Total Commander has an option to do it: http://www.ghisler.ch/board/viewtopic.p ... &start=468
Is it possible something similar in XYplorer?

Many thanks in advance!

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by Stefan »

abc550 wrote:Is there any option to search for files and folders, ignoring umlauts and other diacritic symbols?
That is to make XY by search request "Koln" to find the both "Koln" and "Köln"?
Do you search via Info Panel (F12)?
Then try "[X] Fuzzy" search, set to e.g. 25%.





.

highend
Posts: 14691
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by highend »

or use the regex search.

e.g. .*b(ä|a)rbel.*

finds bärbel as well as barbel.
One of my scripts helped you out? Please donate via Paypal

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

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by admin »

abc550 wrote:Is there any option to search for files and folders, ignoring umlauts and other diacritic symbols? That is to make XY by search request "Koln" to find the both "Koln" and "Köln"?
Currently not but I like the idea!

BTW, your TC link did not show anything about umlauts or diacritics... :? General question: Is there any file manager or file searcher who can do this (ignore umlauts and other diacritic symbols)?

abc550
Posts: 38
Joined: 18 Feb 2010 09:46

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by abc550 »

admin wrote:BTW, your TC link did not show anything about umlauts or diacritics... :?
General question: Is there any file manager or file searcher who can do this (ignore umlauts and other diacritic symbols)?
Yes, there is at least one: Total Commander : :biggrin: The link in my first post was wrong, nevertheless the statement itself was correct: look here http://ghisler.ch/board/viewtopic.php?t=24288.
Well, to be more specific, it regards only quick search (inside the current file pane). TC lets searching across multi folders and partitions as well, but via regexp (as highend has suggested in this topic) or via multi-search.

It would be great to have in XYplorer something like an option "ignore diacritic symbols while search" (in general setting or at the search pane).

Regex search like *b(ä|a)rbel.* is surely not a good solution. It is really very boring to compose regular expressions for every search request for virtually every umlaut-ASCII letters pair.

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

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by admin »

I'm ready to add it. It will be a checkbox between "Whole words" and "Fuzzy". Now how to call it? Unfortunately "Ignore diacritics" (clearly the best term) is too long. What about "Latin"? Because it reduces all letters in a filename its 26 Latin base characters, and "Latin" would also make clear that this option is not of much use say for Chinese file names. OTOH "Latin" might imply Latin transliteration (romanization) of Chinese which the feature will not cover... hmm...

So maybe I use "Ignore diacritics" and add a 2nd row of checkboxes in the Name & Location tab...

Any comments to this public thinking? :)

highend
Posts: 14691
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by highend »

So maybe I use "Ignore diacritics" and add a 2nd row of checkboxes in the Name & Location tab...
Best way to solve that "issue".
One of my scripts helped you out? Please donate via Paypal

abc550
Posts: 38
Joined: 18 Feb 2010 09:46

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by abc550 »

admin wrote:Now how to call it? Unfortunately "Ignore diacritics" (clearly the best term) is too long. What about "Latin"?
"Latin" is IMHO far not intuitive.
May be "Ä=A"? or something more distinguishable graphically than umlaut, say, "Ø = O"
Or "ASCII" (with explanation in tooltip and Help manual)?

Please don't forget to support the both-direction conversion: not only finding "Koln"="Köln", but the reverse "Köln"="Koln" as well!

Many thanks in advance!

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by Stefan »

admin wrote:Any comments to this public thinking? :)
Just "[ ] Umlauts" ?

Most have no umlauts on there keyboard, so they enter uoa and check "[X] Umlauts"







 

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by Marco »

Is "No diacriticts" still too long? And "No accents"?
And will this feature work with stressed wovels too (Italians àèéìòù)?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by admin »

highend wrote:
So maybe I use "Ignore diacritics" and add a 2nd row of checkboxes in the Name & Location tab...
Best way to solve that "issue".
Yep.

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

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by admin »

Done. 8)

abc550
Posts: 38
Joined: 18 Feb 2010 09:46

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by abc550 »

admin wrote:Done. 8)
Thank you very much for fast and friendly reaction! :appl:

Should be the next step implementing the same feature in other file names handle functions as Visual Filter, color highligting, Spot'n'Jump and others? May be as a common option in XY general setting?

P.S.
It seems, that your sample in the new feature discription in this post http://www.xyplorer.com/xyfc/viewtopic. ... 355#p75395 is a bit incorrect:
Note that all accented characters (i.e. characters with diacritics) in the name pattern AND in the tested filenames are reduced to their base characters before the matching is performed. So an accented pattern "Köln" would match a file "Koln.txt" if "Ignore diacritics" is ticked.
You could add, that accented pattern "Köln" would match a file "Koln.txt" and accented "Köln".

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

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by admin »

abc550 wrote:
admin wrote:Done. 8)
Thank you very much for fast and friendly reaction! :appl:

Should be the next step implementing the same feature in other file names handle functions as Visual Filter, color highligting, Spot'n'Jump and others? May be as a common option in XY general setting?

P.S.
It seems, that your sample in the new feature discription in this post http://www.xyplorer.com/xyfc/viewtopic. ... 355#p75395 is a bit incorrect:
Note that all accented characters (i.e. characters with diacritics) in the name pattern AND in the tested filenames are reduced to their base characters before the matching is performed. So an accented pattern "Köln" would match a file "Koln.txt" if "Ignore diacritics" is ticked.
You could add, that accented pattern "Köln" would match a file "Koln.txt" and accented "Köln".
Well, maybe later.

and accented "Köln" .. I thought that would be clear by itself but maybe you are right.

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

Re: search files and folders ignoring umlauts (Köln = Koln)

Post by admin »

abc550 wrote:
admin wrote:Should be the next step implementing the same feature in other file names handle functions as Visual Filter, color highligting, Spot'n'Jump and others? May be as a common option in XY general setting?
I think that was a good idea. I added it to Color Filters, Spot'n'Jump, and Visual Filters.

Post Reply