cewebs-transformationengine 3.0.2 → 3.0.3

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.
@@ -225,6 +225,74 @@ a:active { color:#000000; text-decoration:underline; }
225
225
  overflow:auto;
226
226
  }
227
227
 
228
+ /* small screens: the menu is a burger at the top left, it opens above the content (#menutoggle, pure CSS) */
229
+ @media (max-width: 50em) {
230
+ #burger {
231
+ display:block;
232
+ position:absolute;
233
+ /* burger, menu and the area that closes it are above everything, the footers included */
234
+ z-index:10004;
235
+ top:0;
236
+ left:0;
237
+ width:2.4em;
238
+ height:1.8em;
239
+ cursor:pointer;
240
+ /* three bars, from the top of the capitals to the baseline of the text next to it */
241
+ background: linear-gradient(#ffffff 0 0) center 0.5em / 1.1em 2px no-repeat,
242
+ linear-gradient(#ffffff 0 0) center 0.8em / 1.1em 2px no-repeat,
243
+ linear-gradient(#ffffff 0 0) center 1.1em / 1.1em 2px no-repeat;
244
+ }
245
+ #menutoggle:checked + #burger { background-color:#636563; }
246
+ #menutoggle:focus-visible + #burger { outline:2px solid #ffffff; outline-offset:-2px; }
247
+
248
+ #menu {
249
+ display:none;
250
+ top:1.8em;
251
+ bottom:1.8em;
252
+ height:auto;
253
+ /* wide enough for the links on top */
254
+ width:max-content;
255
+ min-width:15em;
256
+ max-width:85%;
257
+ overflow-y:auto;
258
+ z-index:10003;
259
+ box-shadow: 0.2em 0 0.6em rgba(0,0,0,0.3);
260
+ }
261
+ #menutoggle:checked ~ #menu { display:block; }
262
+ /* everything around the open menu closes it */
263
+ #menutoggle:checked ~ #menuclose { display:block; position:fixed; inset:0; z-index:10002; background-color:rgba(0,0,0,0.15); }
264
+ #menu ul { padding-top:0.5em; }
265
+ /* the links of hnav, as a block on top of the menu */
266
+ #menu #navmenu { display:block; padding:0.6em 1em; border-bottom:0.4em solid #c6cbc6; }
267
+ #menu #navmenu li { display:inline; padding:0; border:0 none; white-space:nowrap; }
268
+ #menu #navmenu li a { display:inline; width:auto; }
269
+ #menu #navmenu li::before { content:'['; }
270
+ #menu #navmenu li::after { content:'] '; }
271
+ #menu #navmenu li.nav-change { display:none; }
272
+ #header .hnav { display:none; }
273
+
274
+ #header div.bread { left:2.6em; }
275
+ #header div.bread #youarehere { display:none; }
276
+ #header div.search form { display:none; }
277
+
278
+ #contentcontainer { left:0; }
279
+ #footer-left { display:none; }
280
+ /* the time it took */
281
+ #speed { display:none; }
282
+
283
+ /* the content follows the width */
284
+ #content { padding:0.7em; }
285
+ #content img { max-width:100%; height:auto; }
286
+ /* pictures of pages (not icons) are 75% of their size, and smaller if that is still too wide */
287
+ #content img[src*="aresource"] { zoom:0.75; }
288
+ #content .columns > div:first-child { flex-direction:column; }
289
+ #content .column { margin:0; }
290
+ #content .column ~ .column { margin-top:1em; }
291
+ /* text fields of forms (e.g. login) fill their column instead of their size */
292
+ #content form table:has(input[type=text], input[type=password]) { width:100%; }
293
+ #content form td > input:is([type=text], [type=password]) { width:100%; box-sizing:border-box; }
294
+ }
295
+
228
296
  #debug { background-color: #DEE3DE; padding:0em 1em; margin:0; }
229
297
  #debug div.invisible { display:none; }
230
298
  #debug div.visible { display:inline; }
@@ -0,0 +1,372 @@
1
+ /*
2
+ Temml.woff2 is a clone of KaTeX_Script-Regular, except that the code points
3
+ have been changed from ASCII to Unicode Mathematical Alphanumeric Symbols Script capitals,
4
+ Unicode range 1D49C to 1D4B5.
5
+ */
6
+
7
+ @font-face {
8
+ font-family: 'Temml';
9
+ src: url('Temml.woff2') format('woff2');
10
+ font-weight: normal;
11
+ font-style: normal;
12
+ }
13
+
14
+ math {
15
+ font-family: "Cambria Math", 'STIXTwoMath-Regular', 'NotoSansMath-Regular', math;
16
+ font-style: normal;
17
+ font-weight: normal;
18
+ line-height: normal;
19
+ font-size-adjust: none;
20
+ text-indent: 0;
21
+ text-transform: none;
22
+ letter-spacing: normal;
23
+ word-wrap: normal;
24
+ direction: ltr;
25
+ /* Prevent Firefox from omitting the dot on i or j. */
26
+ font-feature-settings: "dtls" off;
27
+ }
28
+
29
+ math * {
30
+ border-color: currentColor;
31
+ }
32
+
33
+ /* display: block is necessary in Firefox and Safari.
34
+ * Not in Chromium, which recognizes display: "block math" written inline. */
35
+ math.tml-display {
36
+ display: block;
37
+ width: 100%;
38
+ }
39
+
40
+ *.mathcal {
41
+ /* NotoSans */
42
+ font-feature-settings: 'ss01';
43
+ }
44
+
45
+ math .mathscr {
46
+ font-family: "Temml";
47
+ }
48
+
49
+ mo.tml-prime {
50
+ font-family: Temml;
51
+ }
52
+
53
+ /* Cramped superscripts in WebKit */
54
+ mfrac > :nth-child(2),
55
+ msqrt,
56
+ mover > :first-child {
57
+ math-shift: compact
58
+ }
59
+
60
+ .menclose {
61
+ display: inline-block;
62
+ position: relative;
63
+ padding: 0.5ex 0ex;
64
+ }
65
+ .tml-cancelto {
66
+ display: inline-block;
67
+ position: absolute;
68
+ top: 0;
69
+ left: 0;
70
+ padding: 0.5ex 0ex;
71
+ background-color: currentColor;
72
+ /* Use the SVG as an alpha mask (painted by background-color) */
73
+ -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='black' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%25' y1='100%25' stroke='black' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
74
+ mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><defs><marker id='a' markerHeight='5' markerUnits='strokeWidth' markerWidth='7' orient='auto' refX='7' refY='2.5'><path fill='black' d='m0 0 7 2.5L0 5z'/></marker></defs><line x2='100%25' y1='100%25' stroke='black' stroke-width='.06em' marker-end='url(%23a)' vector-effect='non-scaling-stroke'/></svg>");
75
+ -webkit-mask-repeat: no-repeat;
76
+ mask-repeat: no-repeat;
77
+ -webkit-mask-size: 100% 100%;
78
+ mask-size: 100% 100%;
79
+ -webkit-mask-position: 0 0;
80
+ mask-position: 0 0;
81
+ }
82
+
83
+ @supports (-moz-appearance: none) {
84
+ /* \vec w/o italic correction for Firefox */
85
+ .tml-vec {
86
+ transform: scale(0.75)
87
+ }
88
+ /* Fix \cancelto in Firefox */
89
+ .ff-narrow {
90
+ width: 0em;
91
+ }
92
+ .ff-nudge-left {
93
+ margin-left: -0.2em;
94
+ }
95
+ /* Squash hidden mrows in \bordermatrix. Messes with centering, but necessary to squash. */
96
+ .ff-squash mtd {
97
+ display: block;
98
+ height: 0;
99
+ }
100
+ }
101
+
102
+ @supports (not (-moz-appearance: none)) {
103
+ /* Chromium and WebKit */
104
+ /* prime vertical alignment */
105
+ mo.tml-prime {
106
+ font-family: Temml;
107
+ }
108
+ /* Italic correction on superscripts */
109
+ .tml-sml-pad {
110
+ padding-left: 0.05em;
111
+ }
112
+ .tml-med-pad {
113
+ padding-left: 0.10em;
114
+ }
115
+ .tml-lrg-pad {
116
+ padding-left: 0.15em;
117
+ }
118
+ }
119
+
120
+ @supports (-webkit-backdrop-filter: blur(1px)) {
121
+ /* WebKit vertical & italic correction on accents */
122
+ .wbk-acc {
123
+ /* lower by x-height distance */
124
+ transform: translate(0em, 0.431em);
125
+ }
126
+ .wbk-sml {
127
+ transform: translate(0.07em, 0);
128
+ }
129
+ .wbk-sml-acc {
130
+ transform: translate(0.07em, 0.431em);
131
+ }
132
+ .wbk-sml-vec {
133
+ transform: scale(0.75) translate(0.07em, 0);
134
+ }
135
+ .wbk-med {
136
+ transform: translate(0.14em, 0);
137
+ }
138
+ .wbk-med-acc {
139
+ transform: translate(0.14em, 0.431em);
140
+ }
141
+ .wbk-med-vec {
142
+ transform: scale(0.75) translate(0.14em, 0);
143
+ }
144
+ .wbk-lrg {
145
+ transform: translate(0.21em, 0);
146
+ }
147
+ .wbk-lrg-acc {
148
+ transform: translate(0.21em, 0.431em);
149
+ }
150
+ .wbk-lrg-vec {
151
+ transform: scale(0.75) translate(0.21em, 0);
152
+ }
153
+ }
154
+
155
+ /* \cancel & \phase use background images. Get them to print. */
156
+ menclose {
157
+ -webkit-print-color-adjust: exact; /* Chrome & Edge */
158
+ print-color-adjust: exact;
159
+ }
160
+
161
+ /* Array cell justification in Firefox & WebKit */
162
+ .tml-right {
163
+ text-align: right;
164
+ }
165
+ .tml-left {
166
+ text-align: left;
167
+ }
168
+
169
+ /* For CD labels that grow to the left in Firefox and WebKit */
170
+ .tml-shift-left { margin-left:-200% }
171
+
172
+ /* Styles for Chromium only */
173
+ @supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) {
174
+ /* Italic correction on accents */
175
+ .chr-sml {
176
+ transform: translate(0.07em, 0)
177
+ }
178
+ .chr-sml-vec {
179
+ transform: scale(0.75) translate(0.07em, 0)
180
+ }
181
+ .chr-med {
182
+ transform: translate(0.14em, 0)
183
+ }
184
+ .chr-med-vec {
185
+ transform: scale(0.75) translate(0.14em, 0)
186
+ }
187
+ .chr-lrg {
188
+ transform: translate(0.21em, 0)
189
+ }
190
+ .chr-lrg-vec {
191
+ transform: scale(0.75) translate(0.21em, 0)
192
+ }
193
+
194
+ /* For CD labels that grow to the left */
195
+ .tml-shift-left { margin-left:-100% }
196
+
197
+ /* MathML Core & Chromium do not support the MathML 3.0 element <menclose> attributes. */
198
+ /* So use styles. */
199
+ menclose {
200
+ position: relative;
201
+ padding: 0.5ex 0ex;
202
+ }
203
+
204
+ .tml-overline {
205
+ padding: 0.1em 0 0 0;
206
+ border-top: 0.065em solid;
207
+ }
208
+
209
+ .tml-underline {
210
+ padding: 0 0 0.1em 0;
211
+ border-bottom: 0.065em solid;
212
+ }
213
+
214
+ .tml-cancel {
215
+ display: inline-block;
216
+ position: absolute;
217
+ left: 0.5px;
218
+ bottom: 0;
219
+ width: 100%;
220
+ height: 100%;
221
+ background-color: currentColor;
222
+ }
223
+ .upstrike {
224
+ clip-path: polygon(0.05em 100%, 0em calc(100% - 0.05em), calc(100% - 0.05em) 0em, 100% 0.05em);
225
+ }
226
+ .downstrike {
227
+ clip-path: polygon(0em 0.05em, 0.05em 0em, 100% calc(100% - 0.05em), calc(100% - 0.05em) 100%);
228
+ }
229
+ .sout {
230
+ clip-path: polygon(0em calc(55% + 0.0333em), 0em calc(55% - 0.0333em), 100% calc(55% - 0.0333em), 100% calc(55% + 0.0333em));
231
+ }
232
+ .tml-xcancel {
233
+ clip-path: polygon(0.05em 0em, 0em 0.05em, calc(50% - 0.05em) 50%, 0em calc(100% - 0.05em), 0.05em 100%, 50% calc(50% + 0.05em), calc(100% - 0.05em) 100%, 100% calc(100% - 0.05em), calc(50% + 0.05em) 50%, 100% 0.05em, calc(100% - 0.05em) 0%, 50% calc(50% - 0.05em));
234
+ }
235
+
236
+ .longdiv-top {
237
+ border-top: 0.067em solid;
238
+ padding: 0.1em 0.2em 0.2em 0.433em;
239
+ }
240
+ .longdiv-arc {
241
+ position: absolute;
242
+ top: 0;
243
+ bottom: 0.1em;
244
+ left: -0.4em;
245
+ width: 0.7em;
246
+ border: 0.067em solid;
247
+ transform: translateY(-0.067em);
248
+ border-radius: 70%;
249
+ clip-path: inset(0 0 0 0.4em);
250
+ box-sizing: border-box;}
251
+ .menclose {display: inline-block;
252
+ text-align: left;
253
+ position: relative;
254
+ }
255
+
256
+ .phasor-bottom {
257
+ border-bottom: 0.067em solid;
258
+ padding: 0.2em 0.2em 0.1em 0.6em;
259
+ }
260
+ .phasor-angle {
261
+ display: inline-block;
262
+ position: absolute;
263
+ left: 0.5px;
264
+ bottom: -0.04em;
265
+ height: 100%;
266
+ aspect-ratio: 0.5;
267
+ background-color: currentColor;
268
+ clip-path: polygon(0.05em 100%, 0em calc(100% - 0.05em), calc(100% - 0.05em) 0em, 100% 0.05em);
269
+ }
270
+
271
+ .tml-fbox {
272
+ padding: 3pt;
273
+ border: 1px solid;
274
+ }
275
+
276
+ .circle-pad {
277
+ padding: 0.267em;
278
+ }
279
+ .textcircle {
280
+ position: absolute;
281
+ top: 0;
282
+ bottom: 0;
283
+ right: 0;
284
+ left: 0;
285
+ border: 0.067em solid;
286
+ border-radius: 50%;
287
+ }
288
+
289
+ .actuarial {
290
+ padding: 0.03889em 0.03889em 0 0.03889em;
291
+ border-width: 0.08em 0.08em 0em 0em;
292
+ border-style: solid;
293
+ margin-right: 0.03889em;
294
+ }
295
+
296
+ /* Stretch \widetilde */
297
+ .tml-tilde-2 {
298
+ transform: scale(2.0, 1.1)
299
+ }
300
+ .tml-tilde-3 {
301
+ transform: scale(3.0, 1.1)
302
+ }
303
+ .tml-tilde-4 {
304
+ transform: scale(4.0, 1.1)
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
+
320
+ /* set array cell justification */
321
+ .tml-right {
322
+ text-align: -webkit-right;
323
+ }
324
+ .tml-left {
325
+ text-align: -webkit-left;
326
+ }
327
+ }
328
+
329
+ .special-fraction {
330
+ font-family: 'STIX TWO', 'Times New Roman', Times, Tinos, serif;
331
+ }
332
+
333
+ /* flex-wrap for line-breaking in Chromium */
334
+ math {
335
+ display: inline-flex;
336
+ flex-wrap: wrap;
337
+ align-items: baseline;
338
+ }
339
+ math > mrow {
340
+ padding: 0.5ex 0ex;
341
+ }
342
+
343
+ /* Default mtd top padding is 0.5ex per MathML-Core and user-agent CSS */
344
+ /* We adjust for jot and small */
345
+ mtable.tml-jot > mtr > mtd {
346
+ padding-top: 0.7ex;
347
+ padding-bottom: 0.7ex;
348
+ }
349
+ mtable.tml-small mtd {
350
+ padding-top: 0.35ex;
351
+ padding-bottom: 0.35ex;
352
+ }
353
+
354
+ /* Firefox */
355
+ @-moz-document url-prefix() {
356
+ /* Avoid flex-wrap */
357
+ math { display: inline; }
358
+ math > mrow { padding: 0 }
359
+ /* Adjust Firefox spacing between array rows */
360
+ mtd, mtable.tml-small mtd { padding-top: 0; padding-bottom: 0; }
361
+ mtable.tml-jot > mtr > mtd { padding-top: 0.2ex; padding-bottom: 0.2ex; }
362
+ }
363
+
364
+ /* AMS environment auto-numbering via CSS counter. */
365
+ .tml-eqn::before {
366
+ counter-increment: tmlEqnNo;
367
+ content: "(" counter(tmlEqnNo) ")";
368
+ }
369
+
370
+ body {
371
+ counter-reset: tmlEqnNo;
372
+ }
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cewebs-transformationengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -735,6 +735,8 @@ files:
735
735
  - static/js/jquery/jquery-ui.min.js
736
736
  - static/js/jquery/jquery.min.js
737
737
  - static/js/jquery/printf.js
738
+ - static/js/temml/LICENSE
739
+ - static/js/temml/temml.min.js
738
740
  - static/styles/AdwaitaSans-Latin.woff2
739
741
  - static/styles/AdwaitaSans-Regular.ttf
740
742
  - static/styles/AdwaitaSans-Regular.ttf.License
@@ -758,6 +760,8 @@ files:
758
760
  - static/styles/plain.css
759
761
  - static/styles/plain_ohne.css
760
762
  - static/styles/print.css
763
+ - static/styles/temml/Temml-Local.css
764
+ - static/styles/temml/Temml.woff2
761
765
  - static/styles/uni.compact.css
762
766
  - static/styles/uni.css
763
767
  - static/styles/uni_big.css