Replace Umlauts
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Replace Umlauts
Just curious: Does anybody ever use the command "Replace Umlauts"?
I plan to replace it by a new command "Replace Funny Characters" (yes, a chauvinist name, but I think people will get the irony in it) which will remove or substitute any (and not just the German umlauts) non ASCII characters in a filename.
I plan to replace it by a new command "Replace Funny Characters" (yes, a chauvinist name, but I think people will get the irony in it) which will remove or substitute any (and not just the German umlauts) non ASCII characters in a filename.
FAQ | XY News RSS | XY Twitter
Re: Replace Umlauts
<-Does anybody ever use the command "Replace Umlauts"?
I don't think Filemanagers were made for ironyI plan to replace it by a new command "Replace Funny Characters"
One of my scripts helped you out? Please donate via Paypal
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Replace Umlauts
OK, the new function would do the folowing in this order:
1. replace umlauts (ä -> ae)
2. remove diacritics (à -> a)
3. replace non-ASCII (ordinal > 127) with replacement character
I think that would work for -> as well.
1. replace umlauts (ä -> ae)
2. remove diacritics (à -> a)
3. replace non-ASCII (ordinal > 127) with replacement character
I think that would work for -> as well.
FAQ | XY News RSS | XY Twitter
Re: Replace Umlauts
You should always use <- because it points to you (the author of a thread). And it isn't used (at least normally) in a sentence. It's for the lazy people!I think that would work for -> as well.
*g*
One of my scripts helped you out? Please donate via Paypal
Re: Replace Umlauts
As far as I get it, you are replacing special language cases (for German; then for accents in general) first, and then running over some Unicode replacement functions/procedures.admin wrote:OK, the new function would do the folowing in this order:
1. replace umlauts (ä -> ae)
2. remove diacritics (à -> a)
3. replace non-ASCII (ordinal > 127) with replacement character
I think that would work for -> as well.
But, beside German, some other languages developed diacritics to ascii schemes too (some more official, some less so, but useful). These come sometimes handy, albeit rarely.
Maybe you could envisage a step 2a, where some mapping could be done, defined via some simple file with a table. Is just an idea.
Regarding "funny": it might be funny to you and me, but maybe not so to a few other billion people, once a few other translations for XYplorer will exist.
Win 10 Pro 64bit
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Replace Umlauts
Well, I'm currently not sure anymore whether this was a good idea. Would anybody need such a "Replace Funny Characters" (or "Replace non-ASCII Characters") function?
FAQ | XY News RSS | XY Twitter
-
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Replace Umlauts
All of the time.
My first script requests and attempts were mainly for fixing weird stuff coming from everywhere to just cause issues, sometimes with the least minimum clue on 'non-unicode support'.
That's why 90% (I'm getting tired over 15 years of this) of the time I camelCase/filter non-ASCII characters out of my systems.
So yes, the 'replace funny chars' (specially in that progression order) is very welcome.
My first script requests and attempts were mainly for fixing weird stuff coming from everywhere to just cause issues, sometimes with the least minimum clue on 'non-unicode support'.
That's why 90% (I'm getting tired over 15 years of this) of the time I camelCase/filter non-ASCII characters out of my systems.
So yes, the 'replace funny chars' (specially in that progression order) is very welcome.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Replace Umlauts
Do you have some funny example filenames for me as crash test dummies?
FAQ | XY News RSS | XY Twitter
-
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Replace Umlauts
Mr. Postman may have something for you.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...