Replace Umlauts

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Replace Umlauts

Post by admin »

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.

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

Re: Replace Umlauts

Post by highend »

Does anybody ever use the command "Replace Umlauts"?
<-
I plan to replace it by a new command "Replace Funny Characters"
I don't think Filemanagers were made for irony ;)
One of my scripts helped you out? Please donate via Paypal

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

Re: Replace Umlauts

Post by admin »

what is "<-"?

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

Re: Replace Umlauts

Post by highend »

<-
means "me".
One of my scripts helped you out? Please donate via Paypal

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

Re: Replace Umlauts

Post by admin »

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.

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

Re: Replace Umlauts

Post by highend »

I think that would work for -> as well.
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! :)

*g*
One of my scripts helped you out? Please donate via Paypal

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

Re: Replace Umlauts

Post by admin »

-> means you :)

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: Replace Umlauts

Post by Borut »

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.
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.

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. :mrgreen:
Win 10 Pro 64bit

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

Re: Replace Umlauts

Post by admin »

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? :roll:

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Replace Umlauts

Post by SkyFrontier »

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.
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...

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

Re: Replace Umlauts

Post by admin »

Do you have some funny example filenames for me as crash test dummies?

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Replace Umlauts

Post by SkyFrontier »

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...

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

Re: Replace Umlauts

Post by admin »

OK, the funny char cleaner is there. Test it. :)

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

Re: Replace Umlauts

Post by admin »

Nobody?

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: Replace Umlauts

Post by Borut »

As far as I am concerned: It works as advertised.
Win 10 Pro 64bit

Post Reply