Beispiel #1
0
 def test_normalize(self):
     from hangulize.normalization import normalize_roman
     assert u'abc' == normalize_roman(u'AbC')
     assert u'a/a' == normalize_roman(u'Ä/ä')
     assert u'o/o' == normalize_roman(u'Ö/ö')
     assert u'u/u' == normalize_roman(u'Ü/ü')
     assert u'한글' == normalize_roman(u'한글')
     assert u'a한글o' == normalize_roman(u'Ä한글Ö')
     assert u'a한u글o' == normalize_roman(u'Ä한ü글Ö')
     assert u'123aehtw' == normalize_roman(u'123ǞËḧT̈Ẅ')
Beispiel #2
0
 def test_normalize(self):
     from hangulize.normalization import normalize_roman
     assert u'abc' == normalize_roman(u'AbC')
     assert u'a/a' == normalize_roman(u'Ä/ä')
     assert u'o/o' == normalize_roman(u'Ö/ö')
     assert u'u/u' == normalize_roman(u'Ü/ü')
     assert u'한글' == normalize_roman(u'한글')
     assert u'a한글o' == normalize_roman(u'Ä한글Ö')
     assert u'a한u글o' == normalize_roman(u'Ä한ü글Ö')
     assert u'123aehtw' == normalize_roman(u'123ǞËḧT̈Ẅ')
Beispiel #3
0
 def normalize(self, string):
     return normalize_roman(string)
Beispiel #4
0
 def normalize(self, string):
     return normalize_roman(string)