Use punctuation math class for Arabic comma (#6537)

This commit is contained in:
Max 2025-07-02 08:01:44 +00:00 committed by GitHub
parent 09c831d3b3
commit 22a57fcf5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -395,6 +395,10 @@ pub fn default_math_class(c: char) -> Option<MathClass> {
// https://github.com/typst/typst/issues/5764 // https://github.com/typst/typst/issues/5764
'⟇' => Some(MathClass::Binary), '⟇' => Some(MathClass::Binary),
// Arabic comma.
// https://github.com/latex3/unicode-math/pull/633#issuecomment-2028936135
'،' => Some(MathClass::Punctuation),
c => unicode_math_class::class(c), c => unicode_math_class::class(c),
} }
} }