From 911677760337d73e938df5312331273be7bc51b4 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Mon, 9 Feb 2026 21:11:12 -0500 Subject: [PATCH] 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. --- src/mudlib/zmachine/zstring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mudlib/zmachine/zstring.py b/src/mudlib/zmachine/zstring.py index e04bdd9..efdb482 100644 --- a/src/mudlib/zmachine/zstring.py +++ b/src/mudlib/zmachine/zstring.py @@ -64,7 +64,7 @@ class ZCharTranslator: DEFAULT_A0 = [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. - 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.,!?_#'\"/\\-:()"] ALPHA = (DEFAULT_A0, DEFAULT_A1, DEFAULT_A2)