temml 0.13.3 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Temml-Asana.css +17 -3
- package/dist/Temml-Latin-Modern.css +17 -3
- package/dist/Temml-Libertinus.css +17 -4
- package/dist/Temml-Local.css +19 -5
- package/dist/Temml-NotoSans.css +19 -5
- package/dist/Temml-STIX2.css +19 -5
- package/dist/temml.cjs +20 -9
- package/dist/temml.js +20 -9
- package/dist/temml.min.js +1 -1
- package/dist/temml.mjs +20 -9
- package/dist/temmlPostProcess.js +1 -1
- package/package.json +1 -1
- package/src/postProcess.js +1 -1
- package/src/stretchy.js +18 -7
- package/src/symbols.js +1 -1
package/dist/Temml-Asana.css
CHANGED
|
@@ -287,15 +287,29 @@ menclose {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/* Stretch \widetilde */
|
|
290
|
-
.tml-
|
|
290
|
+
.tml-tilde-2 {
|
|
291
291
|
transform: scale(2.0, 1.1)
|
|
292
292
|
}
|
|
293
|
-
.tml-
|
|
293
|
+
.tml-tilde-3 {
|
|
294
294
|
transform: scale(3.0, 1.3)
|
|
295
295
|
}
|
|
296
|
-
.tml-
|
|
296
|
+
.tml-tilde-4 {
|
|
297
297
|
transform: scale(4.0, 1.4)
|
|
298
298
|
}
|
|
299
|
+
/* Stretch \widehat */
|
|
300
|
+
.tml-hat-1 {
|
|
301
|
+
transform: scale(1.8, 1.0)
|
|
302
|
+
}
|
|
303
|
+
.tml-hat-2 {
|
|
304
|
+
transform: scale(3.5, 1.0)
|
|
305
|
+
}
|
|
306
|
+
.tml-hat-3 {
|
|
307
|
+
transform: scale(5.4, 1.1)
|
|
308
|
+
}
|
|
309
|
+
.tml-hat-4 {
|
|
310
|
+
transform: scale(7.2, 1.1)
|
|
311
|
+
}
|
|
312
|
+
|
|
299
313
|
/* set array cell justification */
|
|
300
314
|
.tml-right {
|
|
301
315
|
text-align: -webkit-right;
|
|
@@ -301,15 +301,29 @@ menclose {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
/* Stretch \widetilde */
|
|
304
|
-
.tml-
|
|
304
|
+
.tml-tilde-2 {
|
|
305
305
|
transform: scale(2.0, 1.1)
|
|
306
306
|
}
|
|
307
|
-
.tml-
|
|
307
|
+
.tml-tilde-3 {
|
|
308
308
|
transform: scale(3.0, 1.3)
|
|
309
309
|
}
|
|
310
|
-
.tml-
|
|
310
|
+
.tml-tilde-4 {
|
|
311
311
|
transform: scale(4.0, 1.4)
|
|
312
312
|
}
|
|
313
|
+
/* Stretch \widehat */
|
|
314
|
+
.tml-hat-1 {
|
|
315
|
+
transform: scale(1.8, 1.1)
|
|
316
|
+
}
|
|
317
|
+
.tml-hat-2 {
|
|
318
|
+
transform: scale(3.5, 1.1)
|
|
319
|
+
}
|
|
320
|
+
.tml-hat-3 {
|
|
321
|
+
transform: scale(5.4, 1.3)
|
|
322
|
+
}
|
|
323
|
+
.tml-hat-4 {
|
|
324
|
+
transform: scale(7.2, 1.4)
|
|
325
|
+
}
|
|
326
|
+
|
|
313
327
|
/* set array cell justification */
|
|
314
328
|
.tml-right {
|
|
315
329
|
text-align: -webkit-right;
|
|
@@ -303,15 +303,29 @@ menclose {
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
/* Stretch \widetilde */
|
|
306
|
-
.tml-
|
|
306
|
+
.tml-tilde-2 {
|
|
307
307
|
transform: scale(2.0, 1.1)
|
|
308
308
|
}
|
|
309
|
-
.tml-
|
|
309
|
+
.tml-tilde-3 {
|
|
310
310
|
transform: scale(3.0, 1.3)
|
|
311
311
|
}
|
|
312
|
-
.tml-
|
|
312
|
+
.tml-tilde-4 {
|
|
313
313
|
transform: scale(4.0, 1.4)
|
|
314
314
|
}
|
|
315
|
+
/* Stretch \widehat */
|
|
316
|
+
.tml-hat-1 {
|
|
317
|
+
transform: scale(2.0, 1.0)
|
|
318
|
+
}
|
|
319
|
+
.tml-hat-2 {
|
|
320
|
+
transform: scale(4.2, 1.0)
|
|
321
|
+
}
|
|
322
|
+
.tml-hat-3 {
|
|
323
|
+
transform: scale(6.2, 1.1)
|
|
324
|
+
}
|
|
325
|
+
.tml-hat-4 {
|
|
326
|
+
transform: scale(8.8, 1.1)
|
|
327
|
+
}
|
|
328
|
+
|
|
315
329
|
/* set array cell justification */
|
|
316
330
|
.tml-right {
|
|
317
331
|
text-align: -webkit-right;
|
|
@@ -320,7 +334,6 @@ menclose {
|
|
|
320
334
|
text-align: -webkit-left;
|
|
321
335
|
}
|
|
322
336
|
}
|
|
323
|
-
|
|
324
337
|
/* flex-wrap for line-breaking in Chromium */
|
|
325
338
|
math {
|
|
326
339
|
display: inline-flex;
|
package/dist/Temml-Local.css
CHANGED
|
@@ -294,15 +294,29 @@ menclose {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
/* Stretch \widetilde */
|
|
297
|
-
.tml-
|
|
297
|
+
.tml-tilde-2 {
|
|
298
298
|
transform: scale(2.0, 1.1)
|
|
299
299
|
}
|
|
300
|
-
.tml-
|
|
301
|
-
transform: scale(3.0, 1.
|
|
300
|
+
.tml-tilde-3 {
|
|
301
|
+
transform: scale(3.0, 1.1)
|
|
302
302
|
}
|
|
303
|
-
.tml-
|
|
304
|
-
transform: scale(4.0, 1.
|
|
303
|
+
.tml-tilde-4 {
|
|
304
|
+
transform: scale(4.0, 1.1)
|
|
305
305
|
}
|
|
306
|
+
/* Stretch \widehat */
|
|
307
|
+
.tml-hat-1 {
|
|
308
|
+
transform: scale(1.9, 1.0)
|
|
309
|
+
}
|
|
310
|
+
.tml-hat-2 {
|
|
311
|
+
transform: scale(3.9, 1.0)
|
|
312
|
+
}
|
|
313
|
+
.tml-hat-3 {
|
|
314
|
+
transform: scale(5.8, 1.0)
|
|
315
|
+
}
|
|
316
|
+
.tml-hat-4 {
|
|
317
|
+
transform: scale(7.8, 1.0)
|
|
318
|
+
}
|
|
319
|
+
|
|
306
320
|
/* set array cell justification */
|
|
307
321
|
.tml-right {
|
|
308
322
|
text-align: -webkit-right;
|
package/dist/Temml-NotoSans.css
CHANGED
|
@@ -296,15 +296,29 @@ menclose {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
/* Stretch \widetilde */
|
|
299
|
-
.tml-
|
|
299
|
+
.tml-tilde-2 {
|
|
300
300
|
transform: scale(2.0, 1.1)
|
|
301
301
|
}
|
|
302
|
-
.tml-
|
|
303
|
-
transform: scale(3.0, 1.
|
|
302
|
+
.tml-tilde-3 {
|
|
303
|
+
transform: scale(3.0, 1.1)
|
|
304
304
|
}
|
|
305
|
-
.tml-
|
|
306
|
-
transform: scale(4.0, 1.
|
|
305
|
+
.tml-tilde-4 {
|
|
306
|
+
transform: scale(4.0, 1.1)
|
|
307
307
|
}
|
|
308
|
+
/* Stretch \widehat */
|
|
309
|
+
.tml-hat-1 {
|
|
310
|
+
transform: scale(1.8, 1.0)
|
|
311
|
+
}
|
|
312
|
+
.tml-hat-2 {
|
|
313
|
+
transform: scale(3.5, 1.0)
|
|
314
|
+
}
|
|
315
|
+
.tml-hat-3 {
|
|
316
|
+
transform: scale(5.4, 1.0)
|
|
317
|
+
}
|
|
318
|
+
.tml-hat-4 {
|
|
319
|
+
transform: scale(7.2, 1.0)
|
|
320
|
+
}
|
|
321
|
+
|
|
308
322
|
/* set array cell justification */
|
|
309
323
|
.tml-right {
|
|
310
324
|
text-align: -webkit-right;
|
package/dist/Temml-STIX2.css
CHANGED
|
@@ -293,15 +293,29 @@ menclose {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
/* Stretch \widetilde */
|
|
296
|
-
.tml-
|
|
296
|
+
.tml-tilde-2 {
|
|
297
297
|
transform: scale(2.0, 1.1)
|
|
298
298
|
}
|
|
299
|
-
.tml-
|
|
300
|
-
transform: scale(3.0, 1.
|
|
299
|
+
.tml-tilde-3 {
|
|
300
|
+
transform: scale(3.0, 1.1)
|
|
301
301
|
}
|
|
302
|
-
.tml-
|
|
303
|
-
transform: scale(4.0, 1.
|
|
302
|
+
.tml-tilde-4 {
|
|
303
|
+
transform: scale(4.0, 1.1)
|
|
304
304
|
}
|
|
305
|
+
/* Stretch \widehat */
|
|
306
|
+
.tml-hat-1 {
|
|
307
|
+
transform: scale(1.9, 1.0)
|
|
308
|
+
}
|
|
309
|
+
.tml-hat-2 {
|
|
310
|
+
transform: scale(3.9, 1.0)
|
|
311
|
+
}
|
|
312
|
+
.tml-hat-3 {
|
|
313
|
+
transform: scale(5.8, 1.1)
|
|
314
|
+
}
|
|
315
|
+
.tml-hat-4 {
|
|
316
|
+
transform: scale(7.8, 1.1)
|
|
317
|
+
}
|
|
318
|
+
|
|
305
319
|
/* set array cell justification */
|
|
306
320
|
.tml-right {
|
|
307
321
|
text-align: -webkit-right;
|
package/dist/temml.cjs
CHANGED
|
@@ -787,7 +787,7 @@ const estimatedWidth = node => {
|
|
|
787
787
|
};
|
|
788
788
|
|
|
789
789
|
const stretchyCodePoint = {
|
|
790
|
-
widehat: "
|
|
790
|
+
widehat: "\u02c6", // Shorter than \u005e, which is appropriate for an accent.
|
|
791
791
|
widecheck: "ˇ",
|
|
792
792
|
widetilde: "~",
|
|
793
793
|
wideparen: "⏜", // \u23dc
|
|
@@ -850,19 +850,30 @@ const mathMLnode = function(label) {
|
|
|
850
850
|
return node
|
|
851
851
|
};
|
|
852
852
|
|
|
853
|
-
const
|
|
853
|
+
const wideHats = ["\\widehat", "\\widecheck"];
|
|
854
854
|
|
|
855
|
-
// TODO: Remove when Chromium stretches \widetilde & \widehat
|
|
855
|
+
// TODO: Remove if/when Chromium stretches \widetilde & \widehat
|
|
856
856
|
const accentNode = (group) => {
|
|
857
857
|
const mo = mathMLnode(group.label);
|
|
858
|
-
if (
|
|
858
|
+
if (group.label.indexOf("tilde") > -1) {
|
|
859
859
|
const width = estimatedWidth(group.base);
|
|
860
860
|
if (1 < width && width < 1.6) {
|
|
861
|
-
mo.classes.push("tml-
|
|
861
|
+
mo.classes.push("tml-tilde-2");
|
|
862
|
+
} else if (1.6 <= width && width < 2.5) {
|
|
863
|
+
mo.classes.push("tml-tilde-3");
|
|
864
|
+
} else if (2.5 <= width) {
|
|
865
|
+
mo.classes.push("tml-tilde-4");
|
|
866
|
+
}
|
|
867
|
+
} else if (wideHats.includes(group.label)) {
|
|
868
|
+
const width = estimatedWidth(group.base);
|
|
869
|
+
if (0 < width && width <= 1) {
|
|
870
|
+
mo.classes.push("tml-hat-1");
|
|
871
|
+
} else if (1 < width && width < 1.6) {
|
|
872
|
+
mo.classes.push("tml-hat-2");
|
|
862
873
|
} else if (1.6 <= width && width < 2.5) {
|
|
863
|
-
mo.classes.push("tml-
|
|
874
|
+
mo.classes.push("tml-hat-3");
|
|
864
875
|
} else if (2.5 <= width) {
|
|
865
|
-
mo.classes.push("tml-
|
|
876
|
+
mo.classes.push("tml-hat-4");
|
|
866
877
|
}
|
|
867
878
|
}
|
|
868
879
|
return mo
|
|
@@ -1771,7 +1782,7 @@ defineSymbol(math, accent, "\u007e", "\\tilde");
|
|
|
1771
1782
|
defineSymbol(math, accent, "\u203e", "\\bar");
|
|
1772
1783
|
defineSymbol(math, accent, "\u02d8", "\\breve");
|
|
1773
1784
|
defineSymbol(math, accent, "\u02c7", "\\check");
|
|
1774
|
-
defineSymbol(math, accent, "\
|
|
1785
|
+
defineSymbol(math, accent, "\u02c6", "\\hat");
|
|
1775
1786
|
defineSymbol(math, accent, "\u2192", "\\vec");
|
|
1776
1787
|
defineSymbol(math, accent, "\u02d9", "\\dot");
|
|
1777
1788
|
defineSymbol(math, accent, "\u02da", "\\mathring");
|
|
@@ -14197,7 +14208,7 @@ class Style {
|
|
|
14197
14208
|
* https://mit-license.org/
|
|
14198
14209
|
*/
|
|
14199
14210
|
|
|
14200
|
-
const version = "0.13.
|
|
14211
|
+
const version = "0.13.4";
|
|
14201
14212
|
|
|
14202
14213
|
function postProcess(block) {
|
|
14203
14214
|
const labelMap = {};
|
package/dist/temml.js
CHANGED
|
@@ -788,7 +788,7 @@ var temml = (function () {
|
|
|
788
788
|
};
|
|
789
789
|
|
|
790
790
|
const stretchyCodePoint = {
|
|
791
|
-
widehat: "
|
|
791
|
+
widehat: "\u02c6", // Shorter than \u005e, which is appropriate for an accent.
|
|
792
792
|
widecheck: "ˇ",
|
|
793
793
|
widetilde: "~",
|
|
794
794
|
wideparen: "⏜", // \u23dc
|
|
@@ -851,19 +851,30 @@ var temml = (function () {
|
|
|
851
851
|
return node
|
|
852
852
|
};
|
|
853
853
|
|
|
854
|
-
const
|
|
854
|
+
const wideHats = ["\\widehat", "\\widecheck"];
|
|
855
855
|
|
|
856
|
-
// TODO: Remove when Chromium stretches \widetilde & \widehat
|
|
856
|
+
// TODO: Remove if/when Chromium stretches \widetilde & \widehat
|
|
857
857
|
const accentNode = (group) => {
|
|
858
858
|
const mo = mathMLnode(group.label);
|
|
859
|
-
if (
|
|
859
|
+
if (group.label.indexOf("tilde") > -1) {
|
|
860
860
|
const width = estimatedWidth(group.base);
|
|
861
861
|
if (1 < width && width < 1.6) {
|
|
862
|
-
mo.classes.push("tml-
|
|
862
|
+
mo.classes.push("tml-tilde-2");
|
|
863
|
+
} else if (1.6 <= width && width < 2.5) {
|
|
864
|
+
mo.classes.push("tml-tilde-3");
|
|
865
|
+
} else if (2.5 <= width) {
|
|
866
|
+
mo.classes.push("tml-tilde-4");
|
|
867
|
+
}
|
|
868
|
+
} else if (wideHats.includes(group.label)) {
|
|
869
|
+
const width = estimatedWidth(group.base);
|
|
870
|
+
if (0 < width && width <= 1) {
|
|
871
|
+
mo.classes.push("tml-hat-1");
|
|
872
|
+
} else if (1 < width && width < 1.6) {
|
|
873
|
+
mo.classes.push("tml-hat-2");
|
|
863
874
|
} else if (1.6 <= width && width < 2.5) {
|
|
864
|
-
mo.classes.push("tml-
|
|
875
|
+
mo.classes.push("tml-hat-3");
|
|
865
876
|
} else if (2.5 <= width) {
|
|
866
|
-
mo.classes.push("tml-
|
|
877
|
+
mo.classes.push("tml-hat-4");
|
|
867
878
|
}
|
|
868
879
|
}
|
|
869
880
|
return mo
|
|
@@ -1772,7 +1783,7 @@ var temml = (function () {
|
|
|
1772
1783
|
defineSymbol(math, accent, "\u203e", "\\bar");
|
|
1773
1784
|
defineSymbol(math, accent, "\u02d8", "\\breve");
|
|
1774
1785
|
defineSymbol(math, accent, "\u02c7", "\\check");
|
|
1775
|
-
defineSymbol(math, accent, "\
|
|
1786
|
+
defineSymbol(math, accent, "\u02c6", "\\hat");
|
|
1776
1787
|
defineSymbol(math, accent, "\u2192", "\\vec");
|
|
1777
1788
|
defineSymbol(math, accent, "\u02d9", "\\dot");
|
|
1778
1789
|
defineSymbol(math, accent, "\u02da", "\\mathring");
|
|
@@ -12284,7 +12295,7 @@ var temml = (function () {
|
|
|
12284
12295
|
* https://mit-license.org/
|
|
12285
12296
|
*/
|
|
12286
12297
|
|
|
12287
|
-
const version = "0.13.
|
|
12298
|
+
const version = "0.13.4";
|
|
12288
12299
|
|
|
12289
12300
|
function postProcess(block) {
|
|
12290
12301
|
const labelMap = {};
|