def decompose(hangul_letter):
from . import checker<EOL>if len(hangul_letter) < <NUM_LIT:1>:<EOL><INDENT>raise NotLetterException('<STR_LIT>')<EOL><DEDENT>elif not checker.is_hangul(hangul_letter):<EOL><INDENT>raise NotHangulException('<STR_LIT>')<EOL><DEDENT>if hangul_letter in CHO:<EOL><INDENT>return hangul_letter, '<STR_LIT>', '<STR_LIT>'<EOL><DEDENT>if hangul_letter in JOONG:<EOL><INDENT>return '<STR_LIT>', hangul_letter, '<STR_LIT>'<EOL><DEDENT>if hangul_letter in JONG:<EOL><INDENT>return '<STR_LIT>', '<STR_LIT>', hangul_letter<EOL><DEDENT>code = hangul_index(hangul_letter)<EOL>cho, joong, jong = decompose_index(code)<EOL>if cho < <NUM_LIT:0>:<EOL><INDENT>cho = <NUM_LIT:0><EOL><DEDENT>try:<EOL><INDENT>return CHO[cho], JOONG[joong], JONG[jong]<EOL><DEDENT>except:<EOL><INDENT>print("<STR_LIT>"%(cho, joong, jong))<EOL>print("<STR_LIT>" %( JOONG[joong].encode("<STR_LIT:utf8>"), JONG[jong].encode('<STR_LIT:utf8>')))<EOL>raise Exception()<EOL><DEDENT>
This function returns letters by decomposing the specified Hangul letter.