mirror of
https://github.com/typst/typst
synced 2025-05-16 01:55:28 +08:00
Nit: sort and annotate codepoints which should attach as limits (#999)
This commit is contained in:
parent
8fa1af8ac8
commit
b0c088740e
@ -337,8 +337,13 @@ fn compute_shifts_up_and_down(
|
|||||||
(shift_up, shift_down)
|
(shift_up, shift_down)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Codepoints that should have sub- and superscripts attached as limits.
|
/// Unicode codepoints that should have sub- and superscripts attached as limits.
|
||||||
|
#[rustfmt::skip]
|
||||||
const LIMITS: &[char] = &[
|
const LIMITS: &[char] = &[
|
||||||
'\u{2210}', '\u{22C1}', '\u{22C0}', '\u{2A04}', '\u{22C2}', '\u{22C3}', '\u{220F}',
|
/* ∏ */ '\u{220F}', /* ∐ */ '\u{2210}', /* ∑ */ '\u{2211}',
|
||||||
'\u{2211}', '\u{2A02}', '\u{2A01}', '\u{2A00}', '\u{2A06}',
|
/* ⋀ */ '\u{22C0}', /* ⋁ */ '\u{22C1}',
|
||||||
|
/* ⋂ */ '\u{22C2}', /* ⋃ */ '\u{22C3}',
|
||||||
|
/* ⨀ */ '\u{2A00}', /* ⨁ */ '\u{2A01}', /* ⨂ */ '\u{2A02}',
|
||||||
|
/* ⨃ */ '\u{2A03}', /* ⨄ */ '\u{2A04}',
|
||||||
|
/* ⨅ */ '\u{2A05}', /* ⨆ */ '\u{2A06}',
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user