Page 1 of 2
search files and folders ignoring umlauts (Köln = Koln)
Posted: 14 Aug 2012 17:51
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!
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 14 Aug 2012 19:46
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%.
.
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 14 Aug 2012 19:55
by highend
or use the regex search.
e.g. .*b(ä|a)rbel.*
finds bärbel as well as barbel.
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 14 Aug 2012 20:49
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)?
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 15 Aug 2012 00:44
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 :

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.
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 15 Aug 2012 09:28
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?

Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 15 Aug 2012 09:32
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".
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 15 Aug 2012 10:30
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!
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 15 Aug 2012 12:51
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"
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 15 Aug 2012 14:50
by Marco
Is "No diacriticts" still too long? And "No accents"?
And will this feature work with stressed wovels too (Italians àèéìòù)?
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 15 Aug 2012 20:22
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.
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 16 Aug 2012 21:00
by admin
Done.

Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 17 Aug 2012 21:00
by abc550
admin wrote:Done.

Thank you very much for fast and friendly reaction!
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".
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 17 Aug 2012 21:04
by admin
abc550 wrote:admin wrote:Done.

Thank you very much for fast and friendly reaction!
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.
Re: search files and folders ignoring umlauts (Köln = Koln)
Posted: 18 Aug 2012 10:49
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.