summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/math
diff options
context:
space:
mode:
authorMalo <57839069+MDLC01@users.noreply.github.com>2025-01-31 11:05:03 +0100
committerGitHub <noreply@github.com>2025-01-31 10:05:03 +0000
commitf239b0a6a1e68a016cacf19eeef2df52e4affeb9 (patch)
tree101b8aeba40b8c9925d273894cfc27de2a4b5756 /crates/typst-library/src/math
parent46727878da083eb8186373434997f5f7403cbb66 (diff)
Change the default math class of U+22A5 ⊥ UP TACK to Normal (#5714)
Diffstat (limited to 'crates/typst-library/src/math')
-rw-r--r--crates/typst-library/src/math/matrix.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-library/src/math/matrix.rs b/crates/typst-library/src/math/matrix.rs
index c74eb8fa..b6c4654e 100644
--- a/crates/typst-library/src/math/matrix.rs
+++ b/crates/typst-library/src/math/matrix.rs
@@ -1,6 +1,6 @@
use smallvec::{smallvec, SmallVec};
use typst_syntax::Spanned;
-use typst_utils::Numeric;
+use typst_utils::{default_math_class, Numeric};
use unicode_math_class::MathClass;
use crate::diag::{bail, At, HintedStrResult, StrResult};
@@ -292,7 +292,7 @@ impl Delimiter {
pub fn char(c: char) -> StrResult<Self> {
if !matches!(
- unicode_math_class::class(c),
+ default_math_class(c),
Some(MathClass::Opening | MathClass::Closing | MathClass::Fence),
) {
bail!("invalid delimiter: \"{}\"", c)
@@ -311,7 +311,7 @@ impl Delimiter {
Some(']') => Self(Some('[')),
Some('{') => Self(Some('}')),
Some('}') => Self(Some('{')),
- Some(c) => match unicode_math_class::class(c) {
+ Some(c) => match default_math_class(c) {
Some(MathClass::Opening) => Self(char::from_u32(c as u32 + 1)),
Some(MathClass::Closing) => Self(char::from_u32(c as u32 - 1)),
_ => Self(Some(c)),