BUGFIX: Dental and Stop special keys don't match multichar sounds like tʃ

So 't' will be matched but not 'tʃ'
This commit is contained in:
Tim Mahrt
2016-07-20 16:35:44 +02:00
parent 5e64deebe6
commit 1b1903bc0b
+2 -2
View File
@@ -202,9 +202,9 @@ def _prepRESearchStr(matchStr, wordInitial='ok', wordFinal='ok',
matchStr = matchStr.replace(charB, charA)
# Replace special characters
replDict = {"D": u"[tdsz]", # dentals
replDict = {"D": u"(?:t(?!ʃ)|d(?!ʒ)|[sz])", # dentals
"F": u"[ʃʒfvszɵðh]", # fricatives
"S": u"[pbtdkg]", # stops
"S": u"(?:t(?!ʃ)|d(?!ʒ)|[pbkg])", # stops
"N": u"[nmŋ]", # nasals
"R": u"[rɝɚ]", # rhotics
"V": u"(?:aʊ|ei|oʊ|ɑɪ|ɔi|[iuæɑɔəɛɪʊʌ]):?", # vowels