Debian Codegraph @

texmf-dist/source/latex/fontspec/fontspec-code-opentype.dtx

raw
1 %%^^A%% fontspec-code-opentype.dtx -- part of FONTSPEC <latex3.github.io/fontspec>
2
3 % \section{OpenType definitions code}
4 %
5 % \iffalse
6 % \begin{macrocode}
7 %<*fontspec>
8 % \end{macrocode}
9 % \fi
10 %
11 %
12 %
13 % \begin{macro}{\@@_define_opentype_variation_axis:nn}
14 % \begin{macrocode}
15 \cs_new:Nn \@@_define_opentype_variation_axis:nn
16 {
17 \keys_define:nn {fontspec-opentype}
18 {
19 #1 .code:n = {
20 \prop_gput:Nnn \g_@@_rawvariations_prop { #2 } { ##1 }
21 },
22 #1 .value_required:n = true,
23 #1 .groups:n = {opentype},
24 }
25 }
26 % \end{macrocode}
27 % \end{macro}
28 %
29 % \begin{macro}{\@@_define_opentype_feature_group:n}
30 % \begin{macrocode}
31 \cs_new:Nn \@@_define_opentype_feature_group:n
32 {
33 \keys_define:nn {fontspec-opentype} { #1 .multichoice: , .groups:n = {opentype} }
34 }
35 % \end{macrocode}
36 % \end{macro}
37 %
38 % \begin{macro}{\@@_define_opentype_feature:nnnnn}
39 % \darg{Feature key}
40 % \darg{Feature option val}
41 % \darg{Check feature --- leave empty for no check}
42 % \darg{Exact tag string to activate --- leave empty for disable only}
43 % \darg{Tags to remove (clist)}
44 % \begin{macrocode}
45 \cs_new:Nn \@@_feat_prop_add:nn
46 {
47 \tl_if_empty:nF {#1}
48 {
49 \prop_if_in:NnF \g_@@_OT_features_prop {#1}
50 {
51 \prop_gput:Nnn \g_@@_OT_features_prop {#1} {#2}
52 }
53 }
54 }
55 \cs_new:Nn \@@_define_opentype_feature:nnnnn
56 {
57 \@@_feat_prop_add:nn {#3} {#1\,=\,#2}
58 \tl_if_empty:nTF {#4}
59 {
60 \keys_define:nn {fontspec-opentype}
61 {
62 #1/#2 .code:n =
63 { \@@_remove_clashing_featstr:n {#5} } ,
64 #1/#2 .groups:n = {opentype}
65 }
66 }
67 {
68 \keys_define:nn {fontspec-opentype}
69 {
70 #1/#2 .code:n =
71 {
72 %<debug> \typeout{::::::::fontspec-opentype~#1/#2~=~#3/#4/#5}
73 \@@_make_OT_feature:nnn {#3} {#4} {#5}
74 } ,
75 #1/#2 .groups:n = {opentype}
76 }
77 }
78 }
79 % \end{macrocode}
80 % \end{macro}
81 %
82 % \begin{macro}{\@@_define_opentype_onoffreset:nnnnn}
83 % \darg{Feature key}
84 % \darg{Feature option val}
85 % \darg{Check feature}
86 % \darg{Tag prefix to activate: \texttt{+\#4} = on, \texttt{-\#4} = off.}
87 % \darg{Tags to remove in the on case (clist)}
88 % \begin{macrocode}
89 \cs_new:Nn \@@_feat_off:n {#1Off}
90 \cs_new:Nn \@@_feat_reset:n {#1Reset}
91 % \end{macrocode}
92 %
93 % \begin{macrocode}
94 \cs_new:Nn \@@_define_opentype_onoffreset:nnnnn
95 {
96 \exp_args:Nnx \@@_define_opentype_feature:nnnnn {#1} {#2} {#3} {+#4} {#5}
97 \exp_args:Nnx \@@_define_opentype_feature:nnnnn {#1} { \@@_feat_off:n {#2} } {#3} {-#4} {}
98 \exp_args:Nnx \@@_define_opentype_feature:nnnnn {#1} { \@@_feat_reset:n {#2} } {} {} {+#4,-#4}
99 }
100 % \end{macrocode}
101 % \end{macro}
102 %
103 % \begin{macro}{\@@_define_opentype_onreset:nnnnn}
104 % \darg{Feature key}
105 % \darg{Feature option val}
106 % \darg{Check feature}
107 % \darg{Exact tag string to activate}
108 % \darg{Tags to remove (clist)}
109 % \begin{macrocode}
110 \cs_new:Nn \@@_define_opentype_onreset:nnnnn
111 {
112 \exp_args:Nnx \@@_define_opentype_feature:nnnnn {#1} {#2} {#3} {#4} {#5}
113 \exp_args:Nnx \@@_define_opentype_feature:nnnnn {#1} { \@@_feat_reset:n {#2} } {} {} {#4}
114 }
115 % \end{macrocode}
116 % \end{macro}
117 %
118 % \subsection{Adding features when loading fonts}
119 %
120 % When remove clashing features,
121 % \begin{enumerate}
122 % \item remove the feature being added (to avoid duplicates);
123 % \item remove the inverse of the feature (to avoid cancellation);
124 % \item finally remove all clashing features.
125 % \end{enumerate}
126 % \begin{macrocode}
127 \cs_new:Nn \@@_make_OT_feature:nnn
128 {
129 %<debug> \typeout{:: @@_make_OT_feature:nnn \exp_not:n { {#1}{#2}{#3} } }
130 \@@_remove_clashing_featstr:x { #2 , \@@_swap_plus_minus:n {#2} , #3 }
131 \@@_update_featstr:n {#2}
132 }
133 \cs_generate_variant:Nn \@@_make_OT_feature:nnn {xxx}
134 % \end{macrocode}
135 %
136 % \begin{macrocode}
137 \cs_new:Nn \@@_swap_plus_minus:n { \@@_swap_plus_minus_aux:Nq #1 \q_nil }
138 \cs_new:Npn \@@_swap_plus_minus_aux:Nq #1#2 \q_nil
139 { \str_case:nn {#1} { {+} {-#2} {-} {+#2} } }
140 % \end{macrocode}
141 % \end{macro}
142 %
143 %
144 % \begin{macro}{\@@_check_script:NnTF}
145 % This macro takes an OpenType script tag and checks if it exists in the current
146 % font. \cmd\l_@@_script_int\ is used to store
147 % the number corresponding to the script tag string.
148 % \begin{macrocode}
149 \prg_new_conditional:Nnn \@@_check_script:Nn {TF,T,F}
150 {
151 %<debug>\typeout{:: _check_script:Nn~#1~/~#2}
152 \bool_if:NTF \l_@@_never_check_bool
153 { \prg_return_true: }
154 {
155 \bool_if:nTF { \tl_if_empty_p:e {#2} }
156 { \prg_return_false: }
157 {
158 %<*XE>
159 %<debug>\typeout{::::~ checking~ script~ #2}
160 \@@_iv_str_to_num:Nx \l_@@_strnum_int {#2}
161 \int_set:Nn \l_tmpb_int { \XeTeXOTcountscripts #1 }
162 \int_zero:N \l_tmpa_int
163 \bool_set_false:N \l__fontspec_check_bool
164 \bool_until_do:nn { \int_compare_p:nNn \l_tmpa_int = \l_tmpb_int }
165 {
166 \ifnum \XeTeXOTscripttag #1 \l_tmpa_int = \l_@@_strnum_int
167 \bool_set_true:N \l__fontspec_check_bool
168 \int_set:Nn \l_tmpa_int {\l_tmpb_int}
169 \else
170 \int_incr:N \l_tmpa_int
171 \fi
172 }
173 \bool_if:NTF \l__fontspec_check_bool \prg_return_true: \prg_return_false:
174 %</XE>
175 %<*LU>
176 \@@_ot_validate_tag:x {#2}
177 \cs_if_eq:NNTF #1 \font
178 { \tl_set:Nx \l_@@_tmp_tl {\curr@fontshape/\f@size} }
179 { \tl_set:Nx \l_@@_tmp_tl {\cs_to_str:N #1} }
180 %<debug>\typeout{::::~ checking:~"\l_@@_tmp_tl",~ "#2"}
181 \lua_now:e { fontspec.check_ot_script("\l_@@_tmp_tl", "#2") }
182 \bool_if:NTF \l__fontspec_check_bool
183 {
184 %<debug>\typeout{::::::~ TRUE}
185 \prg_return_true:
186 }
187 {
188 %<debug>\typeout{::::::~ FALSE}
189 \prg_return_false:
190 }
191 %</LU>
192 }
193 }
194 }
195 % \end{macrocode}
196 % \end{macro}
197 %
198 % \begin{macro}{\@@_check_lang:NnnTF}
199 % \begin{macro}{\@@_check_lang:NnTF}
200 % This macro takes an OpenType language tag and checks if it exists in the current
201 % font/script. \cmd\l_@@_language_int\ is used to store
202 % the number corresponding to the language tag string.
203 % The script used is whatever's held in \cmd\l_@@_script_int. By default, that's the
204 % number corresponding to `|latn|'.
205 % \begin{macrocode}
206 \prg_new_conditional:Nnn \@@_check_lang:Nn {TF,F}
207 {
208 \@@_check_lang:NnnTF #1 {#2} {\l_@@_script_tl} {\prg_return_true:} {\prg_return_false:}
209 }
210 % \end{macrocode}
211 %
212 % \begin{macrocode}
213 \prg_new_conditional:Nnn \@@_check_lang:Nnn {TF}
214 {
215 %<debug>\typeout{:: _check_lang:Nn~#1~/~#2~/~#3~/}
216 \bool_if:NTF \l_@@_never_check_bool
217 { \prg_return_true: }
218 {
219 \bool_if:nTF { \tl_if_empty_p:e {#3} }
220 { \prg_return_false: }
221 {
222 %<*XE>
223 \@@_iv_str_to_num:Nx \l_@@_strnum_int {#2}
224 \@@_iv_str_to_num:Nx \l_@@_script_int {#3}
225 \int_set:Nn \l_@@_tmpb_int
226 { \XeTeXOTcountlanguages #1 \l_@@_script_int }
227 \int_zero:N \l_@@_tmpa_int
228 \bool_set_false:N \l__fontspec_check_bool
229 \bool_until_do:nn { \int_compare_p:nNn \l_@@_tmpa_int = \l_@@_tmpb_int }
230 {
231 \int_set:Nn \l_@@_tmpc_int
232 { \XeTeXOTlanguagetag #1 \l_@@_script_int \l_@@_tmpa_int }
233
234 \int_compare:nNnTF \l_@@_tmpc_int = \l_@@_strnum_int
235 {
236 \bool_set_true:N \l__fontspec_check_bool
237 \int_set:Nn \l_@@_tmpa_int {\l_@@_tmpb_int}
238 }
239 {
240 \int_incr:N \l_@@_tmpa_int
241 }
242 }
243 \bool_if:NTF \l__fontspec_check_bool \prg_return_true: \prg_return_false:
244 %</XE>
245 %<*LU>
246 \@@_ot_validate_tag:x {#2}
247 \@@_ot_validate_tag:x {#3}
248 \cs_if_eq:NNTF #1 \font
249 { \tl_set:Nx \l_@@_tmp_tl {\curr@fontshape/\f@size} }
250 { \tl_set:Nx \l_@@_tmp_tl {\cs_to_str:N #1} }
251 \@@_lua_function:neee {check_ot_lang} {\l_@@_tmp_tl} {#2} {#3}
252 \bool_if:NTF \l__fontspec_check_bool \prg_return_true: \prg_return_false:
253 %</LU>
254 }
255 }
256 }
257 % \end{macrocode}
258 % \end{macro}
259 % \end{macro}
260 %
261 % \begin{macro}{\@@_check_ot_feat:NnnnTF}
262 % This macro takes an OpenType feature tag and checks if it exists in the current
263 % font/script/language.
264 % \cmd\l_@@_strnum_int\ is used to store the number corresponding to the feature tag string.
265 % The script used is whatever's held in \cmd\l_@@_script_int. By default, that's the
266 % number corresponding to `|latn|'. The language used is \cmd\l_@@_language_int,
267 % by default |0|, the `default language'.
268 % \begin{macrocode}
269 \prg_new_conditional:Nnn \@@_check_ot_feat:Nnnn {TF,T,F}
270 {
271 \bool_if:NTF \l_@@_never_check_bool
272 { \prg_return_true: }
273 {
274 \bool_if:nTF { \tl_if_empty_p:e {#3} || \tl_if_empty_p:e {#4} }
275 { \prg_return_false: }
276 {
277 %<*XE>
278 %<debug>\typeout{::~ fontspec_check_ot_feat:nnn~ {#2}{#3}{#4}}
279 \@@_iv_str_to_num:Nx \l_@@_strnum_int {#2}
280
281 \str_if_eq:eeTF {#3} {dflt}
282 { \int_zero:N \l_@@_language_int }
283 { \@@_iv_str_to_num:Nx \l_@@_language_int {#3} }
284 \@@_iv_str_to_num:Nx \l_@@_script_int {#4}
285
286 \int_set:Nn \l_tmpb_int
287 { \XeTeXOTcountfeatures #1 \l_@@_script_int \l_@@_language_int }
288
289 \int_zero:N \l_tmpa_int
290 \bool_set_false:N \l_@@_check_bool
291 \bool_until_do:nn { \int_compare_p:nNn \l_tmpa_int = \l_tmpb_int }
292 {
293 \ifnum\XeTeXOTfeaturetag #1 \l_@@_script_int \l_@@_language_int
294 \l_tmpa_int =\l_@@_strnum_int
295 \bool_set_true:N \l_@@_check_bool
296 \int_set:Nn \l_tmpa_int {\l_tmpb_int}
297 \else
298 \int_incr:N \l_tmpa_int
299 \fi
300 }
301 \bool_if:NTF \l_@@_check_bool \prg_return_true: \prg_return_false:
302 %</XE>
303 %<*LU>
304 %<debug>\typeout{::~ fontspec_check_ot_feat:n~ {#1}}
305 \@@_ot_validate_tag:x {#2}
306 \@@_ot_validate_tag:x {#3}
307 \@@_ot_validate_tag:x {#4}
308 \cs_if_eq:NNTF #1 \font
309 { \tl_set:Nx \l_@@_tmp_tl {\curr@fontshape/\f@size} }
310 { \tl_set:Nx \l_@@_tmp_tl {\cs_to_str:N #1} }
311 \@@_lua_function:neeee {check_ot_feat} {\l_@@_tmp_tl} {#2} {#3} {#4}
312 \bool_if:NTF \l_@@_check_bool \prg_return_true: \prg_return_false:
313 %</LU>
314 }
315 }
316 }
317 % \end{macrocode}
318 % \end{macro}
319 %
320 % \subsection{OpenType feature information}
321 %
322 % \begin{macrocode}
323 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {aalt}{Access~All~Alternates}
324 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {abvf}{Above-base~Forms}
325 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {abvm}{Above-base~Mark~Positioning}
326 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {abvs}{Above-base~Substitutions}
327 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {afrc}{Alternative~Fractions}
328 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {akhn}{Akhands}
329 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {blwf}{Below-base~Forms}
330 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {blwm}{Below-base~Mark~Positioning}
331 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {blws}{Below-base~Substitutions}
332 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {calt}{Contextual~Alternates}
333 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {case}{Case-Sensitive~Forms}
334 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ccmp}{Glyph~Composition~/~Decomposition}
335 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {cfar}{Conjunct~Form~After~Ro}
336 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {cjct}{Conjunct~Forms}
337 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {clig}{Contextual~Ligatures}
338 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {cpct}{Centered~CJK~Punctuation}
339 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {cpsp}{Capital~Spacing}
340 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {cswh}{Contextual~Swash}
341 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {curs}{Cursive~Positioning}
342 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {cvNN}{Character~Variant~$N$}
343 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {c2pc}{Petite~Capitals~From~Capitals}
344 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {c2sc}{Small~Capitals~From~Capitals}
345 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {dist}{Distances}
346 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {dlig}{Discretionary~Ligatures}
347 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {dnom}{Denominators}
348 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {dtls}{Dotless~Forms}
349 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {expt}{Expert~Forms}
350 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {falt}{Final~Glyph~on~Line~Alternates}
351 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {fin2}{Terminal~Forms~\#2}
352 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {fin3}{Terminal~Forms~\#3}
353 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {fina}{Terminal~Forms}
354 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {flac}{Flattened~accent~forms}
355 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {frac}{Fractions}
356 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {fwid}{Full~Widths}
357 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {half}{Half~Forms}
358 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {haln}{Halant~Forms}
359 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {halt}{Alternate~Half~Widths}
360 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {hist}{Historical~Forms}
361 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {hkna}{Horizontal~Kana~Alternates}
362 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {hlig}{Historical~Ligatures}
363 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {hngl}{Hangul}
364 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {hojo}{Hojo~Kanji~Forms}
365 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {hwid}{Half~Widths}
366 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {init}{Initial~Forms}
367 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {isol}{Isolated~Forms}
368 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ital}{Italics}
369 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {jalt}{Justification~Alternates}
370 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {jp78}{JIS78~Forms}
371 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {jp83}{JIS83~Forms}
372 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {jp90}{JIS90~Forms}
373 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {jp04}{JIS2004~Forms}
374 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {kern}{Kerning}
375 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {lfbd}{Left~Bounds}
376 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {liga}{Standard~Ligatures}
377 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ljmo}{Leading~Jamo~Forms}
378 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {lnum}{Lining~Figures}
379 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {locl}{Localized~Forms}
380 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ltra}{Left-to-right~alternates}
381 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ltrm}{Left-to-right~mirrored~forms}
382 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {mark}{Mark~Positioning}
383 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {med2}{Medial~Forms~\#2}
384 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {medi}{Medial~Forms}
385 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {mgrk}{Mathematical~Greek}
386 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {mkmk}{Mark~to~Mark~Positioning}
387 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {mset}{Mark~Positioning~via~Substitution}
388 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {nalt}{Alternate~Annotation~Forms}
389 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {nlck}{NLC~Kanji~Forms}
390 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {nukt}{Nukta~Forms}
391 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {numr}{Numerators}
392 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {onum}{Oldstyle~Figures}
393 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {opbd}{Optical~Bounds}
394 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ordn}{Ordinals}
395 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ornm}{Ornaments}
396 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {palt}{Proportional~Alternate~Widths}
397 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {pcap}{Petite~Capitals}
398 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {pkna}{Proportional~Kana}
399 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {pnum}{Proportional~Figures}
400 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {pref}{Pre-Base~Forms}
401 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {pres}{Pre-base~Substitutions}
402 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {pstf}{Post-base~Forms}
403 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {psts}{Post-base~Substitutions}
404 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {pwid}{Proportional~Widths}
405 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {qwid}{Quarter~Widths}
406 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {rand}{Randomize}
407 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {rclt}{Required~Contextual~Alternates}
408 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {rkrf}{Rakar~Forms}
409 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {rlig}{Required~Ligatures}
410 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {rphf}{Reph~Forms}
411 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {rtbd}{Right~Bounds}
412 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {rtla}{Right-to-left~alternates}
413 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {rtlm}{Right-to-left~mirrored~forms}
414 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ruby}{Ruby~Notation~Forms}
415 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {rvrn}{Required~Variation~Alternates}
416 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {salt}{Stylistic~Alternates}
417 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {sinf}{Scientific~Inferiors}
418 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {size}{Optical~size}
419 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {smcp}{Small~Capitals}
420 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {smpl}{Simplified~Forms}
421 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ssNN}{Stylistic~Set~$N$}
422 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {ssty}{Math~script~style~alternates}
423 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {stch}{Stretching~Glyph~Decomposition}
424 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {subs}{Subscript}
425 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {sups}{Superscript}
426 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {swsh}{Swash}
427 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {titl}{Titling}
428 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {tjmo}{Trailing~Jamo~Forms}
429 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {tnam}{Traditional~Name~Forms}
430 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {tnum}{Tabular~Figures}
431 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {trad}{Traditional~Forms}
432 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {twid}{Third~Widths}
433 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {unic}{Unicase}
434 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {valt}{Alternate~Vertical~Metrics}
435 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {vatu}{Vattu~Variants}
436 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {vert}{Vertical~Writing}
437 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {vhal}{Alternate~Vertical~Half~Metrics}
438 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {vjmo}{Vowel~Jamo~Forms}
439 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {vkna}{Vertical~Kana~Alternates}
440 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {vkrn}{Vertical~Kerning}
441 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {vpal}{Proportional~Alternate~Vertical~Metrics}
442 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {vrt2}{Vertical~Alternates~and~Rotation}
443 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {vrtr}{Vertical~Alternates~for~Rotation}
444 \prop_gput:Nnn \g_@@_all_opentype_feature_names_prop {zero}{Slashed~Zero}
445 % \end{macrocode}
446 % TODO: move the above elsewhere!!
447 %
448 % \iffalse
449 % \begin{macrocode}
450 %</fontspec>
451 % \end{macrocode}
452 % \fi
453
454
455
456 \endinput
457
458 % /©
459 % ------------------------------------------------
460 % The FONTSPEC package <latex3.github.io/fontspec>
461 % ------------------------------------------------
462 % Copyright 2022-2025 The LaTeX project, LPPL "maintainer"
463 % Copyright 2004-2022 Will Robertson
464 % Copyright 2009-2015 Khaled Hosny
465 % Copyright 2013 Philipp Gesang
466 % Copyright 2013-2016 Joseph Wright
467 % ------------------------------------------------
468 % This package is free software and may be redistributed and/or modified under
469 % the conditions of the LaTeX Project Public License, version 1.3c or higher
470 % (your choice): <http://www.latex-project.org/lppl/>.
471 % ------------------------------------------------
472 % ©/