Skip to content

Fix Roman numeral handling #528#540

Closed
moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:fix/incorrect-roman-numerals
Closed

Fix Roman numeral handling #528#540
moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:fix/incorrect-roman-numerals

Conversation

@moritz-gross
Copy link
Copy Markdown
Collaborator

@moritz-gross moritz-gross commented Mar 31, 2026

I added the examples from the issue as regression tests.
Generally it looks like the detection of Roman numerals should be more conservative.

tbh I'm not really happy how this seems to be handled within MathML, but I guess we have to work with what we're given.

The tests should be ready to go as they are, but I doubt the code changes are ideal.
I only just learned that there's an intent attribute, and that chemistry apparently uses roman numerals for oxidation numbers?!? (well at least that's one way to get some more general knowledge, yesterday I learned what a katal is)

NSoiffer added a commit that referenced this pull request Jun 1, 2026
Fixes #528.

Includes the tests in the PR.
@NSoiffer
Copy link
Copy Markdown
Collaborator

NSoiffer commented Jun 1, 2026

The real problem was a bad Rule that missed testing for chemistry.

The roman numerals shouldn't be spoken, but some braille codes handle them in a special way (typically modifying the capitalization rules).

I've included the tests you wrong in a separate commit.

@NSoiffer NSoiffer closed this Jun 1, 2026
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.

2 participants