Skip to content

Add Devanagari numbering - #4850

Merged
laurmaedje merged 7 commits into
typst:mainfrom
FlorentCLMichel:devanagari-numbering
Sep 2, 2024
Merged

laurmaedje merged 7 commits into
typst:mainfrom
FlorentCLMichel:devanagari-numbering

Conversation

@FlorentCLMichel

@FlorentCLMichel FlorentCLMichel commented Aug 27, 2024 •

Copy link
Copy Markdown
Contributor

This small PR adds support for Devaganari numbering, aiming to resolve #4843 .

I'm not sure what the best name for the new NumberingKind is. I tentatively went for DevanagariNumber, with the idea that another numbering could be added later with Devanagari letters.

@FlorentCLMichel
FlorentCLMichel marked this pull request as ready for review August 27, 2024 20:50
@FlorentCLMichel FlorentCLMichel changed the title add Devanagari numbering Add Devanagari numbering Aug 27, 2024

@laurmaedje laurmaedje left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test in tests/suite/model/numbering.typ? Please use assertion-based tests and not image-based ones. The existing image-based tests are old and not yet migrated.

Comment thread crates/typst/src/model/numbering.rs Outdated
Comment on lines +301 to +302
// TODO: Is it the best name? (I use the suffic ‘Number’ in case we want to also support
// devanagari letters)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name seems fine. It's also not that important. What matters is the from_char and that makes sense.

@laurmaedje
laurmaedje added this pull request to the merge queue Sep 2, 2024
@laurmaedje

Copy link
Copy Markdown
Member

Thanks!

Merged via the queue into typst:main with commit 51df7ae Sep 2, 2024
Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 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.

Add page numbering support for Devanagari digits.

2 participants