mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-02-28 12:29:59 +00:00
Translate curly quotes to regular quotes. Complain about other non-ASCII chars.
This commit is contained in:
parent
f2da9203e0
commit
ad6e72af67
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user