[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
- Re: Is there a way to "asciify" a string?, (continued)
- Re: Is there a way to "asciify" a string?, Marcin Borkowski, 2018/05/31
- Re: Is there a way to "asciify" a string?, Eli Zaretskii, 2018/05/31
- Re: Is there a way to "asciify" a string?, Yuri Khan, 2018/05/31
- Re: Is there a way to "asciify" a string?, Stefan Monnier, 2018/05/31
- Message not available
- Re: Is there a way to "asciify" a string?, James K. Lowden, 2018/05/31
- Re: Is there a way to "asciify" a string?, Stefan Monnier, 2018/05/31
Re: Is there a way to "asciify" a string?,
Eric Abrahamsen <=
Re: Is there a way to "asciify" a string?, Eli Zaretskii, 2018/05/27