From b0c088740e821dddc6b8cbb4e1c35df6acdfbee9 Mon Sep 17 00:00:00 2001 From: Leedehai <18319900+Leedehai@users.noreply.github.com> Date: Fri, 28 Apr 2023 12:49:32 -0400 Subject: [PATCH] Nit: sort and annotate codepoints which should attach as limits (#999) --- library/src/math/attach.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/library/src/math/attach.rs b/library/src/math/attach.rs index e7cffdd32..9e01ea6b9 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}', ];