package hypua2jamo

hypua2jamo.codes2unicode(codes, composed=True)[source]

Convert Hanyang-PUA code iterable to Syllable-Initial-Peak-Final encoded unicode string.

Parameters:
  • codes – an iterable of Hanyang-PUA code
  • composed – the result should be composed as possible (default True)
Returns:

Syllable-Initial-Peak-Final encoded unicode string

hypua2jamo.translate(pua, composed=True)[source]

Convert a unicode string with Hanyang-PUA codes to a Syllable-Initial-Peak-Final encoded unicode string.

Parameters:
  • pua – a unicode string with Hanyang-PUA codes
  • composed – the result should be composed as possible (default True)
Returns:

Syllable-Initial-Peak-Final encoded unicode string