Translate curly quotes to regular quotes. Complain about other non-ASCII chars.

This commit is contained in:
Martin Haye 2019-07-15 10:49:25 -07:00
parent f2da9203e0
commit ad6e72af67

View File

@ -260,6 +260,12 @@ class A2PackPartitions
else
printWarning("Unrecognized control code '^" + ch + "'")
}
else if (ch == '“' || ch == '”')
buf << '\"'
else if (ch == '' || ch == '')
buf << '\''
else if (Character.codePointAt(ch, 0) > 127)
printWarning("Non-ASCII character '" + ch + "' found")
else
buf << ch
prev = ch