plurimath 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +33 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +2 -0
- data/AsciiMath-Supported-Data.adoc +280 -0
- data/Gemfile +1 -0
- data/Latex-Supported-Data.adoc +1872 -0
- data/MathML-Supported-Data.adoc +270 -0
- data/README.adoc +94 -0
- data/lib/plurimath/asciimath/constants.rb +301 -0
- data/lib/plurimath/asciimath/parse.rb +121 -0
- data/lib/plurimath/asciimath/parser.rb +25 -0
- data/lib/plurimath/asciimath/transform.rb +395 -0
- data/lib/plurimath/asciimath.rb +16 -0
- data/lib/plurimath/html/constants.rb +50 -0
- data/lib/plurimath/html/parse.rb +149 -0
- data/lib/plurimath/html/parser.rb +26 -0
- data/lib/plurimath/html/transform.rb +363 -0
- data/lib/plurimath/html.rb +15 -0
- data/lib/plurimath/latex/constants.rb +1990 -0
- data/lib/plurimath/latex/parse.rb +198 -0
- data/lib/plurimath/latex/parser.rb +25 -0
- data/lib/plurimath/latex/transform.rb +458 -0
- data/lib/plurimath/latex.rb +15 -0
- data/lib/plurimath/math/formula.rb +51 -0
- data/lib/plurimath/math/function/abs.rb +12 -0
- data/lib/plurimath/math/function/arccos.rb +12 -0
- data/lib/plurimath/math/function/arcsin.rb +12 -0
- data/lib/plurimath/math/function/arctan.rb +12 -0
- data/lib/plurimath/math/function/bar.rb +16 -0
- data/lib/plurimath/math/function/base.rb +36 -0
- data/lib/plurimath/math/function/binary_function.rb +58 -0
- data/lib/plurimath/math/function/cancel.rb +12 -0
- data/lib/plurimath/math/function/ceil.rb +12 -0
- data/lib/plurimath/math/function/color.rb +23 -0
- data/lib/plurimath/math/function/cos.rb +12 -0
- data/lib/plurimath/math/function/cosh.rb +12 -0
- data/lib/plurimath/math/function/cot.rb +12 -0
- data/lib/plurimath/math/function/coth.rb +12 -0
- data/lib/plurimath/math/function/csc.rb +12 -0
- data/lib/plurimath/math/function/csch.rb +12 -0
- data/lib/plurimath/math/function/ddot.rb +12 -0
- data/lib/plurimath/math/function/deg.rb +12 -0
- data/lib/plurimath/math/function/det.rb +12 -0
- data/lib/plurimath/math/function/dim.rb +12 -0
- data/lib/plurimath/math/function/dot.rb +12 -0
- data/lib/plurimath/math/function/exp.rb +12 -0
- data/lib/plurimath/math/function/f.rb +12 -0
- data/lib/plurimath/math/function/fenced.rb +27 -0
- data/lib/plurimath/math/function/floor.rb +12 -0
- data/lib/plurimath/math/function/font_style/bold.rb +18 -0
- data/lib/plurimath/math/function/font_style/double_struck.rb +18 -0
- data/lib/plurimath/math/function/font_style/fraktur.rb +18 -0
- data/lib/plurimath/math/function/font_style/monospace.rb +18 -0
- data/lib/plurimath/math/function/font_style/sans-serif.rb +18 -0
- data/lib/plurimath/math/function/font_style/script.rb +18 -0
- data/lib/plurimath/math/function/font_style.rb +25 -0
- data/lib/plurimath/math/function/frac.rb +23 -0
- data/lib/plurimath/math/function/g.rb +12 -0
- data/lib/plurimath/math/function/gcd.rb +12 -0
- data/lib/plurimath/math/function/glb.rb +12 -0
- data/lib/plurimath/math/function/hat.rb +12 -0
- data/lib/plurimath/math/function/hom.rb +12 -0
- data/lib/plurimath/math/function/inf.rb +17 -0
- data/lib/plurimath/math/function/int.rb +17 -0
- data/lib/plurimath/math/function/ker.rb +12 -0
- data/lib/plurimath/math/function/lcm.rb +12 -0
- data/lib/plurimath/math/function/left.rb +20 -0
- data/lib/plurimath/math/function/lg.rb +12 -0
- data/lib/plurimath/math/function/lim.rb +23 -0
- data/lib/plurimath/math/function/liminf.rb +12 -0
- data/lib/plurimath/math/function/limits.rb +18 -0
- data/lib/plurimath/math/function/limsup.rb +12 -0
- data/lib/plurimath/math/function/ln.rb +12 -0
- data/lib/plurimath/math/function/log.rb +29 -0
- data/lib/plurimath/math/function/lub.rb +12 -0
- data/lib/plurimath/math/function/max.rb +12 -0
- data/lib/plurimath/math/function/min.rb +12 -0
- data/lib/plurimath/math/function/mod.rb +29 -0
- data/lib/plurimath/math/function/multiscript.rb +11 -0
- data/lib/plurimath/math/function/norm.rb +16 -0
- data/lib/plurimath/math/function/obrace.rb +12 -0
- data/lib/plurimath/math/function/oint.rb +17 -0
- data/lib/plurimath/math/function/over.rb +29 -0
- data/lib/plurimath/math/function/overset.rb +23 -0
- data/lib/plurimath/math/function/power.rb +36 -0
- data/lib/plurimath/math/function/power_base.rb +33 -0
- data/lib/plurimath/math/function/prod.rb +29 -0
- data/lib/plurimath/math/function/right.rb +24 -0
- data/lib/plurimath/math/function/root.rb +23 -0
- data/lib/plurimath/math/function/sec.rb +12 -0
- data/lib/plurimath/math/function/sech.rb +12 -0
- data/lib/plurimath/math/function/sin.rb +12 -0
- data/lib/plurimath/math/function/sinh.rb +12 -0
- data/lib/plurimath/math/function/sqrt.rb +16 -0
- data/lib/plurimath/math/function/stackrel.rb +12 -0
- data/lib/plurimath/math/function/substack.rb +17 -0
- data/lib/plurimath/math/function/sum.rb +29 -0
- data/lib/plurimath/math/function/sup.rb +12 -0
- data/lib/plurimath/math/function/table/align.rb +24 -0
- data/lib/plurimath/math/function/table/array.rb +25 -0
- data/lib/plurimath/math/function/table/bmatrix.rb +26 -0
- data/lib/plurimath/math/function/table/matrix.rb +24 -0
- data/lib/plurimath/math/function/table/multline.rb +24 -0
- data/lib/plurimath/math/function/table/pmatrix.rb +24 -0
- data/lib/plurimath/math/function/table/split.rb +24 -0
- data/lib/plurimath/math/function/table/vmatrix.rb +25 -0
- data/lib/plurimath/math/function/table.rb +54 -0
- data/lib/plurimath/math/function/tan.rb +12 -0
- data/lib/plurimath/math/function/tanh.rb +12 -0
- data/lib/plurimath/math/function/td.rb +32 -0
- data/lib/plurimath/math/function/ternary_function.rb +52 -0
- data/lib/plurimath/math/function/text.rb +44 -0
- data/lib/plurimath/math/function/tilde.rb +12 -0
- data/lib/plurimath/math/function/tr.rb +30 -0
- data/lib/plurimath/math/function/ubrace.rb +12 -0
- data/lib/plurimath/math/function/ul.rb +12 -0
- data/lib/plurimath/math/function/unary_function.rb +46 -0
- data/lib/plurimath/math/function/underover.rb +12 -0
- data/lib/plurimath/math/function/underset.rb +12 -0
- data/lib/plurimath/math/function/vec.rb +16 -0
- data/lib/plurimath/math/function.rb +14 -0
- data/lib/plurimath/math/number.rb +37 -0
- data/lib/plurimath/math/symbol.rb +43 -0
- data/lib/plurimath/math.rb +56 -0
- data/lib/plurimath/mathml/constants.rb +295 -0
- data/lib/plurimath/mathml/parse.rb +68 -0
- data/lib/plurimath/mathml/parser.rb +26 -0
- data/lib/plurimath/mathml/transform.rb +200 -0
- data/lib/plurimath/mathml.rb +16 -0
- data/lib/plurimath/omml/constants.rb +154 -0
- data/lib/plurimath/omml/parser.rb +22 -0
- data/lib/plurimath/omml/transform.rb +216 -0
- data/lib/plurimath/omml.rb +15 -0
- data/lib/plurimath/unicode.rb +15 -0
- data/lib/plurimath/unitsml.rb +15 -0
- data/lib/plurimath/utility.rb +73 -0
- data/lib/plurimath/version.rb +3 -1
- data/lib/plurimath.rb +3 -5
- data/plurimath.gemspec +4 -3
- metadata +169 -9
- data/README.md +0 -40
@@ -0,0 +1,270 @@
|
|
1
|
+
=== MathML Support
|
2
|
+
|
3
|
+
==== Classes
|
4
|
+
|===
|
5
|
+
| Functions | Fonts
|
6
|
+
|
7
|
+
| stackrel | double-struck
|
8
|
+
| underset | sans-serif
|
9
|
+
| mathfrak | monospace
|
10
|
+
| mathcal | fraktur
|
11
|
+
| overset | script
|
12
|
+
| cancel | bold
|
13
|
+
| obrace |
|
14
|
+
| ubrace |
|
15
|
+
| mathtt |
|
16
|
+
| mathbf |
|
17
|
+
| mathbb |
|
18
|
+
| mathsf |
|
19
|
+
| arctan |
|
20
|
+
| arcsin |
|
21
|
+
| arccos |
|
22
|
+
| color |
|
23
|
+
| floor |
|
24
|
+
| tilde |
|
25
|
+
| prod |
|
26
|
+
| text |
|
27
|
+
| norm |
|
28
|
+
| sqrt |
|
29
|
+
| cosh |
|
30
|
+
| tanh |
|
31
|
+
| sinh |
|
32
|
+
| sech |
|
33
|
+
| csch |
|
34
|
+
| coth |
|
35
|
+
| ddot |
|
36
|
+
| ceil |
|
37
|
+
| oint |
|
38
|
+
| root |
|
39
|
+
| frac |
|
40
|
+
| log |
|
41
|
+
| mod |
|
42
|
+
| vec |
|
43
|
+
| hat |
|
44
|
+
| dot |
|
45
|
+
| bar |
|
46
|
+
| abs |
|
47
|
+
| min |
|
48
|
+
| max |
|
49
|
+
| dim |
|
50
|
+
| det |
|
51
|
+
| csc |
|
52
|
+
| cot |
|
53
|
+
| lub |
|
54
|
+
| lcm |
|
55
|
+
| glb |
|
56
|
+
| gcd |
|
57
|
+
| exp |
|
58
|
+
| sum |
|
59
|
+
| cos |
|
60
|
+
| tan |
|
61
|
+
| sin |
|
62
|
+
| int |
|
63
|
+
| sec |
|
64
|
+
| ln |
|
65
|
+
| ul |
|
66
|
+
| g |
|
67
|
+
| f |
|
68
|
+
|===
|
69
|
+
|
70
|
+
==== Tags
|
71
|
+
** annotation_xml
|
72
|
+
** annotation-xml
|
73
|
+
** mmultiscripts
|
74
|
+
** maligngroup
|
75
|
+
** munderover
|
76
|
+
** annotation
|
77
|
+
** malignmark
|
78
|
+
** semantics
|
79
|
+
** mscarries
|
80
|
+
** menclose
|
81
|
+
** mlongdiv
|
82
|
+
** mphantom
|
83
|
+
** mfenced
|
84
|
+
** msgroup
|
85
|
+
** maction
|
86
|
+
** mpadded
|
87
|
+
** msubsup
|
88
|
+
** mscarry
|
89
|
+
** msline
|
90
|
+
** mspace
|
91
|
+
** mstack
|
92
|
+
** mstyle
|
93
|
+
** mtable
|
94
|
+
** munder
|
95
|
+
** merror
|
96
|
+
** msqrt
|
97
|
+
** mroot
|
98
|
+
** msrow
|
99
|
+
** mover
|
100
|
+
** mfrac
|
101
|
+
** math
|
102
|
+
** mrow
|
103
|
+
** msub
|
104
|
+
** msup
|
105
|
+
** mtd
|
106
|
+
** mtr
|
107
|
+
** mn
|
108
|
+
** mo
|
109
|
+
** mi
|
110
|
+
** ms
|
111
|
+
|
112
|
+
==== Unicodes
|
113
|
+
** \α
|
114
|
+
** \β
|
115
|
+
** \γ
|
116
|
+
** \Γ
|
117
|
+
** \δ
|
118
|
+
** \Δ
|
119
|
+
** \∆
|
120
|
+
** \ε
|
121
|
+
** \ɛ
|
122
|
+
** \ζ
|
123
|
+
** \η
|
124
|
+
** \θ
|
125
|
+
** \Θ
|
126
|
+
** \ϑ
|
127
|
+
** \ι
|
128
|
+
** \κ
|
129
|
+
** \λ
|
130
|
+
** \Λ
|
131
|
+
** \μ
|
132
|
+
** \ν
|
133
|
+
** \ξ
|
134
|
+
** \Ξ
|
135
|
+
** \π
|
136
|
+
** \Π
|
137
|
+
** \ρ
|
138
|
+
** \ς
|
139
|
+
** \σ
|
140
|
+
** \Σ
|
141
|
+
** \τ
|
142
|
+
** \υ
|
143
|
+
** \φ
|
144
|
+
** \Φ
|
145
|
+
** \ϕ
|
146
|
+
** \χ
|
147
|
+
** \ψ
|
148
|
+
** \Ψ
|
149
|
+
** \ω
|
150
|
+
** \Ω
|
151
|
+
** \⋅
|
152
|
+
** \∙
|
153
|
+
** \·
|
154
|
+
** \∗
|
155
|
+
** \⋆
|
156
|
+
** \×
|
157
|
+
** \⋉
|
158
|
+
** \⋊
|
159
|
+
** \⋈
|
160
|
+
** \÷
|
161
|
+
** \∘
|
162
|
+
** \⊕
|
163
|
+
** \⨁
|
164
|
+
** \⊗
|
165
|
+
** \⊙
|
166
|
+
** \∑
|
167
|
+
** \∏
|
168
|
+
** \∏
|
169
|
+
** \∧
|
170
|
+
** \⋀
|
171
|
+
** \∨
|
172
|
+
** \⋁
|
173
|
+
** \∩
|
174
|
+
** \⋂
|
175
|
+
** \∪
|
176
|
+
** \⋃
|
177
|
+
** \≠
|
178
|
+
** \≤
|
179
|
+
** \≥
|
180
|
+
** \≺
|
181
|
+
** \≻
|
182
|
+
** \⪯
|
183
|
+
** \⪰
|
184
|
+
** \∈
|
185
|
+
** \∉
|
186
|
+
** \⊂
|
187
|
+
** \⊃
|
188
|
+
** \⊆
|
189
|
+
** \⊇
|
190
|
+
** \≡
|
191
|
+
** \≅
|
192
|
+
** \≈
|
193
|
+
** \∝
|
194
|
+
** \¬
|
195
|
+
** \∀
|
196
|
+
** \∃
|
197
|
+
** \⊥
|
198
|
+
** \⊤
|
199
|
+
** \⊢
|
200
|
+
** \⊨
|
201
|
+
** \〈
|
202
|
+
** \〉
|
203
|
+
** \⟨
|
204
|
+
** \⟩
|
205
|
+
** \∫
|
206
|
+
** \∮
|
207
|
+
** \∂
|
208
|
+
** \∇
|
209
|
+
** \±
|
210
|
+
** \∅
|
211
|
+
** \∞
|
212
|
+
** \ℵ
|
213
|
+
** \∴
|
214
|
+
** \∵
|
215
|
+
** \∠
|
216
|
+
** \△
|
217
|
+
** \′
|
218
|
+
** \  
|
219
|
+
** \    
|
220
|
+
** \⌢
|
221
|
+
** \⋯
|
222
|
+
** \⋮
|
223
|
+
** \⋱
|
224
|
+
** \⋄
|
225
|
+
** \□
|
226
|
+
** \⌊
|
227
|
+
** \⌋
|
228
|
+
** \⌈
|
229
|
+
** \⌉
|
230
|
+
** \ℂ
|
231
|
+
** \ℕ
|
232
|
+
** \ℚ
|
233
|
+
** \ℝ
|
234
|
+
** \ℤ
|
235
|
+
** \↑
|
236
|
+
** \↓
|
237
|
+
** \←
|
238
|
+
** \↔
|
239
|
+
** \⇒
|
240
|
+
** \⇐
|
241
|
+
** \⇔
|
242
|
+
** \→
|
243
|
+
** \↣
|
244
|
+
** \↠
|
245
|
+
** \⤖
|
246
|
+
** \↦
|
247
|
+
** \…
|
248
|
+
** \−
|
249
|
+
** \⁡
|
250
|
+
** \⏞
|
251
|
+
** \⏟
|
252
|
+
|
253
|
+
=== Symbols
|
254
|
+
** |
|
255
|
+
** /
|
256
|
+
** \
|
257
|
+
** ~
|
258
|
+
** (
|
259
|
+
** )
|
260
|
+
** (:
|
261
|
+
** :)
|
262
|
+
** {
|
263
|
+
** }
|
264
|
+
** {:
|
265
|
+
** :}
|
266
|
+
** ]
|
267
|
+
** [
|
268
|
+
** =
|
269
|
+
** +
|
270
|
+
** -
|
data/README.adoc
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
= Plurimath
|
2
|
+
|
3
|
+
This gem implements a mechanism of conversion between Math languages mentioned below.
|
4
|
+
|
5
|
+
1. **AsciiMath**
|
6
|
+
2. **MathML**
|
7
|
+
3. **Latex**
|
8
|
+
|
9
|
+
== Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem "plurimath"
|
15
|
+
```
|
16
|
+
And then execute:
|
17
|
+
```shell
|
18
|
+
|
19
|
+
$ bundle install
|
20
|
+
```
|
21
|
+
Or install it yourself as:
|
22
|
+
```shell
|
23
|
+
$ gem install plurimath
|
24
|
+
```
|
25
|
+
|
26
|
+
== Usage
|
27
|
+
|
28
|
+
Pass the string you want to convert and Math type of the string provided, which will give you **Plurimath::Math::Formula** object as output, Let's see some examples below.
|
29
|
+
|
30
|
+
=== Conversion Examples
|
31
|
+
|
32
|
+
==== Asciimath Formula Example
|
33
|
+
[source, ruby]
|
34
|
+
----
|
35
|
+
asciimath = "sin(1)"
|
36
|
+
formula = Plurimath::Math.parse(asciimath, :asciimath)
|
37
|
+
----
|
38
|
+
==== MathML Formula Example
|
39
|
+
[source, ruby]
|
40
|
+
----
|
41
|
+
mathml = <<~MATHML
|
42
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
|
43
|
+
<mstyle displaystyle='true'>
|
44
|
+
<mi>sin</mi>
|
45
|
+
<mn>1</mn>
|
46
|
+
</mstyle>
|
47
|
+
</math>
|
48
|
+
MATHML
|
49
|
+
formula = Plurimath::Math.parse(mathml, "mathml")
|
50
|
+
----
|
51
|
+
==== Latex Formula Example
|
52
|
+
[source, ruby]
|
53
|
+
----
|
54
|
+
latex = "\\sin{1}"
|
55
|
+
formula = Plurimath::Math.parse(latex, "latex")
|
56
|
+
----
|
57
|
+
---
|
58
|
+
Since we have the object of **Plurimath::Formula**,We can generate **AsciiMath**, **MathMl** or **Latex** string from the formula object,All we have to do is call conversion function on formula object, see examples below.
|
59
|
+
|
60
|
+
==== AsciiMath Output conversion
|
61
|
+
[source, ruby]
|
62
|
+
----
|
63
|
+
formula.to_asciimath
|
64
|
+
> sin(1)
|
65
|
+
----
|
66
|
+
==== Latex Output conversion
|
67
|
+
[source, ruby]
|
68
|
+
----
|
69
|
+
formula.to_latex
|
70
|
+
> \\sin1
|
71
|
+
----
|
72
|
+
==== MathML Output conversion
|
73
|
+
[source, ruby]
|
74
|
+
----
|
75
|
+
formula.to_mathml
|
76
|
+
> <math xmlns='http://www.w3.org/1998/Math/MathML'>
|
77
|
+
> <mstyle displaystyle='true'>
|
78
|
+
> <mi>sin</mi>
|
79
|
+
> <mn>1</mn>
|
80
|
+
> </mstyle>
|
81
|
+
> </math>
|
82
|
+
----
|
83
|
+
=== Supported Content
|
84
|
+
--
|
85
|
+
include::AsciiMath-Supported-Data.adoc[]
|
86
|
+
--
|
87
|
+
|
88
|
+
--
|
89
|
+
include::MathML-Supported-Data.adoc[]
|
90
|
+
--
|
91
|
+
|
92
|
+
--
|
93
|
+
include::Latex-Supported-Data.adoc[]
|
94
|
+
--
|
@@ -0,0 +1,301 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Plurimath
|
4
|
+
class Asciimath
|
5
|
+
class Constants
|
6
|
+
TABLE_PARENTHESIS = {
|
7
|
+
"[": "]",
|
8
|
+
"{": "}",
|
9
|
+
"(": ")",
|
10
|
+
"|": "|",
|
11
|
+
}.freeze
|
12
|
+
PARENTHESIS = {
|
13
|
+
"(:": ":)",
|
14
|
+
"{:": ":}",
|
15
|
+
"(": ")",
|
16
|
+
"{": "}",
|
17
|
+
"[": "]",
|
18
|
+
}.freeze
|
19
|
+
SYMBOLS = {
|
20
|
+
twoheadrightarrowtail: :"⤖",
|
21
|
+
twoheadrightarrow: :"↠",
|
22
|
+
rightarrowtail: :"↣",
|
23
|
+
Leftrightarrow: :"⇔",
|
24
|
+
leftrightarrow: :"↔",
|
25
|
+
Rightarrow: :"⇒",
|
26
|
+
rightarrow: :"→",
|
27
|
+
varepsilon: :"ɛ",
|
28
|
+
Leftarrow: :"⇐",
|
29
|
+
leftarrow: :"←",
|
30
|
+
downarrow: :"↓",
|
31
|
+
therefore: :"∴",
|
32
|
+
backslash: :"\\",
|
33
|
+
setminus: :"\\",
|
34
|
+
triangle: :"△",
|
35
|
+
bigwedge: :"⋀",
|
36
|
+
rceiling: :"⌉",
|
37
|
+
lceiling: :"⌈",
|
38
|
+
supseteq: :"⊇",
|
39
|
+
subseteq: :"⊆",
|
40
|
+
vartheta: :"ϑ",
|
41
|
+
emptyset: :"∅",
|
42
|
+
diamond: :"⋄",
|
43
|
+
uparrow: :"↑",
|
44
|
+
implies: :"⇒",
|
45
|
+
partial: :"∂",
|
46
|
+
because: :"∵",
|
47
|
+
upsilon: :"υ",
|
48
|
+
epsilon: :"ε",
|
49
|
+
bigcap: :"⋂",
|
50
|
+
bigvee: :"⋁",
|
51
|
+
propto: :"∝",
|
52
|
+
approx: :"≈",
|
53
|
+
exists: :"∃",
|
54
|
+
forall: :"∀",
|
55
|
+
otimes: :"⊗",
|
56
|
+
ltimes: :"⋉",
|
57
|
+
bowtie: :"⋈",
|
58
|
+
rtimes: :"⋊",
|
59
|
+
models: :"⊨",
|
60
|
+
mapsto: :"↦",
|
61
|
+
bigcup: :"⋃",
|
62
|
+
succeq: :"⪰",
|
63
|
+
preceq: :"⪯",
|
64
|
+
rfloor: :"⌋",
|
65
|
+
lfloor: :"⌊",
|
66
|
+
square: :"□",
|
67
|
+
supset: :"⊃",
|
68
|
+
subset: :"⊂",
|
69
|
+
lambda: :"λ",
|
70
|
+
Lambda: :"Λ",
|
71
|
+
varphi: :"φ",
|
72
|
+
">->>": :"⤖",
|
73
|
+
"/_\\": :"△",
|
74
|
+
"|><|": :"⋈",
|
75
|
+
kappa: :"κ",
|
76
|
+
Delta: :"Δ",
|
77
|
+
delta: :"δ",
|
78
|
+
gamma: :"γ",
|
79
|
+
Gamma: :"Γ",
|
80
|
+
Theta: :"Θ",
|
81
|
+
theta: :"θ",
|
82
|
+
alpha: :"α",
|
83
|
+
aleph: :"ࡗ",
|
84
|
+
infty: :"ÝE;",
|
85
|
+
equiv: :"ࣕ",
|
86
|
+
frown: :"ऒ",
|
87
|
+
notin: :"ࢡ",
|
88
|
+
angle: :"ࢬ",
|
89
|
+
"!in": :"∉",
|
90
|
+
cdots: :"⋯",
|
91
|
+
vdash: :"⊢",
|
92
|
+
wedge: :"∧",
|
93
|
+
oplus: :"⊕",
|
94
|
+
nabla: :"∇",
|
95
|
+
ddots: :"⋱",
|
96
|
+
vdots: :"⋮",
|
97
|
+
Sigma: :"A3;",
|
98
|
+
Omega: :"A9;",
|
99
|
+
omega: :"C9;",
|
100
|
+
sigma: :"C3;",
|
101
|
+
times: :"×",
|
102
|
+
ldots: :"...",
|
103
|
+
">-=": :"⪰",
|
104
|
+
"-<=": :"⪯",
|
105
|
+
"><|": :"⋊",
|
106
|
+
"|==": :"⊨",
|
107
|
+
"|--": :"⊢",
|
108
|
+
"^^^": :"⋀",
|
109
|
+
"|->": :"↦",
|
110
|
+
">->": :"↣",
|
111
|
+
"->>": :"↠",
|
112
|
+
"__|": :"⌋",
|
113
|
+
"|__": :"⌊",
|
114
|
+
"|><": :"⋉",
|
115
|
+
"_|_": :"⊥",
|
116
|
+
"***": :"⋆",
|
117
|
+
"<=>": :"⇔",
|
118
|
+
quad: :"  ",
|
119
|
+
star: :"⋆",
|
120
|
+
odot: :"⊙",
|
121
|
+
cdot: :"⋅",
|
122
|
+
rarr: :"→",
|
123
|
+
darr: :"↓",
|
124
|
+
prop: :"∝",
|
125
|
+
lArr: :"⇐",
|
126
|
+
rArr: :"⇒",
|
127
|
+
uarr: :"↑",
|
128
|
+
hArr: :"⇔",
|
129
|
+
harr: :"↔",
|
130
|
+
larr: :"←",
|
131
|
+
grad: :"∇",
|
132
|
+
circ: :"∘",
|
133
|
+
sube: :"⊆",
|
134
|
+
supe: :"⊇",
|
135
|
+
succ: :"ãB;",
|
136
|
+
prec: :"ãA;",
|
137
|
+
cong: :"ࣅ",
|
138
|
+
beta: :"β",
|
139
|
+
zeta: :"ζ",
|
140
|
+
iota: :"ι",
|
141
|
+
":'": :"∵",
|
142
|
+
"^^": :"∧",
|
143
|
+
"o+": :"⊕",
|
144
|
+
"o.": :"⊙",
|
145
|
+
"**": :"∗",
|
146
|
+
"~~": :"≈",
|
147
|
+
"O/": :"∅",
|
148
|
+
"->": :"→",
|
149
|
+
"=>": :"⇒",
|
150
|
+
">>": :"〉",
|
151
|
+
"<<": :"〈",
|
152
|
+
"~|": :"⌉",
|
153
|
+
"!=": :"≠",
|
154
|
+
">-": :"≻",
|
155
|
+
"-<": :"≺",
|
156
|
+
"~=": :"≅",
|
157
|
+
"-=": :"≡",
|
158
|
+
":.": :"∴",
|
159
|
+
">=": :"≥",
|
160
|
+
"<=": :"≤",
|
161
|
+
"|~": :"⌈",
|
162
|
+
"/_": :"∠",
|
163
|
+
"+-": :"±",
|
164
|
+
"-:": :"÷",
|
165
|
+
sup: :"⊃",
|
166
|
+
sub: :"⊂",
|
167
|
+
top: :"⊤",
|
168
|
+
vvv: :"⋁",
|
169
|
+
vee: :"∨",
|
170
|
+
nnn: :"⋂",
|
171
|
+
cap: :"∩",
|
172
|
+
ast: :"∗",
|
173
|
+
bot: :"⊥",
|
174
|
+
del: :"∂",
|
175
|
+
uuu: :"⋃",
|
176
|
+
cup: :"∪",
|
177
|
+
iff: :"⇔",
|
178
|
+
eta: :"η",
|
179
|
+
Phi: :"Φ",
|
180
|
+
Psi: :"Ψ",
|
181
|
+
psi: :"ψ",
|
182
|
+
chi: :"χ",
|
183
|
+
phi: :"ϕ",
|
184
|
+
rho: :"ρ",
|
185
|
+
tau: :"τ",
|
186
|
+
div: :"÷",
|
187
|
+
neg: :"¬",
|
188
|
+
not: :"¬",
|
189
|
+
"@": :"∘",
|
190
|
+
"*": :"⋅",
|
191
|
+
"<": :"<",
|
192
|
+
">": :">",
|
193
|
+
"-": :"-",
|
194
|
+
"=": :"=",
|
195
|
+
"+": :"+",
|
196
|
+
"/": :"/",
|
197
|
+
nn: :"∩",
|
198
|
+
vv: :"∨",
|
199
|
+
TT: :"⊤",
|
200
|
+
EE: :"∃",
|
201
|
+
ox: :"⊗",
|
202
|
+
to: :"→",
|
203
|
+
AA: :"∀",
|
204
|
+
uu: :"∪",
|
205
|
+
ne: :"≠",
|
206
|
+
ZZ: :"ℤ",
|
207
|
+
RR: :"ℝ",
|
208
|
+
QQ: :"ℚ",
|
209
|
+
NN: :"ℕ",
|
210
|
+
CC: :"ℂ",
|
211
|
+
oo: :"∞",
|
212
|
+
ge: :"≥",
|
213
|
+
le: :"≤",
|
214
|
+
in: :"∈",
|
215
|
+
nu: :"ν",
|
216
|
+
mu: :"μ",
|
217
|
+
pi: :"π",
|
218
|
+
Pi: :"Π",
|
219
|
+
xi: :"ξ",
|
220
|
+
Xi: :"Ξ",
|
221
|
+
xx: :"×",
|
222
|
+
pm: :"±",
|
223
|
+
gt: :">",
|
224
|
+
lt: :"<",
|
225
|
+
}.freeze
|
226
|
+
UNARY_CLASSES = %i[
|
227
|
+
arccos
|
228
|
+
arcsin
|
229
|
+
arctan
|
230
|
+
ubrace
|
231
|
+
obrace
|
232
|
+
cancel
|
233
|
+
tilde
|
234
|
+
floor
|
235
|
+
ceil
|
236
|
+
ddot
|
237
|
+
coth
|
238
|
+
csch
|
239
|
+
sech
|
240
|
+
sinh
|
241
|
+
tanh
|
242
|
+
cosh
|
243
|
+
sqrt
|
244
|
+
norm
|
245
|
+
text
|
246
|
+
sec
|
247
|
+
sin
|
248
|
+
tan
|
249
|
+
cos
|
250
|
+
exp
|
251
|
+
gcd
|
252
|
+
glb
|
253
|
+
lcm
|
254
|
+
lub
|
255
|
+
cot
|
256
|
+
csc
|
257
|
+
det
|
258
|
+
dim
|
259
|
+
max
|
260
|
+
min
|
261
|
+
abs
|
262
|
+
bar
|
263
|
+
dot
|
264
|
+
hat
|
265
|
+
vec
|
266
|
+
ul
|
267
|
+
ln
|
268
|
+
f
|
269
|
+
g
|
270
|
+
].freeze
|
271
|
+
BINARY_CLASSES = %i[
|
272
|
+
underset
|
273
|
+
stackrel
|
274
|
+
overset
|
275
|
+
color
|
276
|
+
prod
|
277
|
+
frac
|
278
|
+
root
|
279
|
+
oint
|
280
|
+
int
|
281
|
+
sum
|
282
|
+
mod
|
283
|
+
log
|
284
|
+
].freeze
|
285
|
+
FONT_STYLES = %i[
|
286
|
+
mathfrak
|
287
|
+
mathcal
|
288
|
+
mathbb
|
289
|
+
mathsf
|
290
|
+
mathtt
|
291
|
+
mathbf
|
292
|
+
bbb
|
293
|
+
bb
|
294
|
+
fr
|
295
|
+
cc
|
296
|
+
sf
|
297
|
+
tt
|
298
|
+
].freeze
|
299
|
+
end
|
300
|
+
end
|
301
|
+
end
|