Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion telnetlib3/encodings/big5bbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
and cannot form valid Big5 pairs since ESC (0x1B) is not a valid Big5 second
byte (which must be 0x40-0x7E or 0xA1-0xFE).

Search keywords / 搜尋關鍵字:
PCMan, PCManX, PttBBS, DreamBBS, 批踢踢實業坊, 半形字, 半形藝術字, 連線字元,
Big5 BBS art, Taiwan BBS encoding

Decoding algorithm:

- When a Big5 lead byte (0xA1-0xFE) is followed by a valid Big5 second byte
Expand Down Expand Up @@ -154,7 +158,7 @@ def getregentry() -> codecs.CodecInfo:

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


def _build_cp437_encoding_table() -> dict[int, int]:
Expand Down
Loading