diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/fontspec-vars.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/fontspec/fontspec-vars.dtx | 163 |
1 files changed, 94 insertions, 69 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/fontspec-vars.dtx b/Master/texmf-dist/source/latex/fontspec/fontspec-vars.dtx index 0c8957d6253..902b9f470c5 100644 --- a/Master/texmf-dist/source/latex/fontspec/fontspec-vars.dtx +++ b/Master/texmf-dist/source/latex/fontspec/fontspec-vars.dtx @@ -1,5 +1,6 @@ +%%^^A%% fontspec-vars.dtx -- part of FONTSPEC <wspr.io/fontspec> % -% \section{Declaration of variables and functions} +% \section{Declaration of variables} % % \begin{macrocode} %<*fontspec> @@ -18,12 +19,7 @@ \bool_new:N \l_@@_nobf_bool \bool_new:N \l_@@_noit_bool \bool_new:N \l_@@_nosc_bool -% \end{macrocode} -% These strange set functions are to simplify returning code from LuaTeX: -% \begin{macrocode} \bool_new:N \l_@@_check_bool -\cs_new:Npn \FontspecSetCheckBoolTrue { \bool_set_true:N \l_@@_check_bool } -\cs_new:Npn \FontspecSetCheckBoolFalse { \bool_set_false:N \l_@@_check_bool } % \end{macrocode} % % \begin{macrocode} @@ -49,6 +45,7 @@ % \end{macrocode} % % \begin{macrocode} +\bool_new:N \l_@@_tmpa_bool \bool_new:N \l_@@_disable_defaults_bool \bool_new:N \l_@@_alias_bool \bool_new:N \l_@@_external_bool @@ -88,7 +85,27 @@ % \begin{macrocode} \clist_new:N \g_@@_default_fontopts_clist \clist_new:N \g_@@_all_keyval_modules_clist +\clist_new:N \l_@@_sizefeat_clist \clist_set:Nn \l_@@_sizefeat_clist {Size={-}} +\clist_new:N \l_@@_extensions_clist +\clist_new:N \l_@@_fontopts_clist +\clist_new:N \l_@@_family_fontopts_clist +\clist_new:N \l_@@_all_features_clist +\clist_new:N \l_@@_leftover_clist +\clist_new:N \l_@@_keys_leftover_clist +\clist_new:N \l_@@_sizing_leftover_clist +\clist_new:N \l_@@_fontfeat_clist +\clist_new:N \l_@@_fontfeat_curr_clist +% \end{macrocode} +% +% \begin{macrocode} +\tl_new:N \l_@@_fontfeat_up_clist +\tl_new:N \l_@@_fontfeat_bf_clist +\tl_new:N \l_@@_fontfeat_it_clist +\tl_new:N \l_@@_fontfeat_bfit_clist +\tl_new:N \l_@@_fontfeat_sl_clist +\tl_new:N \l_@@_fontfeat_bfsl_clist +\tl_new:N \l_@@_fontfeat_sc_clist % \end{macrocode} % % \paragraph{Property lists} @@ -99,11 +116,63 @@ \prop_new:N \g_@@_OT_features_prop \prop_new:N \g_@@_all_opentype_feature_names_prop \prop_new:N \g_@@_em_prop +\prop_new:N \g_@@_strong_prop % \end{macrocode} % % \paragraph{Token lists} % % \begin{macrocode} +\tl_new:N \l_fontspec_family_tl +\tl_new:N \g_fontspec_encoding_tl +\tl_new:N \l_fontspec_renderer_tl +\tl_new:N \l_fontspec_fontname_tl +\tl_new:N \l_fontspec_defined_shapes_tl +% \end{macrocode} +% +% \begin{macrocode} +\tl_new:N \UTFencname +\tl_new:N \cyrillicencoding +\tl_new:N \latinencoding +% \end{macrocode} +% +% \begin{macrocode} +\tl_new:N \g_@@_single_feat_tl +\tl_new:N \l_@@_tmp_tl +\tl_new:N \l_@@_size_tl +\tl_new:N \l_@@_sizedfont_tl +\tl_new:N \l_@@_nfss_tl +\tl_new:N \l_@@_nfss_sc_tl +\tl_new:N \l_@@_this_font_tl +\tl_new:N \l_@@_scale_tl +\tl_new:N \l_@@_opacity_tl +\tl_new:N \l_@@_hexcol_tl +\tl_new:N \l_@@_fontid_tl +\tl_new:N \l_@@_extension_tl +\tl_new:N \l_@@_ext_filename_tl +\tl_new:N \l_@@_font_path_tl +\tl_new:N \l_@@_basename_tl +\tl_new:N \l_@@_curr_fontname_tl +\tl_new:N \l_@@_saved_fontname_tl +\tl_new:N \l_@@_optical_size_tl +\tl_new:N \l_@@_ttc_index_tl +\tl_new:N \l_@@_nfss_enc_tl +\tl_new:N \g_@@_curr_series_tl +\tl_new:N \l_@@_options_tl +\tl_new:N \l_@@_fontname_tl +% \end{macrocode} +% +% \begin{macrocode} +\tl_new:N \l_@@_rawfeatures_sclist +\tl_new:N \l_@@_pre_feat_sclist +% \end{macrocode} +% +% \begin{macrocode} +\tl_new:N \g_@@_rmfamily_family +\tl_new:N \g_@@_sffamily_family +\tl_new:N \g_@@_ttfamily_family +% \end{macrocode} +% +% \begin{macrocode} \tl_new:N \g_@@_mathrm_tl \tl_new:N \g_@@_bfmathrm_tl \tl_new:N \g_@@_mathsf_tl @@ -127,16 +196,6 @@ % \end{macrocode} % % \begin{macrocode} -\tl_new:N \l_@@_fontfeat_up_clist -\tl_new:N \l_@@_fontfeat_bf_clist -\tl_new:N \l_@@_fontfeat_it_clist -\tl_new:N \l_@@_fontfeat_bfit_clist -\tl_new:N \l_@@_fontfeat_sl_clist -\tl_new:N \l_@@_fontfeat_bfsl_clist -\tl_new:N \l_@@_fontfeat_sc_clist -% \end{macrocode} -% -% \begin{macrocode} \tl_new:N \l_@@_script_name_tl \tl_new:N \l_fontspec_script_tl \tl_new:N \l_@@_lang_name_tl @@ -149,66 +208,32 @@ \tl_new:N \g_@@_opacity_tl \tl_set:Nn \g_@@_hexcol_tl {000000} \tl_set:Nn \g_@@_opacity_tl {FF~} +\tl_new:N \l_@@_punctspace_adjust_tl +\tl_new:N \l_@@_wordspace_adjust_tl +\tl_new:N \l_@@_postadjust_tl +\tl_new:N \g_@@_postadjust_tl \tl_set:Nn \g_@@_postadjust_tl { \l_@@_wordspace_adjust_tl \l_@@_punctspace_adjust_tl } % \end{macrocode} % % % -% \subsection{Generic functions} -% -% \begin{macro}{\@@_keys_set_known:nnN} -% \begin{macrocode} -\cs_new:Nn \@@_keys_set_known:nnN - { -%<debug> \typeout{:::: Keys~set:~{#1}~{#2} } - \keys_set_known:nnN {#1} {#2} #3 -%<debug> \typeout{:::: Leftover:~{#3} } - } -\cs_generate_variant:Nn \@@_keys_set_known:nnN {nx} -% \end{macrocode} -% \end{macro} -% -% \begin{macro}{\@@_head_ii:n} -% Expands to the first two \meta{items} of |#1|. -% \begin{macrocode} -\cs_set:Npn \@@_head_ii:n #1 { \@@_head_ii:w #1 *** \q_stop} -\cs_set:Npn \@@_head_ii:w #1#2#3 \q_stop { #1#2 } -\cs_generate_variant:Nn \@@_head_ii:n {o} -% \end{macrocode} -% \end{macro} -% -% \begin{macro}{\@@_int_mult_truncate:Nn} -% Missing in expl3, IMO. -% \begin{macrocode} -\cs_new:Nn \@@_int_mult_truncate:Nn - { - \int_set:Nn #1 { \__dim_eval:w #2 #1 \__dim_eval_end: } - } -% \end{macrocode} -% \end{macro} -% -% -% \subsection{expl3 variants} -% -% \begin{macrocode} -\cs_generate_variant:Nn \int_set:Nn {Nv} -\cs_generate_variant:Nn \keys_set:nn {nx} -\cs_generate_variant:Nn \keys_set_known:nnN {nx} -\cs_generate_variant:Nn \prop_put:Nnn {Nxx} -\cs_generate_variant:Nn \prop_put:Nnn {NxV} -\cs_generate_variant:Nn \prop_gput_if_new:Nnn {NxV} -\cs_generate_variant:Nn \prop_gput:Nnn {Nxn} -\cs_generate_variant:Nn \prop_get:NnNT {NxN} -\cs_generate_variant:Nn \prop_get:NnNTF {NxN} -\cs_generate_variant:Nn \str_if_eq:nnTF {nv} -\cs_generate_variant:Nn \tl_if_empty:nTF {x} -\cs_generate_variant:Nn \tl_if_empty:nF {x} -\cs_generate_variant:Nn \tl_if_empty:nF {f} -\cs_generate_variant:Nn \tl_if_eq:nnT {ox} -\cs_generate_variant:Nn \tl_replace_all:Nnn {Nnx} -% \end{macrocode} % % \begin{macrocode} %</fontspec> % \end{macrocode} + +\endinput + +% /© +% ------------------------------------------------ +% The FONTSPEC package <wspr.io/fontspec> +% ------------------------------------------------ +% Copyright 2004-2017 Will Robertson, LPPL "maintainer" +% Copyright 2009-2013 Khaled Hosny +% ------------------------------------------------ +% This package is free software and may be redistributed and/or modified under +% the conditions of the LaTeX Project Public License, version 1.3c or higher +% (your choice): <http://www.latex-project.org/lppl/>. +% ------------------------------------------------ +% ©/ |