[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emojis and other multi-character glyphs
From: |
Eli Zaretskii |
Subject: |
Re: emojis and other multi-character glyphs |
Date: |
Sun, 26 Dec 2021 12:51:18 +0200 |
> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> Date: Sun, 26 Dec 2021 13:41:21 +0300
> Cc: emacs-devel <emacs-devel@gnu.org>
>
> > And also it will be possible to write something like `string-glyph-length'
> to return 1 for "๐จโ๐ฉโ๐งโ๐ฆ"
> instead of 7
> > as `length' returns now.
>
> Why would that be useful?
>
> Sometimes it is useful to know real string length before acting on
> it.
If you mean their width on display, then we have string-width for
that. And if you need absolute accuracy, use window-text-pixel-size.
> In my case, I use a service that has
> limitation on number chars it can act on and emojis are counted as
> single char.
But that is incorrect: most Emoji sequences occupy two columns on display.
- emojis and other multi-character glyphs, Evgeny Zajcev, 2021/12/26
- Re: emojis and other multi-character glyphs, Eli Zaretskii, 2021/12/26
- Re: emojis and other multi-character glyphs, Evgeny Zajcev, 2021/12/26
- Re: emojis and other multi-character glyphs,
Eli Zaretskii <=
- Re: emojis and other multi-character glyphs, Evgeny Zajcev, 2021/12/26
- Re: emojis and other multi-character glyphs, Eli Zaretskii, 2021/12/26
- Re: emojis and other multi-character glyphs, Evgeny Zajcev, 2021/12/26
- Re: emojis and other multi-character glyphs, Eli Zaretskii, 2021/12/26
- Re: emojis and other multi-character glyphs, Lars Ingebrigtsen, 2021/12/26
- Re: emojis and other multi-character glyphs, Eli Zaretskii, 2021/12/26
- Re: emojis and other multi-character glyphs, Lars Ingebrigtsen, 2021/12/26
- Re: emojis and other multi-character glyphs, Eli Zaretskii, 2021/12/26
- Re: emojis and other multi-character glyphs, Po Lu, 2021/12/26
- Re: emojis and other multi-character glyphs, Lars Ingebrigtsen, 2021/12/26