[latex3-commits] [git/LaTeX3-latex3-latex2e] glyphtounicode: Add firstaid for cmap (3f085be6)

Marcel Fabian Krüger tex at 2krueger.de
Thu Jan 21 21:06:44 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : glyphtounicode
Link       : https://github.com/latex3/latex2e/commit/3f085be665ec7cb97b1bb4f957ba2cf21864d457

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

commit 3f085be665ec7cb97b1bb4f957ba2cf21864d457
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu Jan 21 19:38:12 2021 +0100

    Add firstaid for cmap


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

3f085be665ec7cb97b1bb4f957ba2cf21864d457
 base/testfiles-lthooks/lthooks-000.tlg             |  7 ++++++
 base/testfiles-lthooks/lthooks-001.tlg             | 15 ++++++++++++
 base/testfiles-lthooks/lthooks-002.tlg             | 15 ++++++++++++
 base/testfiles-lthooks/lthooks-003.tlg             |  8 +++++++
 base/testfiles-lthooks/lthooks-004.tlg             |  8 +++++++
 base/testfiles-lthooks/lthooks-005.tlg             |  8 +++++++
 base/testfiles-lthooks/lthooks-006.tlg             |  8 +++++++
 base/testfiles-lthooks/lthooks-007.tlg             | 15 ++++++++++++
 base/testfiles-lthooks/lthooks-008.tlg             | 10 +++++++-
 base/testfiles-lthooks/lthooks-009.tlg             |  7 ++++++
 base/testfiles-lthooks/lthooks-011.tlg             | 28 ++++++++++++++++++++++
 base/testfiles-lthooks/lthooks-013.tlg             |  7 ++++++
 base/testfiles-lthooks/lthooks-021.tlg             |  7 ++++++
 base/testfiles-lthooks/lthooks-legacy.tlg          |  7 ++++++
 base/testfiles-lthooks2/lthooks2-002.tlg           |  7 ++++++
 .../latex2e-first-aid-for-external-files.dtx       | 15 ++++++++++++
 16 files changed, 171 insertions(+), 1 deletion(-)

diff --git a/base/testfiles-lthooks/lthooks-000.tlg b/base/testfiles-lthooks/lthooks-000.tlg
index 50c44d84..d6908bb0 100644
--- a/base/testfiles-lthooks/lthooks-000.tlg
+++ b/base/testfiles-lthooks/lthooks-000.tlg
@@ -59,6 +59,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 All initialized (non-empty) hooks:
  enddocument/info -> \@dofilelist \@enddocument at kernel@warnings \__hook_next enddocument/info  
  shipout/firstpage -> \__kernel_backend_literal:n {header=l3backend-dvips.pro}\__hook_next shipout/firstpage  
@@ -66,6 +72,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
 No file lthooks-000.aux.
 LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
 LaTeX Font Info:    ... okay on input line ....
diff --git a/base/testfiles-lthooks/lthooks-001.tlg b/base/testfiles-lthooks/lthooks-001.tlg
index 13a78dd7..704f6752 100644
--- a/base/testfiles-lthooks/lthooks-001.tlg
+++ b/base/testfiles-lthooks/lthooks-001.tlg
@@ -65,6 +65,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
 Code labels for sorting:
  label1 and label2
@@ -80,6 +86,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx -> foobar\__hook_next xxx  
 The property list \g__hook_xxx_code_prop contains the pairs (without outer
 braces):
@@ -111,6 +118,7 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {file/after/dinbrief.cls}
 >  {file/after/pgfpages.sty}
 >  {file/after/pgfmorepages.sty}
+>  {file/after/cmap.sty}
 >  {xxx}.
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
@@ -171,6 +179,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
 Code labels for sorting:
  label1
@@ -184,5 +198,6 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx -> foo\__hook_next xxx  
 The hook xxx contains the rules:
diff --git a/base/testfiles-lthooks/lthooks-002.tlg b/base/testfiles-lthooks/lthooks-002.tlg
index 89c92155..40f2e04e 100644
--- a/base/testfiles-lthooks/lthooks-002.tlg
+++ b/base/testfiles-lthooks/lthooks-002.tlg
@@ -65,6 +65,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
 Code labels for sorting:
  label1 and label2
@@ -80,6 +86,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx -> foobar\__hook_next xxx  
 **** Add to hook xxx (top-level) on input line ... <- baz
 The property list \g__hook_xxx_code_prop contains the pairs (without outer
@@ -113,6 +120,7 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {file/after/dinbrief.cls}
 >  {file/after/pgfpages.sty}
 >  {file/after/pgfmorepages.sty}
+>  {file/after/cmap.sty}
 >  {xxx}.
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
@@ -173,6 +181,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
 Code labels for sorting:
  label1 and top-level
@@ -188,5 +202,6 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx -> foobaz\__hook_next xxx  
 The hook xxx contains the rules:
diff --git a/base/testfiles-lthooks/lthooks-003.tlg b/base/testfiles-lthooks/lthooks-003.tlg
index 8e0eba0c..c9edbc3e 100644
--- a/base/testfiles-lthooks/lthooks-003.tlg
+++ b/base/testfiles-lthooks/lthooks-003.tlg
@@ -47,6 +47,7 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {file/after/dinbrief.cls}
 >  {file/after/pgfpages.sty}
 >  {file/after/pgfmorepages.sty}
+>  {file/after/cmap.sty}
 >  {xxx}.
 The hook xxx contains the rules:
 >  {label3|label1}  =>  {>}
@@ -118,6 +119,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
   normal rule label3|label1: > found
   normal rule label6|label4: > found
@@ -157,4 +164,5 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx ->  foo1 foo9 foo3 foo2 foo7 foo4 foo5 foo8 foo6\__hook_next xxx  
diff --git a/base/testfiles-lthooks/lthooks-004.tlg b/base/testfiles-lthooks/lthooks-004.tlg
index 11775f56..ab13551f 100644
--- a/base/testfiles-lthooks/lthooks-004.tlg
+++ b/base/testfiles-lthooks/lthooks-004.tlg
@@ -37,6 +37,7 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {file/after/dinbrief.cls}
 >  {file/after/pgfpages.sty}
 >  {file/after/pgfmorepages.sty}
+>  {file/after/cmap.sty}
 >  {xxx}.
 The hook xxx contains the rules:
 >  {label2|label1}  =>  {>}
@@ -102,6 +103,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
   normal rule label2|label1: > found
   normal rule label3|label1: < found
@@ -132,4 +139,5 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx ->  foo4\__hook_next xxx  
diff --git a/base/testfiles-lthooks/lthooks-005.tlg b/base/testfiles-lthooks/lthooks-005.tlg
index 630a5eb4..67cdae69 100644
--- a/base/testfiles-lthooks/lthooks-005.tlg
+++ b/base/testfiles-lthooks/lthooks-005.tlg
@@ -54,6 +54,7 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {file/after/dinbrief.cls}
 >  {file/after/pgfpages.sty}
 >  {file/after/pgfmorepages.sty}
+>  {file/after/cmap.sty}
 >  {xxx}.
 The hook xxx contains the rules:
 >  {label3|label1}  =>  {>}
@@ -125,6 +126,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
   normal rule label3|label1: > found
   normal rule label6|label4: > found
@@ -164,4 +171,5 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx ->  foo1 foo9 foo3 foo2 foo7 foo4 foo5 foo8 foo6\__hook_next xxx  
diff --git a/base/testfiles-lthooks/lthooks-006.tlg b/base/testfiles-lthooks/lthooks-006.tlg
index b365a5c7..8e84e3aa 100644
--- a/base/testfiles-lthooks/lthooks-006.tlg
+++ b/base/testfiles-lthooks/lthooks-006.tlg
@@ -35,6 +35,7 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {file/after/dinbrief.cls}
 >  {file/after/pgfpages.sty}
 >  {file/after/pgfmorepages.sty}
+>  {file/after/cmap.sty}
 >  {xxx}.
 The hook xxx contains the rules:
 >  {label2|label1}  =>  {xW}
@@ -98,6 +99,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
   normal rule label2|label1: xW found
 Package hooks Warning: Labels `label2' and `label1' are incompatible in hook
@@ -119,4 +126,5 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx ->  foo1 foo3 foo2\__hook_next xxx  
diff --git a/base/testfiles-lthooks/lthooks-007.tlg b/base/testfiles-lthooks/lthooks-007.tlg
index f4ce7a5b..00f34714 100644
--- a/base/testfiles-lthooks/lthooks-007.tlg
+++ b/base/testfiles-lthooks/lthooks-007.tlg
@@ -35,6 +35,7 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {file/after/dinbrief.cls}
 >  {file/after/pgfpages.sty}
 >  {file/after/pgfmorepages.sty}
+>  {file/after/cmap.sty}
 >  {xxx}.
 The hook xxx contains the rules:
 >  {label2|label1}  =>  {<-}
@@ -99,6 +100,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
   normal rule label2|label1: <- found
 ---> Drop 'label2' code from \g__hook_xxx_code_prop because of 'label1'
@@ -120,6 +127,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx ->  foo1 foo3\__hook_next xxx  
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
@@ -180,6 +188,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
   normal rule label2|label1: <- found
 ---> Drop 'label2' code from \g__hook_xxx_code_prop because of 'label1'
@@ -199,4 +213,5 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx ->  foo1 foo3\__hook_next xxx  
diff --git a/base/testfiles-lthooks/lthooks-008.tlg b/base/testfiles-lthooks/lthooks-008.tlg
index 385a4225..172b5687 100644
--- a/base/testfiles-lthooks/lthooks-008.tlg
+++ b/base/testfiles-lthooks/lthooks-008.tlg
@@ -38,7 +38,8 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {file/after/biditools.sty}
 >  {file/after/dinbrief.cls}
 >  {file/after/pgfpages.sty}
->  {file/after/pgfmorepages.sty}.
+>  {file/after/pgfmorepages.sty}
+>  {file/after/cmap.sty}.
 The hook enddocument contains the rules:
 >  {top-level|label1}  =>  {<}
 >  {top-level|label2}  =>  {>}
@@ -114,6 +115,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 All initialized (non-empty) hooks:
  enddocument -> \typeout {bar}\typeout {from my package}\typeout {legacy before hook code loaded}\typeout {legacy after hook code loaded code}\typeout {baz}\typeout {on top-level}\typeout {foo}\__hook_next enddocument  
  enddocument/info -> \@dofilelist \@enddocument at kernel@warnings \__hook_next enddocument/info  
@@ -122,6 +129,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
 No file lthooks-008.aux.
 LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
 LaTeX Font Info:    ... okay on input line ....
diff --git a/base/testfiles-lthooks/lthooks-009.tlg b/base/testfiles-lthooks/lthooks-009.tlg
index fa50373f..2413e4b1 100644
--- a/base/testfiles-lthooks/lthooks-009.tlg
+++ b/base/testfiles-lthooks/lthooks-009.tlg
@@ -65,6 +65,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 All initialized (non-empty) hooks:
  sffamily -> \typeout {Std sffamily code}\__hook_next sffamily  
  enddocument/info -> \@dofilelist \@enddocument at kernel@warnings \__hook_next enddocument/info  
@@ -73,6 +79,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
 No file lthooks-009.aux.
 LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
 LaTeX Font Info:    ... okay on input line ....
diff --git a/base/testfiles-lthooks/lthooks-011.tlg b/base/testfiles-lthooks/lthooks-011.tlg
index 801b4154..7c3e5fb9 100644
--- a/base/testfiles-lthooks/lthooks-011.tlg
+++ b/base/testfiles-lthooks/lthooks-011.tlg
@@ -60,6 +60,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
 Code labels for sorting:
  front
@@ -78,6 +84,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx -> foo\__hook_next xxx  
 **** Add to hook xxx (rear) on input line ... <- bar
 Update code for hook 'begindocument' on input line ...:
@@ -139,6 +146,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
 Code labels for sorting:
  front and rear
@@ -159,6 +172,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx -> foobar\__hook_next xxx  
 **** Add to hook xxx (labels) on input line ... <- baz
 Update code for hook 'begindocument' on input line ...:
@@ -220,6 +234,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
 Code labels for sorting:
  front, rear and labels
@@ -242,6 +262,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx -> foobarbaz\__hook_next xxx  
 **** Add to hook xxx (return) on input line ... <- boom
 Update code for hook 'begindocument' on input line ...:
@@ -303,6 +324,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'xxx' on input line ...:
 Code labels for sorting:
  front, rear, labels and return
@@ -327,4 +354,5 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  xxx -> foobarbazboom\__hook_next xxx  
diff --git a/base/testfiles-lthooks/lthooks-013.tlg b/base/testfiles-lthooks/lthooks-013.tlg
index b8d13d54..3a4007e3 100644
--- a/base/testfiles-lthooks/lthooks-013.tlg
+++ b/base/testfiles-lthooks/lthooks-013.tlg
@@ -122,6 +122,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 Update code for hook 'env/itemize/begin' on input line ...:
   normal rule top-level|foo: > found
 Code labels for sorting:
@@ -156,6 +162,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
  env/itemize/begin -> \typeout {env itemize first}\typeout {begin env itemize}\__hook_next env/itemize/begin  
  env/itemize/end -> \typeout {end env itemize}\__hook_next env/itemize/end  
  file/foo -> \typeout {file foo}\__hook_next file/foo  
diff --git a/base/testfiles-lthooks/lthooks-021.tlg b/base/testfiles-lthooks/lthooks-021.tlg
index 7fa35382..afa51502 100644
--- a/base/testfiles-lthooks/lthooks-021.tlg
+++ b/base/testfiles-lthooks/lthooks-021.tlg
@@ -59,6 +59,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 All initialized (non-empty) hooks:
  enddocument/info -> \@dofilelist \@enddocument at kernel@warnings \__hook_next enddocument/info  
  shipout/firstpage -> \__kernel_backend_literal:n {header=l3backend-dvips.pro}\__hook_next shipout/firstpage  
@@ -66,6 +72,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
 No file lthooks-021.aux.
 LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
 LaTeX Font Info:    ... okay on input line ....
diff --git a/base/testfiles-lthooks/lthooks-legacy.tlg b/base/testfiles-lthooks/lthooks-legacy.tlg
index 6acfa482..085f8fdf 100644
--- a/base/testfiles-lthooks/lthooks-legacy.tlg
+++ b/base/testfiles-lthooks/lthooks-legacy.tlg
@@ -81,6 +81,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 All initialized (non-empty) hooks:
  begindocument -> \typeout {FOO}\typeout {legacy begindocument\on at line }\__hook_next begindocument  
  rmfamily -> \typeout {legacy rmfamily\on at line }\__hook_next rmfamily  
@@ -91,6 +97,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
 legacy defaultfamily on input line ...
 (../l3backend-dvips.def
 File: l3backend-dvips.def ....-..-.. L3 backend support: dvips
diff --git a/base/testfiles-lthooks2/lthooks2-002.tlg b/base/testfiles-lthooks2/lthooks2-002.tlg
index b7632bb8..387e63f2 100644
--- a/base/testfiles-lthooks2/lthooks2-002.tlg
+++ b/base/testfiles-lthooks2/lthooks2-002.tlg
@@ -78,6 +78,12 @@ Code labels for sorting:
 Data structure for label rules:
  firstaid = 0 -> 
 Handled code for firstaid
+Update code for hook 'file/after/cmap.sty' on input line ...:
+Code labels for sorting:
+ firstaid
+Data structure for label rules:
+ firstaid = 0 -> 
+Handled code for firstaid
 All initialized (non-empty) hooks:
  enddocument/info -> \@dofilelist \@enddocument at kernel@warnings \__hook_next enddocument/info  
  enddocument/end -> \typeout {in preamble}\__hook_next enddocument/end  
@@ -86,6 +92,7 @@ All initialized (non-empty) hooks:
  file/after/dinbrief.cls -> \FirstAidNeededT {dinbrief}{cls}{....-..-.. LaTeX2e class}{\AddToHook {env/document/begin}{\begingroup }}\__hook_next file/after/dinbrief.cls  
  file/after/pgfpages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfpages.sty  
  file/after/pgfmorepages.sty -> \cs_gset_eq:NN \shipout \pgfpages at originalshipout \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout \__hook_next file/after/pgfmorepages.sty  
+ file/after/cmap.sty -> \FirstAidNeededT {cmap}{sty}{....-..-.. v... CMap support: searchable PDF}{\pdfgentounicode =0 }\__hook_next file/after/cmap.sty  
 (lthooks2-002.aux)
 LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
 LaTeX Font Info:    ... okay on input line ....
diff --git a/required/firstaid/latex2e-first-aid-for-external-files.dtx b/required/firstaid/latex2e-first-aid-for-external-files.dtx
index fc48ac15..f3d7008c 100644
--- a/required/firstaid/latex2e-first-aid-for-external-files.dtx
+++ b/required/firstaid/latex2e-first-aid-for-external-files.dtx
@@ -396,6 +396,21 @@
 %    \end{macrocode}
 %
 %
+% \subsection{The \pkg{cmap} package first aid}
+%
+%    \pkg{cmap} manually adds /ToUnicode maps to PDF fonts. Since the
+%    \LaTeX{} kernel now instructs pdf\TeX{} to add a /ToUnicode map
+%    automatically these get duplicated. For now just disable this
+%    feature when cmap gets loaded.
+%    \begin{macrocode}
+\AddToHook{file/after/cmap.sty}[firstaid]{%
+  \FirstAidNeededT{cmap}{sty}{2008/03/06 v1.0h CMap support: searchable PDF}%
+                  {\pdfgentounicode=0 }%
+}
+%    \end{macrocode}
+%
+%
+%
 % \subsection[Temporary fixes for the kernel (until the next
 %             patch-level release)]
 %    {Temporary fixes for the kernel \\





More information about the latex3-commits mailing list.