;;;
;;; Input method for Korean Hangul using Hangul keyboard layout.
+(input-method ko han2)
+
(title "한2")
+(description
+ "Hangul input method with 2벌식.
+This input method uses this keyboard layout:
+ KEY: r R s e E f a q Q t T d w W c z x v g k i j p P u h y n b m l o O
+ 한글:ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅑㅓㅔㅖㅕㅗㅛㅜㅠㅡㅣㅐㅒ
+")
+
(macro
(compose
;; Convert Jamo sequence LV[T] into a precomposed character.
(V-head
("y") ("u") ("i") ("o") ("p") ("O") ("P")
- ("h") ("j") ("J") ("k") ("K") ("l")
+ ("h") ("j") ("k") ("K") ("l")
("b") ("n") ("m"))
(V
;; Set V to JUNGSEONG.
- ("J" (set V ?ᅠ) ?ᅠ (compose))
("k" (set V ?ᅡ) ?ㅏ (compose))
("o" (set V ?ᅢ) ?ㅐ (compose))
("i" (set V ?ᅣ) ?ㅑ (compose))
("ga" (set T ?ᇷ) ?ᇷ (compose))
("gq" (set T ?ᇸ) ?ᇸ (compose)))
+ (special
+ ("J" (set V ?ᅠ) ?ᅠ (compose)))
+
(backspace
((BackSpace) (undo))))
(L (set T 0x11A7) (shift state-L))
(V)
(T)
+ (special)
(backspace))
(state-L
(V (shift state-LV))