예제 #1
0
 def test_reduce_tashkeel(self):
     """Test reduce_tashkeel function ?"""
     word1 = u"يُتَسََلَّمْنَ"
     word2 = u"يُتسلّمن"
     self.assertEqual(ar.reduce_tashkeel(word1),
                      word2,
                      msg=u"%s :" % ar.reduce_tashkeel(word1))
예제 #2
0
파일: adaat.py 프로젝트: linuxscout/mishkal
def reduced_tashkeel_text(text):
    """
    Reduce Harakat and vocalization from a vocalized text.
    @param text: a given vocalized text.
    @type text: unicode.
    @return : reduced text vocalization
    @rtype: unicode
    """
    return araby.reduce_tashkeel(text)
예제 #3
0
def reduced_tashkeel_text(text):
    """
    Reduce Harakat and vocalization from a vocalized text.
    @param text: a given vocalized text.
    @type text: unicode.
    @return : reduced text vocalization
    @rtype: unicode
    """
    return araby.reduce_tashkeel(text)
예제 #4
0
 def test_reduce_tashkeel(self):
     """Test reduce_tashkeel function ?"""
     word1 = u"يُتَسََلَّمْنَ"
     word2 = u"يُتسلّمن"
     self.assertEqual(ar.reduce_tashkeel(word1), word2, msg=u"%s :"%ar.reduce_tashkeel(word1))
예제 #5
0
    def test_reduce_tashkeel(self):

        # reduce_tashkeel(text)
        word = u"يُتَسََلَّمْنَ"
        assert  Araby.reduce_tashkeel(word) == u'يُتسلّمن'