Merge branch 'main' into feature/mathml
commit
f461d9ea9e
@ -0,0 +1,34 @@
|
||||
use crate::elements::Element;
|
||||
use crate::tokens::Accent;
|
||||
|
||||
#[derive(Debug, Clone, PartialOrd, PartialEq)]
|
||||
pub enum ExpressionAccent {
|
||||
Generic(GenericAccent),
|
||||
OverSet(OverSet),
|
||||
UnderSet(UnderSet),
|
||||
Color(Color),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialOrd, PartialEq)]
|
||||
pub struct GenericAccent {
|
||||
pub inner: Box<Element>,
|
||||
pub accent: Accent,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialOrd, PartialEq)]
|
||||
pub struct OverSet {
|
||||
pub top: Box<Element>,
|
||||
pub bottom: Box<Element>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialOrd, PartialEq)]
|
||||
pub struct UnderSet {
|
||||
pub top: Box<Element>,
|
||||
pub bottom: Box<Element>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialOrd, PartialEq)]
|
||||
pub struct Color {
|
||||
pub color: String,
|
||||
pub inner: Box<Element>,
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
pub const G_HAT: &'static[&str] = &["hat"];
|
||||
pub const G_OVERLINE: &'static[&str] = &["bar", "overline"];
|
||||
pub const G_UNDERLINE: &'static[&str] = &["ul", "underline"];
|
||||
pub const G_VEC: &'static[&str] = &["vec"];
|
||||
pub const G_DOT: &'static[&str] = &["dot"];
|
||||
pub const G_DDOT: &'static[&str] = &["ddot"];
|
||||
pub const G_OVERSET: &'static[&str] = &["overset"];
|
||||
pub const G_UNDERSET: &'static[&str] = &["underset"];
|
||||
pub const G_UNDERBRACE: &'static[&str] = &["ubrace", "underbrace"];
|
||||
pub const G_OVERBRACE: &'static[&str] = &["obrace", "overbrace"];
|
||||
pub const G_COLOR: &'static[&str] = &["color"];
|
||||
pub const G_CANCEL: &'static[&str] = &["cancel"];
|
||||
pub const G_HAT: &'static [&str] = &["hat"];
|
||||
pub const G_OVERLINE: &'static [&str] = &["bar", "overline"];
|
||||
pub const G_UNDERLINE: &'static [&str] = &["ul", "underline"];
|
||||
pub const G_VEC: &'static [&str] = &["vec"];
|
||||
pub const G_DOT: &'static [&str] = &["dot"];
|
||||
pub const G_DDOT: &'static [&str] = &["ddot"];
|
||||
pub const G_OVERSET: &'static [&str] = &["overset"];
|
||||
pub const G_UNDERSET: &'static [&str] = &["underset"];
|
||||
pub const G_UNDERBRACE: &'static [&str] = &["ubrace", "underbrace"];
|
||||
pub const G_OVERBRACE: &'static [&str] = &["obrace", "overbrace"];
|
||||
pub const G_COLOR: &'static [&str] = &["color("];
|
||||
pub const G_CANCEL: &'static [&str] = &["cancel"];
|
||||
|
Loading…
Reference in New Issue