help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to "asciify" a string?


From: S. Champailler
Subject: Re: Is there a way to "asciify" a string?
Date: Thu, 31 May 2018 17:08:47 +0200 (CEST)

I second that, removing accents and other "nationalities" is much trickier than 
one might expect (you can look at Java example, the Java unicode support is 
quite complete), especially for lanugages far away from english such as 
russian. By "tricky" I mean there are *hundreds* of edge cases. Nevertheless, 
there are ways do sort of do what you want by playing with thigsn such as "non 
spacing combining characters", "normalized strings", etc. If you have the 
opportunity, just try to do it, the great lesson you'lll get of that is that 
human languages are super complexe (and thus super interesting).

Today, everyone should use Unicode, it's much simpler. Many file systems 
support unicode.

stF


> Le 31 mai 2018 à 16:23, Stefan Monnier <monnier@iro.umontreal.ca> a écrit :
> 
> 
> > Still, I need something *simple*.  I have a person's name (possibly with
> > some national characters), and I want to derive a filename from it.
> 
> I really strongly recommend you try to solve this problem by doing
> nothing: keep the name in its full glory.  Nowadays users *should*
> expect this to work.
> 
> 
>         Stefan
> 
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]