Skip to content

Comments

Move numbering kinds to Codex (take 2)#145

Open
MDLC01 wants to merge 2 commits intotypst:mainfrom
MDLC01:numeral-systems
Open

Move numbering kinds to Codex (take 2)#145
MDLC01 wants to merge 2 commits intotypst:mainfrom
MDLC01:numeral-systems

Conversation

@MDLC01
Copy link
Collaborator

@MDLC01 MDLC01 commented Feb 18, 2026

This is a rewrite of #116.

In order to move forward with this, I suggest we only focus on the architecture for now, and we can assign names to the various numeral systems and add the missing ones in a later PR. I also think we should wait to decide precisely which numeral systems to include before adding more extensive tests. That way, we can simply test the individual numeral systems, which is what we care about.

The algorithms are the same as the ones we ended up with in #116. The main change is that I wanted to have a way to represent the fact that some numeral systems are simply unable to represent some values. In this case, we now return an error instead of falling back to Arabic numerals. Then, the client (i.e., Typst) can decide what to do (raise an error, or fallback to Arabic numerals).

Given that this plans to move some things out of typst/typst, I'll cc. @laurmaedje.

@MDLC01 MDLC01 added meta Discussion about the structure of this repo waiting on reviews Breaking and non-breaking changes need respectively 3 and 2 reviews labels Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Discussion about the structure of this repo waiting on reviews Breaking and non-breaking changes need respectively 3 and 2 reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant