Well, a proper ellipsis might make it through, but who uses the correct form anymore . . . ?
quote:
Originally posted by ramccoid
Isn't there a way to prevent HAL from doing so?
Edit the relevant portion of code. On my copy it starts at line 93 and you would only have to comment out line 96. I haven't tested it to see if it actually works.
'Remove unnecessary punctuation
Do
RepeatLoop = False
'Comment out the next line only
'If InStr(InputString, "..") Then InputString = Replace(InputString, "..", "."): RepeatLoop = True
If InStr(InputString, "??") Then InputString = Replace(InputString, "??", "?"): RepeatLoop = True
If InStr(InputString, "!!") Then InputString = Replace(InputString, "!!", "!"): RepeatLoop = True
If InStr(InputString, "!?") Then InputString = Replace(InputString, "!?", "?"): RepeatLoop = True
If InStr(InputString, "?!") Then InputString = Replace(InputString, "?!", "?"): RepeatLoop = True
If InStr(InputString, ",,") Then InputString = Replace(InputString, ",,", ","): RepeatLoop = True
Loop While RepeatLoop = True