From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.devel Subject: Re: emojis and other multi-character glyphs Date: Sun, 26 Dec 2021 13:50:17 +0300 Message-ID: References: <87r19zzltx.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003aad8705d40a5b40" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23554"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 26 11:52:59 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n1R97-0005vB-N6 for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Dec 2021 11:52:57 +0100 Original-Received: from localhost ([::1]:55348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1R95-0003Pi-Rt for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Dec 2021 05:52:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1R6m-0001a5-9E for emacs-devel@gnu.org; Sun, 26 Dec 2021 05:50:32 -0500 Original-Received: from [2a00:1450:4864:20::22c] (port=36775 helo=mail-lj1-x22c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1R6k-0000T6-Mk for emacs-devel@gnu.org; Sun, 26 Dec 2021 05:50:31 -0500 Original-Received: by mail-lj1-x22c.google.com with SMTP id h21so9077904ljh.3 for ; Sun, 26 Dec 2021 02:50:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5kukofWp+DQjCqxWitWCZfKiY1P5lP0Cr5GIowjhYdA=; b=b0N3F2T8tVSZYiGpEO/7vMTaPCpRuBuXBsRR0hoIRpGySxPDFBK+dr1M6CajMj/zGC FfjGjShh8b9Y1Ga+V6NzQSvZyqogCvYHRuKVFYPWxRsjeBaRlOVHBgbgl/UR48Dc6eNp tWjItkuVk1jxMFfmRcxR56skhu5nj4+V72ZB3UAn2QAauUGdpR0rj4B1azM1KVV7r1B/ f6GFEddjoi0YCCL5lDxoWvVn6SNsjoSq7iGyr/8tluXcCbinQwhszVBrOCOSBXxvjZ3Q +MJsbiA44lO/FcPPp2dB08OTiCyW94a+zwvcxUsXHqUB9wi303f3hHuJNa0VMnVLR5qC s0sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5kukofWp+DQjCqxWitWCZfKiY1P5lP0Cr5GIowjhYdA=; b=YytrF2nUF3dyQ3nSamsCwf/5LhmZG1FoJqCSJ1otVnOCN1KAjzs+Op4y9foekO5GZX EIWqGJwDoIWPqTmoHROegnHT6ujWaXJ9vgo2LfjvBSIjA2z+N1+5n3T3Kn8bzuVemdqC ARm60xOBICFnmH3Ia3vV9oRLSCZLwhHwTSVF+UQ0hqhwq9h7bAs3YcAzHGcFuWrgbtXP q1KkVxeeJrFuBLqMlfHtrDRTPxdx7vureZr7rCsz6qRi+ZOByFuEbgMoKJbyxeVANkuC yLzQbjTEUab9ts5s53ERR55Mzlp+sfhDrQpO+QqLa8JEoKPCdVmcPtZYrBiyy0E76nxQ PVfw== X-Gm-Message-State: AOAM5304JmPR/V9JflxXuqe53cKTMbUtMD/Npe40U6fpGbBPddty2BCT UeAyjay8EEOLn4S2M13HhARXEKvHGf53Kxsw7so= X-Google-Smtp-Source: ABdhPJwMTd47DycyXSY0kAt2RhZN7PX5xwZRrhPd83tFI3EP2M8JawgYRe3hzxb+GqS2C5lenJbB/vPzw07/JnQSqCA= X-Received: by 2002:a2e:8815:: with SMTP id x21mr10226301ljh.442.1640515828886; Sun, 26 Dec 2021 02:50:28 -0800 (PST) In-Reply-To: <87r19zzltx.fsf@gnus.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::22c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=lg.zevlg@gmail.com; helo=mail-lj1-x22c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283283 Archived-At: --0000000000003aad8705d40a5b40 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=B2=D1=81, 26 =D0=B4=D0=B5=D0=BA. 2021 =D0=B3. =D0=B2 13:45, Lars Ingebr= igtsen : > Evgeny Zajcev writes: > > > And also it will be possible to write something like > `string-glyph-length' to return 1 > > for "=F0=9F=91=A8=E2=80=8D=F0=9F=91=A9=E2=80=8D=F0=9F=91=A7=E2=80=8D=F0= =9F=91=A6" instead of 7 as `length' returns now. > > (length (string-glyph-split "=F0=9F=91=A8=E2=80=8D=F0=9F=91=A9=E2=80=8D= =F0=9F=91=A7=E2=80=8D=F0=9F=91=A6")) > =3D> 1 > > nice! this suits my needs, thanks --=20 lg --0000000000003aad8705d40a5b40 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
=D0=B2=D1=81, 26 =D0=B4=D0=B5=D0=BA. = 2021 =D0=B3. =D0=B2 13:45, Lars Ingebrigtsen <larsi@gnus.org>:
Evgeny Zajcev <lg.zevlg@gmail.com> writes:

> And also it will be possible to write something like `string-glyph-len= gth' to return 1
> for "=F0=9F=91=A8=E2=80=8D=F0=9F=91=A9=E2=80=8D=F0=9F=91=A7=E2=80= =8D=F0=9F=91=A6" instead of 7 as `length' returns now.

(length (string-glyph-split "=F0=9F=91=A8=E2=80=8D=F0=9F=91=A9=E2=80= =8D=F0=9F=91=A7=E2=80=8D=F0=9F=91=A6"))
=3D> 1


nice! this suits my needs, thanks
=

--
lg
--0000000000003aad8705d40a5b40--