Debian Codegraph @

unpacked/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js

raw
1 /* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3
4 /*************************************************************
5 *
6 * MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js
7 *
8 * Adds extra stretchy characters to the TeX font data.
9 *
10 * ---------------------------------------------------------------------
11 *
12 * Copyright (c) 2011-2020 The MathJax Consortium
13 *
14 * Licensed under the Apache License, Version 2.0 (the "License");
15 * you may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
17 *
18 * http://www.apache.org/licenses/LICENSE-2.0
19 *
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
25 */
26
27 (function (HTMLCSS) {
28 var VERSION = "2.7.9";
29
30 var DELIMITERS = HTMLCSS.FONTDATA.DELIMITERS;
31
32 var MAIN = "MathJax_Main",
33 BOLD = "MathJax_Main-bold",
34 AMS = "MathJax_AMS",
35 SIZE1 = "MathJax_Size1",
36 SIZE4 = "MathJax_Size4";
37 var H = "H", V = "V";
38 var ARROWREP = [0x2212,MAIN,0,0,0,-.3,-.3]; // remove extra height/depth added below
39 var DARROWREP = [0x3D,MAIN,0,0,0,0,.1]; // add depth for arrow extender
40
41 var delim = {
42 0x003D: // equal sign
43 {
44 dir: H, HW: [[.767,MAIN]], stretch: {rep:[0x003D,MAIN]}
45 },
46 0x219E: // left two-headed arrow
47 {
48 dir: H, HW: [[1,AMS]], stretch: {left:[0x219E,AMS], rep:ARROWREP}
49 },
50 0x21A0: // right two-headed arrow
51 {
52 dir: H, HW: [[1,AMS]], stretch: {right:[0x21A0,AMS], rep:ARROWREP}
53 },
54 0x21A4: // left arrow from bar
55 {
56 dir: H, HW: [],
57 stretch: {min:1, left:[0x2190,MAIN], rep:ARROWREP, right:[0x2223,SIZE1,0,-.05,.9]}
58 },
59 0x21A5: // up arrow from bar
60 {
61 dir: V, HW: [],
62 stretch: {min:.6, bot:[0x22A5,BOLD,0,0,.75], ext:[0x23D0,SIZE1], top:[0x2191,SIZE1]}
63 },
64 0x21A6: // right arrow from bar
65 {
66 dir: H, HW: [[1,MAIN]],
67 stretch: {left:[0x2223,SIZE1,-.09,-.05,.9], rep:ARROWREP, right:[0x2192,MAIN]}
68 },
69 0x21A7: // down arrow from bar
70 {
71 dir: V, HW: [],
72 stretch: {min:.6, top:[0x22A4,BOLD,0,0,.75], ext:[0x23D0,SIZE1], bot:[0x2193,SIZE1]}
73 },
74 0x21B0: // up arrow with top leftwards
75 {
76 dir: V, HW: [[.722,AMS]],
77 stretch: {top:[0x21B0,AMS], ext:[0x23D0,SIZE1,.097]}
78 },
79 0x21B1: // up arrow with top right
80 {
81 dir: V, HW: [[.722,AMS]],
82 stretch: {top:[0x21B1,AMS,.27], ext:[0x23D0,SIZE1]}
83 },
84 0x21BC: // left harpoon with barb up
85 {
86 dir: H, HW: [[1,MAIN]],
87 stretch: {left:[0x21BC,MAIN], rep:ARROWREP}
88 },
89 0x21BD: // left harpoon with barb down
90 {
91 dir: H, HW: [[1,MAIN]],
92 stretch: {left:[0x21BD,MAIN], rep:ARROWREP}
93 },
94 0x21BE: // up harpoon with barb right
95 {
96 dir: V, HW: [[.888,AMS]],
97 stretch: {top:[0x21BE,AMS,.12,0,1.1], ext:[0x23D0,SIZE1]}
98 },
99 0x21BF: // up harpoon with barb left
100 {
101 dir: V, HW: [[.888,AMS]],
102 stretch: {top:[0x21BF,AMS,.12,0,1.1], ext:[0x23D0,SIZE1]}
103 },
104 0x21C0: // right harpoon with barb up
105 {
106 dir: H, HW: [[1,MAIN]],
107 stretch: {right:[0x21C0,MAIN], rep:ARROWREP}
108 },
109 0x21C1: // right harpoon with barb down
110 {
111 dir: H, HW: [[1,MAIN]],
112 stretch: {right:[0x21C1,MAIN], rep:ARROWREP}
113 },
114 0x21C2: // down harpoon with barb right
115 {
116 dir: V, HW: [[.888,AMS]],
117 stretch: {bot:[0x21C2,AMS,.12,0,1.1], ext:[0x23D0,SIZE1]}
118 },
119 0x21C3: // down harpoon with barb left
120 {
121 dir: V, HW: [[.888,AMS]],
122 stretch: {bot:[0x21C3,AMS,.12,0,1.1], ext:[0x23D0,SIZE1]}
123 },
124 0x21DA: // left triple arrow
125 {
126 dir: H, HW: [[1,AMS]],
127 stretch: {left:[0x21DA,AMS], rep:[0x2261,MAIN]}
128 },
129 0x21DB: // right triple arrow
130 {
131 dir: H, HW: [[1,AMS]],
132 stretch: {right:[0x21DB,AMS], rep:[0x2261,MAIN]}
133 },
134 0x23B4: // top square bracket
135 {
136 dir: H, HW: [],
137 stretch: {min:.5, left:[0x250C,AMS,0,-.1], rep:[0x2212,MAIN,0,.35], right:[0x2510,AMS,0,-.1]}
138 },
139 0x23B5: // bottom square bracket
140 {
141 dir: H, HW: [],
142 stretch: {min:.5, left:[0x2514,AMS,0,.26], rep:[0x2212,MAIN,0,0,0,.25], right:[0x2518,AMS,0,.26]}
143 },
144 0x23DC: // top paren
145 {
146 dir: H, HW: [[.778,AMS,0,0x2322],[1,MAIN,0,0x2322]],
147 stretch: {left:[0xE150,SIZE4], rep:[0xE154,SIZE4], right:[0xE151,SIZE4]}
148 },
149 0x23DD: // bottom paren
150 {
151 dir: H, HW: [[.778,AMS,0,0x2323],[1,MAIN,0,0x2323]],
152 stretch: {left:[0xE152,SIZE4], rep:[0xE154,SIZE4], right:[0xE153,SIZE4]}
153 },
154 0x23E0: // top tortoise shell
155 {
156 dir: H, HW: [],
157 stretch: {min:1.25, left:[0x2CA,MAIN,-.1], rep:[0x2C9,MAIN,0,.13], right:[0x2CB,MAIN], fullExtenders:true}
158 },
159 0x23E1: // bottom tortoise shell
160 {
161 dir: H, HW: [],
162 stretch: {min:1.5, left:[0x2CB,MAIN,-.1,.1], rep:[0x2C9,MAIN], right:[0x2CA,MAIN,-.1,.1], fullExtenders:true}
163 },
164 0x2906: // leftwards double arrow from bar
165 {
166 dir: H, HW: [],
167 stretch: {min:1, left:[0x21D0,MAIN], rep:DARROWREP, right:[0x2223,SIZE1,0,-.1]}
168 },
169 0x2907: // rightwards double arrow from bar
170 {
171 dir: H, HW: [],
172 stretch: {min:.7, left:[0x22A8,AMS,0,-.12], rep:DARROWREP, right:[0x21D2,MAIN]}
173 },
174 0x294E: // left barb up right barb up harpoon
175 {
176 dir: H, HW: [],
177 stretch: {min:.5, left:[0x21BC,MAIN], rep:ARROWREP, right:[0x21C0,MAIN]}
178 },
179 0x294F: // up barb right down barb right harpoon
180 {
181 dir: V, HW: [],
182 stretch: {min:.5, top:[0x21BE,AMS,.12,0,1.1], ext:[0x23D0,SIZE1], bot:[0x21C2,AMS,.12,0,1.1]}
183 },
184 0x2950: // left barb dow right barb down harpoon
185 {
186 dir: H, HW: [],
187 stretch: {min:.5, left:[0x21BD,MAIN], rep:ARROWREP, right:[0x21C1,MAIN]}
188 },
189 0x2951: // up barb left down barb left harpoon
190 {
191 dir: V, HW: [],
192 stretch: {min:.5, top:[0x21BF,AMS,.12,0,1.1], ext:[0x23D0,SIZE1], bot:[0x21C3,AMS,.12,0,1.1]}
193 },
194 0x295A: // leftwards harpoon with barb up from bar
195 {
196 dir: H, HW: [],
197 stretch: {min:1, left:[0x21BC,MAIN], rep:ARROWREP, right:[0x2223,SIZE1,0,-.05,.9]}
198 },
199 0x295B: // rightwards harpoon with barb up from bar
200 {
201 dir: H, HW: [],
202 stretch: {min:1, left:[0x2223,SIZE1,-.05,-.05,.9], rep:ARROWREP, right:[0x21C0,MAIN]}
203 },
204 0x295C: // up harpoon with barb right from bar
205 {
206 dir: V, HW: [],
207 stretch: {min:.7, bot:[0x22A5,BOLD,0,0,.75], ext:[0x23D0,SIZE1], top:[0x21BE,AMS,.12,0,1.1]}
208 },
209 0x295D: // down harpoon with barb right from bar
210 {
211 dir: V, HW: [],
212 stretch: {min:.7, top:[0x22A4,BOLD,0,0,.75], ext:[0x23D0,SIZE1], bot:[0x21C2,AMS,.12,0,1.1]}
213 },
214 0x295E: // leftwards harpoon with barb down from bar
215 {
216 dir: H, HW: [],
217 stretch: {min:1, left:[0x21BD,MAIN], rep:ARROWREP, right:[0x2223,SIZE1,0,-.05,.9]}
218 },
219 0x295F: // rightwards harpoon with barb down from bar
220 {
221 dir: H, HW: [],
222 stretch: {min:1, left:[0x2223,SIZE1,-.05,-.05,.9], rep:ARROWREP, right:[0x21C1,MAIN]}
223 },
224 0x2960: // up harpoon with barb left from bar
225 {
226 dir: V, HW: [],
227 stretch: {min:.7, bot:[0x22A5,BOLD,0,0,.75], ext:[0x23D0,SIZE1], top:[0x21BF,AMS,.12,0,1.1]}
228 },
229 0x2961: // down harpoon with barb left from bar
230 {
231 dir: V, HW: [],
232 stretch: {min:.7, top:[0x22A4,BOLD,0,0,.75], ext:[0x23D0,SIZE1], bot:[0x21C3,AMS,.12,0,1.1]}
233 }
234 };
235
236 for (var id in delim) {if (delim.hasOwnProperty(id)) {DELIMITERS[id] = delim[id]}};
237
238 MathJax.Ajax.loadComplete(HTMLCSS.fontDir + "/fontdata-extra.js");
239
240 })(MathJax.OutputJax["HTML-CSS"]);
241