unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Hippo Man <hippoman@gmail.com>
To: 65816@debbugs.gnu.org
Subject: bug#65816: 27.2, 28.2, 29.2; Quail-based Japanese conversion error
Date: Thu, 7 Sep 2023 23:58:33 -0400	[thread overview]
Message-ID: <CAK1LP6=eOLBhLYQ=YLckgmmnuDakH4THqxerTBfk+i6EVxyEug@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1838 bytes --]

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?

Thank you in advance.

-- 
 hippoman@gmail.com
 Take a hippopotamus to lunch today.

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

[-- Attachment #2: Type: text/html, Size: 2826 bytes --]

             reply	other threads:[~2023-09-08  3:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-08  3:58 Hippo Man [this message]
2023-09-08  6:49 ` bug#65816: 27.2, 28.2, 29.2; Quail-based Japanese conversion error Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK1LP6=eOLBhLYQ=YLckgmmnuDakH4THqxerTBfk+i6EVxyEug@mail.gmail.com' \
    --to=hippoman@gmail.com \
    --cc=65816@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).