From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: crstml@libero.it Newsgroups: gmane.emacs.bugs Subject: bug#51638: 26.1; Writing Romanian Characters Date: Sun, 7 Nov 2021 02:03:12 +0100 Message-ID: References: <82ab2ed1-86c3-e8e8-3f1f-7a9a1505729e@libero.it> <83zgqh9pjo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------73C95C1874CE4EF5CC155F05" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35270"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.3 Cc: 51638@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 07 07:24:12 2021 Return-path: Envelope-to: geb-bug-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 1mjbb8-0008wQ-LR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 07:24:10 +0100 Original-Received: from localhost ([::1]:54880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjbb6-00017L-B0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Nov 2021 01:24:09 -0500 Original-Received: from [2001:470:142:3::10] (port=37754 helo=eggs.gnu.org) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjbb0-00017C-FU for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 01:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjbb0-0007vB-6s for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 01:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjbaz-0004zj-Tn for bug-gnu-emacs@gnu.org; Sun, 07 Nov 2021 01:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: crstml@libero.it Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Nov 2021 06:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51638 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 51638-submit@debbugs.gnu.org id=B51638.163626620919151 (code B ref 51638); Sun, 07 Nov 2021 06:24:01 +0000 Original-Received: (at 51638) by debbugs.gnu.org; 7 Nov 2021 06:23:29 +0000 Original-Received: from localhost ([127.0.0.1]:51568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjbaP-0004yl-EB for submit@debbugs.gnu.org; Sun, 07 Nov 2021 01:23:29 -0500 Original-Received: from smtp-33.italiaonline.it ([213.209.10.33]:32807 helo=libero.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjWad-0004rB-2t for 51638@debbugs.gnu.org; Sat, 06 Nov 2021 21:03:20 -0400 Original-Received: from [192.168.1.164] ([95.245.235.6]) by smtp-33.iol.local with ESMTPA id jWaWmiik4iXhljWaWme4yY; Sun, 07 Nov 2021 02:03:13 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1636246993; bh=Ln8KxL6suSeEkWEu+nK9/TEBvwIs7BUXkqMXIwQOGNw=; h=From; b=bqLZdkKz1LK4vGNZWm0adhj07vLKaaP+cnVl0xoIYDbusczdizJRF+1duSfcUYgqB 8WJEIK3SjyNu/7jJPedV07Tv18r30rvxVmEm1LhqSQ3cwxOoFzEijpGQkRMJ3bmgEd 3hCKrURHKo2DMNgV/+4WHDzST9+aqa4GHIIX7a/zYUqYSzXTrELArLorDDBJl860UQ NWsPBA8wuEqGbWzjSof4KLf8iiXDGsKI322VzI+Uu2nayBqO+TZlO9oVp7ymU4RdCx tYq33s5LNK3B4uWfqWlGfDiE6yyfZ6+1wd5ImEPSb7sfdNRaQ8OM2oCFyXLmfdXPqF RD54QvAWfUukA== X-CNFS-Analysis: v=2.4 cv=MNOlJOVl c=1 sm=1 tr=0 ts=618725d1 cx=a_exe a=ZClJOffKIOtHDB2Ox/ULzA==:117 a=ZClJOffKIOtHDB2Ox/ULzA==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=toqsRnIbiDHXGvu7zF0A:9 a=QEXdDO2ut3YA:10 a=XZCXAjF0wvtfsgPhqjIA:9 a=B2y7HmGcmWMA:10 In-Reply-To: <83zgqh9pjo.fsf@gnu.org> X-CMAE-Envelope: MS4xfGCaBSgrZCy6esMoPGyLQGli+qLQW/Bx0GPijQnkG+I8z2SqWyouMnxUdfovxOcwoGVmXA+SWTiIvH1rWpAAgvlkU+LO6fuL1vdQqknlevAVhkskB/yP 29xu4y+zOM2INheRO2/tVorcjMY+hLnHlZIzazlmN084ZdED9dZkclQqQ+z+8E79ROF5WhuPBy1annO9aut0vGUpLaeUaj0GF+U= X-Mailman-Approved-At: Sun, 07 Nov 2021 01:23:24 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219201 Archived-At: This is a multi-part message in MIME format. --------------73C95C1874CE4EF5CC155F05 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Eli Zaretskii wrote: > > Please try the patch below. After applying the patch, typing "s ," > will show two variants in the echo-area, and you can choose between > them with C-f/C-b and the arrow keys. > > Is that a satisfactory solution? The solution is satisfactory for personal use. Thank you very much. But there the following issues: 1) The patch is not complete for Romanian. A solution for Romanian     should also handle the T and t letters. I send you attached a patch     based on yours that handles also these letters 2) For example if I try to type the Romanian word "Șes" then when I     try  to write the "S WITH COMMA", after I type "S" ","  and finally     a "C-f" to select my letter then best for a user would to type the     next letter  that follows in his/her word ("e" in this case). But it     doesn't work. If the user types "e" then the first choice is inserted     in the buffer. The user must select the second letter with an ENTER. 3) For general use a better solution should exist because it is not     very user  friendly to type so many characters to select your letter.     Probably a true  Romanian language environment based on     ISO-8859-16 should be provided.  The actual choice of ISO-8859-2     for the Romanian environment probably is not the best.    For example I will modify your patch to insert my ISO-8859-16    characters instead of those in ISO-LATIN-2. Because if I write Romanian    I never have to interact with the s an t variants in ISO-LATIN-2. That's all. Thank you. Cristian > diff --git a/lisp/leim/quail/latin-post.el b/lisp/leim/quail/latin-post.el > index 8329fff..78ae896 100644 > --- a/lisp/leim/quail/latin-post.el > +++ b/lisp/leim/quail/latin-post.el > @@ -215,7 +215,15 @@ > others | / | s/ -> ß > > Doubling the postfix separates the letter and postfix: e.g. a\\='\\=' -> a\\=' > -" nil t nil nil nil nil nil nil nil nil t) > +" > + '(("\C-?" . quail-delete-last-char) > + (">" . quail-next-translation) > + ("\C-f" . quail-next-translation) > + ([right] . quail-next-translation) > + ("<" . quail-prev-translation) > + ("\C-b" . quail-prev-translation) > + ([left] . quail-prev-translation)) > + t nil nil nil nil nil nil nil nil t) > > (quail-define-rules > ("A'" ?Á) > @@ -246,7 +254,7 @@ > ("R'" ?Ŕ) > ("R~" ?Ř) > ("S'" ?Ś) > - ("S," ?Ş) > + ("S," "ŞȘ") ; the second variant is for Romanian > ("S~" ?Š) > ("T," ?Ţ) > ("T~" ?Ť) > @@ -286,7 +294,7 @@ > ("r'" ?ŕ) > ("r~" ?ř) > ("s'" ?ś) > - ("s," ?ş) > + ("s," "şș") ; the second variant is for Romanian > ("s/" ?ß) > ("s~" ?š) > ("t," ?ţ) > > > --------------73C95C1874CE4EF5CC155F05 Content-Type: text/x-patch; name="patch-for-s-and-t.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="patch-for-s-and-t.patch" --- /usr/share/emacs/26.1/lisp/leim/quail/latin-post.el 2021-11-07 01:15:43.545644339 +0100 +++ with-t/latin-post.el 2021-11-07 00:51:48.914144632 +0100 @@ -215,7 +215,15 @@ others | / | s/ -> ß Doubling the postfix separates the letter and postfix: e.g. a\\='\\=' -> a\\=' -" nil t nil nil nil nil nil nil nil nil t) +" + '(("\C-?" . quail-delete-last-char) + (">" . quail-next-translation) + ("\C-f" . quail-next-translation) + ([right] . quail-next-translation) + ("<" . quail-prev-translation) + ("\C-b" . quail-prev-translation) + ([left] . quail-prev-translation)) + t nil nil nil nil nil nil nil nil t) (quail-define-rules ("A'" ?Á) @@ -246,9 +254,9 @@ ("R'" ?Ŕ) ("R~" ?Ř) ("S'" ?Ś) - ("S," ?Ş) + ("S," "ŞȘ") ; the second variant is for Romanian ("S~" ?Š) - ("T," ?Ţ) + ("T," "ŢȚ") ; the second variant is for Romanian ("T~" ?Ť) ("U'" ?Ú) ("U:" ?Ű) @@ -286,10 +294,10 @@ ("r'" ?ŕ) ("r~" ?ř) ("s'" ?ś) - ("s," ?ş) + ("s," "şș") ; the second variant is for Romanian ("s/" ?ß) ("s~" ?š) - ("t," ?ţ) + ("t," "ţț") ; the second variant is for Romanian ("t~" ?ť) ("u'" ?ú) ("u:" ?ű) --------------73C95C1874CE4EF5CC155F05--