Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62664a1
commit 91d73dd
Showing
10 changed files
with
4,940 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
%% | ||
%% This is file `tagpdf-base.sty', | ||
%% generated with the docstrip utility. | ||
%% | ||
%% The original source files were: | ||
%% | ||
%% tagpdf.dtx (with options: `base') | ||
%% tagpdf-mc-generic.dtx (with options: `base') | ||
%% tagpdf-mc-shared.dtx (with options: `base') | ||
%% tagpdf-struct.dtx (with options: `base') | ||
%% tagpdf-checks.dtx (with options: `base') | ||
%% tagpdf-user.dtx (with options: `base') | ||
%% | ||
%% Copyright (C) 2019-2022 Ulrike Fischer | ||
%% | ||
%% It may be distributed and/or modified under the conditions of | ||
%% the LaTeX Project Public License (LPPL), either version 1.3c of | ||
%% this license or (at your option) any later version. The latest | ||
%% version of this license is in the file: | ||
%% | ||
%% https://www.latex-project.org/lppl.txt | ||
%% | ||
%% This file is part of the "tagpdf bundle" (The Work in LPPL) | ||
%% and all files in that bundle must be distributed together. | ||
%% | ||
%% File: tagpdf.dtx | ||
\ProvidesExplPackage {tagpdf-base} {2022-08-24} {0.97} | ||
{part of tagpdf - provide base, no-op versions of the user commands } | ||
\AddToHook{begindocument} | ||
{ | ||
\str_case:VnF \c_sys_backend_str | ||
{ | ||
{ luatex } { \cs_new_protected:Npn \__tag_whatsits: {} } | ||
{ dvisvgm } { \cs_new_protected:Npn \__tag_whatsits: {} } | ||
} | ||
{ | ||
\cs_new_protected:Npn \__tag_whatsits: {\tex_special:D {} } | ||
} | ||
} | ||
|
||
\cs_new_protected:Npn \tag_stop:{} | ||
\cs_new_protected:Npn \tag_start:{} | ||
\cs_new_protected:Npn \tag_stop:n{} | ||
\cs_new_protected:Npn \tag_start:n{} | ||
|
||
%% File: tagpdf-mc-generic.dtx | ||
\cs_new_protected:Npn \tag_mc_begin:n #1 { \__tag_whatsits: } | ||
\cs_new_protected:Nn \tag_mc_end:{ \__tag_whatsits: } | ||
|
||
%% File: tagpdf-mc-shared.dtx | ||
|
||
\cs_new_protected:Npn \tag_mc_use:n #1 { \__tag_whatsits: } | ||
\cs_new_protected:Npn \tag_mc_artifact_group_begin:n #1 {} | ||
\cs_new_protected:Npn \tag_mc_artifact_group_end:{} | ||
\cs_new_protected:Npn \tag_mc_end_push: {} | ||
\cs_new_protected:Npn \tag_mc_begin_pop:n #1 {} | ||
%% File: tagpdf-struct.dtx | ||
\newcounter { g__tag_struct_abs_int } | ||
\int_gzero:N \c@g__tag_struct_abs_int | ||
\tl_new:N \g__tag_struct_stack_current_tl | ||
\tl_gset:Nn \g__tag_struct_stack_current_tl {\int_use:N\c@g__tag_struct_abs_int} | ||
\cs_new:Npn \__tag_get_data_struct_num: | ||
{ | ||
\g__tag_struct_stack_current_tl | ||
} | ||
\cs_new_protected:Npn \tag_struct_begin:n #1 {\int_gincr:N \c@g__tag_struct_abs_int} | ||
\cs_new_protected:Npn \tag_struct_end:{} | ||
\cs_new_protected:Npn \tag_struct_use:n #1 {} | ||
|
||
%% File: tagpdf-checks.dtx | ||
\cs_new:Npn \tag_get:n #1 { \use:c {__tag_get_data_#1: } } | ||
\prg_new_conditional:Npnn \tag_if_active: { p , T , TF, F } | ||
{ \prg_return_false: } | ||
%% File: tagpdf-user.dtx | ||
|
||
|
||
\NewDocumentCommand \tagpdfsetup { m }{} | ||
|
||
\NewDocumentCommand \tagmcbegin { m } | ||
{ | ||
\tag_mc_begin:n {#1} | ||
} | ||
|
||
\NewDocumentCommand \tagmcend { } | ||
{ | ||
\tag_mc_end: | ||
} | ||
|
||
\NewDocumentCommand \tagmcuse { m } | ||
{ | ||
\tag_mc_use:n {#1} | ||
} | ||
|
||
\NewDocumentCommand \tagstructbegin { m } | ||
{ | ||
\tag_struct_begin:n {#1} | ||
} | ||
|
||
\NewDocumentCommand \tagstructend { } | ||
{ | ||
\tag_struct_end: | ||
} | ||
|
||
\NewDocumentCommand \tagstructuse { m } | ||
{ | ||
\tag_struct_use:n {#1} | ||
} | ||
\newcommand\tagpdfparaOn {} | ||
\newcommand\tagpdfparaOff{} | ||
%% | ||
%% | ||
%% End of file `tagpdf-base.sty'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
%% | ||
%% This is file `tagpdf-debug-generic.sty', | ||
%% generated with the docstrip utility. | ||
%% | ||
%% The original source files were: | ||
%% | ||
%% tagpdf-mc-generic.dtx (with options: `debug') | ||
%% | ||
%% Copyright (C) 2019-2022 Ulrike Fischer | ||
%% | ||
%% It may be distributed and/or modified under the conditions of | ||
%% the LaTeX Project Public License (LPPL), either version 1.3c of | ||
%% this license or (at your option) any later version. The latest | ||
%% version of this license is in the file: | ||
%% | ||
%% https://www.latex-project.org/lppl.txt | ||
%% | ||
%% This file is part of the "tagpdf bundle" (The Work in LPPL) | ||
%% and all files in that bundle must be distributed together. | ||
%% | ||
%% File: tagpdf-mc-generic.dtx | ||
\ProvidesExplPackage {tagpdf-debug-generic} {2022-08-24} {0.97} | ||
{part of tagpdf - debugging code related to marking chunks - generic mode} | ||
\cs_set_protected:Npn \tag_mc_begin:n #1 %#1 keyval | ||
{ | ||
\__tag_check_if_active_mc:TF | ||
{ | ||
\__tag_debug_mc_begin_insert:n { #1 } | ||
\group_begin: %hm | ||
\__tag_check_mc_if_nested: | ||
\bool_gset_true:N \g__tag_in_mc_bool | ||
\keys_set:nn { __tag / mc } {#1} | ||
\bool_if:NTF \l__tag_mc_artifact_bool | ||
{ %handle artifact | ||
\__tag_mc_handle_artifact:N \l__tag_mc_artifact_type_tl | ||
\exp_args:NV | ||
\__tag_mc_artifact_begin_marks:n \l__tag_mc_artifact_type_tl | ||
} | ||
{ %handle mcid type | ||
\__tag_check_mc_tag:N \l__tag_mc_key_tag_tl | ||
\__tag_mc_handle_mcid:VV | ||
\l__tag_mc_key_tag_tl | ||
\l__tag_mc_key_properties_tl | ||
\__tag_mc_begin_marks:oo{\l__tag_mc_key_tag_tl}{\l__tag_mc_key_label_tl} | ||
\tl_if_empty:NF {\l__tag_mc_key_label_tl} | ||
{ | ||
\exp_args:NV | ||
\__tag_mc_handle_mc_label:n \l__tag_mc_key_label_tl | ||
} | ||
\bool_if:NF \l__tag_mc_key_stash_bool | ||
{ | ||
\__tag_mc_handle_stash:x { \int_use:N \c@g__tag_MCID_abs_int } | ||
} | ||
} | ||
\group_end: | ||
} | ||
{ | ||
\__tag_debug_mc_begin_ignore:n { #1 } | ||
} | ||
} | ||
\cs_set_protected:Nn \tag_mc_end: | ||
{ | ||
\__tag_check_if_active_mc:TF | ||
{ | ||
\__tag_debug_mc_end_insert: | ||
\__tag_check_mc_if_open: | ||
\bool_gset_false:N \g__tag_in_mc_bool | ||
\tl_gset:Nn \g__tag_mc_key_tag_tl { } | ||
\__tag_mc_emc: | ||
\__tag_mc_end_marks: | ||
} | ||
{ | ||
\__tag_debug_mc_end_ignore: | ||
} | ||
} | ||
|
||
%% | ||
%% | ||
%% End of file `tagpdf-debug-generic.sty'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
%% | ||
%% This is file `tagpdf-debug-lua.sty', | ||
%% generated with the docstrip utility. | ||
%% | ||
%% The original source files were: | ||
%% | ||
%% tagpdf-mc-luacode.dtx (with options: `debug') | ||
%% | ||
%% Copyright (C) 2019-2022 Ulrike Fischer | ||
%% | ||
%% It may be distributed and/or modified under the conditions of | ||
%% the LaTeX Project Public License (LPPL), either version 1.3c of | ||
%% this license or (at your option) any later version. The latest | ||
%% version of this license is in the file: | ||
%% | ||
%% https://www.latex-project.org/lppl.txt | ||
%% | ||
%% This file is part of the "tagpdf bundle" (The Work in LPPL) | ||
%% and all files in that bundle must be distributed together. | ||
%% | ||
%% File: tagpdf-mc-luacode.dtx | ||
%% | ||
%% | ||
%% End of file `tagpdf-debug-lua.sty'. |
Oops, something went wrong.