Skip to content

Commit

Permalink
update tests to new key names
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Feb 21, 2024
1 parent b0db849 commit 11d1189
Show file tree
Hide file tree
Showing 72 changed files with 131 additions and 169 deletions.
2 changes: 1 addition & 1 deletion tagpdf-user.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@
debug/show/para .code:n = {\bool_set_true:N \l_@@_para_show_bool},
debug/show/paraOff .code:n = {\bool_set_false:N \l_@@_para_show_bool},
para/tag .tl_set:N = \l_@@_para_tag_tl,
para/tag .tl_set:N = \l_@@_para_main_tag_tl,
para/maintag .tl_set:N = \l_@@_para_main_tag_tl,
para/flattened .bool_set:N = \l_@@_para_flattened_bool
}
\keys_define:nn { tag / tool}
Expand Down
2 changes: 1 addition & 1 deletion testfiles-luatex/issue13-mcid-array.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
\documentclass{article}
\usepackage{tagpdf}

\tagpdfsetup{tabsorder=structure,uncompress,activate-all,interwordspace=true,log=v}
\tagpdfsetup{page/tabsorder=structure,activate/all,activate/spaces=true,debug/log=v}
\pagestyle{empty}
\thispagestyle{empty}
\textheight=40pt
Expand Down
3 changes: 1 addition & 2 deletions testfiles-luatex/issue14-artifact-bool.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
\makeatother

\usepackage{tagpdf}
\tagpdfsetup{activate-all,interwordspace=on,
uncompress}
\tagpdfsetup{activate/all,activate/spaces}

\begin{document}

Expand Down
2 changes: 1 addition & 1 deletion testfiles-luatex/parent-child-20-structures.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ aaaa
\tagstructbegin{tag=H1,label=blub,stash}\tagmcbegin{}H1\tagmcend\tagstructend
\tagmcbegin{tag=P}abc

\tagpdfsetup{paratag=Sect}
\tagpdfsetup{para/tag=Sect}
\leavevmode\tagstructuse{blub} x

}
Expand Down
4 changes: 2 additions & 2 deletions testfiles-luatex/test-AF-file.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
\makeatother
\usepackage{tagpdf,iftex}

\tagpdfsetup{tabsorder=structure,
activate-all}
\tagpdfsetup{page/tabsorder=structure,
activate/all}
\ifpdftex
\usepackage[T1]{fontenc}
\fi
Expand Down
4 changes: 2 additions & 2 deletions testfiles-luatex/test-attribute.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
\documentclass{scrartcl}
\usepackage[english]{babel}
\usepackage{tagpdf}
\tagpdfsetup{activate-all,uncompress}
\tagpdfsetup{activate/all}
\tagpdfsetup{
newattribute= {TH-row}{<</O/Table /Scope/Row>>}
role/new-attribute= {TH-row}{<</O/Table /Scope/Row>>}
}
\begin{document}\START
\pagestyle{empty} %
Expand Down
2 changes: 1 addition & 1 deletion testfiles-luatex/test-fakespace-box.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
\input{regression-test}
\documentclass[a4paper]{article}
\usepackage{tagpdf}
\tagpdfsetup{activate-all,uncompress,interwordspace=on}
\tagpdfsetup{activate/all,activate/spaces}


\begin{document}\START\showoutput
Expand Down
2 changes: 1 addition & 1 deletion testfiles-luatex/test-fakespace-fontchange.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
\input{regression-test}
\documentclass[a4paper]{article}
\usepackage{tagpdf}
\tagpdfsetup{activate-all,uncompress,interwordspace=on}
\tagpdfsetup{activate/all,activate/spaces}


\begin{document}\START\showoutput
Expand Down
2 changes: 1 addition & 1 deletion testfiles-luatex/test-fakespace-tagpdf.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
\usepackage{amsmath}
\usepackage[english]{babel}
\usepackage{tagpdf}
\tagpdfsetup{activate-all,uncompress,interwordspace=on,show-spaces}
\tagpdfsetup{activate/all,activate/spaces,debug/show=spaces}
\usepackage{kantlipsum}
\begin{document}\START\showoutput

Expand Down
2 changes: 1 addition & 1 deletion testfiles-luatex/test-mc-alt.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
\makeatother

\usepackage{tagpdf,iftex}
\tagpdfsetup{uncompress,activate}
\tagpdfsetup{activate}
\iftutex
\usepackage{fontspec}
\usepackage{luacode}
Expand Down
2 changes: 1 addition & 1 deletion testfiles-luatex/test-mc-low-bdc-emc.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@



\tagpdfsetup{activate-all,uncompress}
\tagpdfsetup{activate/all}
\begin{document}
\START
\showoutput
Expand Down
4 changes: 1 addition & 3 deletions testfiles-luatex/test-mc-low-luaonly.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
\usepackage[T1]{fontenc}
\fi

\tagpdfsetup{activate-mc,log=vv,uncompress} %not too much in the log .. tests fails then
\tagpdfsetup{activate/mc,debug/log=vv} %not too much in the log .. tests fails then
\usepackage{kantlipsum}
\begin{document}
some things untagged.
Expand Down Expand Up @@ -51,5 +51,3 @@ some things untagged.
\tag_mc_begin:n{tag=P}\kant[1]\tag_mc_end:
\ExplSyntaxOff
\end{document}


9 changes: 4 additions & 5 deletions testfiles-luatex/test-mc-manual-para-split.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@



\tagpdfsetup{add-new-tag = TAB/P,
add-new-tag = FIG/P,
tabsorder=structure,
activate-all,uncompress}
\tagpdfsetup{role/new-tag = TAB/P,
role/new-tag = FIG/P,
page/tabsorder=structure,
activate/all}

\usepackage{fancyhdr}
\pagestyle{fancy}
Expand Down Expand Up @@ -61,4 +61,3 @@ orci orci aliquam orci, ut cursus turpis justo et lacus. Nulla vel
tortor. Quisque erat elit, viverra sit amet, sagittis eget, porta
sit amet, lacus.\tagmcend
\end{document}

3 changes: 1 addition & 2 deletions testfiles-luatex/test-mc-savebox.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@



\tagpdfsetup{activate-all,uncompress}
\tagpdfsetup{activate/all}

\newsavebox\mybox
\begin{document}
Expand Down Expand Up @@ -53,4 +53,3 @@ text
\ExplSyntaxOff

\end{document}

4 changes: 1 addition & 3 deletions testfiles-luatex/test-mc-tag-expansion.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@



\tagpdfsetup{activate-mc,log=vv,uncompress} %not too much in the log .. tests fails then
\tagpdfsetup{activate/mc,debug/log=vv} %not too much in the log .. tests fails then
\begin{document}
\START
\showoutput
Expand All @@ -42,5 +42,3 @@ Artifact%
\tag_mc_begin:n{tag=\l_tag_test_tag_type_tl}blblb\tag_mc_end:
\ExplSyntaxOff
\end{document}


3 changes: 1 addition & 2 deletions testfiles-luatex/test-mc-user.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@



\tagpdfsetup{activate-all,uncompress}
\tagpdfsetup{activate/all}


\begin{document}
Expand Down Expand Up @@ -129,4 +129,3 @@ lots~of~lines\tagmcend\\
\ExplSyntaxOff

\end{document}

2 changes: 1 addition & 1 deletion testfiles-luatex/test-mcid-cnt.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@



\tagpdfsetup{activate-all,uncompress}
\tagpdfsetup{activate/all}

\begin{document}
\START
Expand Down
7 changes: 3 additions & 4 deletions testfiles-luatex/test-patch-koma.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
\usepackage[T1]{fontenc}
\fi

\tagpdfsetup{tabsorder=structure,
activate-all,
uncompress,
log=vv
\tagpdfsetup{page/tabsorder=structure,
activate/all,
debug/log=vv
}

%
Expand Down
4 changes: 2 additions & 2 deletions testfiles-luatex/test-ref.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

\usepackage{tagpdf}

\tagpdfsetup{tabsorder=structure,
activate-all}
\tagpdfsetup{page/tabsorder=structure,
activate/all}

\begin{document}
\pagestyle{empty}
Expand Down
6 changes: 3 additions & 3 deletions testfiles-luatex/test-root-AF.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

\tagpdfsetup
{
activate-all,
newattribute = {font-red}{/O /CSS-3 },
newattribute = {font-bold}{/O /CSS-3 },
activate/all,
role/new-attribute = {font-red}{/O /CSS-3 },
role/new-attribute = {font-bold}{/O /CSS-3 },
root-AF={tag/csstest},
root-AF={tag/csstest2},
}
Expand Down
4 changes: 2 additions & 2 deletions testfiles-luatex/test-saveboxes-structure.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@



\tagpdfsetup{activate-all,log=vv,uncompress} %
\tagpdfsetup{activate/all,debug/log=vv} %
%to better see the mc in the pdf:
\tagpdfsetup{add-new-tag = BOX/P}
\tagpdfsetup{role/new-tag = BOX/P}

\newsavebox\testboxa

Expand Down
5 changes: 2 additions & 3 deletions testfiles-luatex/test-sectioning-koma.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
\fi


\tagpdfsetup{tabsorder=structure,
activate-all,
uncompress
\tagpdfsetup{page/tabsorder=structure,
activate/all,
}

%
Expand Down
3 changes: 1 addition & 2 deletions testfiles-luatex/test-showattributes.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
\usepackage[T1]{fontenc}
\fi

\tagpdfsetup{activate-all,log=vv,uncompress}
\tagpdfsetup{activate/all,debug/log=vv}
\begin{document}

\tagmcbegin{tag=P}%
Expand Down Expand Up @@ -53,4 +53,3 @@ augue sit amet urna. Nulla volutpat aliquet tortor. Cras aliquam,%


\end{document}

2 changes: 1 addition & 1 deletion testfiles-luatex/test-struct-OBJR.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
\ifpdftex
\usepackage[T1]{fontenc}
\fi
\tagpdfsetup{activate-all,paratagging}
\tagpdfsetup{activate/all,para/tagging}
\begin{document}\showoutput
\START

Expand Down
13 changes: 6 additions & 7 deletions testfiles-luatex/test-struct-user.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@



\tagpdfsetup{add-new-tag = TAB/P,
add-new-tag = FIG/P,
tabsorder=structure,
activate-all,
log=v,
uncompress}
\tagpdfsetup{role/new-tag = TAB/P,
role/new-tag = FIG/P,
page/tabsorder=structure,
activate/all,
debug/log=v,
}

\usepackage{fancyhdr}
\pagestyle{fancy}
Expand Down Expand Up @@ -87,4 +87,3 @@


\end{document}

13 changes: 6 additions & 7 deletions testfiles-luatex/testauxtree.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@



\tagpdfsetup{add-new-tag = TAB/P,
add-new-tag = FIG/P,
tabsorder=structure,
activate-all,
log=v,
uncompress}
\tagpdfsetup{role/new-tag = TAB/P,
role/new-tag = FIG/P,
page/tabsorder=structure,
activate/all,
debug/log=v,
}

\usepackage{fancyhdr}
\pagestyle{fancy}
Expand Down Expand Up @@ -93,4 +93,3 @@


\end{document}

2 changes: 1 addition & 1 deletion testfiles-pdftex/parent-child-20-nonstruct.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

\START

\tagpdfsetup{paratag=footnote}
\tagpdfsetup{para/tag=footnote}
\tagstructbegin{tag=NonStruct}
\tagstructbegin{tag=NonStruct}
\tagstructbegin{tag=NonStruct}
Expand Down
2 changes: 1 addition & 1 deletion testfiles-pdftex/parent-child-20-structures.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ aaaa
\tagstructbegin{tag=H1,label=blub,stash}\tagmcbegin{}H1\tagmcend\tagstructend
\tagmcbegin{tag=P}abc

\tagpdfsetup{paratag=Sect}
\tagpdfsetup{para/tag=Sect}
\leavevmode\tagstructuse{blub} x

}
Expand Down
2 changes: 1 addition & 1 deletion testfiles-pdftex/parent-child-rolemap-17.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
\DocumentMetadata{uncompress,testphase=phase-I,debug={log=vv}}
\input{regression-test}
\documentclass{article}
\tagpdfsetup{add-new-tag=tpara/Div}
\tagpdfsetup{role/new-tag=tpara/Div}
\begin{document}
\START

Expand Down
2 changes: 1 addition & 1 deletion testfiles-pdftex/parent-child-rolemap-20.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
\DocumentMetadata{uncompress,testphase=phase-I,debug={log=vv}}
\input{regression-test}
\documentclass{article}
\tagpdfsetup{add-new-tag=tpara/Div}
\tagpdfsetup{role/new-tag=tpara/Div}
\begin{document}
\START

Expand Down
8 changes: 2 additions & 6 deletions testfiles-pdftex/ptagging-001b.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@

\usepackage{tagpdf}

\tagpdfsetup
{
activate,interwordspace,paratagging,paratagging-show,
log=v
}
\tagpdfsetup{activate,activate/spaces,para/tagging,debug/show=para,debug/log=v}


\makeatletter
\DeclareDocumentCommand\footnote {om}{%
Expand Down Expand Up @@ -68,4 +65,3 @@ g \vrule depth 17pt g
XX\footnote{Z} YY

\end{document}

9 changes: 3 additions & 6 deletions testfiles-pdftex/ptagging-002.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@


\usepackage{tagpdf}
\tagpdfsetup
{
activate,interwordspace,
paratagging,paratagging-show,
log=v
}
\tagpdfsetup{activate,activate/spaces,para/tagging,debug/show=para,debug/log=v}



\usepackage{kantlipsum}

Expand Down
Loading

0 comments on commit 11d1189

Please sign in to comment.