GNU bug report logs - #65816
27.2, 28.2, 29.2; Quail-based Japanese conversion error

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; Reported by: Hippo Man <hippoman@HIDDEN>; merged with #65815; dated Fri, 8 Sep 2023 05:24:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 65815 65816. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 65816) by debbugs.gnu.org; 8 Sep 2023 06:49:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 08 02:49:59 2023
Received: from localhost ([127.0.0.1]:42040 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qeVJX-0003UO-HA
	for submit <at> debbugs.gnu.org; Fri, 08 Sep 2023 02:49:59 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56886)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1qeVJV-0003U8-QN; Fri, 08 Sep 2023 02:49:58 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qeVJO-0003pq-B1; Fri, 08 Sep 2023 02:49:50 -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=IYLDcZ+97ma3aCDG4qhGLzgUJ3u/utRb6WINHx1qsIA=; b=hPbxPAe+6fflTAlCfnAZ
 ZfaTZIjG7N+c6LLrMKj/mbrMKcHefAedhKis2RHhl2bWN6C7QXgLE3ABng7L/K4fG1rVUFhyislkR
 CffzdZHdExDGdN0vYrjA0VssGN62pYZGL/KLk4U1i2T5ypKkK+SLuyclYSYEuYfvAqSdzRmB7rwfh
 /gSHs73th/zTh95toYBSYSonWWA+CKBRTnM87D09RR1qHPkGxJwNSLyz7z9h5CR3y8iCSwSCmQnOP
 pSztCpJoU8O8+1FLCmL1dqXJrJKnwchYNzOsQ2MhHe1MaPWUe9JNNWViIJa6yNVvniGnC0XcEBsaC
 YQWgnCo65Kmyng==;
Date: Fri, 08 Sep 2023 09:49:38 +0300
Message-Id: <83edj9xipp.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Hippo Man <hippoman@HIDDEN>
In-Reply-To: <CAK1LP6=eOLBhLYQ=YLckgmmnuDakH4THqxerTBfk+i6EVxyEug@HIDDEN>
 (message from Hippo Man on Thu, 7 Sep 2023 23:58:33 -0400)
Subject: Re: bug#65816: 27.2, 28.2, 29.2; Quail-based Japanese conversion error
References: <CAK1LP6=eOLBhLYQ=YLckgmmnuDakH4THqxerTBfk+i6EVxyEug@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: 65816
Cc: 65816 <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 (---)

merge 65816 65815
thanks

> From: Hippo Man <hippoman@HIDDEN>
> Date: Thu, 7 Sep 2023 23:58:33 -0400
> 
> The following error that I am reporting appears in emacs-27.2, emacs-28.2, and emacs-29.2.
> 
> This error report is written under the assumption that the reader is familiar with Quail
> and with Japanese syllabary.
> 
> When using (set-language-environment "Japanese") and (set-input-method "japanese") with Quail,
> when we type romaji, the displayed text is correctly converted to hiragana. If we want to
> convert the hiragana to katakana, we just follow the hiragana with "K", and the text display
> is correctly toggled to katakana. Typing "K" again will correctly toggle back to hiragana.
> 
> In most cases, this indeed works correctly. For example, typing "hoteru" correctly yields
> the hiragana "ほてる", and then following that with "K" switches it correctly to the katakana
> "ホテル". And then following that again with "K" correctly toggles it back to "ほてる".
> 
> However, when the word contains an embedded hyphen, the "K" toggling does not work properly.
> 
> For example, typing "ko-to" correctly yields the hiragana "こーと", and then typing "K"
> correctly converts it to the katakana "コート". But then, if I type "K" again, the word does
> not get converted back to hiragana, and the katakana form remains.
> 
> This erroneous behavior occurs with all katakana text which contains one or more embedded
> hyphens. The existence of a hyphen anywhere in the text prevents that text from being
> toggled from katakana to hiragana when "K" is typed.
> 
> Can anyone suggest a way that this incorrect behavior can be fixed?

You have reported 10 minutes ago an identical bug report with a
different email address.  I'm merging the two bugs.




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

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


Received: (at submit) by debbugs.gnu.org; 8 Sep 2023 05:23:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 08 01:23:05 2023
Received: from localhost ([127.0.0.1]:41935 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qeTxQ-00011c-Bf
	for submit <at> debbugs.gnu.org; Fri, 08 Sep 2023 01:23:05 -0400
Received: from lists.gnu.org ([2001:470:142::17]:47242)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hippoman@HIDDEN>) id 1qeSe0-00075H-Q1
 for submit <at> debbugs.gnu.org; Thu, 07 Sep 2023 23:58:57 -0400
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 <hippoman@HIDDEN>)
 id 1qeSdt-0003On-9W
 for bug-gnu-emacs@HIDDEN; Thu, 07 Sep 2023 23:58:49 -0400
Received: from mail-yw1-x1136.google.com ([2607:f8b0:4864:20::1136])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <hippoman@HIDDEN>)
 id 1qeSdq-0006qj-Jg
 for bug-gnu-emacs@HIDDEN; Thu, 07 Sep 2023 23:58:48 -0400
Received: by mail-yw1-x1136.google.com with SMTP id
 00721157ae682-58dfe2d5b9aso22439667b3.1
 for <bug-gnu-emacs@HIDDEN>; Thu, 07 Sep 2023 20:58:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1694145525; x=1694750325; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=BM1Qmq4NjvaaPDNPF/s8fzW00o8bWGDOFrWKxEg/YcM=;
 b=J2sii0fwumYJaRtihYaMILkY+n2GEfk+k9SGjm9RVPyF8CKdwKOp0l2ID4ISlag4wl
 8eHmGIK42QyfaaUsgF36i4tPskBiV4yU+Qc8YXJDgwrjBzUsswjpELdTKjqEsgfVkUXy
 pHElvwKRzU7JLSx8tFKtuO8OVQ2F+uTamnh4oMK/PyCgtysbXIHigUIs4xMJus9sXh/q
 GOqtwbjlNDxR/s8MnCQvOLGCItodHVKFQwnnIrVNmc42BmbWDYsbiZzCgRT1nycUxFMq
 aATnT3/Ax6fkg/V788m2VS0QHf6ZJSHg94mIaDVxVpvdWv8DcrdvN1s18/1OKg8A3khw
 wlYw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1694145525; x=1694750325;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=BM1Qmq4NjvaaPDNPF/s8fzW00o8bWGDOFrWKxEg/YcM=;
 b=ZOwAqDPmCj8dEg7x7HpPuRuwCtbNMlI/CW4joHFp8nLBLgWR+yO/lSK3sIqCcCGNIs
 Sk34Yiy2QfWdZH1HERK+wbjCcPYcGcDZQ0dXRi8FxOtCthgC5Zj84O2hMfg35VfwfLWP
 G9ea3Na2Ms7BMU6WJC0VrQVpqzxYEBMqyRrYNyPIk1HA717T76HwOX+r+Q2Ci2oE3H0u
 n9rbeoqIW7xJzUeghDLe3UEUXDGSeuK2U+rozNyOt1m65bN+inolLus5kr0vSCyOats0
 C/otuJz1hsiJ+X5+tL62kE92AUaBvvVpavMNijqIO/iE2ZtJTdJTqeiaRK6lGbDVsWm0
 5/EQ==
X-Gm-Message-State: AOJu0YywhtArnnke0bs0dtOlEFHYAgMD3awM6qy4qaFNUBrEJoTOqWRZ
 eECHBgRQSTlT1Nkv/jo8j6VpciSpeLx4ikK+3HmND4p6g2M=
X-Google-Smtp-Source: AGHT+IHCS+XeZXlchBkgOAWkUcT7R6SRjABjV/8J0DhCurc/tjpjeeK8RKHRu1nHPWFlSHrRvXTAv0Rm/KSid4QaN/Q=
X-Received: by 2002:a0d:d5c4:0:b0:583:9db5:7e89 with SMTP id
 x187-20020a0dd5c4000000b005839db57e89mr1753686ywd.24.1694145524725; Thu, 07
 Sep 2023 20:58:44 -0700 (PDT)
MIME-Version: 1.0
From: Hippo Man <hippoman@HIDDEN>
Date: Thu, 7 Sep 2023 23:58:33 -0400
Message-ID: <CAK1LP6=eOLBhLYQ=YLckgmmnuDakH4THqxerTBfk+i6EVxyEug@HIDDEN>
Subject: 27.2, 28.2, 29.2; Quail-based Japanese conversion error
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="00000000000032fcca0604d0fe33"
Received-SPF: pass client-ip=2607:f8b0:4864:20::1136;
 envelope-from=hippoman@HIDDEN; helo=mail-yw1-x1136.google.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,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 08 Sep 2023 01:22:59 -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: -0.0 (/)

--00000000000032fcca0604d0fe33
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

The following error that I am reporting appears in emacs-27.2,
emacs-28.2, and emacs-29.2.

This error report is written under the assumption that the reader is
familiar with Quail
and with Japanese syllabary.

When using (set-language-environment "Japanese") and (set-input-method
"japanese") with Quail,
when we type romaji, the displayed text is correctly converted to
hiragana. If we want to
convert the hiragana to katakana, we just follow the hiragana with
"K", and the text display
is correctly toggled to katakana. Typing "K" again will correctly
toggle back to hiragana.

In most cases, this indeed works correctly. For example, typing
"hoteru" correctly yields
the hiragana "=E3=81=BB=E3=81=A6=E3=82=8B", and then following that with "K=
" switches it
correctly to the katakana
"=E3=83=9B=E3=83=86=E3=83=AB". And then following that again with "K" corre=
ctly toggles it
back to "=E3=81=BB=E3=81=A6=E3=82=8B".

However, when the word contains an embedded hyphen, the "K" toggling
does not work properly.

For example, typing "ko-to" correctly yields the hiragana "=E3=81=93=E3=83=
=BC=E3=81=A8", and
then typing "K"
correctly converts it to the katakana "=E3=82=B3=E3=83=BC=E3=83=88". But th=
en, if I type "K"
again, the word does
not get converted back to hiragana, and the katakana form remains.

This erroneous behavior occurs with all katakana text which contains
one or more embedded
hyphens. The existence of a hyphen anywhere in the text prevents that
text from being
toggled from katakana to hiragana when "K" is typed.

Can anyone suggest a way that this incorrect behavior can be fixed?

Thank you in advance.

--=20
 hippoman@HIDDEN
 Take a hippopotamus to lunch today.

    .---------, 0__0
   /           (  oo'---,
  /                    oo\
 ,\                      |
 | \                ,=3D__/
    \              /
    /  /------|  /|
    |__|-'    |__|'

--00000000000032fcca0604d0fe33
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e"><br clear=3D"all"></div><div><div dir=3D"ltr" class=3D"gmail_signature" =
data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><pre class=3D"gmail-moz=
-quote-pre">The following error that I am reporting appears in emacs-27.2, =
emacs-28.2, and emacs-29.2.

This <span class=3D"gmail_default" style=3D"font-family:monospace">error re=
port</span> is written under the assumption that the reader is familiar wit=
h Quail<br>and with<span class=3D"gmail_default" style=3D"font-family:monos=
pace"> </span>Japanese syllabary.

When using <span class=3D"gmail_default" style=3D"font-family:monospace"></=
span>(set-language-environment &quot;Japanese&quot;) and (set-input-method =
&quot;japanese&quot;) with Quail,<br>when we type romaji, the displayed tex=
t is correctly converted to hiragana. If we want to<br>convert the hiragana=
 to katakana, we just follow the hiragana with &quot;K&quot;, and the text =
display<br>is correctly toggled to katakana. Typing &quot;K&quot; again wil=
l correctly toggle back to hiragana.

In most cases, this indeed works correctly. For example, typing &quot;hoter=
u&quot; correctly yields<br>the hiragana &quot;=E3=81=BB=E3=81=A6=E3=82=8B&=
quot;, and then following that with &quot;K&quot; switches it correctly to =
the katakana<br>&quot;=E3=83=9B=E3=83=86=E3=83=AB&quot;. And then following=
 that again with &quot;K&quot; correctly toggles it back to &quot;=E3=81=BB=
=E3=81=A6=E3=82=8B&quot;.

However, when the word contains an embedded hyphen, the &quot;K&quot; toggl=
ing does not work properly.

For example, typing &quot;ko-to&quot; correctly yields the hiragana &quot;=
=E3=81=93=E3=83=BC=E3=81=A8&quot;, and then typing &quot;K&quot;<br>correct=
ly converts it to the katakana &quot;=E3=82=B3=E3=83=BC=E3=83=88&quot;<span=
 class=3D"gmail_default" style=3D"font-family:monospace"></span>. But then,=
 if I type &quot;K&quot; again, the word does<br>not get converted back to =
hiragana, and the katakana form remains.

This erroneous behavior occurs with all katakana text which contains one or=
 more embedded<br>hyphens. The existence of a hyphen anywhere in the text p=
revents that text from being<br>toggled from katakana to hiragana when &quo=
t;K&quot; is typed.

Can anyone suggest a way that this incorrect behavior can be fixed?

Thank you in advance.
</pre><div><span style=3D"font-family:monospace">-- <br>=C2=A0<a href=3D"ma=
ilto:hippoman@HIDDEN" target=3D"_blank">hippoman@HIDDEN</a><br>=C2=A0=
Take a hippopotamus to lunch today.</span></div><div><span style=3D"font-fa=
mily:monospace"><br>=C2=A0=C2=A0=C2=A0 .---------, 0__0<br>=C2=A0=C2=A0 /=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (=C2=A0 oo&#39=
;---,<br>=C2=A0 /=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 oo\<br>=C2=A0,\=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |<br>=C2=A0| \=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 ,=3D__/<br>=C2=A0=C2=A0=C2=A0 \=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /<br>=C2=A0=C2=A0=C2=A0 /=C2=A0 =
/------|=C2=A0 /|<br>=C2=A0=C2=A0=C2=A0 |__|-&#39;=C2=A0=C2=A0=C2=A0 |__|&#=
39;<br></span><br></div></div></div></div></div>

--00000000000032fcca0604d0fe33--




Acknowledgement sent to Hippo Man <hippoman@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#65816; 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: Fri, 8 Sep 2023 07:00:02 UTC

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