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, 20 Sep 2021 19:32:23 +0200 Message-ID: <87tuifi254.fsf@gmail.com> References: <834kd2cypw.fsf@gnu.org> <87wnnkpjj9.fsf@gmail.com> <3E0155F6-D681-4443-A1D9-472D1836168D@traduction-libre.org> <87bl4rnyoe.fsf@gmail.com> <877dffnwf5.fsf@gmail.com> <875yuzciaf.fsf@gmail.com> <87tuijm9uy.fsf@gmail.com> <87lf3v2dz4.fsf@gmail.com> <87ilywl8tx.fsf@gmail.com> <877dfcz6zu.fsf@gmail.com> <83mto73mem.fsf@gnu.org> <87ee9jhint.fsf@gmail.com> <838rzr3fhm.fsf@gnu.org> <87h7efk5c3.fsf@gmail.com> <83y27r1sku.fsf@gnu.org> <87czp3jt5z.fsf@gmail.com> <83lf3r1j8h.fsf@gnu.org> <83k0jb1iqg.fsf@gnu.org> <8735pzjqyu.fsf@gmail.com> <83h7ef1d3w.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="25647"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, kevin.legouguec@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 20 19:35:15 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 1mSNCF-0006Gz-CW for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 19:35:15 +0200 Original-Received: from localhost ([::1]:41454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSNC9-0006Jo-8o for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 13:35:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSN9Z-0002rE-Am for emacs-devel@gnu.org; Mon, 20 Sep 2021 13:32:29 -0400 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:33492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSN9X-00023h-PP; Mon, 20 Sep 2021 13:32:29 -0400 Original-Received: by mail-wr1-x433.google.com with SMTP id t18so31988615wrb.0; Mon, 20 Sep 2021 10:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=80mAZp2uz6w1mkubjxY1pN2qxqLatA6es4o57D4vEFE=; b=H8A+NfDzJ2X6VIBSlEQVIqanoBZ0vZ+Sr9MQavzqpuJhySjhPffsDaJztF7k/OJ7uT xNENzgBRd5HHh/7lcReNB5GwNJj9FuuWOcbkKHDfCrs8om/07O+slEavSBkOwZU82Fb0 bKH3xNN+ihl/O3W01iJLj8moFaqZS3/MVkGEcauAgsT0Ro9V1l7fLKsHapCWNF6kXFvf sNp6a5h1nFDDP+a4ewOxH6gQaY+tLpLX18fzdy7Rduew0VVUDDWaQt3iGGCqqiqf7sd0 +5mMjlhBJFQeO5c1GEuHFgHJGq3wdNYSBRubWKtD9xsNgF5QvwsWrzEJx5j1C4lsT4AY KXsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=80mAZp2uz6w1mkubjxY1pN2qxqLatA6es4o57D4vEFE=; b=JUWGjc6GmaNA/MUw2r8yQQum/RVxdbKmP6mPdtwpD5nskyTxmSCkGR98jjbXCOeFf2 BW5BVpx+FeoelA6Q0r9buCgoErFroiIVFRKFGf3MpgySe2qFz+Ys0mhkhUuAZ9L0qMSP fYf+9ZK6n97kuPxr0eciRjV/usS495u6lCZDJ8wVTY1zsf6WrCjqub8n55TAcXBrJGuq behXe+jVcSLaCcFgR4PmMdQ/2dcOKKlubcFtB1RQe7G8qZI+Ry7D+iNVeAcjDferFOBk za8WWyvC2UW0DlTqc2zC+2eWRt6TQyo2v25UOfbzIgHtT5Ci3nyTjq64j/t4lDrjpM+o /3Ww== X-Gm-Message-State: AOAM530MpzwdM/Sz3+HNm+gjGV6DuqqwprJKMllFSLkPPZ35yUWSjz+K AJHHunOvdYmTplBQT2vjfYUiOWGjCyo= X-Google-Smtp-Source: ABdhPJw5zrfu1aEaJHS3BUQFSg7lUq8RIIOzBXavfoVTW1FJN2Ixm2xwk3pgOM8Ds57uB2QK0KKAXA== X-Received: by 2002:a05:600c:4c09:: with SMTP id d9mr203368wmp.194.1632159145107; Mon, 20 Sep 2021 10:32:25 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id b188sm150596wmd.39.2021.09.20.10.32.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 10:32:24 -0700 (PDT) In-Reply-To: <83h7ef1d3w.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Sep 2021 18:27:31 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=rpluim@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, 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.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:275159 Archived-At: >>>>> On Mon, 20 Sep 2021 18:27:31 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Cc: kevin.legouguec@gmail.com, emacs-devel@gnu.org >> Date: Mon, 20 Sep 2021 15:50:49 +0200 >>=20 Eli> Btw, we could perhaps tweak the composition code to produce emoji Eli> representation for the likes of U+231A followed by VS-16, even tho= ugh Eli> U+231A etc. aren't in the emoji script. Remind me about this after Eli> the basic emoji composition code is installed, and let's see if it Eli> could be improved for those sequences. >>=20 >> ? U+231A has Emoji_Presentation=3DYes. Eli> Well, bad example. U+21AA is better. OK >> In any case, don=CA=BCt you need at least one codepoint to be using = the >> emoji font to do that? (Noto Color Emoji doesn=CA=BCt have a glyph f= or >> VS-16, so that can=CA=BCt be used) Eli> My idea is to trick the font_range function, which verifies that t= he Eli> sequence can be composed using a single font, to use an Emoji font Eli> when it sees something followed by a variation selector, instead of Eli> the font for the first character in the sequence. For that, the r= ules Eli> for Emoji sequences in composition-function-table should be anchor= ed Eli> on the VS-n codepoints (which I think is a good idea regardless). We=CA=BCd have to raise the lookback limit for composition-function-table rules higher than 3 (maybe only to 4). I guess it reduces the number of entries in composition-function-table, but then you end up with a lot of rules for eg VS-16. emoji-zwj-sequences.txt would result in about 840 rules, with a lot of redundancy, which could be reduced, but I think that can wait until after the zwj sequence stuff goes in. Robert --=20