Skip to content

Error Thai-Latin in icu.Transliterator

Created by: wannaphong

My code

import icu
thai2latin = icu.Transliterator.createInstance('Thai-Latin')
thai2latin("แมว")

error

Traceback (most recent call last):
  File "<pyshell#41>", line 3, in <module>
    thai2latin("แมว")
TypeError: 'icu.Transliterator' object is not callable

how to use Thai-Latin in pyicu ? https://github.com/svn2github/icu/blob/master/source/data/translit/ThaiLogical_Latin.txt