[latex3-commits] [git/LaTeX3-latex3-hyperref] testnewkeyval: unicode key (2c4f385)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Jul 2 20:23:25 CEST 2022


Repository : https://github.com/latex3/hyperref
On branch  : testnewkeyval
Link       : https://github.com/latex3/hyperref/commit/2c4f38509282e108c76f566ec8a512074e78139e

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

commit 2c4f38509282e108c76f566ec8a512074e78139e
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jul 2 20:23:25 2022 +0200

    unicode key


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

2c4f38509282e108c76f566ec8a512074e78139e
 hyperref.dtx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/hyperref.dtx b/hyperref.dtx
index d6203ba..be60e9c 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -4910,6 +4910,23 @@
     \def\HyPsd at pdfencoding{pdfdoc}%
   \fi
 }
+\DeclareKeys
+ {
+   ,unicode .choice:
+   ,unicode / true .code:n  =
+    {
+      \legacy_if_set_true:n {Hy at unicode}
+      \def\HyPsd at pdfencoding{unicode}
+      \HyPsd at LoadUnicode
+    }
+   ,unicode / false .code:n =
+    {
+      \legacy_if_set_false:n {Hy at unicode}
+      \def\HyPsd at pdfencoding{pdfdoc}
+    }
+   ,unicode .default:n      = { true }
+   ,unicode .usage:n        = { preamble }
+ }
 \Hy at AtBeginDocument{%
   \ifx\HyPsd at LoadUnicode\relax
   \else





More information about the latex3-commits mailing list.