From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: A question about emojis - like \N{HEAVY BLACK HEART} Date: Sat, 4 Feb 2023 06:00:41 -0300 Message-ID: References: <83a61tvs8j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20523"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 04 10:01:38 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1pOEQU-0005CT-Ci for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 04 Feb 2023 10:01:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOEPy-0007EN-4F; Sat, 04 Feb 2023 04:01:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOEPo-0007E2-QM for help-gnu-emacs@gnu.org; Sat, 04 Feb 2023 04:00:56 -0500 Original-Received: from mail-yb1-xb2a.google.com ([2607:f8b0:4864:20::b2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pOEPn-0005Ah-1a; Sat, 04 Feb 2023 04:00:56 -0500 Original-Received: by mail-yb1-xb2a.google.com with SMTP id x8so610170ybt.13; Sat, 04 Feb 2023 01:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=D/kyc9qVgP1sxhgIbsf8cjW8+DCY2u8SBqaTVxv1v8Y=; b=XWSzBEPDF6H/zBKQpHdyMaRZQChjZT5A5BHI4KgW3d39bXkKzwmzEUrzQoEMy8z8mJ 6A2Iztl8G4lH3H8c05GGO9wE7+f4eiHQpqWNHdT5ss477yMcoyW1eernoGdO8tKu905O Z1Ruuh2Q3FRT/WJGuJTgNzfnXehQBWr+u6RvZa9lyQ8Yo9mzvwD843S6reyLoeS8wok0 rpQVkJVFdeNXtu2ipeDgaqpkWEyq4YJWv6b4db+XBLlrQ5adtpgz2FexXuaCkFQn5mns 5ZQBDt+pNX0xK+OwFYIVOBbZIZDnFgFK7JxzGU3OEy9rcmb9avOVAJtdFWbu5lfxDydb YJvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D/kyc9qVgP1sxhgIbsf8cjW8+DCY2u8SBqaTVxv1v8Y=; b=x/sBF/33C3hKko0cv7K/yUW/GCZCHiXfr42NOu8WMmVkL12ho7qIVTFzGNUV3oiW4x BM8DBdxwY57Y8kFf+S3LbBzXFVVIVPaBXds1gRo9GSs538FCLOstQLc8IQNid4fUnYVv hUhzq+1VLSDZ9TNczxUSbNkrc/duBcmZASBYy9BtKLCI9CZTl+hhK0KAih6n5wUvReLS V1l9srIl7jr/iY3pNxVUr9i44BcLLE0cSUfbpA8TU8VQC8Yjn3uSbFua0SOE66EShfh4 TdUUcgK/9mGH9YaR20HWs87dwVB/79VEKzByOup6CRe6wCOjjny/PGJQM2HDhUw5pnxJ AR4g== X-Gm-Message-State: AO0yUKWtghOKTGSr/qazkgPXdHg2I0M+G6aSg7+GNFAJA0Xg+V4xxRPn 4b03WHdCLvJuofafow0GD6TorHIhmaqqd2zxSi4C5tXM8f7ETg== X-Google-Smtp-Source: AK7set/ejq1Iu3lpBZVKINaxivqEQiIRSN1AefysNoUxyXQkBC87/BDxIhlrwfwvItgduD9iyL0WokuOeBxaZkv0jdM= X-Received: by 2002:a25:e911:0:b0:874:380b:887e with SMTP id n17-20020a25e911000000b00874380b887emr364199ybd.239.1675501253060; Sat, 04 Feb 2023 01:00:53 -0800 (PST) In-Reply-To: <83a61tvs8j.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::b2a; envelope-from=eduardoochs@gmail.com; helo=mail-yb1-xb2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142593 Archived-At: On Sat, 4 Feb 2023 at 03:51, Eli Zaretskii wrote: > > Append u+FE0F to each one of those. > > These characters are not by default considered Emoji, because that's > what Unicode says about them. If you evaluate, for example, > > M-: (aref char-script-table ?=E2=9D=A4) RET > > you will see that it yields 'symbol', not 'emoji'. To ask Emacs to > display the Emoji appearance of these two characters, you must follow > them with u+FE0F. The other characters yield 'emoji' from the above > expression, so they are displayed as Emoji by default. > > The reason for this behavior is that many symbol characters have dual > purpose, both as "normal" symbol and as Emoji, and we don't want them > to display as Emoji by default, which will surprise and perhaps annoy > when this happens in plain text. Emacs behaves here as Unicode > mandates, by displaying each symbol according to its default > appearance, and by supporting the alternate appearance when the > character sequence requests that. Hi Eli! Perfect, thanks! =3D) Here is the fixed code, with the u+FE0F in two different syntaxes: (defun find-estring-mini (string) (switch-to-buffer "*string*") (kill-region (point-min) (point-max)) (insert string)) (defun my-emojis () (interactive) (find-estring-mini " Slightly smiling face: \N{SLIGHTLY SMILING FACE} Slightly frowning face: \N{SLIGHTLY FROWNING FACE} Face without mouth: \N{FACE WITHOUT MOUTH} Neutral face: \N{NEUTRAL FACE} Upside-down face: \N{UPSIDE-DOWN FACE} Confused face: \N{CONFUSED FACE} Flushed face: \N{FLUSHED FACE} Grimacing face: \N{GRIMACING FACE} Thumbs up sign: \N{THUMBS UP SIGN} Dog face: \N{DOG FACE} Pile of poo: \N{PILE OF POO} Japanese ogre: \N{JAPANESE OGRE} Thinking face: \N{THINKING FACE} Face with stuck-out...: \N{FACE WITH STUCK-OUT TONGUE} Grinning face with...: \N{GRINNING FACE WITH ONE LARGE AND ONE SMALL E= YE} Face with stuck-out...: \N{FACE WITH STUCK-OUT TONGUE AND TIGHTLY-CLOSED EYES} Crying face: \N{CRYING FACE} Disappointed but...: \N{DISAPPOINTED BUT RELIEVED FACE} Loudly crying face: \N{LOUDLY CRYING FACE} Face screaming in fear: \N{FACE SCREAMING IN FEAR} Confounded face: \N{CONFOUNDED FACE} Angry face: \N{ANGRY FACE} Pouting face: \N{POUTING FACE} Serious face with...: \N{SERIOUS FACE WITH SYMBOLS COVERING MOUTH} Orange heart: \N{ORANGE HEART} Yellow heart: \N{YELLOW HEART} Green heart: \N{GREEN HEART} Blue heart: \N{BLUE HEART} Purple heart: \N{PURPLE HEART} Brown heart: \N{BROWN HEART} Heavy black heart: \N{HEAVY BLACK HEART}\N{VARIATION SELECTOR-16} White frowning face: \N{WHITE FROWNING FACE}\uFE0F ")) Cheers, Eduardo