Potential fixes to progress bar. Better handling of punctuation while reading.

This commit is contained in:
Storm Dragon
2025-06-10 18:10:08 -04:00
parent b0ac6e1409
commit 83cb330d34
12 changed files with 49 additions and 22 deletions

View File

@ -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)