Debian Codegraph @

texmf-dist/doc/fonts/stix2-otf/Math-features.tex

raw
1 \cleardoublepage
2
3 \pdfbookmark[0]{Substitutions}{pdf.features}
4
5 \makeatletter
6 \let\UCS@mincodepoint\@empty
7 \let\UCS@maxcodepoint\@empty
8 \def\UCS@blockname{OpenType Language Systems and Features}
9 \makeatother
10
11 \begingroup
12
13 \UCStextfont
14
15 \newfontface{\stixmath}{STIX Two Math}
16
17 \parskip\smallskipamount
18
19 \section{OpenType Language Systems and Features}
20
21 See
22 the \href{https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist}{OpenType
23 Specification} for a description of the following features.
24
25 \smallskip
26
27 \def\tablestrut{\rule[-3pt]{0pt}{13pt}}
28 \parindent 0pt
29 \begin{tabular}{@{}|ll*{4}{c}|@{}}
30 \multicolumn{1}{l}{Script}&\multicolumn{1}{l}{Language}&ccmp&dtls&flac&\multicolumn{1}{c}{ssty}\\[2pt]
31 \hline
32 \tablestrut math
33 & \textsc{default}&$\checkmark$&$\checkmark$&$\checkmark$&$\checkmark$\\
34 \hline
35 \end{tabular}
36
37 \smallskip
38
39 \section{Character Variants}
40
41 \begin{tabular}{@{}lll@{${}\to{}$}lll@{}}
42 cv01
43 & U+019B
44 & \UCSchartfont\char"019B
45 & \UCSchartfont\addfontfeature{CharacterVariant=1}\char"019B
46 & LATIN SMALL LETTER LAMBDA WITH STROKE\\
47 cv02
48 & U+0264
49 & \UCSchartfont\char"0264
50 & \UCSchartfont\addfontfeature{CharacterVariant=2}\char"0264
51 & LATIN SMALL LETTER RAMS HORN\\
52 cv03
53 & U+2205
54 & \UCSchartfont\char"2205
55 & \UCSchartfont\addfontfeature{CharacterVariant=3}\char"2205
56 & EMPTY SET\\
57 cv04
58 & U+2216
59 & \UCSchartfont\char"2216
60 & \UCSchartfont\addfontfeature{CharacterVariant=4}\char"2216
61 & SET MINUS
62 \end{tabular}
63
64 \smallskip
65
66 \textbf{Note}: The default shape of the empty set symbol has not been
67 changed to preserve backwards compatibility.
68
69 \section{Stylistic Sets}
70
71 Version~1 of the STIX fonts contained a number of variant forms that
72 are preserved in STIX Two as OpenType Layout stylistic set
73 substitutions. There are a limited number of such features available,
74 so while an effort has been made to group like substitutions together,
75 there is inevitably a ‘grab-bag’ feature (ss20) containing
76 miscellaneous variants. Sets 8 and~9 are included for compatibility
77 with the XITS fonts. The current repertoire may be extended in the
78 future if there is sufficient interest.
79
80 \raggedcolumns
81
82 \begin{multicols}{3}
83
84 \raggedright
85
86 \subsection{Stylistic Set 1 <ss01>}
87
88 \emph{Substitute roundhand for chancery Script Alphanumeric Symbols.}
89
90 \begin{ssubs}{01}
91 \U+1D49C\\ % A
92 \U+212C\\ % B
93 \U+1D49E\\ % C
94 \U+1D49F\\ % D
95 \U+2130\\ % E
96 \U+2131\\ % F
97 \U+1D4A2\\ % G
98 \U+210B\\ % H
99 \U+2110\\ % I
100 \U+1D4A5\\ % J
101 \U+1D4A6\\ % K
102 \U+2112\\ % L
103 \U+2133\\ % M
104 \U+1D4A9\\ % N
105 \U+1D4AA\\ % O
106 \U+1D4AB\\ % P
107 \U+1D4AC\\ % Q
108 \U+211B\\ % R
109 \U+1D4AE\\ % S
110 \U+1D4AF\\ % T
111 \U+1D4B0\\ % U
112 \U+1D4B1\\ % V
113 \U+1D4B2\\ % W
114 \U+1D4B3\\ % X
115 \U+1D4B4\\ % Y
116 \U+1D4B5\\ % Z
117 \end{ssubs}
118
119 \def\D+#1\\{%
120 #1
121 &\stixmath\XeTeXglyph\XeTeXglyphindex"u#1.dotless"
122 &\stixmath\addfontfeature{StylisticSet=1}\XeTeXglyph\XeTeXglyphindex"u#1.dotless"\\}
123
124 \begin{ssubs}{01}
125 \U+1D4B6\\ % a
126 \U+1D4B7\\ % b
127 \U+1D4B8\\ % c
128 \U+1D4B9\\ % d
129 \U+212F\\ % e
130 \U+1D4BB\\ % f
131 \U+210A\\ % g
132 \U+1D4BD\\ % h
133 \U+1D4BE\\ % i
134 % \D+1D4BE\\ % i.dotless
135 \U+1D4BF\\ % j
136 % \D+1D4BF\\ % j.dotless
137 \U+1D4C0\\ % k
138 \U+1D4C1\\ % l
139 \U+1D4C2\\ % m
140 \U+1D4C3\\ % n
141 \U+2134\\ % o
142 \U+1D4C5\\ % p
143 \U+1D4C6\\ % q
144 \U+1D4C7\\ % r
145 \U+1D4C8\\ % s
146 \U+1D4C9\\ % t
147 \U+1D4CA\\ % u
148 \U+1D4CB\\ % v
149 \U+1D4CC\\ % w
150 \U+1D4CD\\ % x
151 \U+1D4CE\\ % y
152 \U+1D4CF\\ % z
153 \end{ssubs}
154
155 \begin{ssubs}{01}
156 \U+1D4D0\\ % A
157 \U+1D4D1\\ % B
158 \U+1D4D2\\ % C
159 \U+1D4D3\\ % D
160 \U+1D4D4\\ % E
161 \U+1D4D5\\ % F
162 \U+1D4D6\\ % G
163 \U+1D4D7\\ % H
164 \U+1D4D8\\ % I
165 \U+1D4D9\\ % J
166 \U+1D4DA\\ % K
167 \U+1D4DB\\ % L
168 \U+1D4DC\\ % M
169 \U+1D4DD\\ % N
170 \U+1D4DE\\ % O
171 \U+1D4DF\\ % P
172 \U+1D4E0\\ % Q
173 \U+1D4E1\\ % R
174 \U+1D4E2\\ % S
175 \U+1D4E3\\ % T
176 \U+1D4E4\\ % U
177 \U+1D4E5\\ % V
178 \U+1D4E6\\ % W
179 \U+1D4E7\\ % X
180 \U+1D4E8\\ % Y
181 \U+1D4E9\\ % Z
182 \end{ssubs}
183
184 \subsection{Stylistic Set 1 <ss01> (continued)}
185
186 \begin{ssubs}{02}
187 \U+1D4EA\\ % a
188 \U+1D4EB\\ % b
189 \U+1D4EC\\ % c
190 \U+1D4ED\\ % d
191 \U+1D4EE\\ % e
192 \U+1D4EF\\ % f
193 \U+1D4F0\\ % g
194 \U+1D4F1\\ % h
195 \U+1D4F2\\ % i
196 % \D+1D4F2\\ % i.dotless
197 \U+1D4F3\\ % j
198 % \D+1D4F3\\ % j.dotless
199 \U+1D4F4\\ % k
200 \U+1D4F5\\ % l
201 \U+1D4F6\\ % m
202 \U+1D4F7\\ % n
203 \U+1D4F8\\ % o
204 \U+1D4F9\\ % p
205 \U+1D4FA\\ % q
206 \U+1D4FB\\ % r
207 \U+1D4FC\\ % s
208 \U+1D4FD\\ % t
209 \U+1D4FE\\ % u
210 \U+1D4FF\\ % v
211 \U+1D500\\ % w
212 \U+1D501\\ % x
213 \U+1D502\\ % y
214 \U+1D503\\ % z
215 \end{ssubs}
216
217 \subsection{Stylistic Set 2 <ss02>}
218
219 \emph{Variants of selected math italic lowercase letters.}
220
221 \begin{ssubs}{02}
222 \U+1D454\\
223 \U+1D462\\
224 \U+1D463\\
225 \U+1D464\\
226 \U+1D467\\
227 \U+1D488\\
228 \U+1D628\\
229 \U+1D65C\\
230 \end{ssubs}
231
232 \subsection{Stylistic Set 3 <ss03>}
233
234 \emph{Variants of characters with cross-bars.}
235
236 \begin{ssubs}{03}
237 \U+019B\\
238 \U+210F\\
239 \end{ssubs}
240
241 \columnbreak
242
243 \subsection{Stylistic Set 4 <ss04>}
244
245 \emph{Larger, lower variants of prime, minute, second, etc.}
246
247 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=4}\char"#1\\}
248
249 \begin{ssubs}{04}
250 \U+2032\\
251 \U+2033\\
252 \U+2034\\
253 \U+2035\\
254 \U+2036\\
255 \U+2037\\
256 \U+2057\\
257 \end{ssubs}
258
259 \subsection{Stylistic Set 5 <ss05>}
260
261 \emph{Shorter variants of selected arrows.}
262
263 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=5}\char"#1\\}
264
265 \begin{ssubs}{05}
266 \U+2190\\
267 \U+2191\\
268 \U+2192\\
269 \U+2193\\
270 \U+21D1\\
271 \U+21D3\\
272 \U+21E0\\
273 \U+21E2\\
274 \end{ssubs}
275
276 \subsection{Stylistic Set 6 <ss06>}
277
278 \emph{Narrower or shorter variants of assorted symbols.}
279
280 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=6}\char"#1\\}
281
282 \begin{ssubs}{06}
283 \U+2208\\
284 \U+220B\\
285 \U+2223\\
286 \U+2224\\
287 \U+2225\\
288 \U+2226\\
289 \U+2AEE\\
290 \end{ssubs}
291
292 \subsection{Stylistic Set 7 <ss07>}
293
294 \emph{Smaller versions of various operators.}
295
296 \textbf{Note}: In version 2.0.0, the transformation
297 {\UCSchartfont\char"2205 ${}\to{}$
298 \addfontfeature{CharacterVariant=3}\char"2205} was
299 erroneously included in this stylistic set. That
300 transformation has been moved to cv03.
301
302 \smallskip
303
304 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=7}\char"#1\\}
305
306 \begin{ssubs}[1.2]{07}
307 \U+2140\\
308 \U+220F\\
309 \U+2210\\
310 \U+2211\\
311 \U+221A\\
312 \U+221B\\
313 \U+221C\\
314 \end{ssubs}
315
316 \subsection{Stylistic Set 8 <ss08>}
317
318 \emph{(XITS compatibility) Upright forms of integrals, including size
319 variants (not shown).}
320
321 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=8}\char"#1\\}
322
323 \begin{ssubs}[1.1]{08}
324 \U+222B\\
325 \U+222C\\
326 \U+222D\\
327 \U+222E\\
328 \U+222F\\
329 \U+2230\\
330 \U+2231\\
331 \U+2232\\
332 \U+2233\\
333 \U+2A0B\\
334 \U+2A0C\\
335 \U+2A0D\\
336 \U+2A0E\\
337 \U+2A0F\\
338 \U+2A10\\
339 \U+2A11\\
340 \U+2A12\\
341 \U+2A13\\
342 \U+2A14\\
343 \U+2A15\\
344 \U+2A16\\
345 \U+2A17\\
346 \U+2A18\\
347 \U+2A19\\
348 \U+2A1A\\
349 \U+2A1B\\
350 \U+2A1C\\
351 \end{ssubs}
352
353 \newpage
354
355 \subsection{Stylistic Set 9 <ss09>}
356
357 \emph{(XITS compatibility) Vertical slash variants of
358 some negated symbols.}
359
360 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=9}\char"#1\\}
361
362 \begin{ssubs}[1.1]{09}
363 \U+0338\\
364 \U+2209\\
365 \U+220C\\
366 \U+2241\\
367 \U+2244\\
368 \U+2246\\
369 \U+2247\\
370 \U+2249\\
371 \U+2260\\
372 \U+2262\\
373 \U+2268\\
374 \U+2269\\
375 \U+226D\\
376 \U+226E\\
377 \U+226F\\
378 \U+2270\\
379 \U+2271\\
380 \U+2274\\
381 \U+2275\\
382 \U+2278\\
383 \U+2279\\
384 \U+2280\\
385 \U+2281\\
386 \U+2284\\
387 \U+2285\\
388 \U+2288\\
389 \U+2289\\
390 \U+22E0\\
391 \U+22E1\\
392 \U+22EC\\
393 \U+22ED\\
394 \end{ssubs}
395
396 \columnbreak
397
398 \subsection{Stylistic Set 10 <ss10>}
399
400 \emph{Slanted variants of selected greater/lesser relations.}
401
402 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=10}\char"#1\\}
403
404 \begin{ssubs}[1.1]{10}
405 \U+2272\\
406 \U+2273\\
407 \U+22DA\\
408 \U+22DB\\
409 \U+2A9D\\
410 \U+2A9E\\
411 \U+2AAC\\
412 \U+2AAD\\
413 \end{ssubs}
414
415 \subsection{Stylistic Set 11 <ss11>}
416
417 \emph{Variant negated sub/superset relations.}
418
419 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=11}\char"#1\\}
420
421 \begin{ssubs}[1.2]{11}
422 \U+228A\\
423 \U+228B\\
424 \U+2ACB\\
425 \U+2ACC\\
426 \end{ssubs}
427
428 \subsection{Stylistic Set 12 <ss12>}
429
430 \emph{Low-modulation, `sans serif'-like variants.}
431
432 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=12}\char"#1\\}
433
434 \begin{ssubs}{12}
435 \U+221D\\
436 \U+2322\\
437 \U+2323\\
438 \end{ssubs}
439
440 \subsection{Stylistic Set 13 <ss13>}
441
442 \emph{Horizontally-flipped sine-wave symbol.}
443
444 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=13}\char"#1\\}
445
446 \begin{ssubs}{13}
447 \U+223F\\
448 \end{ssubs}
449
450 \columnbreak
451
452 \subsection{Stylistic Set 14 <ss14>}
453
454 \emph{Taller versions of two symbols.}
455
456 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=14}\char"#1\\}
457
458 \begin{ssubs}{14}
459 \U+2A3C\\
460 \U+2A3D\\
461 \end{ssubs}
462
463 \subsection{Stylistic Set 15 <ss15>}
464
465 \emph{Slab-serif variants.}
466
467 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=15}\char"#1\\}
468
469 \begin{ssubs}{15}
470 \U+2229\\
471 \U+222A\\
472 \U+2293\\
473 \U+2294\\
474 \end{ssubs}
475
476 \subsection{Stylistic Set 16 <ss16>}
477
478 \emph{Variant circled operators (note inconsistent sets).}
479
480 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=16}\char"#1\\}
481
482 \begin{ssubs}{16}
483 \U+2295\\
484 \U+2297\\
485 \U+229C\\
486 \end{ssubs}
487
488 \subsection{Stylistic Set 20 <ss20>}
489
490 \emph{Miscellaneous variants.}
491
492 \def\U+#1\\{#1&\stixmath\char"#1&\stixmath\addfontfeature{StylisticSet=20}\char"#1\\}
493
494 \begin{ssubs}{20}
495 \U+223E\\
496 \U+224C\\
497 \U+2423\\
498 \U+25A9\\
499 \end{ssubs}
500
501 \end{multicols}
502
503 \clearpage
504
505 \section{Mathematical Standardized Variants}
506
507 Standardized Variants are described in section 22.5 of the
508 \href{https://www.unicode.org/versions/Unicode12.0.0/ch22.pdf#G23168}{Unicode
509 12.0 Core Specification} and in the
510 \href{https://www.unicode.org/Public/12.0.0/ucd/StandardizedVariants.txt}{StandardizedVariants.txt}
511 file in the Unicode Character Database.
512
513 As noted below, most of the Standardized Variants are also accessible
514 via Character Variants or Stylistic Sets.
515
516 \medskip
517
518 \tracinglostchars=0
519
520 \begingroup
521
522 \def\arraystretch{1.2}
523
524 \newcommand{\variant}[2][]{U+#2&U+FE00 &\stixmath\char"#2&\stixmath\char"#2︀&#1\\}
525
526 \begin{tabular}{@{}l@{\,}ll@{${}\to{}$}l@{\qquad}l@{}}
527 \variant{0030}% short diagonal stroke form; # DIGIT ZERO
528 \variant[cv03]{2205}% zero with long diagonal stroke overlay form; # EMPTY SET
529 \variant[ss15]{2229}% with serifs; # INTERSECTION
530 \variant[ss15]{222A}% with serifs; # UNION
531 \variant[ss09]{2268}% with vertical stroke; # LESS-THAN BUT NOT EQUAL TO
532 \variant[ss09]{2269}% with vertical stroke; # GREATER-THAN BUT NOT EQUAL TO
533 \variant[ss10]{2272}% following the slant of the lower leg; # LESS-THAN OR EQUIVALENT TO
534 \variant[ss10]{2273}% following the slant of the lower leg; # GREATER-THAN OR EQUIVALENT TO
535 \variant[ss11]{228A}% with stroke through bottom members; # SUBSET OF WITH NOT EQUAL TO
536 \variant[ss11]{228B}% with stroke through bottom members; # SUPERSET OF WITH NOT EQUAL TO
537 \variant[ss15]{2293}% with serifs; # SQUARE CAP
538 \variant[ss15]{2294}% with serifs; # SQUARE CUP
539
540 \variant[ss16]{2295}% with white rim; # CIRCLED PLUS
541 \variant[ss16]{2297}% with white rim; # CIRCLED TIMES
542 \variant[ss16]{229C}% with equal sign touching the circle; # CIRCLED EQUALS
543
544 \variant[ss10]{22DA}% with slanted equal; # LESS-THAN EQUAL TO OR GREATER-THAN
545 \variant[ss10]{22DB}% with slanted equal; # GREATER-THAN EQUAL TO OR LESS-THAN
546 \variant[ss14]{2A3C}% tall variant with narrow foot; # INTERIOR PRODUCT
547 \variant[ss14]{2A3D}% tall variant with narrow foot; # RIGHTHAND INTERIOR PRODUCT
548 \variant[ss10]{2A9D}% with similar following the slant of the upper leg; # SIMILAR OR LESS-THAN
549 \variant[ss10]{2A9E}% with similar following the slant of the upper leg; # SIMILAR OR GREATER-THAN
550 \variant[ss10]{2AAC}% with slanted equal; # SMALLER THAN OR EQUAL TO
551 \variant[ss10]{2AAD}% with slanted equal; # LARGER THAN OR EQUAL TO
552 \variant[ss11]{2ACB}% with stroke through bottom members; # SUBSET OF ABOVE NOT EQUAL TO
553 \variant[ss11]{2ACC}% with stroke through bottom members; # SUPERSET OF ABOVE NOT EQUAL TO
554 \end{tabular}
555
556 \endgroup
557
558 \endgroup
559
560 \endinput