fix sorting of emotjies

This commit is contained in:
Chrys 2019-08-26 18:54:31 +02:00
parent c407f2f418
commit 59c4a2beb4
2 changed files with 4 additions and 43 deletions

View File

@ -6,6 +6,7 @@
from fenrirscreenreader.core import debug from fenrirscreenreader.core import debug
import string import string
from collections import OrderedDict
punctuationData = { punctuationData = {
'LEVELDICT':{ 'LEVELDICT':{
@ -15,47 +16,7 @@ punctuationData = {
'all': string.punctuation + ' §', 'all': string.punctuation + ' §',
}, },
'PUNCTDICT':{ 'PUNCTDICT':{
' ':'space',
'&':'and',
"'":"apostrophe",
'@':'at',
'\\':'backslash',
'|':'bar',
'!':'bang',
'^':'carrot',
':':'colon',
',':'comma',
'-':'dash',
'$':'dollar',
'.':'dot',
'>':'greater',
'`':'grave',
'#':'hash',
'{':'left brace',
'[':'left bracket',
'(':'left paren',
'<':'less',
'%':'percent',
'+':'plus',
'?':'question',
'"':'quote',
')':'right paren',
'}':'right brace',
']':'right bracket',
';':'semicolon',
'/':'slash',
'*':'star',
'~':'tilde',
'_':'line',
'=':'equals',
}, },
'CUSTOMDICT':{ 'CUSTOMDICT':OrderedDict(),
}, 'EMOTICONDICT':OrderedDict(),
'EMOTICONDICT':{
':)':'smiley',
';)':'winking face',
'XD':'loool',
':@':'angry face',
':D':'lought'
},
} }

View File

@ -114,4 +114,4 @@ class punctuationManager():
sepLine[1] = ':===:' sepLine[1] = ':===:'
self.env['punctuation'][currDictName][sepLine[0]] = sepLine[1] self.env['punctuation'][currDictName][sepLine[0]] = sepLine[1]
self.env['runtime']['debug'].writeDebugOut("Punctuation: " + currDictName + '.' + str(sepLine[0]) + ' :' + sepLine[1] ,debug.debugLevel.INFO, onAnyLevel=True) self.env['runtime']['debug'].writeDebugOut("Punctuation: " + currDictName + '.' + str(sepLine[0]) + ' :' + sepLine[1] ,debug.debugLevel.INFO, onAnyLevel=True)
dictConfig.close() dictConfig.close()