Skip to content

Commit 00dedb0

Browse files
committed
add some aliases for big5bbs
1 parent 871edd5 commit 00dedb0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

telnetlib3/encodings/big5bbs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
and cannot form valid Big5 pairs since ESC (0x1B) is not a valid Big5 second
99
byte (which must be 0x40-0x7E or 0xA1-0xFE).
1010
11+
Search keywords / 搜尋關鍵字:
12+
PCMan, PCManX, PttBBS, DreamBBS, 批踢踢實業坊, 半形字, 半形藝術字, 連線字元,
13+
Big5 BBS art, Taiwan BBS encoding
14+
1115
Decoding algorithm:
1216
1317
- When a Big5 lead byte (0xA1-0xFE) is followed by a valid Big5 second byte
@@ -154,7 +158,7 @@ def getregentry() -> codecs.CodecInfo:
154158

155159
def getaliases() -> Tuple[str, ...]:
156160
"""Return codec aliases (normalized: hyphens replaced with underscores)."""
157-
return ("big5_bbs",)
161+
return ("big5_bbs", "big5_pcman", "big5_pcmanx", "big5_ptt")
158162

159163

160164
def _build_cp437_encoding_table() -> dict[int, int]:

0 commit comments

Comments
 (0)