Skip to content

Conversation

TuongNM
Copy link
Contributor

@TuongNM TuongNM commented Aug 24, 2025

Check for XID_Continue for the identifiers in typst to match the rust implementation.

Added unicode-data as a dependency for this for access to the isXIDContinue function to be able to easily check this. I hope this is an acceptable dependency addition in this case.

Also applied the following types of hlint suggestions that came up:

  • redundant $
  • literal pattern
  • moving brackets to avoid $

Fixes: #10816

Add unicode-data dependency for isXIDContinue for this to match the
rust implementation.
Also apply hlint suggestions for redundant $, literal pattern and
moving brackets to avoid $.
@jgm
Copy link
Owner

jgm commented Aug 26, 2025

We already have a transitive dependency on unicode-data, so I think that's okay.

@jgm jgm merged commit 01f97ed into jgm:main Aug 26, 2025
11 of 14 checks passed
@jgm
Copy link
Owner

jgm commented Aug 26, 2025

thank you!

@TuongNM TuongNM deleted the typst-writer-unicode-identifier branch August 26, 2025 18:12
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.

Unicode characters in headers are not stripped from identifier when +auto_identifiers
2 participants