From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Better emoji support Date: Mon, 12 Jul 2021 17:38:42 +0200 Message-ID: <87im1ftud9.fsf@gmail.com> References: <834kd2cypw.fsf@gnu.org> <87zguuttbm.fsf@gmail.com> <8335smcxx6.fsf@gnu.org> <87v95itsc4.fsf@gmail.com> <831r86cxdy.fsf@gnu.org> <87r1g4szqp.fsf@gmail.com> <87mtqrtysx.fsf@gmail.com> 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="8157"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 12 17:39:28 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 1m2y1o-0001v8-G2 for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Jul 2021 17:39:28 +0200 Original-Received: from localhost ([::1]:59198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2y1i-0003Hp-Fd for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Jul 2021 11:39:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2y1A-0002c0-Mm for emacs-devel@gnu.org; Mon, 12 Jul 2021 11:38:48 -0400 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:36828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2y19-0008Pr-1y; Mon, 12 Jul 2021 11:38:48 -0400 Original-Received: by mail-wr1-x431.google.com with SMTP id v5so26238637wrt.3; Mon, 12 Jul 2021 08:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=so5TtwrNeno8d4LnwVZFG4+G/u3wOf07oZw4YByL9IA=; b=e5f4vVhB3i8kA6KnQEyXJi/OT2J4CrbifpfXcs2Gz2wiQ7wAL/KolnpQDL/0jwnaAB kZuZ9dj26sqONvG7+2UsjjDZHz3Geuzw2C1WnLRpDB+wqnMpHiLGLqt8TAxonSqKzK4h OV2SCNJ3JwXsP+t5cf9qUIgJeZxLU8XD0rPwMhiMMRkAkMW0JtGTaz/ttPT0tX+DKFkG 3sPmyothKTMzzi+0jQpBM9NyeAKo+D2yyr5NPdEfHPN1my5tosoHlmXnVnz7XfOlSler cF+G0P9laOHxRYiJGnAlTIAEEPX0HsvBOt+1M5/ukmSaPLCYNSuRQd38whlme7/yMWCp i0Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=so5TtwrNeno8d4LnwVZFG4+G/u3wOf07oZw4YByL9IA=; b=lv2FwOhHYnsKbtgRU3pYg2JQFCX8iSC6+7hV4UYSdL4goxnZUKz8qbKh4ZqAozSpEx rnQ77Y9/8vXR4XFIg+qWwLZhlv4kNkKeoZwrN3qtWGu6zUXDC81m+GeQYBvoctFitRxs qn8U0bHnW3qRIlTb7tre/KaBebAkaia5PIoQ7tA6GTIFIlOdYwg08e6RhJjmynSofu/w SHZOVrfIyohr2cj4sUTZ0lKmNgC4aPt0s/xvRcqxB9lvxx21j3P6SSddt5TvKI3iUkJ9 Nl0T6LVquP+YT/adXTAqBQKRyX8eZ5Mh6tqD4+GXcAhdZJPpEBE01iLNR4j/bAejK7jC 26pA== X-Gm-Message-State: AOAM531DGlCOQCu2waT/vP9Yo7e89Ezg1nJC0glgpVEWkBqGaept9aAP PdbHmdQQcRmZYcdb0Q8VBckDQbRVigM= X-Google-Smtp-Source: ABdhPJzUWdRvo0ocLJb1NRZFjV6y455wIPdkoZPg20v2V60X7pM0FGIsXbRuwmzJdUVxW//XEcpzEA== X-Received: by 2002:a5d:6da1:: with SMTP id u1mr59481010wrs.281.1626104324662; Mon, 12 Jul 2021 08:38:44 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id p2sm9230929wmg.6.2021.07.12.08.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 08:38:44 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <87mtqrtysx.fsf@gmail.com> (Robert Pluim's message of "Mon, 12 Jul 2021 16:02:54 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=rpluim@gmail.com; helo=mail-wr1-x431.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:271186 Archived-At: >>>>> On Mon, 12 Jul 2021 16:02:54 +0200, Robert Pluim s= aid: Robert> tr51 defines which codepoints have the 'Emoji' property, and Robert> which additionally have the 'Emoji_Presentation' property. The = latter Robert> means they should in the absence of a variation selector be dis= played Robert> as emoji. Robert> My current implementation assigns codepoints with the Robert> 'Emoji_Presentation' property to the 'emoji' script, since that= =CA=BCs all Robert> we have to work with regarding font selection. But there are Robert> codepoints that don=CA=BCt have that property that *could* be d= isplayed as Robert> emoji, so perhaps I should base it off the 'Emoji' property ins= tead? Robert> (with a small exception for codepoints <=3D #xAE). Having re-read relevant parts if tr51, I misunderstood this part. Everything with the Emoji property is an emoji, and should be displayed as such. The Emoji_Presentation property is about whether to use the Text or Emoji presentation by default, not the emoji-ness So I can base it off the 'Emoji' property. Based on some quick testing, emoji fonts don=CA=BCt have glyphs for those few emoji codepoints that are ASCII, so I propose not treating those as emoji. Robert --=20