diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def index f9085e96fbf..db7790e25ba 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def @@ -1,17 +1,31 @@ -\ProvidesExplFile {tagpdf-luatex.def} {2019/01/04} {0.50} +\ProvidesExplFile {tagpdf-luatex.def} {2019/03/20} {0.60} {tagpdf driver for luatex} -\newattribute \g__uftag_mc_type_attr %the value represent the type -\newattribute \g__uftag_mc_cnt_attr %will hold the \c@g__uftag_MCID_abs_int value +%\newattribute \g__uftag_mc_type_attr %the value represent the type +%\newattribute \g__uftag_mc_cnt_attr %will hold the \c@g__uftag_MCID_abs_int value + +\newattribute \l__uftag_mc_type_attr %the value represent the type +\newattribute \l__uftag_mc_cnt_attr %will hold the \c@g__uftag_MCID_abs_int value + \newattribute \g__uftag_interwordspace_attr \newattribute \g__uftag_interwordfont_attr % The lua code +% ensure that 10pt font has been loaded: +{ + \fontencoding{TU}\fontfamily{lmr}\fontseries{m}\fontshape{n}\fontsize{10pt}{10pt}\selectfont +} \directlua { tagpdf=require('tagpdf.lua') } %%%% driver (lualatex) commands %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% these should be in expl3!!! +\cs_new:Nn \__uftag_pdf_startlink:{ \pdfextension startlink } +\cs_new:Nn \__uftag_pdf_endlink: { \pdfextension endlink } +\cs_new_protected:Nn \__uftag_pdf_lastlink: { \numexpr\pdffeedback lastlink\relax } +\cs_new:Nn \__uftag_pdf_catalog: { \pdfextension catalog } + % needed for \str_set_convert:Nnon \tl_new:N \g__uftag_inputencoding_tl \tl_gset:Nn \g__uftag_inputencoding_tl {} @@ -104,16 +118,6 @@ } -\cs_new:Nn \__uftag_pdfcompresslevel:n - { - \__uftag_tex_pdfvariable:D compresslevel #1 - } - -\cs_new:Nn \__uftag_pdfobjcompresslevel:n - { - \__uftag_tex_pdfvariable:D objcompresslevel #1 - } - % I probably want also lua tables % I put them in the uftag.tables namespaces % The tables will be named like the variables but without backslash |