| 1 |
%% |
| 2 |
%% This is file `tagpdf-luatex.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% tagpdf-backend.dtx (with options: `luatex') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2019-2025 Ulrike Fischer |
| 10 |
%% |
| 11 |
%% It may be distributed and/or modified under the conditions of |
| 12 |
%% the LaTeX Project Public License (LPPL), either version 1.3c of |
| 13 |
%% this license or (at your option) any later version. The latest |
| 14 |
%% version of this license is in the file: |
| 15 |
%% |
| 16 |
%% https://www.latex-project.org/lppl.txt |
| 17 |
%% |
| 18 |
%% This file is part of the "tagpdf bundle" (The Work in LPPL) |
| 19 |
%% and all files in that bundle must be distributed together. |
| 20 |
%% |
| 21 |
%% File: tagpdf-backend.dtx |
| 22 |
\ProvidesExplFile {tagpdf-luatex.def} {2026-05-17} {1.0c} |
| 23 |
{tagpdf~driver~for~luatex} |
| 24 |
{ |
| 25 |
\fontencoding{TU}\fontfamily{lmr}\fontseries{m}\fontshape{n}\fontsize{10pt}{10pt}\selectfont |
| 26 |
} |
| 27 |
\lua_now:e { tagpdf=require('tagpdf.lua') } |
| 28 |
\cs_set_protected:Npn \__tag_prop_new:N #1 |
| 29 |
{ |
| 30 |
\prop_new:N #1 |
| 31 |
\lua_now:e { ltx.__tag.tables['\cs_to_str:N#1'] = {} } |
| 32 |
} |
| 33 |
|
| 34 |
\cs_set_protected:Npn \__tag_prop_new_linked:N #1 |
| 35 |
{ |
| 36 |
\prop_new_linked:N #1 |
| 37 |
\lua_now:e { ltx.__tag.tables['\cs_to_str:N#1'] = {} } |
| 38 |
} |
| 39 |
|
| 40 |
\cs_set_protected:Npn \__tag_seq_new:N #1 |
| 41 |
{ |
| 42 |
\seq_new:N #1 |
| 43 |
\lua_now:e { ltx.__tag.tables['\cs_to_str:N#1'] = {} } |
| 44 |
} |
| 45 |
|
| 46 |
\cs_set_protected:Npn \__tag_prop_gput:Nnn #1 #2 #3 |
| 47 |
{ |
| 48 |
\prop_gput:Nnn #1 { #2 } { #3 } |
| 49 |
\lua_now:e { ltx.__tag.tables['\cs_to_str:N#1'] ["#2"] = "\lua_escape:n{#3}" } |
| 50 |
} |
| 51 |
|
| 52 |
\cs_set_protected:Npn \__tag_seq_gput_right:Nn #1 #2 |
| 53 |
{ |
| 54 |
\seq_gput_right:Nn #1 { #2 } |
| 55 |
\lua_now:e { table.insert(ltx.__tag.tables['\cs_to_str:N#1'], "#2") } |
| 56 |
} |
| 57 |
\cs_set_protected:Npn \__tag_seq_gput_left:Nn #1 #2 |
| 58 |
{ |
| 59 |
\seq_gput_left:Nn #1 { #2 } |
| 60 |
\lua_now:e { table.insert(ltx.__tag.tables['\cs_to_str:N#1'], "#2") } |
| 61 |
} |
| 62 |
|
| 63 |
\cs_set:Npn \__tag_seq_item:cn #1 #2 |
| 64 |
{ |
| 65 |
\lua_now:e { tex.sprint(\int_use:N\c_document_cctab,ltx.__tag.tables['#1'][#2]) } |
| 66 |
} |
| 67 |
|
| 68 |
\cs_set:Npn \__tag_prop_item:cn #1 #2 |
| 69 |
{ |
| 70 |
\lua_now:e { tex.sprint(\int_use:N\c_document_cctab,ltx.__tag.tables['#1']["#2"]) } |
| 71 |
} |
| 72 |
|
| 73 |
\cs_set_protected:Npn \__tag_seq_show:N #1 |
| 74 |
{ |
| 75 |
\seq_show:N #1 |
| 76 |
\lua_now:e { ltx.__tag.trace.log ("lua~sequence~array~\cs_to_str:N#1",1) } |
| 77 |
\lua_now:e { ltx.__tag.trace.show_seq (ltx.__tag.tables['\cs_to_str:N#1']) } |
| 78 |
} |
| 79 |
|
| 80 |
\cs_set_protected:Npn \__tag_prop_show:N #1 |
| 81 |
{ |
| 82 |
\prop_show:N #1 |
| 83 |
\lua_now:e {ltx.__tag.trace.log ("lua~property~table~\cs_to_str:N#1",1) } |
| 84 |
\lua_now:e {ltx.__tag.trace.show_prop (ltx.__tag.tables['\cs_to_str:N#1']) } |
| 85 |
} |
| 86 |
%% |
| 87 |
%% |
| 88 |
%% End of file `tagpdf-luatex.def'. |