[latex3-commits] [latex3/latex2e] testtagpdf-fasterref: more tagpdf updates (69fcc009)

github at latex-project.org github at latex-project.org
Wed Sep 11 19:50:31 CEST 2024


Repository : https://github.com/latex3/latex2e
On branch  : testtagpdf-fasterref
Link       : https://github.com/latex3/latex2e/commit/69fcc009c53348c5cb03923852f15be095187d61

>---------------------------------------------------------------

commit 69fcc009c53348c5cb03923852f15be095187d61
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Sep 11 19:50:31 2024 +0200

    more tagpdf updates


>---------------------------------------------------------------

69fcc009c53348c5cb03923852f15be095187d61
 texmf/tex/latex/tagpdf/tagpdf-debug.sty           | 10 ++---
 texmf/tex/latex/tagpdf/tagpdf-mc-code-generic.sty |  4 +-
 texmf/tex/latex/tagpdf/tagpdf.sty                 | 52 +++++++++++------------
 3 files changed, 31 insertions(+), 35 deletions(-)

diff --git a/texmf/tex/latex/tagpdf/tagpdf-debug.sty b/texmf/tex/latex/tagpdf/tagpdf-debug.sty
index 0f6ea391..0d7efb73 100644
--- a/texmf/tex/latex/tagpdf/tagpdf-debug.sty
+++ b/texmf/tex/latex/tagpdf/tagpdf-debug.sty
@@ -525,29 +525,29 @@
     \__tag_check_if_active_struct:T
       {
         \prop_if_exist:cTF
-          { g__tag_struct_\__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{unknown}_prop } %
+          { g__tag_struct_\property_ref:enn{tagpdfstruct-#1}{tagstruct}{unknown}_prop } %
           {
             \__tag_check_struct_used:n {#1}
             %add the label structure as kid to the current structure (can be the root)
             \__tag_struct_kid_struct_gput_right:ee
               { \g__tag_struct_stack_current_tl }
-              { \__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{1} }
+              { \property_ref:enn{tagpdfstruct-#1}{tagstruct}{1} }
             %add the current structure to the labeled one as parents
             \__tag_prop_gput:cne
-              { g__tag_struct_\__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}_prop }
+              { g__tag_struct_\property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}_prop }
               { P }
               {
                 \pdf_object_ref_indexed:nn { __tag/struct } { \g__tag_struct_stack_current_tl }
               }
            \prop_gput:cne
-             { g__tag_struct_debug_\__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}_prop }
+             { g__tag_struct_debug_\property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}_prop }
              { P }
              {
                parent~structure:~\g__tag_struct_stack_current_tl\c_space_tl=~
                \g__tag_struct_tag_tl
              }
              \__tag_struct_get_parentrole:eNN
-              {\__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}}
+              {\property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}}
               \l__tag_tmpa_tl
               \l__tag_tmpb_tl
             \__tag_check_parent_child:VVVVN
diff --git a/texmf/tex/latex/tagpdf/tagpdf-mc-code-generic.sty b/texmf/tex/latex/tagpdf/tagpdf-mc-code-generic.sty
index 20f619c5..d35fbaa6 100644
--- a/texmf/tex/latex/tagpdf/tagpdf-mc-code-generic.sty
+++ b/texmf/tex/latex/tagpdf/tagpdf-mc-code-generic.sty
@@ -276,14 +276,14 @@
    \__tag_prop_new:N \g__tag_MCID_byabspage_prop
    \int_new:N \g__tag_MCID_tmp_bypage_int
    \cs_generate_variant:Nn \__tag_mc_bdc:nn {ne}
-   \__tag_property_gset:nnnn {tagmcid } { now }
+   \property_gset:nnnn {tagmcid } { now }
        {0}  { \int_use:N \g__tag_MCID_tmp_bypage_int }
    \cs_new_protected:Npn \__tag_mc_bdc_mcid:nn #1 #2
      {
        \int_gincr:N \c at g__tag_MCID_abs_int
        \tl_set:Ne \l__tag_mc_ref_abspage_tl
          {
-           \__tag_property_ref:enn %3 args
+           \property_ref:enn %3 args
              {
                mcid-\int_use:N \c at g__tag_MCID_abs_int
              }
diff --git a/texmf/tex/latex/tagpdf/tagpdf.sty b/texmf/tex/latex/tagpdf/tagpdf.sty
index 2cf76bb3..66e0f200 100644
--- a/texmf/tex/latex/tagpdf/tagpdf.sty
+++ b/texmf/tex/latex/tagpdf/tagpdf.sty
@@ -142,10 +142,6 @@
 \cs_generate_variant:Nn \seq_set_split:Nnn{Nne}  %**  unneeded
 \cs_generate_variant:Nn \str_set_convert:Nnnn {Nonn, Noon, Nnon }
 \cs_generate_variant:Nn \clist_map_inline:nn {on}
-    \cs_new_eq:NN \__tag_property_new:nnnn \property_new:nnnn
-    \cs_new_eq:NN \__tag_property_gset:nnnn \property_gset:nnnn
-    \cs_new_eq:NN \__tag_property_ref:nnn \property_ref:nnn
-    \cs_new_eq:NN \__tag_property_ref:nn \property_ref:nn
     \cs_new_protected:Npn \__tag_property_record:nn #1#2
       {
         \@bsphack
@@ -153,29 +149,29 @@
         \@esphack
       }
 
-\cs_generate_variant:Nn \__tag_property_ref:nnn {enn}
-\cs_generate_variant:Nn \__tag_property_ref:nn {en}
+\cs_generate_variant:Nn \property_ref:nnn {enn}
+\cs_generate_variant:Nn \property_ref:nn  {en}
 \cs_generate_variant:Nn \__tag_property_record:nn {en,eV}
 \cs_new:Npn \__tag_property_ref_lastpage:nn #1 #2
   {
-    \__tag_property_ref:nnn {@tag at LastPage}{#1}{#2}
+    \property_ref:nnn {@tag at LastPage}{#1}{#2}
   }
 
-\__tag_property_new:nnnn
+\property_new:nnnn
   { tagstruct } { now }
-  {0} { \int_use:N \c at g__tag_struct_abs_int }
-\__tag_property_new:nnnn  { tagstructobj } { now }  {}
+  {1} { \int_use:N \c at g__tag_struct_abs_int }
+\property_new:nnnn  { tagstructobj } { now }  {}
   {
      \pdf_object_ref_indexed:nn { __tag/struct } { \c at g__tag_struct_abs_int }
   }
-\__tag_property_new:nnnn
+\property_new:nnnn
   { tagabspage } { shipout }
   {0} { \int_use:N \g_shipout_readonly_int }
-\__tag_property_new:nnnn  { tagmcabs } { now }
+\property_new:nnnn  { tagmcabs } { now }
   {0} { \int_use:N \c at g__tag_MCID_abs_int }
 
 \flag_new:n { __tag/mcid }
-\__tag_property_new:nnnn  {tagmcid } { shipout }
+\property_new:nnnn  {tagmcid } { shipout }
    {0} { \flag_height:n { __tag/mcid } }
 
 
@@ -434,7 +430,7 @@
 \cs_new_protected:Npn \__tag_check_struct_used:n #1 %#1 label
   {
     \prop_get:cnNT
-      {g__tag_struct_\__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{unknown}_prop}
+      {g__tag_struct_\property_ref:enn{tagpdfstruct-#1}{tagstruct}{unknown}_prop}
       {P}
       \l__tag_tmpa_tl
       {
@@ -567,7 +563,7 @@
           {
             \int_compare:nT
               {
-                \__tag_property_ref:enn
+                \property_ref:enn
                   {mcid-####1}
                   {tagabspage}
                   {-1}
@@ -578,7 +574,7 @@
                \seq_gput_right:Ne \l_tmpa_seq
                  {
                    Page##1-####1-
-                   \__tag_property_ref:enn
+                   \property_ref:enn
                      {mcid-####1}
                      {tagmcid}
                      {-1}
@@ -648,7 +644,7 @@
   {
     \__tag_check_if_active_struct:T
       {
-        \tl_set:Ne  \l__tag_tmpa_tl { \__tag_property_ref:nnn{tagpdf-#1}{tagmcabs}{} }
+        \tl_set:Ne  \l__tag_tmpa_tl { \property_ref:nnn{tagpdf-#1}{tagmcabs}{} }
         \tl_if_empty:NTF\l__tag_tmpa_tl
           {
             \msg_warning:nnn {tag} {mc-label-unknown} {#1}
@@ -939,11 +935,11 @@
           {
             %mcid####1
             \int_compare:nT
-              {\__tag_property_ref:enn{mcid-####1}{tagabspage}{-1}=##1} %mcid is on current page
+              {\property_ref:enn{mcid-####1}{tagabspage}{-1}=##1} %mcid is on current page
               {% yes
                 \prop_put:Nee
                   \l__tag_tmpa_prop
-                  {\__tag_property_ref:enn{mcid-####1}{tagmcid}{-1}}
+                  {\property_ref:enn{mcid-####1}{tagmcid}{-1}}
                   {\prop_item:Nn \g__tag_mc_parenttree_prop {####1}}
               }
           }
@@ -2097,8 +2093,8 @@
       /Type \c_space_tl /MCR \c_space_tl
       /Pg
         \c_space_tl
-      \pdf_pageobject_ref:n { \__tag_property_ref:enn{mcid-#1}{tagabspage}{1} }
-       /MCID \c_space_tl \__tag_property_ref:enn{mcid-#1}{tagmcid}{1}
+      \pdf_pageobject_ref:n { \property_ref:enn{mcid-#1}{tagabspage}{1} }
+       /MCID \c_space_tl \property_ref:enn{mcid-#1}{tagmcid}{1}
      >>
   }
 \cs_new_protected:Npn \__tag_struct_kid_mc_gput_right:nn #1 #2 %#1 structure num, #2 MCID absnum%
@@ -2315,7 +2311,7 @@
             #1 %
           }
           {
-            \pdf_pageobject_ref:n { \__tag_property_ref:nnn {@tag at objr@page@#2 }{ tagabspage }{1} }
+            \pdf_pageobject_ref:n { \property_ref:nnn {@tag at objr@page@#2 }{ tagabspage }{1} }
           }
         % add the parent obj number to the parent tree:
         \exp_args:Nne
@@ -2476,7 +2472,7 @@
           }
       }
       {
-        \msg_warning:nnn {tag}{struct-Ref-unknown}{Label~#1}
+        \msg_warning:nnn {tag}{struct-Ref-unknown}{Label~'#1'}
       }
   }
 \cs_new_protected:Npn \__tag_struct_Ref_dest:nN #1 #2 %#1 a dest name
@@ -2489,7 +2485,7 @@
           }
       }
       {
-        \msg_warning:nnn {tag}{struct-Ref-unknown}{Destination~#1}
+        \msg_warning:nnn {tag}{struct-Ref-unknown}{Destination~'#1'}
       }
   }
 \cs_new_protected:Npn \__tag_struct_Ref_num:nN #1 #2 %#1 a structure number
@@ -2844,22 +2840,22 @@
     \__tag_check_if_active_struct:T
       {
         \prop_if_exist:cTF
-          { g__tag_struct_\__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{unknown}_prop } %
+          { g__tag_struct_\property_ref:enn{tagpdfstruct-#1}{tagstruct}{unknown}_prop } %
           {
             \__tag_check_struct_used:n {#1}
             %add the label structure as kid to the current structure (can be the root)
             \__tag_struct_kid_struct_gput_right:ee
               { \g__tag_struct_stack_current_tl }
-              { \__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{1} }
+              { \property_ref:enn{tagpdfstruct-#1}{tagstruct}{1} }
             %add the current structure to the labeled one as parents
             \__tag_prop_gput:cne
-              { g__tag_struct_\__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}_prop }
+              { g__tag_struct_\property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}_prop }
               { P }
               {
                 \pdf_object_ref_indexed:nn { __tag/struct } { \g__tag_struct_stack_current_tl }
               }
              \__tag_struct_get_parentrole:eNN
-              {\__tag_property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}}
+              {\property_ref:enn{tagpdfstruct-#1}{tagstruct}{1}}
               \l__tag_tmpa_tl
               \l__tag_tmpb_tl
             \__tag_check_parent_child:VVVVN





More information about the latex3-commits mailing list.