Potential fixes to progress bar. Better handling of punctuation while reading.
This commit is contained in:
@ -119,4 +119,15 @@ def getPhonetic(currChar):
|
||||
return phonChar
|
||||
except:
|
||||
return currChar
|
||||
|
||||
def presentCharForReview(env, char, interrupt=True, announceCapital=True, flush=False):
|
||||
"""Present a character for explicit review commands only"""
|
||||
if char == ' ':
|
||||
if ' ' in env['punctuation']['PUNCTDICT']:
|
||||
announceChar = env['punctuation']['PUNCTDICT'][' ']
|
||||
else:
|
||||
announceChar = 'space'
|
||||
env['runtime']['outputManager'].presentText(announceChar, interrupt=interrupt, flush=flush)
|
||||
else:
|
||||
env['runtime']['outputManager'].presentText(char, interrupt=interrupt, ignorePunctuation=True, announceCapital=announceCapital, flush=flush)
|
||||
|
||||
|
Reference in New Issue
Block a user