Пример #1
0
 def test_watson(self):
     """ elementary - watson """
     parts = [letter for letter in utf8.get_letters_elementary_iterable(u'கழுதை')]
     actual = [u'க்', u'அ', u'ழ்', u'உ', u'த்', u'ஐ']
     self.assertEqual(parts,actual)
     parts2 = utf8.get_letters_elementary(u'கழுதை')
     self.assertEqual(parts2,actual)
Пример #2
0
 def test_watson(self):
     """ elementary - watson """
     parts = [letter for letter in utf8.get_letters_elementary_iterable(u"கழுதை")]
     actual = [u"க்", u"அ", u"ழ்", u"உ", u"த்", u"ஐ"]
     self.assertEqual(parts, actual)
     parts2 = utf8.get_letters_elementary(u"கழுதை")
     self.assertEqual(parts2, actual)
Пример #3
0
 def test_watson(self):
     """ elementary - watson """
     parts = [letter for letter in utf8.get_letters_elementary_iterable(u'கழுதை')]
     actual = [u'க்', u'அ', u'ழ்', u'உ', u'த்', u'ஐ']
     self.assertEqual(parts,actual)
     parts2 = utf8.get_letters_elementary(u'கழுதை')
     self.assertEqual(parts2,actual)
Пример #4
0
 def test_watson(self):
     """ elementary - watson """
     parts = [letter for letter in utf8.get_letters_elementary_iterable(u"கழுதை")]
     actual = [u"க்", u"அ", u"ழ்", u"உ", u"த்", u"ஐ"]
     self.assertEqual(parts, actual)
     parts2 = utf8.get_letters_elementary(u"கழுதை")
     self.assertEqual(parts2, actual)
Пример #5
0
 def test_split_join_symmetric(self):
     a = [u"கப்பல்", u"வேகம்", u"உவகை"]
     b = list(map(lambda x: utf8.get_letters_elementary(x, True), a))
     c = []
     for i, b_w in enumerate(b):
         w = utf8.join_letters_elementary(b_w)
         c.append(w)
     d = list(map(len, b))
     self.assertEqual([8, 6, 6], d)
     self.assertSequenceEqual(c, a)
Пример #6
0
def உயிர்மெய்விரி(பதம்):
    expandedlist = tamilutf8.get_letters_elementary(பதம்)
    return "".join(expandedlist)