diff options
| author | Max <max@mkor.je> | 2025-07-02 08:01:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-02 08:01:44 +0000 |
| commit | 22a57fcf5c52cc0e961368a6d6fb7e9a82312b48 (patch) | |
| tree | 0140eb73e89727668e6487016f12a1aaddeb6bfc /crates | |
| parent | 09c831d3b32935fe162f198e3512e1e7cd6647db (diff) | |
Use punctuation math class for Arabic comma (#6537)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst-utils/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/typst-utils/src/lib.rs b/crates/typst-utils/src/lib.rs index 4cfe0c04..8d0cdc15 100644 --- a/crates/typst-utils/src/lib.rs +++ b/crates/typst-utils/src/lib.rs @@ -395,6 +395,10 @@ pub fn default_math_class(c: char) -> Option<MathClass> { // https://github.com/typst/typst/issues/5764 '⟇' => Some(MathClass::Binary), + // Arabic comma. + // https://github.com/latex3/unicode-math/pull/633#issuecomment-2028936135 + '،' => Some(MathClass::Punctuation), + c => unicode_math_class::class(c), } } |
