Fix A2 alphabet table with extra character shifting symbols

DEFAULT_A2 had 26 chars instead of 25 due to an erroneous '<'. This
shifted all symbol mappings, causing periods to render as exclamation
marks and other garbled punctuation in Zork 1 output.
This commit is contained in:
Jared Miller 2026-02-09 21:11:12 -05:00
parent e1c6a92368
commit 9116777603
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -64,7 +64,7 @@ class ZCharTranslator:
DEFAULT_A0 = [ord(x) for x in "abcdefghijklmnopqrstuvwxyz"] DEFAULT_A0 = [ord(x) for x in "abcdefghijklmnopqrstuvwxyz"]
DEFAULT_A1 = [ord(x) for x in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"] DEFAULT_A1 = [ord(x) for x in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
# A2 also has 0x6 as special char, so they start at 0x7. # A2 also has 0x6 as special char, so they start at 0x7.
DEFAULT_A2 = [ord(x) for x in "0123456789.,!?_#'\"/\\<-:()"] DEFAULT_A2 = [ord(x) for x in "0123456789.,!?_#'\"/\\-:()"]
DEFAULT_A2_V5 = [ord(x) for x in "\n0123456789.,!?_#'\"/\\-:()"] DEFAULT_A2_V5 = [ord(x) for x in "\n0123456789.,!?_#'\"/\\-:()"]
ALPHA = (DEFAULT_A0, DEFAULT_A1, DEFAULT_A2) ALPHA = (DEFAULT_A0, DEFAULT_A1, DEFAULT_A2)