def compose(chosung, joongsung, jongsung=u'<STR_LIT>'):
if jongsung is None: jongsung = u'<STR_LIT>'<EOL>try:<EOL><INDENT>chosung_index = CHO.index(chosung)<EOL>joongsung_index = JOONG.index(joongsung)<EOL>jongsung_index = JONG.index(jongsung)<EOL><DEDENT>except Exception:<EOL><INDENT>raise NotHangulException('<STR_LIT>')<EOL><DEDENT>return unichr(<NUM_LIT> + chosung_index * NUM_JOONG * NUM_JONG + joongsung_index * NUM_JONG + jongsung_index)<EOL>
This function returns a Hangul letter by composing the specified chosung, joongsung, and jongsung.
    @param chosung
    @param joongsung
    @param jongsung the terminal Hangul letter. This is optional if you do not need a jongsung.