From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Android input methods Date: Tue, 14 Feb 2023 09:57:29 +0800 Message-ID: <87r0utuhyu.fsf@yahoo.com> References: <83r0uvghw7.fsf@gnu.org> <87k00nyo60.fsf@yahoo.com> <83ilg7gdjj.fsf@gnu.org> <87bklyzyyj.fsf_-_@yahoo.com> <83a61iho6r.fsf@gnu.org> <87ttzqxq3f.fsf@yahoo.com> <83cz6dfzet.fsf@gnu.org> <87edqtws0w.fsf@yahoo.com> <835yc5fvd1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40583"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 14 03:00:42 2023 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 1pRkcb-000ARs-VP for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Feb 2023 03:00:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRkbx-0003De-Ro; Mon, 13 Feb 2023 21:00:01 -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 1pRkbv-0003DB-QO for emacs-devel@gnu.org; Mon, 13 Feb 2023 20:59:59 -0500 Original-Received: from sonic302-47.consmr.mail.ne1.yahoo.com ([66.163.186.173]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRkbu-0004xd-4U for emacs-devel@gnu.org; Mon, 13 Feb 2023 20:59:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676339996; bh=g0sxyG5M4Vxgqllk5RCv+JMz8ml3sj1GZ71QXRuNn7E=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=avKM4q59XCkc/r16GwV3dAXUkGit45yw1ql/aupsuwIVszFGZmJE6QrCjDjNZt/82nzCxSU606vMRcjI2pjyGhVfebOSo9KRpW8L5IWj6DyEqtW1uww7oQpeoFJNNri31Ko1HflBn7fr+Bbsdab+Yp7z8oQaJvWYCrEJKGt7jD2w8QaAYwsFGI41Xq5JW/QjBWiATyqKKaqCumA4qjBOooW3plnnCfYtFftovbluWaClA7N5nsgIYvVBORZ755UJok5hAlCrH+hnJe7zOPgqfcHGlaG5CNbVrStdpM4LnDQmuJahDW1LAmRJw4N++35+MEmHrFM6GRAqZiM6s/mo/w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676339996; bh=zrkuts++gFogCRAgoXfphDCJ20RQd6WvkbbZy4H5TPW=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=BlrzXHR8Gxr7OFtLO3OuTKfaAqHdaqgVyVUCrdRJ/dtDEQ6NzHevxG1ddA2sirg31OIuiB4XTImwABlDp2Hz6tCCy8/3hiMPNCipHhrveGHDJ6BPJii6arfbinje81TNUAPr41ISdV2Oon7O8W8wq0FpDjdt7jiuzbg4UJLB7kLyK9eJ0GVvHWzORlkCRz0fbLmZ4ngTUDNa4xNZWpKkQp3y6bn7E1MAUZcw5Gd+MKCO9NIL+3Ltnzve+UE2ksgqdYXfBqE6SbYxOJvopi4YDeibIGDKWk2tjcC9B9lpCqEGxQvWY7G+on0Zkt8oWuE8aaEM/Wha+USm8uywvACixw== X-YMail-OSG: wWHXKwwVM1nP8MalBe_wkujejQHz2NgnE7tFJ1a72oM4bNAJfh8IXvyWrTf9Xsx hN79QvcdIDrGixMceSHfd0yAOKWOuxhQoB2CWYTVZvpyg95iwvVnHcOVpl.uMLo2S.qFONRwS9Oi gU6ShdQHIqxP_KV7nNgi4ctfAqbITC3u2sEURJ4WdP6h3Sflk_UYfOXjOvR7YQ7FOF7sHWtbtESJ rGbrMeTJrKF4EUfyZgf.hv6nZKn6t4LMLAih5tS8l.wdpV8Pw7eYy1zE1b9IFcg2M5cSKEkBNpcS ucayOMfDCPdpSco5JcztdKNISBm8JAM.kY8jOwYt9ztS8e.v8HuYYOWZ9dGo8bwZbiN6MuzY8Of8 jjDnGZ9ULilf22npFCp6stZkMYIubyb.9Ay3Lc1HkYTwfGurIEB__2nL7DJc27UxsuiB.dqabZTX pL_VbRWLuHJL9zT6FCahRmO5ziFdJSIKWVr223AIPyZdTXG_4Bi70BdU0kUwU3DRm78JVcq1KtoA JqZscLF96rmO2YKP78VMuIdJwda0A5Ij64U32J.voV19DzPywLNzSq9aNfIW3MzYhXLVYPZj.y2W QzGocve1.AEhL3rnj32PUoTIeAs9C5GEPX3v8ksiTqhvSRNfpPqzCHeEBgXLd.NDXyoj3VMJAjVO khjxzdrGIDrzrG3ulABLdUcTX72lYICvc7ZVYAw5gQjIuNdYN5kYwWGTHiz_1rfL1imLpLcrEWvX lL45gyqekB6MG.FpWjcPqbbRoNgbPqYTlHExcBbimiGdH26y0OASEdsQjUKkMZ_iq5G5LqqxrJsw LwzVpNkoRFxBVYqRCPp3jfyJA5SeuTtld_J2C4nZHU X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Tue, 14 Feb 2023 01:59:56 +0000 Original-Received: by hermes--production-sg3-9fc5746c8-z4gft (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0a0d90f4845f8676961c575b861d36fd; Tue, 14 Feb 2023 01:57:52 +0000 (UTC) In-Reply-To: <835yc5fvd1.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Feb 2023 17:17:14 +0200") X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.173; envelope-from=luangruo@yahoo.com; helo=sonic302-47.consmr.mail.ne1.yahoo.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303250 Archived-At: Eli Zaretskii writes: > These commands don't insert text, so I'm unsure how they are > relevant. The "mmm" is not inserted into a buffer, it is a series of > 3 commands. Right, but if you type ``mmm'' while the IME is active, then the IME will try to insert ``mmm'' as text. > This feature should be turned off. It is incompatible with Emacs. We > request users to turn off bidi reordering of terminal emulators for > similar reasons. There's no way we can or should allow external > features do stuff like that, because they will never be as flexible as > Emacs features. > > At the very least we should disable them now. Maybe later we will > find less drastic solutions (or maybe the input methods will grow up > and become friendlier to Emacs). That is possible, but we will have to ask users to do that. > Turn this off. OK, we already try, but there is no guarantee that this will work. > I don't believe this is so easy. We'd need a more flexible control on > when the input method is enabled and disabled. Just the major mode is > not fine-grained enough. Any ideas there? I mean, under what precise circumstances should Emacs enable and/or disable the input method? > We already have the machinery to replace un-encodable characters with > a fixed character while encoding, but my point is that we will need to > encode; we cannot just memcpy. So this will be slower than just > copying, but not terribly so. > > Btw, are you saying that the text should be encoded in UTF-16? Is > that because it's Java? Yes. And instead of code points or bytes, the positions given to Emacs are in 16-bit short units, so to convert them to multibyte character positions in Emacs without stripping out both unencodable characters and those that require surrogate pairs will be nasty.