This commit is contained in:
chrys 2016-10-20 11:31:18 +02:00
parent e8bb7e6b40
commit df3c574201

View File

@ -50,7 +50,7 @@ class punctuationManager():
key in ",.;:?!-": key in ",.;:?!-":
resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ') resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ')
else: else:
#resultText = resultText.replace(str(key),' ' +str(item) + ' ') resultText = resultText.replace(str(key),' ' +str(item) + ' ')
return resultText return resultText
def proceedPunctuation(self, text, ignorePunctuation=False): def proceedPunctuation(self, text, ignorePunctuation=False):
@ -64,7 +64,7 @@ class punctuationManager():
else: else:
currPunctLevel = string.punctuation +'§' currPunctLevel = string.punctuation +'§'
resultText = self.usePunctuationDict(resultText, self.env['punctuation']['PUNCTDICT'], currPunctLevel) resultText = self.usePunctuationDict(resultText, self.env['punctuation']['PUNCTDICT'], currPunctLevel)
resultText = self.removeUnused(resultText, currPunctLevel) #resultText = self.removeUnused(resultText, currPunctLevel)
return resultText return resultText
def cyclePunctuation(self): def cyclePunctuation(self):