Support Hexadecimal Page Numbers (e.g. 1FF, 12E)

- Refactored  to parse page numbers as nibbles ((T<<4)|U) instead of decimal, preventing collisions between hex and decimal pages.
- Updated  to format page IDs as Hex.
- Updated  to display page IDs as Hex in the list.
- Ensures filler/housekeeping pages are correctly isolated.
This commit is contained in:
2026-01-11 11:52:29 +01:00
parent 8c393c8f9e
commit 4b7b73e9a3
3 changed files with 11 additions and 3 deletions

View File

@@ -81,7 +81,8 @@ class Page:
@property
def full_page_number(self):
return f"{self.magazine}{self.page_number:02d}"
# Format as Hex to support A-F pages
return f"{self.magazine}{self.page_number:02X}"
@dataclass
class TeletextService: