Function: hangul-character
hangul-character is a byte-compiled function defined in hangul.el.gz.
Signature
(hangul-character CHO JUNG JONG)
Documentation
Convert CHO, JUNG, JONG to the precomposed Hangul Syllables character.
CHO, JUNG, JONG are relative indices in Hangul Compatibility Jamo of Unicode.
Return a zero-length string if the conversion fails.
Source Code
;; Defined in /usr/src/emacs/lisp/leim/quail/hangul.el.gz
(defun hangul-character (cho jung jong)
"Convert CHO, JUNG, JONG to the precomposed `Hangul Syllables' character.
CHO, JUNG, JONG are relative indices in `Hangul Compatibility Jamo' of Unicode.
Return a zero-length string if the conversion fails."
(or
(decode-char
'ucs
(if (and (/= cho 0) (/= jung 0))
(+ #xac00
(* 588
(- cho
(cond ((< cho 3) 1)
((< cho 5) 2)
((< cho 10) 4)
((< cho 20) 11)
(t 12))))
(* 28 (- jung 31))
(- jong
(cond ((< jong 8) 0)
((< jong 19) 1)
((< jong 25) 2)
(t 3))))
(+ #x3130
(cond ((/= cho 0) cho)
((/= jung 0) jung)
((/= jong 0) jong)))))
""))