Esempio n. 1
0
 def removeVowelPointing( self, text=None, removeMetegOrSiluq=False ):
     """ Return the text with cantillation marks removed. """
     if text is None:
         self.currentText = self.removeVowelPointing( self.currentText ) # recursive call
         return self.currentText
     # else we were passed a text string
     h = Hebrew.Hebrew ( text )
     return h.removeVowelPointing( None, removeMetegOrSiluq )
Esempio n. 2
0
    def removeCantillationMarks( self, text=None, removeMetegOrSiluq=False ):
        """
        Return the text with cantillation marks removed.
        """
        #print( "removeCantillationMarks( {!r}, {} )".format( text, removeMetegOrSiluq ) )

        if text is None:
            # Recursive call
            self.currentText = self.removeCantillationMarks( self.currentText, removeMetegOrSiluq ) if self.currentText else self.currentText
            return self.currentText

        # else we were passed a text string
        h = Hebrew.Hebrew( text )
        return h.removeCantillationMarks( removeMetegOrSiluq=removeMetegOrSiluq )