@@ -53,7 +53,6 @@ def _value_to_jamo(value, jamo_class=None):
5353 return value
5454 # If given a hcj char or hcj integer
5555 if _value in VALID_HCJ :
56- print ("decoding hcj to jamo." )
5756 translations = {get_jamo_class (jamo ): jamo for jamo , hcj in
5857 JAMO_TO_HCJ_TRANSLATIONS .items () if hcj == _value }
5958 # TODO: Add a custom exception for KeyError.
@@ -109,14 +108,10 @@ def _jamo_to_hangul_char(lead, vowel, tail=0):
109108 lead = _to_codepoint (_value_to_jamo (lead , "lead" ))
110109 vowel = _to_codepoint (_value_to_jamo (vowel , "vowel" ))
111110 tail = _to_codepoint (_value_to_jamo (tail , "tail" )) if tail else 0
112- print ("_jamo_to_hangul_char called with: "
113- "({}), ({}), ({})" .format (hex (lead ), hex (vowel ), hex (tail )))
114- print ("({} ), ({} ), ({} )" .format (chr (lead ), chr (vowel ), chr (tail )))
115111
116112 lead -= JAMO_LEAD_OFFSET
117113 vowel -= JAMO_VOWEL_OFFSET
118114 tail = tail - JAMO_TAIL_OFFSET if tail else 0
119- print ("calculated offsets: {}, {}, {}\n " .format (lead , vowel , tail ))
120115 return chr (tail + (vowel - 1 ) * 28 + (lead - 1 ) * 588 + JAMO_OFFSET )
121116
122117
0 commit comments