GNU bug report logs - #51638
26.1; Writing Romanian Characters

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: crstml@HIDDEN; dated Sat, 6 Nov 2021 15:39:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 51638 <at> debbugs.gnu.org:


Received: (at 51638) by debbugs.gnu.org; 7 Nov 2021 10:49:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 07 05:49:19 2021
Received: from localhost ([127.0.0.1]:51856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mjfjj-000399-DC
	for submit <at> debbugs.gnu.org; Sun, 07 Nov 2021 05:49:19 -0500
Received: from eggs.gnu.org ([209.51.188.92]:52582)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mjfjh-00038x-DF
 for 51638 <at> debbugs.gnu.org; Sun, 07 Nov 2021 05:49:18 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:41332)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mjfjb-0005Eu-Sr; Sun, 07 Nov 2021 05:49:11 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=VNyZYE4rUvk7y91XEEwP9RCOXt3YtGx6sCPLIYf41qs=; b=YpjubBFZ4swezK8rRoQI
 S+F3/yx3RYJKh6uL4L8ruPe2YWdmkwFB6TDINXO2LeU4O6tXl+xu8oMxhX2ovAl79PUkGX4VFybn5
 NnTLhWUjsMtIKx1XJS3hFONV+eJlES49IgJLBkgDbp6kTfGNm+7w0SMvOLvd4yWQKBN/Ky7FEcicW
 zrbDCUdCJ40VroOvqkN2Bu2qBejdrH4qdNLodU2qWXCv53rYy2scgrPqTGlVN/+rNNWVWAfFM/oUu
 M1o3WzqP1Wx1pnJtJWXIAsZiarLHUu00xamjmYpoHyArdkTDAnYWIIV4+sYGHEWSoDp2WZziPpgHx
 cwP+iwk/YWaWRQ==;
Received: from [87.69.77.57] (port=2274 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mjfjb-0005N2-Ef; Sun, 07 Nov 2021 05:49:11 -0500
Date: Sun, 07 Nov 2021 12:48:59 +0200
Message-Id: <831r3s9r6s.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: crstml@HIDDEN
In-Reply-To: <a0d93a65-7586-cb2e-4e41-d0892fd8585d@HIDDEN>
 (crstml@HIDDEN)
Subject: Re: bug#51638: 26.1; Writing Romanian Characters
References: <82ab2ed1-86c3-e8e8-3f1f-7a9a1505729e@HIDDEN>
 <83zgqh9pjo.fsf@HIDDEN> <a0d93a65-7586-cb2e-4e41-d0892fd8585d@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51638
Cc: 51638 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 51638 <at> debbugs.gnu.org
> From: crstml@HIDDEN
> Date: Sun, 7 Nov 2021 02:03:12 +0100
> 
> 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

Thanks, I installed that.

> 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.

That's how Emacs input methods work when there's more than one
translation of what you typed.

> 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.

Patches to add such an language-environment will be welcome.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51638; Package emacs. Full text available.

Message received at 51638 <at> debbugs.gnu.org:


Received: (at 51638) by debbugs.gnu.org; 7 Nov 2021 06:23:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 07 01:23:29 2021
Received: from localhost ([127.0.0.1]:51568 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mjbaP-0004yl-EB
	for submit <at> debbugs.gnu.org; Sun, 07 Nov 2021 01:23:29 -0500
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 <crstml@HIDDEN>) id 1mjWad-0004rB-2t
 for 51638 <at> debbugs.gnu.org; Sat, 06 Nov 2021 21:03:20 -0400
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
Subject: Re: bug#51638: 26.1; Writing Romanian Characters
To: Eli Zaretskii <eliz@HIDDEN>
References: <82ab2ed1-86c3-e8e8-3f1f-7a9a1505729e@HIDDEN>
 <83zgqh9pjo.fsf@HIDDEN>
From: crstml@HIDDEN
Message-ID: <a0d93a65-7586-cb2e-4e41-d0892fd8585d@HIDDEN>
Date: Sun, 7 Nov 2021 02:03:12 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Firefox/60.0 SeaMonkey/2.53.3
MIME-Version: 1.0
In-Reply-To: <83zgqh9pjo.fsf@HIDDEN>
Content-Type: multipart/mixed; boundary="------------73C95C1874CE4EF5CC155F05"
X-CMAE-Envelope: MS4xfGCaBSgrZCy6esMoPGyLQGli+qLQW/Bx0GPijQnkG+I8z2SqWyouMnxUdfovxOcwoGVmXA+SWTiIvH1rWpAAgvlkU+LO6fuL1vdQqknlevAVhkskB/yP
 29xu4y+zOM2INheRO2/tVorcjMY+hLnHlZIzazlmN084ZdED9dZkclQqQ+z+8E79ROF5WhuPBy1annO9aut0vGUpLaeUaj0GF+U=
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: 51638
X-Mailman-Approved-At: Sun, 07 Nov 2021 01:23:24 -0500
Cc: 51638 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  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 [...] 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [213.209.10.33 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                             [213.209.10.33 listed in wl.mailspike.net]
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (crstml[at]libero.it)
  0.0 T_SPF_TEMPERROR        SPF: test of record failed (temperror)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  1.0 PP_MIME_FAKE_ASCII_TEXT BODY: MIME text/plain claims to be ASCII
                              but isn't
  1.3 FORGED_SPF_HELO        No description available.
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager
 -0.1 NICE_REPLY_A           Looks like a legit reply (A)

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--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51638; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 51638 <at> debbugs.gnu.org:


Received: (at 51638) by debbugs.gnu.org; 6 Nov 2021 17:12:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 06 13:12:35 2021
Received: from localhost ([127.0.0.1]:50354 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mjPF5-00028U-12
	for submit <at> debbugs.gnu.org; Sat, 06 Nov 2021 13:12:35 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35022)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mjPF3-00028E-0o
 for 51638 <at> debbugs.gnu.org; Sat, 06 Nov 2021 13:12:33 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:48636)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mjPEx-0004Qs-GB; Sat, 06 Nov 2021 13:12:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=bWZ+zTM+NS5B3zyj505jJMv4tumP0ryAXKxvQk+L5+E=; b=XdbzO55FYDmzuRaHTWVF
 zSVEaUFeR78sye5jp1IyhJgSjthHGEjH+klHJl1W03NMyexYsDlqLt0jAxOQ3BTP+YLkhrBL6kX7/
 iDGMqe9kFLFXiAMPLrkNwlhxZ2Bbur8PDbR4HEQkLYh9lb7drez8+7KXtFFi2dXR1ck9JEQ42QkVF
 1UCV3P2C90NZ5/EToPfEYA2IzKtUwsnfygdBipqyqUyuvSKNGqrz+k8yTA2FKTUY/uzW7Yeb0fVsW
 KSL73QpsZgqI34CoPOUKwcWP5+a7rpXRVb2zCJnXfmUsHbL0kwYatRNu9/LuD4IdrKwusPISCfqhO
 qkqF/ZkcFHaGSQ==;
Received: from [87.69.77.57] (port=4841 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mjPEw-0006X7-Uj; Sat, 06 Nov 2021 13:12:27 -0400
Date: Sat, 06 Nov 2021 19:12:12 +0200
Message-Id: <83zgqh9pjo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: crstml@HIDDEN
In-Reply-To: <82ab2ed1-86c3-e8e8-3f1f-7a9a1505729e@HIDDEN>
 (crstml@HIDDEN)
Subject: Re: bug#51638: 26.1; Writing Romanian Characters
References: <82ab2ed1-86c3-e8e8-3f1f-7a9a1505729e@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51638
Cc: 51638 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: crstml@HIDDEN
> Date: Sat, 6 Nov 2021 13:28:16 +0100
> 
> Sometimes I need to use Romanian characters. After I configure emacs to use
> the Romanian language environment with set-language-environment I activate
> an input method that allows me to write these characters with C-\.
> 
> I works very well. I use the latin-2-postfix input method to write
> language specific characters. But, there is problem:
> 
> In the above mentioned input method if I write
> 
>       s ,
> 
> I obtain the character
> 
>       ş (UNICODE: U+015F; ISO-8859-2/iso-latin-2: 0xBA or 186; Entity: &scedil;)
> 
> which is very similar but NOT THE SAME with the Romanian character
> 
>       ș (UNICODE: U+0219; ISO-8859-16/iso-latin-10: 0xBA or 186; Entity: &#x219;)
> 
> These are two distinct characters. Visually there is no problem reading a
> Romanian text containing U+015F instead of U+0219 but there can be problem
> when we perform character conversions or searches.
> 
> For example if I write my Romanian text with U+015F instead of U+0219 and
> save it in unicode all works well. But then if I want to convert that file
> to ISO-8859-16, the convertor will tell me that the character U+015F cannot
> be converted to the requested character set.
> 
> By giving emacs the command "describe-language-environment" in the Romanian
> environment I can see that  iso-latin-10 is listed as a Coding system appropriate
> for this environment.
> 
> My question is: Is it possible to configure emacs use iso-latin-10 instead
> of iso-8859-2 in the Romanian enviroment?

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?

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," ?ţ)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51638; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Nov 2021 15:39:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 06 11:39:02 2021
Received: from localhost ([127.0.0.1]:50182 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mjNmW-00087A-71
	for submit <at> debbugs.gnu.org; Sat, 06 Nov 2021 11:39:02 -0400
Received: from lists.gnu.org ([209.51.188.17]:32924)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <crstml@HIDDEN>) id 1mjKo2-0002yl-PY
 for submit <at> debbugs.gnu.org; Sat, 06 Nov 2021 08:28:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43640)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <crstml@HIDDEN>) id 1mjKo2-00023H-JA
 for bug-gnu-emacs@HIDDEN; Sat, 06 Nov 2021 08:28:22 -0400
Received: from smtp-33.italiaonline.it ([213.209.10.33]:45295 helo=libero.it)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <crstml@HIDDEN>) id 1mjKnz-0008O8-Qv
 for bug-gnu-emacs@HIDDEN; Sat, 06 Nov 2021 08:28:21 -0400
Received: from [192.168.1.164] ([95.245.235.6])
 by smtp-33.iol.local with ESMTPA
 id jKnwmeEOriXhljKnwmbV8p; Sat, 06 Nov 2021 13:28:16 +0100
x-libjamoibt: 1601
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021;
 t=1636201696; bh=+KR0ssnSf+oeTBXwYGKn9ScM60XwiOYXIikkK4R/B38=;
 h=From;
 b=qa3vLH6UBHt9KBz24OqPfxnvAWLqSY9sIPyodfu6e5AlornZ1YDUpeA+Kd6EqrQ4N
 jCBmIejMJJ+kmRd8l6tCz5kGdtAcZGjaZjKn/65vbq5AuphstIljhBJGpo1KiHfEir
 eNLnQyiR4m4tuAGNikpxOHqXJIGXkuF+jv6B2W0cs38qbjS/yhg2N13vaUH5c2cxzN
 Qy1gbJ8+WGct0//p8yo8h9hZgeFmp8oY4dxvSwnjsuhMg4F8f/oj8ig8+sbSPVgQyp
 ELZ8jOOviVwbMvCEz5YRxZEdZuBkZHCjTAlOgxzci2PuNFLStKO6+CWrq8gHH566pZ
 FHbcXtD/j3n7A==
X-CNFS-Analysis: v=2.4 cv=MNOlJOVl c=1 sm=1 tr=0 ts=618674e0 cx=a_exe
 a=ZClJOffKIOtHDB2Ox/ULzA==:117 a=ZClJOffKIOtHDB2Ox/ULzA==:17
 a=IkcTkHD0fZMA:10 a=aR16PxjQAAAA:8 a=mPYFDm0ZUfRqHCezGd4A:9 a=QEXdDO2ut3YA:10
 a=zbFvvTOBjyH4ze5LlUjX:22
To: bug-gnu-emacs@HIDDEN
From: crstml@HIDDEN
Subject: 26.1; Writing Romanian Characters
Message-ID: <82ab2ed1-86c3-e8e8-3f1f-7a9a1505729e@HIDDEN>
Date: Sat, 6 Nov 2021 13:28:16 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Firefox/60.0 SeaMonkey/2.53.3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-CMAE-Envelope: MS4xfFxsbNaTwLVXzP9cY9NhaGSkps9lvBbrv8XiB5xCNtuZ0OjC7bzq3yoLprI1i10W8VYE6JJzah5HGN5LSJxbCBWMfQa+23kfusiHRUjm0JR5EeOAIqLe
 3sY9Ml4AsljiS1lds5N+bPgj3m5rsyFW+llO/lVeGJaP4EEgDmYZFBiRSREnq/Sx0iO3SxYNc8O8Lw==
Received-SPF: pass client-ip=213.209.10.33; envelope-from=crstml@HIDDEN;
 helo=libero.it
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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 06 Nov 2021 11:38:53 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--text follows this line--



---- BEGIN DESCRIPTION ----
Hello all,

After asking a solution to a personal problem on the help-gnu-emacs mailing
list, I was told to submit a bug report. So here is the issue:


Sometimes I need to use Romanian characters. After I configure emacs to use
the Romanian language environment with set-language-environment I activate
an input method that allows me to write these characters with C-\.

I works very well. I use the latin-2-postfix input method to write
language specific characters. But, there is problem:

In the above mentioned input method if I write

      s ,

I obtain the character

      ş (UNICODE: U+015F; ISO-8859-2/iso-latin-2: 0xBA or 186; Entity: &scedil;)

which is very similar but NOT THE SAME with the Romanian character

      ș (UNICODE: U+0219; ISO-8859-16/iso-latin-10: 0xBA or 186; Entity: &#x219;)

These are two distinct characters. Visually there is no problem reading a
Romanian text containing U+015F instead of U+0219 but there can be problem
when we perform character conversions or searches.

For example if I write my Romanian text with U+015F instead of U+0219 and
save it in unicode all works well. But then if I want to convert that file
to ISO-8859-16, the convertor will tell me that the character U+015F cannot
be converted to the requested character set.

By giving emacs the command "describe-language-environment" in the Romanian
environment I can see that  iso-latin-10 is listed as a Coding system appropriate
for this environment.

My question is: Is it possible to configure emacs use iso-latin-10 instead
of iso-8859-2 in the Romanian enviroment?

Best regards
Cristian


---- BEGIN DESCRIPTION ----

In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
  of 2021-01-31, modified by Debian built on x86-csail-01
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description:    Debian GNU/Linux 10 (buster)

Recent messages:
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
ESC <drag-mouse-1> is undefined
Mark set [3 times]
ESC <mouse-1> is undefined

Configured using:
  'configure --build x86_64-linux-gnu --prefix=/usr
  --sharedstatedir=/var/lib --libexecdir=/usr/lib
  --localstatedir=/var/lib --infodir=/usr/share/info
  --mandir=/usr/share/man --enable-libsystemd --with-pop=yes
  --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp
  --with-sound=alsa --without-gconf --with-mailutils --build
  x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
  --libexecdir=/usr/lib --localstatedir=/var/lib
  --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd
  --with-pop=yes
  --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp
  --with-sound=alsa --without-gconf --with-mailutils --with-x=yes
  --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
  -fdebug-prefix-map=/build/emacs-9Yet8u/emacs-26.1+1=. -fstack-protector-strong
  -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
  -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2

Important settings:
   value of $LANG: en_US.UTF-8
   locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
   show-paren-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair paren
cus-start cus-load time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 104718 7893)
  (symbols 48 21356 2)
  (miscs 40 65 204)
  (strings 32 30055 1038)
  (string-bytes 1 768403)
  (vectors 16 14759)
  (vector-slots 8 497148 7484)
  (floats 8 51 188)
  (intervals 56 278 0)
  (buffers 992 11))





Acknowledgement sent to crstml@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#51638; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 23 Dec 2021 10:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.