From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Entering emojis Date: Thu, 28 Oct 2021 13:08:53 +0200 Message-ID: <871r4576ey.fsf@gnus.org> References: <87cznths5j.fsf@gnus.org> <87ilxi7531.fsf@gnus.org> <875yth7bjr.fsf@gnus.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="24577"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 28 13:10:05 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 1mg3IK-0006DV-EF for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Oct 2021 13:10:04 +0200 Original-Received: from localhost ([::1]:54916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mg3II-0003Gf-Bb for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Oct 2021 07:10:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg3HK-0002GE-EL for emacs-devel@gnu.org; Thu, 28 Oct 2021 07:09:02 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:51390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg3HI-0000GP-Ql for emacs-devel@gnu.org; Thu, 28 Oct 2021 07:09:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=r7xi3AGOPJzmMZ8AXTiTCL6qwmWbqoWwbPp593hrFck=; b=JV19TBIvYBrkYJt8TOXnLJRK8C t/N4/N+I0LolTiCsOVpa9XFqyFuTrWy2VZfqFNJmtdzxyTqE3neLIwPg+CgTLw1Hhw1VsyQmO7MGf pKUWEf5X8Q30GkY6hVKufGcEXJ2TYRH0df82t6Z6TA1GePVuU9qiM5gl98/u6k5g1L0E=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mg3HC-0006C0-Li; Thu, 28 Oct 2021 13:08:58 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXk284dFxavnJOM dm5bQz6Yg3v///+dUZfgAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UKHAsAM2mnXuAAAAGbSURBVDjL lZO7dsIwDIZd2gfAwd1bE+8lUva6FjuHJO//KtXFhgBlqBZz9EW3X8I59+If7MOJfT6Cr2dgqyA/ gvdnIDwDXsEffm1rs3a06K8VyOQ9ARj6ZvAqP3bZw7BQ9oFy6/dNuiAfjjEihRxQQFeBshhhgH6I ErJzJhWFeYBzZFuiglDBSOo1O9RBWKoQ9+MdOJmG5tnYk2u/8sEqUQVbk+pn5d8r2Bk4iqOBpq8+ 7Ei1xtz01WeQiE0SQBWYhpyr/0l0Yn4LgnhISmEDrwYkV5FME1ZgGoYio6RpvBZvYCI2CTzcAK6O BYH9qW63nVuJCUbgdD3dgsA1VDG8A02umcgrcn07vkGFIkJuQsC+nZROgaEAwcizuPlybIMU4MuC 5cw7uaSSWdhfRhmSl2IgtxMiWJZFhTFQO5EAaw7J2s3aCQcUgGk8x4Sgm+WDzcLqbB1vM7qa+yAD lBAEdpLMESDnzv1MPR4LEd/9uwLZMuuNSDOyPzDoGkgmnP01gr+CuAfkgWGcYLrcsLMn3RzpGgxP wKP9H/wCro6L3ezBcMcAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMTAtMjhUMTE6MDA6NTErMDA6 MDB38gvfAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEwLTI4VDExOjAwOjUxKzAwOjAwBq+zYwAA AABJRU5ErkJggg== X-Now-Playing: Heidi Berry's _Miracle_: "Darkness, Darkness" In-Reply-To: (Stefan Kangas's message of "Thu, 28 Oct 2021 06:33:55 -0400") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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:278085 Archived-At: Stefan Kangas writes: > The `M-x emoji-insert' interface here is strictly better than what I see > on my phone (which is presumably state of the art). :-) > Perhaps we could add arrow keys/TAB/C-n/C-p/etc.+RET navigation, > though that would just be the cherry on top. In addition to the letter input thing? > I did notice that there is a noticeable delay when using the command for > the first time. Is that expected? Funny you should ask -- I've just finished (I think) making the Emacs build process output the resulting structures to international/emoji-labels.el, so that we don't have to parse the file run-time. And this can also be used by `describe-char' (or something else) to give the user the name of the displayed grapheme cluster: (gethash "=F0=9F=87=BA=F0=9F=87=BE" emoji--names) =3D> "flag: Uruguay" I haven't hooked that up yet, though -- it should only load that file if we're describing an emoji grapheme cluster. So I guess the thing to test is whether script is `emoji'? > In addition to "C-g", perhaps it would be good to give a standard key > like "q" the meaning "go back to the previous screen" and maybe "Q" to > mean "I changed my mind, close everything and insert no emoji"? This is the first time I've used transient.el -- do transients normally bind `q'? > One final observation is that it would be nice if we could click the > emojis to insert them, on all screens (including the overview ones). Yes, that's a good idea. I don't know whether Transient supports that, though. Anybody know, and if it does, what incantation do I have to use to make that work? > BTW, when I insert this emoji "=F0=9F=A7=99=F0=9F=8F=BF=E2=80=8D=E2=99=80= =EF=B8=8F" and then hit DEL repeatedly, the > buffer text first turns into "=F0=9F=A7=99=F0=9F=8F=BF=E2=80=8D=E2=99=80"= and then "=F0=9F=A7=99=F0=9F=8F=BF", and then "=F0=9F=A7=99=F0=9F=8F=BF" > and then "=F0=9F=A7=99". Is that a known issue? That's how it's supposed to work, I think? It's a grapheme cluster consisting of three Unicode characters (and two zero-width joiners). --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no