[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entering emojis

From: Lars Ingebrigtsen
Subject: Re: Entering emojis
Date: Sat, 30 Oct 2021 00:16:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> So perhaps we should just keep the current behaviour (or have a user
> option to change it).

A more ticklish question is what we should do with out string primitives
(if anything).  For instance:

(string-limit "Hello, πŸ‘¨πŸ½β€β€οΈβ€πŸ’‹β€πŸ‘¨πŸΎ" 8)
=> "Hello, πŸ‘¨"


(truncate-string-to-width "πŸ‘¨πŸ½β€β€οΈβ€πŸ’‹β€πŸ‘¨πŸΎ" 2 nil t)
=> "πŸ‘¨"

which is...  uhm...  In a way, this grapheme cluster thing is slightly
like it was during the shift to utf-8, when not all string primitives
worked on characters, but bytes instead.  Less dramatic, of course, but.

I think we'll be seeing many amusing display glitches in this area.  πŸ₯²

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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