mirror of
https://github.com/wassname/pysle.git
synced 2026-06-26 16:00:06 +08:00
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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user