all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "L.J. Lee" <lj.is.writing@gmail.com>
To: 43084@debbugs.gnu.org
Subject: bug#43084: toggle-korean-input-method, Korean with Dvorak
Date: Fri, 28 Aug 2020 18:41:08 +0900	[thread overview]
Message-ID: <CAOZu1pXiV+Xg2Zri1VXLi-D-x5KgG0UNAf1hD8UuhAeWUpPHrg@mail.gmail.com> (raw)

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

Hi, I hope this finds you well! I have recently started using Emacs and
wanted to alert you to a really bedevilling problem I had with Korean input
and input method toggling, how I solved it, and suggestions for improving
it.

Long story short, I use the 3-beol-sik final layout (designated as
korean-hangul3f on the emacs system) to type Korean and set it as my
default input method in
init.el.

I was  puzzled, however, that my Korean layout
reverted to the more common 2-beol-sik (korean-hangul) whenever I
pressed S-SPC. C-\ would work to switch my layout correctly, but
pressing S-SPC even once to toggle to Korean layout would change the
default layout to korean-hangul and necessitate a manual change back to
korean-hangul3f
using M-x set-input-method.

I found out through language-info-alist that S-SPC is
bound to toggle-korean-input-method, and used the function query to
track this function to korea-util.el under lisp/language.

As expected, the toggle-korean-input-method function set the
default input method to korean-hangul regardless of user settings, so I
redefined it from init.el to set the default-korean-keyboard as
korean-hangul3f. Here's the code I used:

(with-eval-after-load "language/korea-util"
(defun toggle-korean-input-method ()
"Turn on or off a Korean text input method for the current butter."
(interactive)
(if current-input-method
    (deactivate-input-method)
    (activate-input-method)
        (concat "korean-hangul3f" default-korean-keyboard)))))

This worked, but it took me a lot of time, frustration, and a crash course
on the
workings of Emacs. It seems to me the much more logical way for this
function to work is to look for any relevant user configurations
and setting the layout accordingly rather than statically setting the Korean
layout.

All this was after I had to redefine a different function because Korean
layouts were not compatible with Dvorak layout, which I solved with the
help of the patch  here: https://blog.jamzattack.xyz/emacs-hangul-input.html
Updating hangul.el as described there would solve the Dvorak-Korean
incompatibility.

I hope these suggestions will help in improving Emacs, which despite my
short usage and the problems I ran into is a great, versatile
program. Keep up the good work!

With regards,

L.J.

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

             reply	other threads:[~2020-08-28  9:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-28  9:41 L.J. Lee [this message]
2020-08-28 13:04 ` bug#43084: toggle-korean-input-method, Korean with Dvorak 황병희
2021-01-27  6:33 ` Lars Ingebrigtsen
2021-01-29  4:54   ` L.J. Lee
2021-01-29  5:08     ` Lars Ingebrigtsen
     [not found]       ` <87pn1my3fp.fsf@gmail.com>
2021-01-31  7:13         ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=CAOZu1pXiV+Xg2Zri1VXLi-D-x5KgG0UNAf1hD8UuhAeWUpPHrg@mail.gmail.com \
    --to=lj.is.writing@gmail.com \
    --cc=43084@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.