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: A question about emojis - like \N{HEAVY BLACK HEART} Date: Fri, 3 Feb 2023 23:15:50 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31177"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 04 03:17:11 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 1pO875-0007rj-9f for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 04 Feb 2023 03:17:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pO86O-0000DC-0r; Fri, 03 Feb 2023 21:16:28 -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 1pO864-0008PC-64 for help-gnu-emacs@gnu.org; Fri, 03 Feb 2023 21:16:21 -0500 Original-Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pO861-0004Ti-Gs for help-gnu-emacs@gnu.org; Fri, 03 Feb 2023 21:16:07 -0500 Original-Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-520dad0a7d2so91445557b3.5 for ; Fri, 03 Feb 2023 18:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=w/9Feg02TH74mxt7G+bU4Cfke0aZaLuJcomD67xKN1k=; b=ptdwGnyTlh4oGAKmOhh1ApKxrKpDQ5SRNlG6bT2XCnAG6ptUS0/va+JUuTgprIYShS nD8aKxpt8ff3rbYvEbvNWF5AFtvCTMV+B3w4yhGVjfRbL5+9hYqmsmfl9aHUZOhgSF+w TEViEcxEIf/+Xd9mkILZEVAUEHr5VFlan9DYhtpVYud1Frl8n+ZKT2jMvN9b10XSRKRR KiXwtQtQiqhvWdcFjyA/v7bjMxf4ooRqgb7NmJGAHmE53+NDbcTEUbf+g/9s/iLwp/KD p3Be/aa7hpGb5WZJhCWS2zCc3h4uYn5nc4RPAK1AMVCdq6lF+20BdaMiZMhgeoHgiMfV sLBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=w/9Feg02TH74mxt7G+bU4Cfke0aZaLuJcomD67xKN1k=; b=m2WV1hNzmb5cU+Rq0ny5pNzAuX651jSOA5YJeYbMvuGfvCNVWQrvm7T107+jwPdmRJ yG9j+HUZ0cEwBYbd7SYuT/3oPasJs4CnWTzLXvvbZhtIFdAhXSgmguMGuCDASFlTkPgA 9HBTdKcl1fOCYrLbBB2uoTABmnoc/9yMDA90uP85byLOHZZB5qapZW4AsMHN/YrQPbgZ wRkHRAxe9FYBfXcn+bJzUIbOcndtJ+RNUGykVXUiTPb64YiJW0rlozQHGWkZ7WA1BzJn LqTlnNtq5blv472MbTjBdaXpapKPW01gDZBmidxPQpCUCehAaRNew5EoAuIbR1ZCsohI 3zTw== X-Gm-Message-State: AO0yUKU4lp9yAT+Dptj4mJWjv3cVgIFWEbAuT13ouvEM7u8I/OvQduRw xS7X9EGHHFY6E6ZxFXKng5IRij9VDLT+vdNpoYuqCYLEYkJ9zw== X-Google-Smtp-Source: AK7set+YjwETaXRPFbpTg7KoQYBH2pGLOAaWBe41iwuf6X+JAINLyJBfKfjWptFJSoVpiAEyCa4qPrWirWbjG9tpYe4= X-Received: by 2002:a81:49d1:0:b0:527:98e6:cd25 with SMTP id w200-20020a8149d1000000b0052798e6cd25mr42723ywa.209.1675476962266; Fri, 03 Feb 2023 18:16:02 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::1130; envelope-from=eduardoochs@gmail.com; helo=mail-yw1-x1130.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:142588 Archived-At: Hi list, I tried to write a function that would display the emojis that I use more, and I did the obvious thing: I started with `M-x emoji-list', then selected my favorite emojis, then I wrote some macros that would obtain their names - `C-u C-x =' on an emoji displays its name, but I used other tricks - and I produced the function `my-emojis' that displays each emoji with its name: (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 EYE} 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} White frowning face: \N{WHITE FROWNING FACE} ")) It turns out that the last two emojis are displayed in a way that is less nice than the other ones... here is a screenshot: https://i.ibb.co/ZdxN77r/sshot.png Then I tried to save my temporary buffer with emojis to a file, and I used a small Lua script to replace each character >127 in it with its hex code, and got this: Slightly smiling face: (F0)(9F)(99)(82) Slightly frowning face: (F0)(9F)(99)(81) Face without mouth: (F0)(9F)(98)(B6) Neutral face: (F0)(9F)(98)(90) Upside-down face: (F0)(9F)(99)(83) Confused face: (F0)(9F)(98)(95) Flushed face: (F0)(9F)(98)(B3) Grimacing face: (F0)(9F)(98)(AC) Thumbs up sign: (F0)(9F)(91)(8D) Dog face: (F0)(9F)(90)(B6) Pile of poo: (F0)(9F)(92)(A9) Japanese ogre: (F0)(9F)(91)(B9) Thinking face: (F0)(9F)(A4)(94) Face with stuck-out...: (F0)(9F)(98)(9B) Grinning face with...: (F0)(9F)(A4)(AA) Face with stuck-out...: (F0)(9F)(98)(9D) Crying face: (F0)(9F)(98)(A2) Disappointed but...: (F0)(9F)(98)(A5) Loudly crying face: (F0)(9F)(98)(AD) Face screaming in fear: (F0)(9F)(98)(B1) Confounded face: (F0)(9F)(98)(96) Angry face: (F0)(9F)(98)(A0) Pouting face: (F0)(9F)(98)(A1) Serious face with...: (F0)(9F)(A4)(AC) Orange heart: (F0)(9F)(A7)(A1) Yellow heart: (F0)(9F)(92)(9B) Green heart: (F0)(9F)(92)(9A) Blue heart: (F0)(9F)(92)(99) Purple heart: (F0)(9F)(92)(9C) Brown heart: (F0)(9F)(A4)(8E) Heavy black heart: (E2)(9D)(A4) White frowning face: (E2)(98)(B9) This _may be_ the reason why "\N{HEAVY BLACK HEART}" and "\N{WHITE FROWNING FACE}" are generating uglier versions of the emojis. What's the recommended way to fix this? Thanks in advance! Eduardo Ochs http://anggtwu.net/#eev http://anggtwu.net/eepitch.html