[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: more to new pdfstring commands. Tests must be verified! (31b82f9)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri Jan 8 19:46:40 CET 2021


Repository : https://github.com/latex3/pdfresources
On branch  : reworking-annot
Link       : https://github.com/latex3/pdfresources/commit/31b82f950504f43c45530e80cdd1befa9f5224b9

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

commit 31b82f950504f43c45530e80cdd1befa9f5224b9
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Jan 8 19:46:40 2021 +0100

    more to new pdfstring commands. Tests must be verified!


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

31b82f950504f43c45530e80cdd1befa9f5224b9
 hyperref-generic.dtx | 30 ++++++++++++++++--------------
 resave.bat           | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 14 deletions(-)

diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index 69aaf17..9f5a815 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -732,6 +732,8 @@
 % \#2 is str variable,
 % \#1 should be
 % \begin{tabular}{ll}
+%  string-dest-print    & \texttt{(lit)} (without BE marker)\\
+%  string-dest          & \texttt{list} (without BE marker)\\
 %  string-hex-print    & \texttt{<HEX>}\\
 %  string-hex          & \texttt{HEX}\\
 %  string-lit_print    & \texttt{(lit)}\\
@@ -1112,7 +1114,7 @@
     \Hy at SaveLastskip      %defined in hyperref
     \Hy at VerboseAnchor{#1} %defined in hyperref, for debugging
     %\@@_pstringdef:Nx  \l_@@_tmpa_tl { \HyperDestNameFilter{#1} } %
-    \@@_text_pdfstring:xnN  { \HyperDestNameFilter{#1}  } {string-lit} \l_@@_tmpa_tl
+    \@@_text_pdfstring:xnN  { \HyperDestNameFilter{#1}  } {string-dest} \l_@@_tmpa_tl
     \tl_if_eq:NnTF  \l_@@_dest_pdfview_tl {fitrbox}
       {
         \vbox_to_zero:n
@@ -1156,7 +1158,7 @@
 %          }
        \@@_text_pdfstring:xnN
          { \exp_args:No \HyperDestNameFilter { \l_@@_dest_name_tmpa_tl } }
-         {string-lit}
+         {string-dest}
           \l_@@_dest_name_tmpa_tl
       }
     \exp_args:No
@@ -1219,7 +1221,7 @@
   {
     \group_begin:
     %\__hyp_pstringdef:Nx \l_@@_uri_tmpa_tl { #2 }
-    \@@_text_pdfstring:xnN { #2} {string-hex} \l_@@_uri_tmpa_tl
+    \@@_text_pdfstring:xnN { #2} {string-hex-print} \l_@@_uri_tmpa_tl
     %hyper at chars, unneeded as used only once
     \cs_set_eq:NN \# \c_hash_str
     \cs_set_eq:NN \% \c_percent_str
@@ -1234,7 +1236,7 @@
             % the action dictionary has no hook!
             /Type/Action~
             /S/URI~
-            /URI(\l_@@_uri_tmpa_tl)~
+            /URI~\l_@@_uri_tmpa_tl~
             \ifHy at href@ismap
               /IsMap~true%
             \fi
@@ -1260,22 +1262,22 @@
     \tl_set:Nn \l_@@_filename_tmpa_tl { #2 }
     \Hy at CleanupFile \l_@@_filename_tmpa_tl
     %\__hyp_pstringdef:No \l_@@_filename_tmpa_tl { \l_@@_filename_tmpa_tl }
-    \@@_text_pdfstring:onN  { \l_@@_filename_tmpa_tl } {string-lit} \l_@@_filename_tmpa_tl
+    \@@_text_pdfstring:onN  { \l_@@_filename_tmpa_tl } {string-lit-print} \l_@@_filename_tmpa_tl
     %\__hyp_pstringdef:Nn \l_@@_dest_name_tmpa_tl { #3 }
-    \@@_text_pdfstring:nnN  { #1 } {string-lit} \l_@@_dest_name_tmpa_tl
+    \@@_text_pdfstring:nnN  { #3 } {string-dest-print} \l_@@_dest_name_tmpa_tl
     \Hy at MakeRemoteAction
     \mode_leave_vertical:
     \pdfannot_link:nnn %expansion??
       { GoToR }
       {
         /A<<
-          /F( \l_@@_filename_tmpa_tl )
+          /F~\l_@@_filename_tmpa_tl
           /S/GoToR
           \Hy at SetNewWindow
           \ifx\\#3\\
             /D[\Hy at href@page/\l_@@_dest_pdfremotestartview_tl]
           \else
-            /D( \l_@@_dest_name_tmpa_tl )
+            /D~\l_@@_dest_name_tmpa_tl
           \fi
           \Hy at href@nextactionraw
         >>
@@ -1303,9 +1305,9 @@
  {
   \group_begin:
     %\__hyp_pstringdef:Nn \l_@@_filename_tmpa_tl { #1 } %string-hex
-    \@@_text_pdfstring:nnN {#1}{string-lit} \l_@@_filename_tmpa_tl
+    \@@_text_pdfstring:nnN {#1}{string-lit-print} \l_@@_filename_tmpa_tl
     %\__hyp_pstringdef:Nn \l_@@_para_tmpa_tl     { #3 } %string-hex
-    \@@_text_pdfstring:nnN {#3}{string-lit} \l_@@_para_tmpa_tl
+    \@@_text_pdfstring:nnN {#3}{string-lit-print} \l_@@_para_tmpa_tl
     %\Hy at pstringdef\Hy at pstringF{#1}%
     %\Hy at pstringdef\Hy at pstringP{#3}%
     \mode_leave_vertical:
@@ -1313,7 +1315,7 @@
      { Launch }
      {
        /A<<
-          /F( \l_@@_filename_tmpa_tl )
+          /F~\l_@@_filename_tmpa_tl
           /S/Launch
           \Hy at SetNewWindow
           \bool_if:nF
@@ -1323,7 +1325,7 @@
               \pdf_version_compare_p:Nn > {1.9}
             }
             {
-              /Win<</P(\l_@@_para_tmpa_tl)/F(\l_@@_filename_tmpa_tl)>>
+              /Win<</P~\l_@@_para_tmpa_tl~/F~\l_@@_filename_tmpa_tl~>>
             }
           \Hy at href@nextactionraw
          >>
@@ -1389,13 +1391,13 @@
    ,baseurl       .code:n =
      {
        %\__hyp_pstringdef:No \l_@@_tmpa_tl {#1}%
-       \@@_text_pdfstring:onN  { #1 } {string-lit} \l_@@_tmpa_tl
+       \@@_text_pdfstring:onN  { #1 } {string-lit-print} \l_@@_tmpa_tl
         \tl_if_empty:NTF \l_@@_tmpa_tl
           {
              \pdfmanagement_remove:nn {Catalog} { URI }
           }
           {
-             \pdfmanagement_add:nnx {Catalog} { URI }{ <</Base ( \l_@@_tmpa_tl )>> }
+             \pdfmanagement_add:nnx {Catalog} { URI }{ <</Base~\l_@@_tmpa_tl>> }
           }
      }
    ,pdfcenterwindow    .choice:
diff --git a/resave.bat b/resave.bat
index ae72049..508a478 100644
--- a/resave.bat
+++ b/resave.bat
@@ -2,3 +2,35 @@ rem */\(1+[a-z\-]\)\.\(2+[a-z]\)\.*
 rem l3build save -e\2 \1
 rem l3build save -cconfig-dvips \1
 rem l3build save -cconfig-luatex -e\2 \1
+
+
+REM Must be checked for correct working or links due to changed encoding.
+  Check failed with difference files
+  - ./build/test/ismap.luatex.pdf.fc
+  - ./build/test/ismap.pdftex.pdf.fc
+  - ./build/test/ismap.xetex.pdf.fc
+  - ./build/test/linkbordercolor.luatex.pdf.fc
+  - ./build/test/linkbordercolor.pdftex.pdf.fc
+  - ./build/test/linkbordercolor.xetex.pdf.fc
+  - ./build/test/linkhook.luatex.pdf.fc
+  - ./build/test/linkhook.pdftex.pdf.fc
+  - ./build/test/linkhook.xetex.pdf.fc
+  - ./build/test/ocgcolorlinks.luatex.pdf.fc
+  - ./build/test/ocgcolorlinks.pdftex.pdf.fc
+  - ./build/test/ocgcolorlinks.xetex.pdf.fc
+  - ./build/test/pdffilelink.luatex.pdf.fc
+  - ./build/test/pdffilelink.pdftex.pdf.fc
+  - ./build/test/pdffilelink.xetex.pdf.fc
+  - ./build/test/viewerpreferences.xetex.pdf.fc
+
+Failed tests for configuration config-luatex:
+
+  Check failed with difference files
+  - ./build/test-config-luatex/non-ascii-links.luatex.pdf.fc
+
+Failed tests for configuration config-dvips:
+
+  Check failed with difference files
+  - ./build/test-config-dvips/ismap.latexdvips.pdf.fc
+  - ./build/test-config-dvips/linkhook.latexdvips.pdf.fc
+  - ./build/test-config-dvips/pdffilelink.latexdvips.pdf.fc





More information about the latex3-commits mailing list.