[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a way to "asciify" a string?
From: |
Marcin Borkowski |
Subject: |
Re: Is there a way to "asciify" a string? |
Date: |
Wed, 30 May 2018 12:12:18 +0200 |
User-agent: |
mu4e 1.1.0; emacs 27.0.50 |
On 2018-05-27, at 18:59, Teemu Likonen <tlikonen@iki.fi> wrote:
> Eli Zaretskii [2018-05-27 19:07:40+03] wrote:
>
>> Come on, crowd, you _must_ know that Emacs has all of the iconv's
>> functionality (and more) built-in, right? All that encode-coding stuff
>> etc.?
>
> Emacs has loads of stuff that I don't know or don't have time to study.
> :-) But thanks for your ucs-normalize hint. An ASCII normalization and
> filter could be something like this:
>
>
> (defun my-ascii-normalize-filter (string)
> (require 'cl-lib)
> (cl-remove-if (lambda (char)
> (> char 127))
> (ucs-normalize-NFKD-string string)))
>
> Maybe one could want to filter out control chars too...
Thanks, that's a step in the right direction!
However, (my-ascii-normalize-filter "żółć") gived "zoc" and not
"zolc"...
Best,
--
Marcin Borkowski
http://mbork.pl
- Is there a way to "asciify" a string?, Marcin Borkowski, 2018/05/27
- Re: Is there a way to "asciify" a string?, tomas, 2018/05/27
- Re: Is there a way to "asciify" a string?, Marcin Borkowski, 2018/05/27
- Re: Is there a way to "asciify" a string?, Teemu Likonen, 2018/05/27
- Re: Is there a way to "asciify" a string?, Eli Zaretskii, 2018/05/27
- Re: Is there a way to "asciify" a string?, Teemu Likonen, 2018/05/27
- Re: Is there a way to "asciify" a string?, Tak Kunihiro, 2018/05/28
- Re: Is there a way to "asciify" a string?,
Marcin Borkowski <=
- Re: Is there a way to "asciify" a string?, Eli Zaretskii, 2018/05/30
- Re: Is there a way to "asciify" a string?, Marcin Borkowski, 2018/05/30
- Re: Is there a way to "asciify" a string?, tomas, 2018/05/27
- Re: Is there a way to "asciify" a string?, Eli Zaretskii, 2018/05/28
- Re: Is there a way to "asciify" a string?, tomas, 2018/05/29
- Re: Is there a way to "asciify" a string?, Yuri Khan, 2018/05/27
- Re: Is there a way to "asciify" a string?, Marcin Borkowski, 2018/05/30
- Re: Is there a way to "asciify" a string?, Yuri Khan, 2018/05/30
- Re: Is there a way to "asciify" a string?, Marcin Borkowski, 2018/05/30
- Re: Is there a way to "asciify" a string?, John Mastro, 2018/05/30