From 22a57fcf5c52cc0e961368a6d6fb7e9a82312b48 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 2 Jul 2025 08:01:44 +0000 Subject: [PATCH] Use punctuation math class for Arabic comma (#6537) --- crates/typst-utils/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/typst-utils/src/lib.rs b/crates/typst-utils/src/lib.rs index 4cfe0c046..8d0cdc15a 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 { // 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), } }