temml 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/README.md +44 -0
- package/contrib/auto-render/README.md +89 -0
- package/contrib/auto-render/auto-render.js +128 -0
- package/contrib/auto-render/dist/auto-render.js +217 -0
- package/contrib/auto-render/dist/auto-render.min.js +1 -0
- package/contrib/auto-render/splitAtDelimiters.js +84 -0
- package/contrib/auto-render/test/auto-render-spec.js +234 -0
- package/contrib/auto-render/test/auto-render.js +217 -0
- package/contrib/auto-render/test/test_page.html +59 -0
- package/contrib/mhchem/README.md +26 -0
- package/contrib/mhchem/mhchem.js +1705 -0
- package/contrib/mhchem/mhchem.min.js +1 -0
- package/contrib/physics/README.md +20 -0
- package/contrib/physics/physics.js +131 -0
- package/contrib/texvc/README.md +23 -0
- package/contrib/texvc/texvc.js +61 -0
- package/dist/Temml-Asana.css +201 -0
- package/dist/Temml-Latin-Modern.css +216 -0
- package/dist/Temml-Libertinus.css +214 -0
- package/dist/Temml-Local.css +194 -0
- package/dist/Temml-STIX2.css +203 -0
- package/dist/Temml.woff2 +0 -0
- package/dist/temml.cjs +13122 -0
- package/dist/temml.js +11225 -0
- package/dist/temml.min.js +1 -0
- package/dist/temml.mjs +13120 -0
- package/dist/temmlPostProcess.js +70 -0
- package/package.json +34 -0
- package/src/Lexer.js +121 -0
- package/src/MacroExpander.js +437 -0
- package/src/Namespace.js +107 -0
- package/src/ParseError.js +64 -0
- package/src/Parser.js +977 -0
- package/src/Settings.js +49 -0
- package/src/SourceLocation.js +29 -0
- package/src/Style.js +144 -0
- package/src/Token.js +40 -0
- package/src/buildMathML.js +235 -0
- package/src/constants.js +25 -0
- package/src/defineEnvironment.js +25 -0
- package/src/defineFunction.js +69 -0
- package/src/defineMacro.js +11 -0
- package/src/domTree.js +185 -0
- package/src/environments/array.js +791 -0
- package/src/environments/cd.js +252 -0
- package/src/environments.js +8 -0
- package/src/functions/accent.js +127 -0
- package/src/functions/accentunder.js +38 -0
- package/src/functions/arrow.js +204 -0
- package/src/functions/cancelto.js +36 -0
- package/src/functions/char.js +33 -0
- package/src/functions/color.js +253 -0
- package/src/functions/cr.js +46 -0
- package/src/functions/def.js +259 -0
- package/src/functions/delimsizing.js +304 -0
- package/src/functions/enclose.js +193 -0
- package/src/functions/envTag.js +38 -0
- package/src/functions/environment.js +59 -0
- package/src/functions/font.js +123 -0
- package/src/functions/genfrac.js +333 -0
- package/src/functions/hbox.js +29 -0
- package/src/functions/horizBrace.js +32 -0
- package/src/functions/href.js +90 -0
- package/src/functions/html.js +95 -0
- package/src/functions/includegraphics.js +131 -0
- package/src/functions/kern.js +75 -0
- package/src/functions/label.js +29 -0
- package/src/functions/lap.js +75 -0
- package/src/functions/math.js +40 -0
- package/src/functions/mathchoice.js +41 -0
- package/src/functions/mclass.js +201 -0
- package/src/functions/multiscript.js +91 -0
- package/src/functions/not.js +46 -0
- package/src/functions/op.js +338 -0
- package/src/functions/operatorname.js +139 -0
- package/src/functions/ordgroup.js +9 -0
- package/src/functions/phantom.js +73 -0
- package/src/functions/pmb.js +31 -0
- package/src/functions/raise.js +68 -0
- package/src/functions/ref.js +28 -0
- package/src/functions/relax.js +16 -0
- package/src/functions/rule.js +52 -0
- package/src/functions/sizing.js +64 -0
- package/src/functions/smash.js +66 -0
- package/src/functions/sqrt.js +31 -0
- package/src/functions/styling.js +58 -0
- package/src/functions/supsub.js +135 -0
- package/src/functions/symbolsOp.js +53 -0
- package/src/functions/symbolsOrd.js +102 -0
- package/src/functions/symbolsSpacing.js +53 -0
- package/src/functions/tag.js +8 -0
- package/src/functions/text.js +75 -0
- package/src/functions/tip.js +63 -0
- package/src/functions/toggle.js +13 -0
- package/src/functions/verb.js +33 -0
- package/src/functions.js +57 -0
- package/src/linebreaking.js +159 -0
- package/src/macros.js +708 -0
- package/src/mathMLTree.js +175 -0
- package/src/parseNode.js +42 -0
- package/src/parseTree.js +40 -0
- package/src/postProcess.js +57 -0
- package/src/replace.js +225 -0
- package/src/stretchy.js +66 -0
- package/src/svg.js +110 -0
- package/src/symbols.js +972 -0
- package/src/tree.js +50 -0
- package/src/unicodeAccents.js +16 -0
- package/src/unicodeScripts.js +119 -0
- package/src/unicodeSupOrSub.js +108 -0
- package/src/unicodeSymbolBuilder.js +31 -0
- package/src/unicodeSymbols.js +320 -0
- package/src/units.js +109 -0
- package/src/utils.js +109 -0
- package/src/variant.js +103 -0
- package/temml.js +181 -0
package/src/symbols.js
ADDED
@@ -0,0 +1,972 @@
|
|
1
|
+
/**
|
2
|
+
* This file holds a list of all no-argument functions and single-character
|
3
|
+
* symbols (like 'a' or ';').
|
4
|
+
*
|
5
|
+
* For each of the symbols, there are two properties they can have:
|
6
|
+
* - group (required): the ParseNode group type the symbol should have (i.e.
|
7
|
+
"textord", "mathord", etc).
|
8
|
+
* - replace: the character that this symbol or function should be
|
9
|
+
* replaced with (i.e. "\phi" has a replace value of "\u03d5", the phi
|
10
|
+
* character in the main font).
|
11
|
+
*
|
12
|
+
* The outermost map in the table indicates what mode the symbols should be
|
13
|
+
* accepted in (e.g. "math" or "text").
|
14
|
+
*/
|
15
|
+
|
16
|
+
// Some of these have a "-token" suffix since these are also used as `ParseNode`
|
17
|
+
// types for raw text tokens, and we want to avoid conflicts with higher-level
|
18
|
+
// `ParseNode` types. These `ParseNode`s are constructed within `Parser` by
|
19
|
+
// looking up the `symbols` map.
|
20
|
+
export const ATOMS = {
|
21
|
+
bin: 1,
|
22
|
+
close: 1,
|
23
|
+
inner: 1,
|
24
|
+
open: 1,
|
25
|
+
punct: 1,
|
26
|
+
rel: 1
|
27
|
+
};
|
28
|
+
export const NON_ATOMS = {
|
29
|
+
"accent-token": 1,
|
30
|
+
mathord: 1,
|
31
|
+
"op-token": 1,
|
32
|
+
spacing: 1,
|
33
|
+
textord: 1
|
34
|
+
};
|
35
|
+
|
36
|
+
const symbols = {
|
37
|
+
math: {},
|
38
|
+
text: {}
|
39
|
+
};
|
40
|
+
export default symbols;
|
41
|
+
|
42
|
+
/** `acceptUnicodeChar = true` is only applicable if `replace` is set. */
|
43
|
+
export function defineSymbol(mode, group, replace, name, acceptUnicodeChar) {
|
44
|
+
symbols[mode][name] = { group, replace };
|
45
|
+
|
46
|
+
if (acceptUnicodeChar && replace) {
|
47
|
+
symbols[mode][replace] = symbols[mode][name];
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
// Some abbreviations for commonly used strings.
|
52
|
+
// This helps minify the code, and also spotting typos using jshint.
|
53
|
+
|
54
|
+
// modes:
|
55
|
+
const math = "math";
|
56
|
+
const text = "text";
|
57
|
+
|
58
|
+
// groups:
|
59
|
+
const accent = "accent-token";
|
60
|
+
const bin = "bin";
|
61
|
+
const close = "close";
|
62
|
+
const inner = "inner";
|
63
|
+
const mathord = "mathord";
|
64
|
+
const op = "op-token";
|
65
|
+
const open = "open";
|
66
|
+
const punct = "punct";
|
67
|
+
const rel = "rel";
|
68
|
+
const spacing = "spacing";
|
69
|
+
const textord = "textord";
|
70
|
+
|
71
|
+
// Now comes the symbol table
|
72
|
+
|
73
|
+
// Relation Symbols
|
74
|
+
defineSymbol(math, rel, "\u2261", "\\equiv", true);
|
75
|
+
defineSymbol(math, rel, "\u227a", "\\prec", true);
|
76
|
+
defineSymbol(math, rel, "\u227b", "\\succ", true);
|
77
|
+
defineSymbol(math, rel, "\u223c", "\\sim", true);
|
78
|
+
defineSymbol(math, rel, "\u27c2", "\\perp", true);
|
79
|
+
defineSymbol(math, rel, "\u2aaf", "\\preceq", true);
|
80
|
+
defineSymbol(math, rel, "\u2ab0", "\\succeq", true);
|
81
|
+
defineSymbol(math, rel, "\u2243", "\\simeq", true);
|
82
|
+
defineSymbol(math, rel, "\u224c", "\\backcong", true);
|
83
|
+
defineSymbol(math, rel, "|", "\\mid", true);
|
84
|
+
defineSymbol(math, rel, "\u226a", "\\ll", true);
|
85
|
+
defineSymbol(math, rel, "\u226b", "\\gg", true);
|
86
|
+
defineSymbol(math, rel, "\u224d", "\\asymp", true);
|
87
|
+
defineSymbol(math, rel, "\u2225", "\\parallel");
|
88
|
+
defineSymbol(math, rel, "\u22c8", "\\bowtie", true);
|
89
|
+
defineSymbol(math, rel, "\u2323", "\\smile", true);
|
90
|
+
defineSymbol(math, rel, "\u2291", "\\sqsubseteq", true);
|
91
|
+
defineSymbol(math, rel, "\u2292", "\\sqsupseteq", true);
|
92
|
+
defineSymbol(math, rel, "\u2250", "\\doteq", true);
|
93
|
+
defineSymbol(math, rel, "\u2322", "\\frown", true);
|
94
|
+
defineSymbol(math, rel, "\u220b", "\\ni", true);
|
95
|
+
defineSymbol(math, rel, "\u220c", "\\notni", true);
|
96
|
+
defineSymbol(math, rel, "\u221d", "\\propto", true);
|
97
|
+
defineSymbol(math, rel, "\u22a2", "\\vdash", true);
|
98
|
+
defineSymbol(math, rel, "\u22a3", "\\dashv", true);
|
99
|
+
defineSymbol(math, rel, "\u220b", "\\owns");
|
100
|
+
defineSymbol(math, rel, "\u2258", "\\arceq", true);
|
101
|
+
defineSymbol(math, rel, "\u2259", "\\wedgeq", true);
|
102
|
+
defineSymbol(math, rel, "\u225a", "\\veeeq", true);
|
103
|
+
defineSymbol(math, rel, "\u225b", "\\stareq", true);
|
104
|
+
defineSymbol(math, rel, "\u225d", "\\eqdef", true);
|
105
|
+
defineSymbol(math, rel, "\u225e", "\\measeq", true);
|
106
|
+
defineSymbol(math, rel, "\u225f", "\\questeq", true);
|
107
|
+
defineSymbol(math, rel, "\u2260", "\\ne", true);
|
108
|
+
defineSymbol(math, rel, "\u2260", "\\neq");
|
109
|
+
// mathtools.sty
|
110
|
+
defineSymbol(math, rel, "\u2237", "\\dblcolon", true);
|
111
|
+
defineSymbol(math, rel, "\u2254", "\\coloneqq", true);
|
112
|
+
defineSymbol(math, rel, "\u2255", "\\eqqcolon", true);
|
113
|
+
defineSymbol(math, rel, "\u2239", "\\eqcolon", true);
|
114
|
+
defineSymbol(math, rel, "\u2A74", "\\Coloneqq", true);
|
115
|
+
|
116
|
+
// Punctuation
|
117
|
+
defineSymbol(math, punct, "\u002e", "\\ldotp");
|
118
|
+
defineSymbol(math, punct, "\u00b7", "\\cdotp");
|
119
|
+
|
120
|
+
// Misc Symbols
|
121
|
+
defineSymbol(math, textord, "\u0023", "\\#");
|
122
|
+
defineSymbol(text, textord, "\u0023", "\\#");
|
123
|
+
defineSymbol(math, textord, "\u0026", "\\&");
|
124
|
+
defineSymbol(text, textord, "\u0026", "\\&");
|
125
|
+
defineSymbol(math, textord, "\u2135", "\\aleph", true);
|
126
|
+
defineSymbol(math, textord, "\u2200", "\\forall", true);
|
127
|
+
defineSymbol(math, textord, "\u210f", "\\hbar", true);
|
128
|
+
defineSymbol(math, textord, "\u2203", "\\exists", true);
|
129
|
+
defineSymbol(math, textord, "\u2207", "\\nabla", true);
|
130
|
+
defineSymbol(math, textord, "\u266d", "\\flat", true);
|
131
|
+
defineSymbol(math, textord, "\u2113", "\\ell", true);
|
132
|
+
defineSymbol(math, textord, "\u266e", "\\natural", true);
|
133
|
+
defineSymbol(math, textord, "โซ", "\\AA", true);
|
134
|
+
defineSymbol(text, textord, "โซ", "\\AA", true);
|
135
|
+
defineSymbol(math, textord, "\u2663", "\\clubsuit", true);
|
136
|
+
defineSymbol(math, textord, "\u2667", "\\varclubsuit", true);
|
137
|
+
defineSymbol(math, textord, "\u2118", "\\wp", true);
|
138
|
+
defineSymbol(math, textord, "\u266f", "\\sharp", true);
|
139
|
+
defineSymbol(math, textord, "\u2662", "\\diamondsuit", true);
|
140
|
+
defineSymbol(math, textord, "\u2666", "\\vardiamondsuit", true);
|
141
|
+
defineSymbol(math, textord, "\u211c", "\\Re", true);
|
142
|
+
defineSymbol(math, textord, "\u2661", "\\heartsuit", true);
|
143
|
+
defineSymbol(math, textord, "\u2665", "\\varheartsuit", true);
|
144
|
+
defineSymbol(math, textord, "\u2111", "\\Im", true);
|
145
|
+
defineSymbol(math, textord, "\u2660", "\\spadesuit", true);
|
146
|
+
defineSymbol(math, textord, "\u2664", "\\varspadesuit", true);
|
147
|
+
defineSymbol(math, textord, "\u2640", "\\female", true);
|
148
|
+
defineSymbol(math, textord, "\u2642", "\\male", true);
|
149
|
+
defineSymbol(math, textord, "\u00a7", "\\S", true);
|
150
|
+
defineSymbol(text, textord, "\u00a7", "\\S");
|
151
|
+
defineSymbol(math, textord, "\u00b6", "\\P", true);
|
152
|
+
defineSymbol(text, textord, "\u00b6", "\\P");
|
153
|
+
defineSymbol(text, textord, "\u263a", "\\smiley", true);
|
154
|
+
defineSymbol(math, textord, "\u263a", "\\smiley", true);
|
155
|
+
|
156
|
+
// Math and Text
|
157
|
+
defineSymbol(math, textord, "\u2020", "\\dag");
|
158
|
+
defineSymbol(text, textord, "\u2020", "\\dag");
|
159
|
+
defineSymbol(text, textord, "\u2020", "\\textdagger");
|
160
|
+
defineSymbol(math, textord, "\u2021", "\\ddag");
|
161
|
+
defineSymbol(text, textord, "\u2021", "\\ddag");
|
162
|
+
defineSymbol(text, textord, "\u2021", "\\textdaggerdbl");
|
163
|
+
|
164
|
+
// Large Delimiters
|
165
|
+
defineSymbol(math, close, "\u23b1", "\\rmoustache", true);
|
166
|
+
defineSymbol(math, open, "\u23b0", "\\lmoustache", true);
|
167
|
+
defineSymbol(math, close, "\u27ef", "\\rgroup", true);
|
168
|
+
defineSymbol(math, open, "\u27ee", "\\lgroup", true);
|
169
|
+
|
170
|
+
// Binary Operators
|
171
|
+
defineSymbol(math, bin, "\u2213", "\\mp", true);
|
172
|
+
defineSymbol(math, bin, "\u2296", "\\ominus", true);
|
173
|
+
defineSymbol(math, bin, "\u228e", "\\uplus", true);
|
174
|
+
defineSymbol(math, bin, "\u2293", "\\sqcap", true);
|
175
|
+
defineSymbol(math, bin, "\u2217", "\\ast");
|
176
|
+
defineSymbol(math, bin, "\u2294", "\\sqcup", true);
|
177
|
+
defineSymbol(math, bin, "\u25ef", "\\bigcirc", true);
|
178
|
+
defineSymbol(math, bin, "\u2219", "\\bullet", true);
|
179
|
+
defineSymbol(math, bin, "\u2021", "\\ddagger");
|
180
|
+
defineSymbol(math, bin, "\u2240", "\\wr", true);
|
181
|
+
defineSymbol(math, bin, "\u2a3f", "\\amalg");
|
182
|
+
defineSymbol(math, bin, "\u0026", "\\And"); // from amsmath
|
183
|
+
|
184
|
+
// Arrow Symbols
|
185
|
+
defineSymbol(math, rel, "\u27f5", "\\longleftarrow", true);
|
186
|
+
defineSymbol(math, rel, "\u21d0", "\\Leftarrow", true);
|
187
|
+
defineSymbol(math, rel, "\u27f8", "\\Longleftarrow", true);
|
188
|
+
defineSymbol(math, rel, "\u27f6", "\\longrightarrow", true);
|
189
|
+
defineSymbol(math, rel, "\u21d2", "\\Rightarrow", true);
|
190
|
+
defineSymbol(math, rel, "\u27f9", "\\Longrightarrow", true);
|
191
|
+
defineSymbol(math, rel, "\u2194", "\\leftrightarrow", true);
|
192
|
+
defineSymbol(math, rel, "\u27f7", "\\longleftrightarrow", true);
|
193
|
+
defineSymbol(math, rel, "\u21d4", "\\Leftrightarrow", true);
|
194
|
+
defineSymbol(math, rel, "\u27fa", "\\Longleftrightarrow", true);
|
195
|
+
defineSymbol(math, rel, "\u21a4", "\\mapsfrom", true);
|
196
|
+
defineSymbol(math, rel, "\u21a6", "\\mapsto", true);
|
197
|
+
defineSymbol(math, rel, "\u27fc", "\\longmapsto", true);
|
198
|
+
defineSymbol(math, rel, "\u2197", "\\nearrow", true);
|
199
|
+
defineSymbol(math, rel, "\u21a9", "\\hookleftarrow", true);
|
200
|
+
defineSymbol(math, rel, "\u21aa", "\\hookrightarrow", true);
|
201
|
+
defineSymbol(math, rel, "\u2198", "\\searrow", true);
|
202
|
+
defineSymbol(math, rel, "\u21bc", "\\leftharpoonup", true);
|
203
|
+
defineSymbol(math, rel, "\u21c0", "\\rightharpoonup", true);
|
204
|
+
defineSymbol(math, rel, "\u2199", "\\swarrow", true);
|
205
|
+
defineSymbol(math, rel, "\u21bd", "\\leftharpoondown", true);
|
206
|
+
defineSymbol(math, rel, "\u21c1", "\\rightharpoondown", true);
|
207
|
+
defineSymbol(math, rel, "\u2196", "\\nwarrow", true);
|
208
|
+
defineSymbol(math, rel, "\u21cc", "\\rightleftharpoons", true);
|
209
|
+
defineSymbol(math, mathord, "\u21af", "\\lightning", true);
|
210
|
+
defineSymbol(math, mathord, "\u2030", "\\permil", true);
|
211
|
+
defineSymbol(text, textord, "\u2030", "\\permil");
|
212
|
+
|
213
|
+
// AMS Negated Binary Relations
|
214
|
+
defineSymbol(math, rel, "\u226e", "\\nless", true);
|
215
|
+
// Symbol names preceeded by "@" each have a corresponding macro.
|
216
|
+
defineSymbol(math, rel, "\u2a87", "\\lneq", true);
|
217
|
+
defineSymbol(math, rel, "\u2268", "\\lneqq", true);
|
218
|
+
defineSymbol(math, rel, "\u2268\ufe00", "\\lvertneqq");
|
219
|
+
defineSymbol(math, rel, "\u22e6", "\\lnsim", true);
|
220
|
+
defineSymbol(math, rel, "\u2a89", "\\lnapprox", true);
|
221
|
+
defineSymbol(math, rel, "\u2280", "\\nprec", true);
|
222
|
+
// unicode-math maps \u22e0 to \npreccurlyeq. We'll use the AMS synonym.
|
223
|
+
defineSymbol(math, rel, "\u22e0", "\\npreceq", true);
|
224
|
+
defineSymbol(math, rel, "\u22e8", "\\precnsim", true);
|
225
|
+
defineSymbol(math, rel, "\u2ab9", "\\precnapprox", true);
|
226
|
+
defineSymbol(math, rel, "\u2241", "\\nsim", true);
|
227
|
+
defineSymbol(math, rel, "\u2224", "\\nmid", true);
|
228
|
+
defineSymbol(math, rel, "\u2224", "\\nshortmid");
|
229
|
+
defineSymbol(math, rel, "\u22ac", "\\nvdash", true);
|
230
|
+
defineSymbol(math, rel, "\u22ad", "\\nvDash", true);
|
231
|
+
defineSymbol(math, rel, "\u22ea", "\\ntriangleleft");
|
232
|
+
defineSymbol(math, rel, "\u22ec", "\\ntrianglelefteq", true);
|
233
|
+
defineSymbol(math, rel, "\u2284", "\\nsubset", true);
|
234
|
+
defineSymbol(math, rel, "\u2285", "\\nsupset", true);
|
235
|
+
defineSymbol(math, rel, "\u228a", "\\subsetneq", true);
|
236
|
+
defineSymbol(math, rel, "\u228a\ufe00", "\\varsubsetneq");
|
237
|
+
defineSymbol(math, rel, "\u2acb", "\\subsetneqq", true);
|
238
|
+
defineSymbol(math, rel, "\u2acb\ufe00", "\\varsubsetneqq");
|
239
|
+
defineSymbol(math, rel, "\u226f", "\\ngtr", true);
|
240
|
+
defineSymbol(math, rel, "\u2a88", "\\gneq", true);
|
241
|
+
defineSymbol(math, rel, "\u2269", "\\gneqq", true);
|
242
|
+
defineSymbol(math, rel, "\u2269\ufe00", "\\gvertneqq");
|
243
|
+
defineSymbol(math, rel, "\u22e7", "\\gnsim", true);
|
244
|
+
defineSymbol(math, rel, "\u2a8a", "\\gnapprox", true);
|
245
|
+
defineSymbol(math, rel, "\u2281", "\\nsucc", true);
|
246
|
+
// unicode-math maps \u22e1 to \nsucccurlyeq. We'll use the AMS synonym.
|
247
|
+
defineSymbol(math, rel, "\u22e1", "\\nsucceq", true);
|
248
|
+
defineSymbol(math, rel, "\u22e9", "\\succnsim", true);
|
249
|
+
defineSymbol(math, rel, "\u2aba", "\\succnapprox", true);
|
250
|
+
// unicode-math maps \u2246 to \simneqq. We'll use the AMS synonym.
|
251
|
+
defineSymbol(math, rel, "\u2246", "\\ncong", true);
|
252
|
+
defineSymbol(math, rel, "\u2226", "\\nparallel", true);
|
253
|
+
defineSymbol(math, rel, "\u2226", "\\nshortparallel");
|
254
|
+
defineSymbol(math, rel, "\u22af", "\\nVDash", true);
|
255
|
+
defineSymbol(math, rel, "\u22eb", "\\ntriangleright");
|
256
|
+
defineSymbol(math, rel, "\u22ed", "\\ntrianglerighteq", true);
|
257
|
+
defineSymbol(math, rel, "\u228b", "\\supsetneq", true);
|
258
|
+
defineSymbol(math, rel, "\u228b", "\\varsupsetneq");
|
259
|
+
defineSymbol(math, rel, "\u2acc", "\\supsetneqq", true);
|
260
|
+
defineSymbol(math, rel, "\u2acc\ufe00", "\\varsupsetneqq");
|
261
|
+
defineSymbol(math, rel, "\u22ae", "\\nVdash", true);
|
262
|
+
defineSymbol(math, rel, "\u2ab5", "\\precneqq", true);
|
263
|
+
defineSymbol(math, rel, "\u2ab6", "\\succneqq", true);
|
264
|
+
defineSymbol(math, bin, "\u22b4", "\\unlhd");
|
265
|
+
defineSymbol(math, bin, "\u22b5", "\\unrhd");
|
266
|
+
|
267
|
+
// AMS Negated Arrows
|
268
|
+
defineSymbol(math, rel, "\u219a", "\\nleftarrow", true);
|
269
|
+
defineSymbol(math, rel, "\u219b", "\\nrightarrow", true);
|
270
|
+
defineSymbol(math, rel, "\u21cd", "\\nLeftarrow", true);
|
271
|
+
defineSymbol(math, rel, "\u21cf", "\\nRightarrow", true);
|
272
|
+
defineSymbol(math, rel, "\u21ae", "\\nleftrightarrow", true);
|
273
|
+
defineSymbol(math, rel, "\u21ce", "\\nLeftrightarrow", true);
|
274
|
+
|
275
|
+
// AMS Misc
|
276
|
+
defineSymbol(math, rel, "\u25b3", "\\vartriangle");
|
277
|
+
defineSymbol(math, textord, "\u210f", "\\hslash");
|
278
|
+
defineSymbol(math, textord, "\u25bd", "\\triangledown");
|
279
|
+
defineSymbol(math, textord, "\u25ca", "\\lozenge");
|
280
|
+
defineSymbol(math, textord, "\u24c8", "\\circledS");
|
281
|
+
defineSymbol(math, textord, "\u00ae", "\\circledR", true);
|
282
|
+
defineSymbol(text, textord, "\u00ae", "\\circledR");
|
283
|
+
defineSymbol(text, textord, "\u00ae", "\\textregistered");
|
284
|
+
defineSymbol(math, textord, "\u2221", "\\measuredangle", true);
|
285
|
+
defineSymbol(math, textord, "\u2204", "\\nexists");
|
286
|
+
defineSymbol(math, textord, "\u2127", "\\mho");
|
287
|
+
defineSymbol(math, textord, "\u2132", "\\Finv", true);
|
288
|
+
defineSymbol(math, textord, "\u2141", "\\Game", true);
|
289
|
+
defineSymbol(math, textord, "\u2035", "\\backprime");
|
290
|
+
defineSymbol(math, textord, "\u25b2", "\\blacktriangle");
|
291
|
+
defineSymbol(math, textord, "\u25bc", "\\blacktriangledown");
|
292
|
+
defineSymbol(math, textord, "\u25a0", "\\blacksquare");
|
293
|
+
defineSymbol(math, textord, "\u29eb", "\\blacklozenge");
|
294
|
+
defineSymbol(math, textord, "\u2605", "\\bigstar");
|
295
|
+
defineSymbol(math, textord, "\u2222", "\\sphericalangle", true);
|
296
|
+
defineSymbol(math, textord, "\u2201", "\\complement", true);
|
297
|
+
// unicode-math maps U+F0 to \matheth. We map to AMS function \eth
|
298
|
+
defineSymbol(math, textord, "\u00f0", "\\eth", true);
|
299
|
+
defineSymbol(text, textord, "\u00f0", "\u00f0");
|
300
|
+
defineSymbol(math, textord, "\u2571", "\\diagup");
|
301
|
+
defineSymbol(math, textord, "\u2572", "\\diagdown");
|
302
|
+
defineSymbol(math, textord, "\u25a1", "\\square");
|
303
|
+
defineSymbol(math, textord, "\u25a1", "\\Box");
|
304
|
+
defineSymbol(math, textord, "\u25ca", "\\Diamond");
|
305
|
+
// unicode-math maps U+A5 to \mathyen. We map to AMS function \yen
|
306
|
+
defineSymbol(math, textord, "\u00a5", "\\yen", true);
|
307
|
+
defineSymbol(text, textord, "\u00a5", "\\yen", true);
|
308
|
+
defineSymbol(math, textord, "\u2713", "\\checkmark", true);
|
309
|
+
defineSymbol(text, textord, "\u2713", "\\checkmark");
|
310
|
+
defineSymbol(math, textord, "\u2717", "\\ballotx", true);
|
311
|
+
defineSymbol(text, textord, "\u2717", "\\ballotx");
|
312
|
+
defineSymbol(text, textord, "\u2022", "\\textbullet");
|
313
|
+
|
314
|
+
// AMS Hebrew
|
315
|
+
defineSymbol(math, textord, "\u2136", "\\beth", true);
|
316
|
+
defineSymbol(math, textord, "\u2138", "\\daleth", true);
|
317
|
+
defineSymbol(math, textord, "\u2137", "\\gimel", true);
|
318
|
+
|
319
|
+
// AMS Greek
|
320
|
+
defineSymbol(math, textord, "\u03dd", "\\digamma", true);
|
321
|
+
defineSymbol(math, textord, "\u03f0", "\\varkappa");
|
322
|
+
|
323
|
+
// AMS Delimiters
|
324
|
+
defineSymbol(math, open, "\u231C", "\\ulcorner", true);
|
325
|
+
defineSymbol(math, close, "\u231D", "\\urcorner", true);
|
326
|
+
defineSymbol(math, open, "\u231E", "\\llcorner", true);
|
327
|
+
defineSymbol(math, close, "\u231F", "\\lrcorner", true);
|
328
|
+
|
329
|
+
// AMS Binary Relations
|
330
|
+
defineSymbol(math, rel, "\u2266", "\\leqq", true);
|
331
|
+
defineSymbol(math, rel, "\u2a7d", "\\leqslant", true);
|
332
|
+
defineSymbol(math, rel, "\u2a95", "\\eqslantless", true);
|
333
|
+
defineSymbol(math, rel, "\u2272", "\\lesssim", true);
|
334
|
+
defineSymbol(math, rel, "\u2a85", "\\lessapprox", true);
|
335
|
+
defineSymbol(math, rel, "\u224a", "\\approxeq", true);
|
336
|
+
defineSymbol(math, bin, "\u22d6", "\\lessdot");
|
337
|
+
defineSymbol(math, rel, "\u22d8", "\\lll", true);
|
338
|
+
defineSymbol(math, rel, "\u2276", "\\lessgtr", true);
|
339
|
+
defineSymbol(math, rel, "\u22da", "\\lesseqgtr", true);
|
340
|
+
defineSymbol(math, rel, "\u2a8b", "\\lesseqqgtr", true);
|
341
|
+
defineSymbol(math, rel, "\u2251", "\\doteqdot");
|
342
|
+
defineSymbol(math, rel, "\u2253", "\\risingdotseq", true);
|
343
|
+
defineSymbol(math, rel, "\u2252", "\\fallingdotseq", true);
|
344
|
+
defineSymbol(math, rel, "\u223d", "\\backsim", true);
|
345
|
+
defineSymbol(math, rel, "\u22cd", "\\backsimeq", true);
|
346
|
+
defineSymbol(math, rel, "\u2ac5", "\\subseteqq", true);
|
347
|
+
defineSymbol(math, rel, "\u22d0", "\\Subset", true);
|
348
|
+
defineSymbol(math, rel, "\u228f", "\\sqsubset", true);
|
349
|
+
defineSymbol(math, rel, "\u227c", "\\preccurlyeq", true);
|
350
|
+
defineSymbol(math, rel, "\u22de", "\\curlyeqprec", true);
|
351
|
+
defineSymbol(math, rel, "\u227e", "\\precsim", true);
|
352
|
+
defineSymbol(math, rel, "\u2ab7", "\\precapprox", true);
|
353
|
+
defineSymbol(math, rel, "\u22b2", "\\vartriangleleft");
|
354
|
+
defineSymbol(math, rel, "\u22b4", "\\trianglelefteq");
|
355
|
+
defineSymbol(math, rel, "\u22a8", "\\vDash", true);
|
356
|
+
defineSymbol(math, rel, "\u22aa", "\\Vvdash", true);
|
357
|
+
defineSymbol(math, rel, "\u2323", "\\smallsmile");
|
358
|
+
defineSymbol(math, rel, "\u2322", "\\smallfrown");
|
359
|
+
defineSymbol(math, rel, "\u224f", "\\bumpeq", true);
|
360
|
+
defineSymbol(math, rel, "\u224e", "\\Bumpeq", true);
|
361
|
+
defineSymbol(math, rel, "\u2267", "\\geqq", true);
|
362
|
+
defineSymbol(math, rel, "\u2a7e", "\\geqslant", true);
|
363
|
+
defineSymbol(math, rel, "\u2a96", "\\eqslantgtr", true);
|
364
|
+
defineSymbol(math, rel, "\u2273", "\\gtrsim", true);
|
365
|
+
defineSymbol(math, rel, "\u2a86", "\\gtrapprox", true);
|
366
|
+
defineSymbol(math, bin, "\u22d7", "\\gtrdot");
|
367
|
+
defineSymbol(math, rel, "\u22d9", "\\ggg", true);
|
368
|
+
defineSymbol(math, rel, "\u2277", "\\gtrless", true);
|
369
|
+
defineSymbol(math, rel, "\u22db", "\\gtreqless", true);
|
370
|
+
defineSymbol(math, rel, "\u2a8c", "\\gtreqqless", true);
|
371
|
+
defineSymbol(math, rel, "\u2256", "\\eqcirc", true);
|
372
|
+
defineSymbol(math, rel, "\u2257", "\\circeq", true);
|
373
|
+
defineSymbol(math, rel, "\u225c", "\\triangleq", true);
|
374
|
+
defineSymbol(math, rel, "\u223c", "\\thicksim");
|
375
|
+
defineSymbol(math, rel, "\u2248", "\\thickapprox");
|
376
|
+
defineSymbol(math, rel, "\u2ac6", "\\supseteqq", true);
|
377
|
+
defineSymbol(math, rel, "\u22d1", "\\Supset", true);
|
378
|
+
defineSymbol(math, rel, "\u2290", "\\sqsupset", true);
|
379
|
+
defineSymbol(math, rel, "\u227d", "\\succcurlyeq", true);
|
380
|
+
defineSymbol(math, rel, "\u22df", "\\curlyeqsucc", true);
|
381
|
+
defineSymbol(math, rel, "\u227f", "\\succsim", true);
|
382
|
+
defineSymbol(math, rel, "\u2ab8", "\\succapprox", true);
|
383
|
+
defineSymbol(math, rel, "\u22b3", "\\vartriangleright");
|
384
|
+
defineSymbol(math, rel, "\u22b5", "\\trianglerighteq");
|
385
|
+
defineSymbol(math, rel, "\u22a9", "\\Vdash", true);
|
386
|
+
defineSymbol(math, rel, "\u2223", "\\shortmid");
|
387
|
+
defineSymbol(math, rel, "\u2225", "\\shortparallel");
|
388
|
+
defineSymbol(math, rel, "\u226c", "\\between", true);
|
389
|
+
defineSymbol(math, rel, "\u22d4", "\\pitchfork", true);
|
390
|
+
defineSymbol(math, rel, "\u221d", "\\varpropto");
|
391
|
+
defineSymbol(math, rel, "\u25c0", "\\blacktriangleleft");
|
392
|
+
// unicode-math says that \therefore is a mathord atom.
|
393
|
+
// We kept the amssymb atom type, which is rel.
|
394
|
+
defineSymbol(math, rel, "\u2234", "\\therefore", true);
|
395
|
+
defineSymbol(math, rel, "\u220d", "\\backepsilon");
|
396
|
+
defineSymbol(math, rel, "\u25b6", "\\blacktriangleright");
|
397
|
+
// unicode-math says that \because is a mathord atom.
|
398
|
+
// We kept the amssymb atom type, which is rel.
|
399
|
+
defineSymbol(math, rel, "\u2235", "\\because", true);
|
400
|
+
defineSymbol(math, rel, "\u22d8", "\\llless");
|
401
|
+
defineSymbol(math, rel, "\u22d9", "\\gggtr");
|
402
|
+
defineSymbol(math, bin, "\u22b2", "\\lhd");
|
403
|
+
defineSymbol(math, bin, "\u22b3", "\\rhd");
|
404
|
+
defineSymbol(math, rel, "\u2242", "\\eqsim", true);
|
405
|
+
defineSymbol(math, rel, "\u22c8", "\\Join");
|
406
|
+
defineSymbol(math, rel, "\u2251", "\\Doteq", true);
|
407
|
+
defineSymbol(math, rel, "\u297d", "\\strictif", true);
|
408
|
+
defineSymbol(math, rel, "\u297c", "\\strictfi", true);
|
409
|
+
|
410
|
+
// AMS Binary Operators
|
411
|
+
defineSymbol(math, bin, "\u2214", "\\dotplus", true);
|
412
|
+
defineSymbol(math, bin, "\u2216", "\\smallsetminus");
|
413
|
+
defineSymbol(math, bin, "\u22d2", "\\Cap", true);
|
414
|
+
defineSymbol(math, bin, "\u22d3", "\\Cup", true);
|
415
|
+
defineSymbol(math, bin, "\u2a5e", "\\doublebarwedge", true);
|
416
|
+
defineSymbol(math, bin, "\u229f", "\\boxminus", true);
|
417
|
+
defineSymbol(math, bin, "\u229e", "\\boxplus", true);
|
418
|
+
defineSymbol(math, bin, "\u22c7", "\\divideontimes", true);
|
419
|
+
defineSymbol(math, bin, "\u22c9", "\\ltimes", true);
|
420
|
+
defineSymbol(math, bin, "\u22ca", "\\rtimes", true);
|
421
|
+
defineSymbol(math, bin, "\u22cb", "\\leftthreetimes", true);
|
422
|
+
defineSymbol(math, bin, "\u22cc", "\\rightthreetimes", true);
|
423
|
+
defineSymbol(math, bin, "\u22cf", "\\curlywedge", true);
|
424
|
+
defineSymbol(math, bin, "\u22ce", "\\curlyvee", true);
|
425
|
+
defineSymbol(math, bin, "\u229d", "\\circleddash", true);
|
426
|
+
defineSymbol(math, bin, "\u229b", "\\circledast", true);
|
427
|
+
defineSymbol(math, bin, "\u22ba", "\\intercal", true);
|
428
|
+
defineSymbol(math, bin, "\u22d2", "\\doublecap");
|
429
|
+
defineSymbol(math, bin, "\u22d3", "\\doublecup");
|
430
|
+
defineSymbol(math, bin, "\u22a0", "\\boxtimes", true);
|
431
|
+
|
432
|
+
// AMS Arrows
|
433
|
+
// Note: unicode-math maps \u21e2 to their own function \rightdasharrow.
|
434
|
+
// We'll map it to AMS function \dashrightarrow. It produces the same atom.
|
435
|
+
defineSymbol(math, rel, "\u21e2", "\\dashrightarrow", true);
|
436
|
+
// unicode-math maps \u21e0 to \leftdasharrow. We'll use the AMS synonym.
|
437
|
+
defineSymbol(math, rel, "\u21e0", "\\dashleftarrow", true);
|
438
|
+
defineSymbol(math, rel, "\u21c7", "\\leftleftarrows", true);
|
439
|
+
defineSymbol(math, rel, "\u21c6", "\\leftrightarrows", true);
|
440
|
+
defineSymbol(math, rel, "\u21da", "\\Lleftarrow", true);
|
441
|
+
defineSymbol(math, rel, "\u219e", "\\twoheadleftarrow", true);
|
442
|
+
defineSymbol(math, rel, "\u21a2", "\\leftarrowtail", true);
|
443
|
+
defineSymbol(math, rel, "\u21ab", "\\looparrowleft", true);
|
444
|
+
defineSymbol(math, rel, "\u21cb", "\\leftrightharpoons", true);
|
445
|
+
defineSymbol(math, rel, "\u21b6", "\\curvearrowleft", true);
|
446
|
+
// unicode-math maps \u21ba to \acwopencirclearrow. We'll use the AMS synonym.
|
447
|
+
defineSymbol(math, rel, "\u21ba", "\\circlearrowleft", true);
|
448
|
+
defineSymbol(math, rel, "\u21b0", "\\Lsh", true);
|
449
|
+
defineSymbol(math, rel, "\u21c8", "\\upuparrows", true);
|
450
|
+
defineSymbol(math, rel, "\u21bf", "\\upharpoonleft", true);
|
451
|
+
defineSymbol(math, rel, "\u21c3", "\\downharpoonleft", true);
|
452
|
+
defineSymbol(math, rel, "\u22b6", "\\origof", true);
|
453
|
+
defineSymbol(math, rel, "\u22b7", "\\imageof", true);
|
454
|
+
defineSymbol(math, rel, "\u22b8", "\\multimap", true);
|
455
|
+
defineSymbol(math, rel, "\u21ad", "\\leftrightsquigarrow", true);
|
456
|
+
defineSymbol(math, rel, "\u21c9", "\\rightrightarrows", true);
|
457
|
+
defineSymbol(math, rel, "\u21c4", "\\rightleftarrows", true);
|
458
|
+
defineSymbol(math, rel, "\u21a0", "\\twoheadrightarrow", true);
|
459
|
+
defineSymbol(math, rel, "\u21a3", "\\rightarrowtail", true);
|
460
|
+
defineSymbol(math, rel, "\u21ac", "\\looparrowright", true);
|
461
|
+
defineSymbol(math, rel, "\u21b7", "\\curvearrowright", true);
|
462
|
+
// unicode-math maps \u21bb to \cwopencirclearrow. We'll use the AMS synonym.
|
463
|
+
defineSymbol(math, rel, "\u21bb", "\\circlearrowright", true);
|
464
|
+
defineSymbol(math, rel, "\u21b1", "\\Rsh", true);
|
465
|
+
defineSymbol(math, rel, "\u21ca", "\\downdownarrows", true);
|
466
|
+
defineSymbol(math, rel, "\u21be", "\\upharpoonright", true);
|
467
|
+
defineSymbol(math, rel, "\u21c2", "\\downharpoonright", true);
|
468
|
+
defineSymbol(math, rel, "\u21dd", "\\rightsquigarrow", true);
|
469
|
+
defineSymbol(math, rel, "\u21dd", "\\leadsto");
|
470
|
+
defineSymbol(math, rel, "\u21db", "\\Rrightarrow", true);
|
471
|
+
defineSymbol(math, rel, "\u21be", "\\restriction");
|
472
|
+
|
473
|
+
defineSymbol(math, textord, "\u2018", "`");
|
474
|
+
defineSymbol(math, textord, "$", "\\$");
|
475
|
+
defineSymbol(text, textord, "$", "\\$");
|
476
|
+
defineSymbol(text, textord, "$", "\\textdollar");
|
477
|
+
defineSymbol(math, textord, "%", "\\%");
|
478
|
+
defineSymbol(text, textord, "%", "\\%");
|
479
|
+
defineSymbol(math, textord, "_", "\\_");
|
480
|
+
defineSymbol(text, textord, "_", "\\_");
|
481
|
+
defineSymbol(text, textord, "_", "\\textunderscore");
|
482
|
+
defineSymbol(text, textord, "\u2423", "\\textvisiblespace", true);
|
483
|
+
defineSymbol(math, textord, "\u2220", "\\angle", true);
|
484
|
+
defineSymbol(math, textord, "\u221e", "\\infty", true);
|
485
|
+
defineSymbol(math, textord, "\u2032", "\\prime");
|
486
|
+
defineSymbol(math, textord, "\u25b3", "\\triangle");
|
487
|
+
defineSymbol(text, textord, "\u0391", "\\Alpha", true);
|
488
|
+
defineSymbol(text, textord, "\u0392", "\\Beta", true);
|
489
|
+
defineSymbol(text, textord, "\u0393", "\\Gamma", true);
|
490
|
+
defineSymbol(text, textord, "\u0394", "\\Delta", true);
|
491
|
+
defineSymbol(text, textord, "\u0395", "\\Epsilon", true);
|
492
|
+
defineSymbol(text, textord, "\u0396", "\\Zeta", true);
|
493
|
+
defineSymbol(text, textord, "\u0397", "\\Eta", true);
|
494
|
+
defineSymbol(text, textord, "\u0398", "\\Theta", true);
|
495
|
+
defineSymbol(text, textord, "\u0399", "\\Iota", true);
|
496
|
+
defineSymbol(text, textord, "\u039a", "\\Kappa", true);
|
497
|
+
defineSymbol(text, textord, "\u039b", "\\Lambda", true);
|
498
|
+
defineSymbol(text, textord, "\u039c", "\\Mu", true);
|
499
|
+
defineSymbol(text, textord, "\u039d", "\\Nu", true);
|
500
|
+
defineSymbol(text, textord, "\u039e", "\\Xi", true);
|
501
|
+
defineSymbol(text, textord, "\u039f", "\\Omicron", true);
|
502
|
+
defineSymbol(text, textord, "\u03a0", "\\Pi", true);
|
503
|
+
defineSymbol(text, textord, "\u03a1", "\\Rho", true);
|
504
|
+
defineSymbol(text, textord, "\u03a3", "\\Sigma", true);
|
505
|
+
defineSymbol(text, textord, "\u03a4", "\\Tau", true);
|
506
|
+
defineSymbol(text, textord, "\u03a5", "\\Upsilon", true);
|
507
|
+
defineSymbol(text, textord, "\u03a6", "\\Phi", true);
|
508
|
+
defineSymbol(text, textord, "\u03a7", "\\Chi", true);
|
509
|
+
defineSymbol(text, textord, "\u03a8", "\\Psi", true);
|
510
|
+
defineSymbol(text, textord, "\u03a9", "\\Omega", true);
|
511
|
+
defineSymbol(math, mathord, "\u0391", "\\Alpha", true);
|
512
|
+
defineSymbol(math, mathord, "\u0392", "\\Beta", true);
|
513
|
+
defineSymbol(math, mathord, "\u0393", "\\Gamma", true);
|
514
|
+
defineSymbol(math, mathord, "\u0394", "\\Delta", true);
|
515
|
+
defineSymbol(math, mathord, "\u0395", "\\Epsilon", true);
|
516
|
+
defineSymbol(math, mathord, "\u0396", "\\Zeta", true);
|
517
|
+
defineSymbol(math, mathord, "\u0397", "\\Eta", true);
|
518
|
+
defineSymbol(math, mathord, "\u0398", "\\Theta", true);
|
519
|
+
defineSymbol(math, mathord, "\u0399", "\\Iota", true);
|
520
|
+
defineSymbol(math, mathord, "\u039a", "\\Kappa", true);
|
521
|
+
defineSymbol(math, mathord, "\u039b", "\\Lambda", true);
|
522
|
+
defineSymbol(math, mathord, "\u039c", "\\Mu", true);
|
523
|
+
defineSymbol(math, mathord, "\u039d", "\\Nu", true);
|
524
|
+
defineSymbol(math, mathord, "\u039e", "\\Xi", true);
|
525
|
+
defineSymbol(math, mathord, "\u039f", "\\Omicron", true);
|
526
|
+
defineSymbol(math, mathord, "\u03a0", "\\Pi", true);
|
527
|
+
defineSymbol(math, mathord, "\u03a1", "\\Rho", true);
|
528
|
+
defineSymbol(math, mathord, "\u03a3", "\\Sigma", true);
|
529
|
+
defineSymbol(math, mathord, "\u03a4", "\\Tau", true);
|
530
|
+
defineSymbol(math, mathord, "\u03a5", "\\Upsilon", true);
|
531
|
+
defineSymbol(math, mathord, "\u03a6", "\\Phi", true);
|
532
|
+
defineSymbol(math, mathord, "\u03a7", "\\Chi", true);
|
533
|
+
defineSymbol(math, mathord, "\u03a8", "\\Psi", true);
|
534
|
+
defineSymbol(math, mathord, "\u03a9", "\\Omega", true);
|
535
|
+
defineSymbol(math, open, "\u00ac", "\\neg", true);
|
536
|
+
defineSymbol(math, open, "\u00ac", "\\lnot");
|
537
|
+
defineSymbol(math, textord, "\u22a4", "\\top");
|
538
|
+
defineSymbol(math, textord, "\u22a5", "\\bot");
|
539
|
+
defineSymbol(math, textord, "\u2205", "\\emptyset");
|
540
|
+
defineSymbol(math, textord, "\u00f8", "\\varnothing");
|
541
|
+
defineSymbol(math, mathord, "\u03b1", "\\alpha", true);
|
542
|
+
defineSymbol(math, mathord, "\u03b2", "\\beta", true);
|
543
|
+
defineSymbol(math, mathord, "\u03b3", "\\gamma", true);
|
544
|
+
defineSymbol(math, mathord, "\u03b4", "\\delta", true);
|
545
|
+
defineSymbol(math, mathord, "\u03f5", "\\epsilon", true);
|
546
|
+
defineSymbol(math, mathord, "\u03b6", "\\zeta", true);
|
547
|
+
defineSymbol(math, mathord, "\u03b7", "\\eta", true);
|
548
|
+
defineSymbol(math, mathord, "\u03b8", "\\theta", true);
|
549
|
+
defineSymbol(math, mathord, "\u03b9", "\\iota", true);
|
550
|
+
defineSymbol(math, mathord, "\u03ba", "\\kappa", true);
|
551
|
+
defineSymbol(math, mathord, "\u03bb", "\\lambda", true);
|
552
|
+
defineSymbol(math, mathord, "\u03bc", "\\mu", true);
|
553
|
+
defineSymbol(math, mathord, "\u03bd", "\\nu", true);
|
554
|
+
defineSymbol(math, mathord, "\u03be", "\\xi", true);
|
555
|
+
defineSymbol(math, mathord, "\u03bf", "\\omicron", true);
|
556
|
+
defineSymbol(math, mathord, "\u03c0", "\\pi", true);
|
557
|
+
defineSymbol(math, mathord, "\u03c1", "\\rho", true);
|
558
|
+
defineSymbol(math, mathord, "\u03c3", "\\sigma", true);
|
559
|
+
defineSymbol(math, mathord, "\u03c4", "\\tau", true);
|
560
|
+
defineSymbol(math, mathord, "\u03c5", "\\upsilon", true);
|
561
|
+
defineSymbol(math, mathord, "\u03d5", "\\phi", true);
|
562
|
+
defineSymbol(math, mathord, "\u03c7", "\\chi", true);
|
563
|
+
defineSymbol(math, mathord, "\u03c8", "\\psi", true);
|
564
|
+
defineSymbol(math, mathord, "\u03c9", "\\omega", true);
|
565
|
+
defineSymbol(math, mathord, "\u03b5", "\\varepsilon", true);
|
566
|
+
defineSymbol(math, mathord, "\u03d1", "\\vartheta", true);
|
567
|
+
defineSymbol(math, mathord, "\u03d6", "\\varpi", true);
|
568
|
+
defineSymbol(math, mathord, "\u03f1", "\\varrho", true);
|
569
|
+
defineSymbol(math, mathord, "\u03c2", "\\varsigma", true);
|
570
|
+
defineSymbol(math, mathord, "\u03c6", "\\varphi", true);
|
571
|
+
defineSymbol(math, mathord, "\u03d8", "\\Coppa", true);
|
572
|
+
defineSymbol(math, mathord, "\u03d9", "\\coppa", true);
|
573
|
+
defineSymbol(math, mathord, "\u03d9", "\\varcoppa", true);
|
574
|
+
defineSymbol(math, mathord, "\u03de", "\\Koppa", true);
|
575
|
+
defineSymbol(math, mathord, "\u03df", "\\koppa", true);
|
576
|
+
defineSymbol(math, mathord, "\u03e0", "\\Sampi", true);
|
577
|
+
defineSymbol(math, mathord, "\u03e1", "\\sampi", true);
|
578
|
+
defineSymbol(math, mathord, "\u03da", "\\Stigma", true);
|
579
|
+
defineSymbol(math, mathord, "\u03db", "\\stigma", true);
|
580
|
+
defineSymbol(math, mathord, "\u2aeb", "\\Bot");
|
581
|
+
defineSymbol(math, bin, "\u2217", "\u2217", true);
|
582
|
+
defineSymbol(math, bin, "+", "+");
|
583
|
+
defineSymbol(math, bin, "*", "*");
|
584
|
+
defineSymbol(math, bin, "\u2044", "\u2044");
|
585
|
+
defineSymbol(math, bin, "\u2212", "-", true);
|
586
|
+
defineSymbol(math, bin, "\u22c5", "\\cdot", true);
|
587
|
+
defineSymbol(math, bin, "\u2218", "\\circ", true);
|
588
|
+
defineSymbol(math, bin, "\u00f7", "\\div", true);
|
589
|
+
defineSymbol(math, bin, "\u00b1", "\\pm", true);
|
590
|
+
defineSymbol(math, bin, "\u00d7", "\\times", true);
|
591
|
+
defineSymbol(math, bin, "\u2229", "\\cap", true);
|
592
|
+
defineSymbol(math, bin, "\u222a", "\\cup", true);
|
593
|
+
defineSymbol(math, bin, "\u2216", "\\setminus", true);
|
594
|
+
defineSymbol(math, bin, "\u2227", "\\land");
|
595
|
+
defineSymbol(math, bin, "\u2228", "\\lor");
|
596
|
+
defineSymbol(math, bin, "\u2227", "\\wedge", true);
|
597
|
+
defineSymbol(math, bin, "\u2228", "\\vee", true);
|
598
|
+
defineSymbol(math, open, "\u27e6", "\\llbracket", true); // stmaryrd/semantic packages
|
599
|
+
defineSymbol(math, close, "\u27e7", "\\rrbracket", true);
|
600
|
+
defineSymbol(math, open, "\u27e8", "\\langle", true);
|
601
|
+
defineSymbol(math, open, "|", "\\lvert");
|
602
|
+
defineSymbol(math, open, "\u2016", "\\lVert");
|
603
|
+
defineSymbol(math, textord, "!", "\\oc"); // cmll package
|
604
|
+
defineSymbol(math, textord, "?", "\\wn");
|
605
|
+
defineSymbol(math, textord, "\u2193", "\\shpos");
|
606
|
+
defineSymbol(math, textord, "\u2195", "\\shift");
|
607
|
+
defineSymbol(math, textord, "\u2191", "\\shneg");
|
608
|
+
defineSymbol(math, close, "?", "?");
|
609
|
+
defineSymbol(math, close, "!", "!");
|
610
|
+
defineSymbol(math, close, "โผ", "โผ");
|
611
|
+
defineSymbol(math, close, "\u27e9", "\\rangle", true);
|
612
|
+
defineSymbol(math, close, "|", "\\rvert");
|
613
|
+
defineSymbol(math, close, "\u2016", "\\rVert");
|
614
|
+
defineSymbol(math, open, "\u2983", "\\lBrace", true); // stmaryrd/semantic packages
|
615
|
+
defineSymbol(math, close, "\u2984", "\\rBrace", true);
|
616
|
+
defineSymbol(math, rel, "=", "\\equal", true);
|
617
|
+
defineSymbol(math, rel, ":", ":");
|
618
|
+
defineSymbol(math, rel, "\u2248", "\\approx", true);
|
619
|
+
defineSymbol(math, rel, "\u2245", "\\cong", true);
|
620
|
+
defineSymbol(math, rel, "\u2265", "\\ge");
|
621
|
+
defineSymbol(math, rel, "\u2265", "\\geq", true);
|
622
|
+
defineSymbol(math, rel, "\u2190", "\\gets");
|
623
|
+
defineSymbol(math, rel, ">", "\\gt", true);
|
624
|
+
defineSymbol(math, rel, "\u2208", "\\in", true);
|
625
|
+
defineSymbol(math, rel, "\u2209", "\\notin", true);
|
626
|
+
defineSymbol(math, rel, "\ue020", "\\@not");
|
627
|
+
defineSymbol(math, rel, "\u2282", "\\subset", true);
|
628
|
+
defineSymbol(math, rel, "\u2283", "\\supset", true);
|
629
|
+
defineSymbol(math, rel, "\u2286", "\\subseteq", true);
|
630
|
+
defineSymbol(math, rel, "\u2287", "\\supseteq", true);
|
631
|
+
defineSymbol(math, rel, "\u2288", "\\nsubseteq", true);
|
632
|
+
defineSymbol(math, rel, "\u2288", "\\nsubseteqq");
|
633
|
+
defineSymbol(math, rel, "\u2289", "\\nsupseteq", true);
|
634
|
+
defineSymbol(math, rel, "\u2289", "\\nsupseteqq");
|
635
|
+
defineSymbol(math, rel, "\u22a8", "\\models");
|
636
|
+
defineSymbol(math, rel, "\u2190", "\\leftarrow", true);
|
637
|
+
defineSymbol(math, rel, "\u2264", "\\le");
|
638
|
+
defineSymbol(math, rel, "\u2264", "\\leq", true);
|
639
|
+
defineSymbol(math, rel, "<", "\\lt", true);
|
640
|
+
defineSymbol(math, rel, "\u2192", "\\rightarrow", true);
|
641
|
+
defineSymbol(math, rel, "\u2192", "\\to");
|
642
|
+
defineSymbol(math, rel, "\u2271", "\\ngeq", true);
|
643
|
+
defineSymbol(math, rel, "\u2271", "\\ngeqq");
|
644
|
+
defineSymbol(math, rel, "\u2271", "\\ngeqslant");
|
645
|
+
defineSymbol(math, rel, "\u2270", "\\nleq", true);
|
646
|
+
defineSymbol(math, rel, "\u2270", "\\nleqq");
|
647
|
+
defineSymbol(math, rel, "\u2270", "\\nleqslant");
|
648
|
+
defineSymbol(math, rel, "\u2aeb", "\\Perp", true); //cmll package
|
649
|
+
defineSymbol(math, spacing, "\u00a0", "\\ ");
|
650
|
+
defineSymbol(math, spacing, "\u00a0", "\\space");
|
651
|
+
// Ref: LaTeX Source 2e: \DeclareRobustCommand{\nobreakspace}{%
|
652
|
+
defineSymbol(math, spacing, "\u00a0", "\\nobreakspace");
|
653
|
+
defineSymbol(text, spacing, "\u00a0", "\\ ");
|
654
|
+
defineSymbol(text, spacing, "\u00a0", " ");
|
655
|
+
defineSymbol(text, spacing, "\u00a0", "\\space");
|
656
|
+
defineSymbol(text, spacing, "\u00a0", "\\nobreakspace");
|
657
|
+
defineSymbol(math, spacing, null, "\\nobreak");
|
658
|
+
defineSymbol(math, spacing, null, "\\allowbreak");
|
659
|
+
defineSymbol(math, punct, ",", ",");
|
660
|
+
defineSymbol(text, punct, ":", ":");
|
661
|
+
defineSymbol(math, punct, ";", ";");
|
662
|
+
defineSymbol(math, bin, "\u22bc", "\\barwedge", true);
|
663
|
+
defineSymbol(math, bin, "\u22bb", "\\veebar", true);
|
664
|
+
defineSymbol(math, bin, "\u2299", "\\odot", true);
|
665
|
+
defineSymbol(math, bin, "\u2295", "\\oplus", true);
|
666
|
+
defineSymbol(math, bin, "\u2297", "\\otimes", true);
|
667
|
+
defineSymbol(math, textord, "\u2202", "\\partial", true);
|
668
|
+
defineSymbol(math, bin, "\u2298", "\\oslash", true);
|
669
|
+
defineSymbol(math, bin, "\u229a", "\\circledcirc", true);
|
670
|
+
defineSymbol(math, bin, "\u22a1", "\\boxdot", true);
|
671
|
+
defineSymbol(math, bin, "\u25b3", "\\bigtriangleup");
|
672
|
+
defineSymbol(math, bin, "\u25bd", "\\bigtriangledown");
|
673
|
+
defineSymbol(math, bin, "\u2020", "\\dagger");
|
674
|
+
defineSymbol(math, bin, "\u22c4", "\\diamond");
|
675
|
+
defineSymbol(math, bin, "\u22c6", "\\star");
|
676
|
+
defineSymbol(math, bin, "\u25c3", "\\triangleleft");
|
677
|
+
defineSymbol(math, bin, "\u25b9", "\\triangleright");
|
678
|
+
defineSymbol(math, open, "{", "\\{");
|
679
|
+
defineSymbol(text, textord, "{", "\\{");
|
680
|
+
defineSymbol(text, textord, "{", "\\textbraceleft");
|
681
|
+
defineSymbol(math, close, "}", "\\}");
|
682
|
+
defineSymbol(text, textord, "}", "\\}");
|
683
|
+
defineSymbol(text, textord, "}", "\\textbraceright");
|
684
|
+
defineSymbol(math, open, "{", "\\lbrace");
|
685
|
+
defineSymbol(math, close, "}", "\\rbrace");
|
686
|
+
defineSymbol(math, open, "[", "\\lbrack", true);
|
687
|
+
defineSymbol(text, textord, "[", "\\lbrack", true);
|
688
|
+
defineSymbol(math, close, "]", "\\rbrack", true);
|
689
|
+
defineSymbol(text, textord, "]", "\\rbrack", true);
|
690
|
+
defineSymbol(math, open, "(", "\\lparen", true);
|
691
|
+
defineSymbol(math, close, ")", "\\rparen", true);
|
692
|
+
defineSymbol(text, textord, "<", "\\textless", true); // in T1 fontenc
|
693
|
+
defineSymbol(text, textord, ">", "\\textgreater", true); // in T1 fontenc
|
694
|
+
defineSymbol(math, open, "\u230a", "\\lfloor", true);
|
695
|
+
defineSymbol(math, close, "\u230b", "\\rfloor", true);
|
696
|
+
defineSymbol(math, open, "\u2308", "\\lceil", true);
|
697
|
+
defineSymbol(math, close, "\u2309", "\\rceil", true);
|
698
|
+
defineSymbol(math, textord, "\\", "\\backslash");
|
699
|
+
defineSymbol(math, textord, "|", "|");
|
700
|
+
defineSymbol(math, textord, "|", "\\vert");
|
701
|
+
defineSymbol(text, textord, "|", "\\textbar", true); // in T1 fontenc
|
702
|
+
defineSymbol(math, textord, "\u2016", "\\|");
|
703
|
+
defineSymbol(math, textord, "\u2016", "\\Vert");
|
704
|
+
defineSymbol(text, textord, "\u2016", "\\textbardbl");
|
705
|
+
defineSymbol(text, textord, "~", "\\textasciitilde");
|
706
|
+
defineSymbol(text, textord, "\\", "\\textbackslash");
|
707
|
+
defineSymbol(text, textord, "^", "\\textasciicircum");
|
708
|
+
defineSymbol(math, rel, "\u2191", "\\uparrow", true);
|
709
|
+
defineSymbol(math, rel, "\u21d1", "\\Uparrow", true);
|
710
|
+
defineSymbol(math, rel, "\u2193", "\\downarrow", true);
|
711
|
+
defineSymbol(math, rel, "\u21d3", "\\Downarrow", true);
|
712
|
+
defineSymbol(math, rel, "\u2195", "\\updownarrow", true);
|
713
|
+
defineSymbol(math, rel, "\u21d5", "\\Updownarrow", true);
|
714
|
+
defineSymbol(math, op, "\u2210", "\\coprod");
|
715
|
+
defineSymbol(math, op, "\u22c1", "\\bigvee");
|
716
|
+
defineSymbol(math, op, "\u22c0", "\\bigwedge");
|
717
|
+
defineSymbol(math, op, "\u2a04", "\\biguplus");
|
718
|
+
defineSymbol(math, op, "\u22c2", "\\bigcap");
|
719
|
+
defineSymbol(math, op, "\u22c3", "\\bigcup");
|
720
|
+
defineSymbol(math, op, "\u222b", "\\int");
|
721
|
+
defineSymbol(math, op, "\u222b", "\\intop");
|
722
|
+
defineSymbol(math, op, "\u222c", "\\iint");
|
723
|
+
defineSymbol(math, op, "\u222d", "\\iiint");
|
724
|
+
defineSymbol(math, op, "\u220f", "\\prod");
|
725
|
+
defineSymbol(math, op, "\u2211", "\\sum");
|
726
|
+
defineSymbol(math, op, "\u2a02", "\\bigotimes");
|
727
|
+
defineSymbol(math, op, "\u2a01", "\\bigoplus");
|
728
|
+
defineSymbol(math, op, "\u2a00", "\\bigodot");
|
729
|
+
defineSymbol(math, op, "\u222e", "\\oint");
|
730
|
+
defineSymbol(math, op, "\u222f", "\\oiint");
|
731
|
+
defineSymbol(math, op, "\u2230", "\\oiiint");
|
732
|
+
defineSymbol(math, op, "\u2231", "\\intclockwise");
|
733
|
+
defineSymbol(math, op, "\u2232", "\\varointclockwise");
|
734
|
+
defineSymbol(math, op, "\u2a0c", "\\iiiint");
|
735
|
+
defineSymbol(math, op, "\u2a0d", "\\intbar");
|
736
|
+
defineSymbol(math, op, "\u2a0e", "\\intBar");
|
737
|
+
defineSymbol(math, op, "\u2a0f", "\\fint");
|
738
|
+
defineSymbol(math, op, "\u2a12", "\\rppolint");
|
739
|
+
defineSymbol(math, op, "\u2a13", "\\scpolint");
|
740
|
+
defineSymbol(math, op, "\u2a15", "\\pointint");
|
741
|
+
defineSymbol(math, op, "\u2a16", "\\sqint");
|
742
|
+
defineSymbol(math, op, "\u2a17", "\\intlarhk");
|
743
|
+
defineSymbol(math, op, "\u2a18", "\\intx");
|
744
|
+
defineSymbol(math, op, "\u2a19", "\\intcap");
|
745
|
+
defineSymbol(math, op, "\u2a1a", "\\intcup");
|
746
|
+
defineSymbol(math, op, "\u2a05", "\\bigsqcap");
|
747
|
+
defineSymbol(math, op, "\u2a06", "\\bigsqcup");
|
748
|
+
defineSymbol(math, op, "\u222b", "\\smallint");
|
749
|
+
defineSymbol(text, inner, "\u2026", "\\textellipsis");
|
750
|
+
defineSymbol(math, inner, "\u2026", "\\mathellipsis");
|
751
|
+
defineSymbol(text, inner, "\u2026", "\\ldots", true);
|
752
|
+
defineSymbol(math, inner, "\u2026", "\\ldots", true);
|
753
|
+
defineSymbol(math, inner, "\u22f0", "\\iddots", true);
|
754
|
+
defineSymbol(math, inner, "\u22ef", "\\@cdots", true);
|
755
|
+
defineSymbol(math, inner, "\u22f1", "\\ddots", true);
|
756
|
+
defineSymbol(math, textord, "\u22ee", "\\varvdots"); // \vdots is a macro
|
757
|
+
defineSymbol(math, accent, "\u02ca", "\\acute");
|
758
|
+
defineSymbol(math, accent, "\u0060", "\\grave");
|
759
|
+
defineSymbol(math, accent, "\u00a8", "\\ddot");
|
760
|
+
defineSymbol(math, accent, "\u2026", "\\dddot");
|
761
|
+
defineSymbol(math, accent, "\u2026\u002e", "\\ddddot");
|
762
|
+
defineSymbol(math, accent, "\u007e", "\\tilde");
|
763
|
+
defineSymbol(math, accent, "\u203e", "\\bar");
|
764
|
+
defineSymbol(math, accent, "\u02d8", "\\breve");
|
765
|
+
defineSymbol(math, accent, "\u02c7", "\\check");
|
766
|
+
defineSymbol(math, accent, "\u005e", "\\hat");
|
767
|
+
defineSymbol(math, accent, "\u2192", "\\vec");
|
768
|
+
defineSymbol(math, accent, "\u02d9", "\\dot");
|
769
|
+
defineSymbol(math, accent, "\u02da", "\\mathring");
|
770
|
+
defineSymbol(math, mathord, "\u0131", "\\imath", true);
|
771
|
+
defineSymbol(math, mathord, "\u0237", "\\jmath", true);
|
772
|
+
defineSymbol(math, textord, "\u0131", "\u0131");
|
773
|
+
defineSymbol(math, textord, "\u0237", "\u0237");
|
774
|
+
defineSymbol(text, textord, "\u0131", "\\i", true);
|
775
|
+
defineSymbol(text, textord, "\u0237", "\\j", true);
|
776
|
+
defineSymbol(text, textord, "\u00df", "\\ss", true);
|
777
|
+
defineSymbol(text, textord, "\u00e6", "\\ae", true);
|
778
|
+
defineSymbol(text, textord, "\u0153", "\\oe", true);
|
779
|
+
defineSymbol(text, textord, "\u00f8", "\\o", true);
|
780
|
+
defineSymbol(math, mathord, "\u00f8", "\\o", true);
|
781
|
+
defineSymbol(text, textord, "\u00c6", "\\AE", true);
|
782
|
+
defineSymbol(text, textord, "\u0152", "\\OE", true);
|
783
|
+
defineSymbol(text, textord, "\u00d8", "\\O", true);
|
784
|
+
defineSymbol(math, mathord, "\u00d8", "\\O", true);
|
785
|
+
defineSymbol(text, accent, "\u02ca", "\\'"); // acute
|
786
|
+
defineSymbol(text, accent, "\u02cb", "\\`"); // grave
|
787
|
+
defineSymbol(text, accent, "\u02c6", "\\^"); // circumflex
|
788
|
+
defineSymbol(text, accent, "\u02dc", "\\~"); // tilde
|
789
|
+
defineSymbol(text, accent, "\u02c9", "\\="); // macron
|
790
|
+
defineSymbol(text, accent, "\u02d8", "\\u"); // breve
|
791
|
+
defineSymbol(text, accent, "\u02d9", "\\."); // dot above
|
792
|
+
defineSymbol(text, accent, "\u00b8", "\\c"); // cedilla
|
793
|
+
defineSymbol(text, accent, "\u02da", "\\r"); // ring above
|
794
|
+
defineSymbol(text, accent, "\u02c7", "\\v"); // caron
|
795
|
+
defineSymbol(text, accent, "\u00a8", '\\"'); // diaresis
|
796
|
+
defineSymbol(text, accent, "\u02dd", "\\H"); // double acute
|
797
|
+
defineSymbol(math, accent, "\u02ca", "\\'"); // acute
|
798
|
+
defineSymbol(math, accent, "\u02cb", "\\`"); // grave
|
799
|
+
defineSymbol(math, accent, "\u02c6", "\\^"); // circumflex
|
800
|
+
defineSymbol(math, accent, "\u02dc", "\\~"); // tilde
|
801
|
+
defineSymbol(math, accent, "\u02c9", "\\="); // macron
|
802
|
+
defineSymbol(math, accent, "\u02d8", "\\u"); // breve
|
803
|
+
defineSymbol(math, accent, "\u02d9", "\\."); // dot above
|
804
|
+
defineSymbol(math, accent, "\u00b8", "\\c"); // cedilla
|
805
|
+
defineSymbol(math, accent, "\u02da", "\\r"); // ring above
|
806
|
+
defineSymbol(math, accent, "\u02c7", "\\v"); // caron
|
807
|
+
defineSymbol(math, accent, "\u00a8", '\\"'); // diaresis
|
808
|
+
defineSymbol(math, accent, "\u02dd", "\\H"); // double acute
|
809
|
+
|
810
|
+
// These ligatures are detected and created in Parser.js's `formLigatures`.
|
811
|
+
export const ligatures = {
|
812
|
+
"--": true,
|
813
|
+
"---": true,
|
814
|
+
"``": true,
|
815
|
+
"''": true
|
816
|
+
};
|
817
|
+
|
818
|
+
defineSymbol(text, textord, "\u2013", "--", true);
|
819
|
+
defineSymbol(text, textord, "\u2013", "\\textendash");
|
820
|
+
defineSymbol(text, textord, "\u2014", "---", true);
|
821
|
+
defineSymbol(text, textord, "\u2014", "\\textemdash");
|
822
|
+
defineSymbol(text, textord, "\u2018", "`", true);
|
823
|
+
defineSymbol(text, textord, "\u2018", "\\textquoteleft");
|
824
|
+
defineSymbol(text, textord, "\u2019", "'", true);
|
825
|
+
defineSymbol(text, textord, "\u2019", "\\textquoteright");
|
826
|
+
defineSymbol(text, textord, "\u201c", "``", true);
|
827
|
+
defineSymbol(text, textord, "\u201c", "\\textquotedblleft");
|
828
|
+
defineSymbol(text, textord, "\u201d", "''", true);
|
829
|
+
defineSymbol(text, textord, "\u201d", "\\textquotedblright");
|
830
|
+
// \degree from gensymb package
|
831
|
+
defineSymbol(math, textord, "\u00b0", "\\degree", true);
|
832
|
+
defineSymbol(text, textord, "\u00b0", "\\degree");
|
833
|
+
// \textdegree from inputenc package
|
834
|
+
defineSymbol(text, textord, "\u00b0", "\\textdegree", true);
|
835
|
+
// TODO: In LaTeX, \pounds can generate a different character in text and math
|
836
|
+
// mode, but among our fonts, only Main-Regular defines this character "163".
|
837
|
+
defineSymbol(math, textord, "\u00a3", "\\pounds");
|
838
|
+
defineSymbol(math, textord, "\u00a3", "\\mathsterling", true);
|
839
|
+
defineSymbol(text, textord, "\u00a3", "\\pounds");
|
840
|
+
defineSymbol(text, textord, "\u00a3", "\\textsterling", true);
|
841
|
+
defineSymbol(math, textord, "\u2720", "\\maltese");
|
842
|
+
defineSymbol(text, textord, "\u2720", "\\maltese");
|
843
|
+
defineSymbol(math, textord, "\u20ac", "\\euro", true);
|
844
|
+
defineSymbol(text, textord, "\u20ac", "\\euro", true);
|
845
|
+
defineSymbol(text, textord, "\u20ac", "\\texteuro");
|
846
|
+
defineSymbol(math, textord, "\u00a9", "\\copyright", true);
|
847
|
+
defineSymbol(text, textord, "\u00a9", "\\textcopyright");
|
848
|
+
|
849
|
+
// Italic Greek
|
850
|
+
defineSymbol(math, textord, "๐ค", "\\varGamma");
|
851
|
+
defineSymbol(math, textord, "๐ฅ", "\\varDelta");
|
852
|
+
defineSymbol(math, textord, "๐ฉ", "\\varTheta");
|
853
|
+
defineSymbol(math, textord, "๐ฌ", "\\varLambda");
|
854
|
+
defineSymbol(math, textord, "๐ฏ", "\\varXi");
|
855
|
+
defineSymbol(math, textord, "๐ฑ", "\\varPi");
|
856
|
+
defineSymbol(math, textord, "๐ด", "\\varSigma");
|
857
|
+
defineSymbol(math, textord, "๐ถ", "\\varUpsilon");
|
858
|
+
defineSymbol(math, textord, "๐ท", "\\varPhi");
|
859
|
+
defineSymbol(math, textord, "๐น", "\\varPsi");
|
860
|
+
defineSymbol(math, textord, "๐บ", "\\varOmega");
|
861
|
+
defineSymbol(text, textord, "๐ค", "\\varGamma");
|
862
|
+
defineSymbol(text, textord, "๐ฅ", "\\varDelta");
|
863
|
+
defineSymbol(text, textord, "๐ฉ", "\\varTheta");
|
864
|
+
defineSymbol(text, textord, "๐ฌ", "\\varLambda");
|
865
|
+
defineSymbol(text, textord, "๐ฏ", "\\varXi");
|
866
|
+
defineSymbol(text, textord, "๐ฑ", "\\varPi");
|
867
|
+
defineSymbol(text, textord, "๐ด", "\\varSigma");
|
868
|
+
defineSymbol(text, textord, "๐ถ", "\\varUpsilon");
|
869
|
+
defineSymbol(text, textord, "๐ท", "\\varPhi");
|
870
|
+
defineSymbol(text, textord, "๐น", "\\varPsi");
|
871
|
+
defineSymbol(text, textord, "๐บ", "\\varOmega");
|
872
|
+
|
873
|
+
|
874
|
+
// There are lots of symbols which are the same, so we add them in afterwards.
|
875
|
+
// All of these are textords in math mode
|
876
|
+
const mathTextSymbols = '0123456789/@."';
|
877
|
+
for (let i = 0; i < mathTextSymbols.length; i++) {
|
878
|
+
const ch = mathTextSymbols.charAt(i);
|
879
|
+
defineSymbol(math, textord, ch, ch);
|
880
|
+
}
|
881
|
+
|
882
|
+
// All of these are textords in text mode
|
883
|
+
const textSymbols = '0123456789!@*()-=+";:?/.,';
|
884
|
+
for (let i = 0; i < textSymbols.length; i++) {
|
885
|
+
const ch = textSymbols.charAt(i);
|
886
|
+
defineSymbol(text, textord, ch, ch);
|
887
|
+
}
|
888
|
+
|
889
|
+
// All of these are textords in text mode, and mathords in math mode
|
890
|
+
const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
891
|
+
for (let i = 0; i < letters.length; i++) {
|
892
|
+
const ch = letters.charAt(i);
|
893
|
+
defineSymbol(math, mathord, ch, ch);
|
894
|
+
defineSymbol(text, textord, ch, ch);
|
895
|
+
}
|
896
|
+
|
897
|
+
// Some more letters in Unicode Basic Multilingual Plane.
|
898
|
+
const narrow = "รรรรงรพโโโโโโโคโโโโโโโโโโโโโฌโฐโฑโณโญโจ";
|
899
|
+
for (let i = 0; i < narrow.length; i++) {
|
900
|
+
const ch = narrow.charAt(i);
|
901
|
+
defineSymbol(math, mathord, ch, ch);
|
902
|
+
defineSymbol(text, textord, ch, ch);
|
903
|
+
}
|
904
|
+
|
905
|
+
// The next loop loads wide (surrogate pair) characters.
|
906
|
+
// We support some letters in the Unicode range U+1D400 to U+1D7FF,
|
907
|
+
// Mathematical Alphanumeric Symbols.
|
908
|
+
let wideChar = "";
|
909
|
+
for (let i = 0; i < letters.length; i++) {
|
910
|
+
// The hex numbers in the next line are a surrogate pair.
|
911
|
+
// 0xD835 is the high surrogate for all letters in the range we support.
|
912
|
+
// 0xDC00 is the low surrogate for bold A.
|
913
|
+
wideChar = String.fromCharCode(0xd835, 0xdc00 + i); // A-Z a-z bold
|
914
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
915
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
916
|
+
|
917
|
+
wideChar = String.fromCharCode(0xd835, 0xdc34 + i); // A-Z a-z italic
|
918
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
919
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
920
|
+
|
921
|
+
wideChar = String.fromCharCode(0xd835, 0xdc68 + i); // A-Z a-z bold italic
|
922
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
923
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
924
|
+
|
925
|
+
wideChar = String.fromCharCode(0xd835, 0xdd04 + i); // A-Z a-z Fractur
|
926
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
927
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
928
|
+
|
929
|
+
wideChar = String.fromCharCode(0xd835, 0xdda0 + i); // A-Z a-z sans-serif
|
930
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
931
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
932
|
+
|
933
|
+
wideChar = String.fromCharCode(0xd835, 0xddd4 + i); // A-Z a-z sans bold
|
934
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
935
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
936
|
+
|
937
|
+
wideChar = String.fromCharCode(0xd835, 0xde08 + i); // A-Z a-z sans italic
|
938
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
939
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
940
|
+
|
941
|
+
wideChar = String.fromCharCode(0xd835, 0xde70 + i); // A-Z a-z monospace
|
942
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
943
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
944
|
+
|
945
|
+
wideChar = String.fromCharCode(0xd835, 0xdd38 + i); // A-Z a-z double struck
|
946
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
947
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
948
|
+
|
949
|
+
const ch = letters.charAt(i);
|
950
|
+
wideChar = String.fromCharCode(0xd835, 0xdc9c + i); // A-Z a-z calligraphic
|
951
|
+
defineSymbol(math, mathord, ch, wideChar);
|
952
|
+
defineSymbol(text, textord, ch, wideChar);
|
953
|
+
}
|
954
|
+
|
955
|
+
// Next, some wide character numerals
|
956
|
+
for (let i = 0; i < 10; i++) {
|
957
|
+
wideChar = String.fromCharCode(0xd835, 0xdfce + i); // 0-9 bold
|
958
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
959
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
960
|
+
|
961
|
+
wideChar = String.fromCharCode(0xd835, 0xdfe2 + i); // 0-9 sans serif
|
962
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
963
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
964
|
+
|
965
|
+
wideChar = String.fromCharCode(0xd835, 0xdfec + i); // 0-9 bold sans
|
966
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
967
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
968
|
+
|
969
|
+
wideChar = String.fromCharCode(0xd835, 0xdff6 + i); // 0-9 monospace
|
970
|
+
defineSymbol(math, mathord, wideChar, wideChar);
|
971
|
+
defineSymbol(text, textord, wideChar, wideChar);
|
972
|
+
}
|