[latex3-commits] [latex3/tagpdf] develop: add support for attribute class in para/main (089ac2e)
github at latex-project.org
github at latex-project.org
Fri Jan 19 00:43:34 CET 2024
Repository : https://github.com/latex3/tagpdf
On branch : develop
Link : https://github.com/latex3/tagpdf/commit/089ac2ecd6510852c009c7a55ab4dcec3aee1198
>---------------------------------------------------------------
commit 089ac2ecd6510852c009c7a55ab4dcec3aee1198
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Jan 19 00:43:34 2024 +0100
add support for attribute class in para/main
>---------------------------------------------------------------
089ac2ecd6510852c009c7a55ab4dcec3aee1198
CHANGELOG.md | 4 ++++
tagpdf-user.dtx | 23 ++++++++++++++++++++---
2 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2bf2e4e..14a1c16 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,10 @@ this project uses date-based 'snapshot' version identifiers.
### Fixed
- do not use null with luatex if there is no Kid.
- font of real space chars in luatex after penalties, issue #72
+ - counter in OBJR code
+
+### Added
+ - support for attribute-class in paragraphs in the block code.
## [2023-12-18]
Version 0.98r
diff --git a/tagpdf-user.dtx b/tagpdf-user.dtx
index 1998df3..d6a887d 100644
--- a/tagpdf-user.dtx
+++ b/tagpdf-user.dtx
@@ -738,7 +738,10 @@
% \g_@@_para_main_end_int,
% \l_@@_para_tag_default_tl,
% \l_@@_para_tag_tl,
-% \l_@@_para_main_tag_tl}
+% \l_@@_para_main_tag_tl,
+% \l_@@_para_attr_class_tl,
+% \l_@@_para_main_attr_class_tl,
+% }
% At first some variables.
% \begin{macrocode}
%</package>
@@ -756,6 +759,12 @@
\tl_new:N \l_@@_para_main_tag_tl
\tl_set:Nn \l_@@_para_main_tag_tl {text-unit}
% \end{macrocode}
+% this is perhaps already defined by the block code
+% \begin{macrocode}
+\tl_if_exist:NF \l_@@_para_attr_class_tl
+ {\tl_new:N \l_@@_para_attr_class_tl }
+\tl_new:N \l_@@_para_main_attr_class_tl
+% \end{macrocode}
% \end{macro}
% \begin{macro}
@@ -847,6 +856,10 @@
% \begin{macrocode}
\AddToHook{package/latex-lab-testphase-block/after}
{
+ \tl_if_exist:NT \l_tag_para_attr_class_tl
+ {
+ \tl_set:Nn \l_@@_para_attr_class_tl { \l_tag_para_attr_class_tl }
+ }
\cs_set_protected:Npn \__block_start_para_structure:n #1 {
\__block_debug_typeout:n
{ @endpe = \legacy_if:nTF { @endpe }{true}{false}
@@ -856,7 +869,11 @@
\bool_if:NF \l__tag_para_flattened_bool
{
\@@_gincr_para_main_begin_int:
- \tag_struct_begin:n{tag=\l__tag_para_main_tag_tl}
+ \tag_struct_begin:n
+ {
+ tag=\l_@@_para_main_tag_tl,
+ attribute-class=\l_@@_para_main_attr_class_tl,
+ }
}
}
\@@_gincr_para_begin_int:
@@ -864,7 +881,7 @@
\tag_struct_begin:n
{
tag=\l__tag_para_tag_tl
- ,attribute-class=\l_tag_para_attr_class_tl
+ ,attribute-class=\l_@@_para_attr_class_tl
}
\__tag_check_para_begin_show:nn {green}{#1}
\tag_mc_begin:n {}
More information about the latex3-commits
mailing list.