unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65815: 27.2, 28.2, 29.2; Quail-based Japanese conversion error
@ 2023-09-08  3:49 Lloyd Zusman
  2023-09-10  1:34 ` Phil Sainty
  0 siblings, 1 reply; 2+ messages in thread
From: Lloyd Zusman @ 2023-09-08  3:49 UTC (permalink / raw)
  To: 65815


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@potamus.net

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







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#65815: 27.2, 28.2, 29.2; Quail-based Japanese conversion error
  2023-09-08  3:49 bug#65815: 27.2, 28.2, 29.2; Quail-based Japanese conversion error Lloyd Zusman
@ 2023-09-10  1:34 ` Phil Sainty
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Sainty @ 2023-09-10  1:34 UTC (permalink / raw)
  To: 65815

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






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-10  1:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-08  3:49 bug#65815: 27.2, 28.2, 29.2; Quail-based Japanese conversion error Lloyd Zusman
2023-09-10  1:34 ` Phil Sainty

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