diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2023-04-28 12:49:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-28 18:49:32 +0200 |
| commit | b0c088740e821dddc6b8cbb4e1c35df6acdfbee9 (patch) | |
| tree | 1971f73662218f3690355d42efdcb1c8cef7b695 /library/src/math | |
| parent | 8fa1af8ac85a9f5395b53139ac6bcc299d95f347 (diff) | |
Nit: sort and annotate codepoints which should attach as limits (#999)
Diffstat (limited to 'library/src/math')
| -rw-r--r-- | library/src/math/attach.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/library/src/math/attach.rs b/library/src/math/attach.rs index e7cffdd3..9e01ea6b 100644 --- a/library/src/math/attach.rs +++ b/library/src/math/attach.rs @@ -337,8 +337,13 @@ fn compute_shifts_up_and_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] = &[ - '\u{2210}', '\u{22C1}', '\u{22C0}', '\u{2A04}', '\u{22C2}', '\u{22C3}', '\u{220F}', - '\u{2211}', '\u{2A02}', '\u{2A01}', '\u{2A00}', '\u{2A06}', + /* ∏ */ '\u{220F}', /* ∐ */ '\u{2210}', /* ∑ */ '\u{2211}', + /* ⋀ */ '\u{22C0}', /* ⋁ */ '\u{22C1}', + /* ⋂ */ '\u{22C2}', /* ⋃ */ '\u{22C3}', + /* ⨀ */ '\u{2A00}', /* ⨁ */ '\u{2A01}', /* ⨂ */ '\u{2A02}', + /* ⨃ */ '\u{2A03}', /* ⨄ */ '\u{2A04}', + /* ⨅ */ '\u{2A05}', /* ⨆ */ '\u{2A06}', ]; |
