respeckt puctuation in headline compression

This commit is contained in:
chrys
2018-06-28 23:59:56 +02:00
parent a91779732f
commit f52a1be1bc
2 changed files with 8 additions and 1 deletions

View File

@ -57,7 +57,8 @@ class punctuationManager():
else:
resultText = resultText.replace(str(key),' ' +str(item) + ' ')
return resultText
def isPuctuation(self, char):
return char in self.env['punctuation']['PUNCTDICT']
def proceedPunctuation(self, text, ignorePunctuation=False):
resultText = text
resultText = self.useCustomDict(resultText, self.env['punctuation']['CUSTOMDICT'])