[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a way to "asciify" a string?
From: |
Eli Zaretskii |
Subject: |
Re: Is there a way to "asciify" a string? |
Date: |
Wed, 30 May 2018 20:05:06 +0300 |
> From: Marcin Borkowski <mbork@mbork.pl>
> Cc: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs <help-gnu-emacs@gnu.org>
> Date: Wed, 30 May 2018 12:12:18 +0200
>
> > (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"...
That's because ł doesn't have any decompositions. So it stays
unchanged and is removed because its codepoint is above 127.
- 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, 2018/05/30
- Re: Is there a way to "asciify" a string?,
Eli Zaretskii <=
- 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
- Re: Is there a way to "asciify" a string?, tomas, 2018/05/27