diff --git a/library/src/symbols/sym.rs b/library/src/symbols/sym.rs index 90c89fc34..f1cf6649e 100644 --- a/library/src/symbols/sym.rs +++ b/library/src/symbols/sym.rs @@ -88,7 +88,17 @@ pub(crate) const SYM: &[(&'static str, Symbol)] = symbols! { circle: '⊝', wave.double: '〰', ], - dot: ['.', op: '⋅', c: '·', circle: '⊙', circle.big: '⨀', square: '⊡'], + dot: [ + '.', + op: '⋅', + c: '·', + circle: '⊙', + circle.big: '⨀', + square: '⊡', + double: '¨', + triple: '\u{20db}', + quad: '\u{20dc}', + ], excl: ['!', double: '‼', inv: '¡', quest: '⁉'], quest: ['?', double: '⁇', excl: '⁈', inv: '¿'], interrobang: '‽', diff --git a/src/eval/symbol.rs b/src/eval/symbol.rs index 6a199a1d7..d15d5a79b 100644 --- a/src/eval/symbol.rs +++ b/src/eval/symbol.rs @@ -114,6 +114,8 @@ impl Symbol { '\u{0306}' | '˘' => '\u{0306}', '\u{0307}' | '.' | '˙' | '⋅' => '\u{0307}', '\u{0308}' | '¨' => '\u{0308}', + '\u{20db}' => '\u{20db}', + '\u{20dc}' => '\u{20dc}', '\u{030a}' | '∘' | '○' => '\u{030a}', '\u{030b}' | '˝' => '\u{030b}', '\u{030c}' | 'ˇ' => '\u{030c}', diff --git a/tests/ref/math/accent.png b/tests/ref/math/accent.png index a87a684d0..a324d3f0d 100644 Binary files a/tests/ref/math/accent.png and b/tests/ref/math/accent.png differ diff --git a/tests/typ/math/accent.typ b/tests/typ/math/accent.typ index b67614ddd..ff1f87c17 100644 --- a/tests/typ/math/accent.typ +++ b/tests/typ/math/accent.typ @@ -5,6 +5,10 @@ $grave(a), acute(b), hat(f), tilde(§), macron(ä), diaer(a), ä \ breve(\&), dot(!), circle(a), caron(@), arrow(Z), arrow.l(Z)$ +--- + +$ x &= p \ dot(x) &= v \ dot.double(x) &= a \ dot.triple(x) &= j \ dot.quad(x) &= s $ + --- // Test `accent` function. $accent(ö, .), accent(v, <-), accent(ZZ, \u{0303})$