sync
This commit is contained in:
parent
e8bb7e6b40
commit
df3c574201
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user