From ea584efe11866db25e596b86b3b7ae07e39e18f4 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 14 Jun 2021 20:29:57 +0000
Subject: pdfmanagement-testphase (14jun21)

git-svn-id: svn://tug.org/texlive/trunk@59591 c570f23f-e606-0410-a88d-b1316a301751
---
 .../pdfmanagement-testphase/hgeneric-testphase.def  | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def')

diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def
index 2fb91d1a128..8bc5c88a85c 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: hyperref-generic.dtx
-\ProvidesFile{hgeneric-testphase.def}[2021-05-14 v0.95d %
+\ProvidesFile{hgeneric-testphase.def}[2021-06-14 v0.95e %
   generic Hyperref driver for the LaTeX PDF management testphase bundle]
 
 \RequirePackage{etoolbox} %why?
@@ -158,10 +158,6 @@
 \providecommand\@pdfborderstyle{}
 \newcommand\OBJ@OCG@view {} % needed in hyperref
 \def\Hy@numberline#1{#1\c_space_tl}   %needed by bookmark
-\HyPsd@LoadUnicode
-\Hy@unicodetrue
-\let\HyPsd@pdfencoding\HyPsd@pdfencoding@unicode
-\Hy@DisableOption{unicode}
 \cs_set_eq:NN \Hy@pdfminorversion \pdf_version_minor:
 \cs_set_eq:NN \Hy@pdfmajorversion \pdf_version_major:
 \legacy_if:nT { Hy@setpdfversion }
@@ -215,7 +211,7 @@
     ,run-parameter .tl_set:N = \l__hyp_href_run_parameter_tl
     ,nextactionraw .code:n =
      { %perhaps some safety match later, see hyperref code
-       \tl_if_empty:nTF
+       \tl_if_empty:nTF {#1}
          {
            \pdfdict_remove:nn{l_hyp/annot/A}{Next}
          }
@@ -1692,7 +1688,7 @@
      }
    ,pdfpagescrop  .code:n =
      {
-       \tl_if_empty:nTF %or blank?
+       \tl_if_empty:nTF {#1} %or blank?
          {
            \pdfmanagement_remove:nn {Pages} { CropBox }
          }
@@ -2270,6 +2266,16 @@
         #1 .code:n= { \__hyp_store_metadata:nn {#1}{##1}}
       }
   }
+
+\str_if_eq:eeT {A}{\pdfmeta_standard_item:n{type}}
+  {
+    \exp_args:Nnx
+      \keys_set:nn {hyp / setup}
+        {
+          ,pdfapart        = \pdfmeta_standard_item:n {level}
+          ,pdfaconformance = \pdfmeta_standard_item:n {conformance}
+        }
+  }
 \keys_define:nn { hyp / setup }
   {
     pdfpageduration .code:n =
@@ -2476,6 +2482,7 @@
             \seq_sort:Nn \l__hyp_tmpa_seq
               {
                 \int_compare:nNnTF { \pdf@strcmp{##1}{##2} } > { 0 }
+                %\str_compare:nNnTF {##1} > {##2}
                   { \sort_return_swapped: }
                   { \sort_return_same: }
               }
-- 
cgit v1.2.3

