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

Previous Next

Package: emacs;

Reported by: Lloyd Zusman <hippoman <at> potamus.net>

Date: Fri, 8 Sep 2023 05:24:01 UTC

Severity: normal

Merged with 65816

Found in version 27.2

To reply to this bug, email your comments to 65815 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#65815; Package emacs. (Fri, 08 Sep 2023 05:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lloyd Zusman <hippoman <at> potamus.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 08 Sep 2023 05:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lloyd Zusman <hippoman <at> potamus.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.2, 28.2, 29.2; Quail-based Japanese conversion error
Date: Thu, 07 Sep 2023 23:49:57 -0400
The following error that I am reporting appears in emacs-27.2, emacs-28.2, and emacs-29.2.

This question 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?

Thank you in advance.


-- 
 Lloyd Zusman
 hippoman <at> potamus.net

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






Merged 65815 65816. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 08 Sep 2023 06:50:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65815; Package emacs. (Sun, 10 Sep 2023 01:36:01 GMT) Full text and rfc822 format available.

Message #10 received at 65815 <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: 65815 <at> debbugs.gnu.org
Subject: Re: bug#65815: 27.2, 28.2, 29.2; Quail-based Japanese conversion error
Date: Sun, 10 Sep 2023 13:34:56 +1200
There is debugging for this at:

https://emacs.stackexchange.com/a/78769

I don't know whether the correct solution is for the
code to test that the region contains *solely* Hiragana
characters, or if it should instead look for any Hiragana
character which is not also a Katakana character (but
otherwise allow non-Hiragana characters in the region).

I'm guessing that one of those two approaches would be
the way to go (but I don't understand Japanese text, and
so this is only a guess).


-Phil





This bug report was last modified 1 year and 283 days ago.

Previous Next


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