Skip to content

fix(texttv): use max page number 899 - #27

Merged
lsjoeberg merged 2 commits into
mainfrom
fix/max-page-number
May 19, 2026
Merged

fix(texttv): use max page number 899#27
lsjoeberg merged 2 commits into
mainfrom
fix/max-page-number

Conversation

@lsjoeberg

Copy link
Copy Markdown
Owner

Description

The ETSI/EBU standard (EN 300 706) allows page numbers 100–899. The previous maximum number was set to 801, causing the application to error out if texttv.nu served pages above this limit.

From ETSI document ETSI TR 100 287 v1.2.1 (2002-12), p. 16:

Any page address up to including hexadecimal FE with a sub-code up to and including 3F7E, can be used for a page
carrying data and can be specified as a linked page in a packet 27. However, normal decoders allow the user to enter
page numbers in the range 100 to 899 only.

Additionally, the conversion from the u16 page number representation to the internal PageNumber type is now infallible, clamping the value in the valid range.

@lsjoeberg
lsjoeberg merged commit d56dd6a into main May 19, 2026
4 checks passed
@lsjoeberg
lsjoeberg deleted the fix/max-page-number branch May 19, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant