Page 1 of 3

Replace Umlauts

Posted: 14 Jan 2013 13:21
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.

Re: Replace Umlauts

Posted: 14 Jan 2013 13:41
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 ;)

Re: Replace Umlauts

Posted: 14 Jan 2013 13:53
by admin
what is "<-"?

Re: Replace Umlauts

Posted: 14 Jan 2013 14:03
by highend
<-
means "me".

Re: Replace Umlauts

Posted: 14 Jan 2013 14:11
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.

Re: Replace Umlauts

Posted: 14 Jan 2013 14:30
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*

Re: Replace Umlauts

Posted: 14 Jan 2013 14:33
by admin
-> means you :)

Re: Replace Umlauts

Posted: 14 Jan 2013 14:52
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:

Re: Replace Umlauts

Posted: 14 Jan 2013 16:47
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:

Re: Replace Umlauts

Posted: 14 Jan 2013 17:06
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.

Re: Replace Umlauts

Posted: 14 Jan 2013 17:33
by admin
Do you have some funny example filenames for me as crash test dummies?

Re: Replace Umlauts

Posted: 14 Jan 2013 18:02
by SkyFrontier
Mr. Postman may have something for you.
;)

Re: Replace Umlauts

Posted: 14 Jan 2013 21:11
by admin
OK, the funny char cleaner is there. Test it. :)

Re: Replace Umlauts

Posted: 15 Jan 2013 11:18
by admin
Nobody?

Re: Replace Umlauts

Posted: 15 Jan 2013 11:24
by Borut
As far as I am concerned: It works as advertised.