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: Eric Abrahamsen
Subject: Re: Is there a way to "asciify" a string?
Date: Sun, 27 May 2018 07:55:36 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Marcin Borkowski <mbork@mbork.pl> writes:

> Hi all,
>
> I want to convert e.g. "żółć" to "zolc", or "Poincaré" to "Poincare"
> etc.  IOW, I want to replace all these funny Unicode accented characters
> with their ASCII equivalents.
>
> Is there anything for that in Emacs?

Check out char-fold.el. I think its main purpose is to go the other way:
to take an ascii string and return a regexp matching all it's likely
unicode lookalikes, but you might be able to use `char-fold-table' to go
the other way.

Eric




reply via email to

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