typst / typst/codex

Support for natural language accents to `styling::to_style`

Open
#134 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
53
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Precomposed accented characters such as "é" should first be decomposed, and only then styled.

My interpretation of UTR #25, Section 6.5 Accented Characters, and especially the sentence below, is that we should first decompose any precomposed character, and only then apply the styles.

to achieve consistent results, a mathematical display system should transiently decompose any precomposed upright letters when used in mathematical expressions, and should use a single algorithm to place embellishments.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the styling::to_style entry point and read how precomposed characters are currently handled before styles are applied. Use the linked UTR #25, Section 6.5 guidance to determine the expected decomposition order; the work is done when accented characters are decomposed before styling and the behavior is covered by the project’s relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
internationalization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.