[tex4ht-commits] [SCM] tex4ht updated: r1514 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon May 6 16:50:21 CEST 2024


Author: michal_h21
Date: 2024-05-06 14:50:21 +0000 (Mon, 06 May 2024)
New Revision: 1514

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-sty.tex
Log:
Still working on Tagpdf support

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-05-03 14:15:23 UTC (rev 1513)
+++ trunk/lit/ChangeLog	2024-05-06 14:50:21 UTC (rev 1514)
@@ -1,3 +1,12 @@
+2024-05-06  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-sty.tex (tex4ht.sty): don't disable \DocumentMetadata.
+	https://github.com/michal-h21/make4ht/issues/145
+
+	* tex4ht-4ht.tex (tagpdf-base-hooks.4ht): don't use \ExplSyntaxOn to
+	prevent catcode issues when we use \DocumentMetadata in the
+	document.
+
 2024-05-03  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (usepackage.4ht, tagpdf-hooks.4ht,

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-05-03 14:15:23 UTC (rev 1513)
+++ trunk/lit/tex4ht-4ht.tex	2024-05-06 14:50:21 UTC (rev 1514)
@@ -5115,10 +5115,9 @@
 % tagpd-base-hooks.4ht (|version), generated from |jobname.tex
 % Copyright 2024 TeX Users Group
 |<TeX4ht license text|>
-\ExplSyntaxOn
 % ignore tagpdf's specials
-\cs_set_protected:Npn \__tag_whatsits: {}
-\ExplSyntaxOff
+% we use csname, because \ExplSyntaxOn .. Off caused catcode issues
+\expandafter\def\csname __tag_whatsits:\endcsname{}
 \endinput
 >>> \AddFile{9}{tagpdf-base-hooks}
 

Modified: trunk/lit/tex4ht-sty.tex
===================================================================
--- trunk/lit/tex4ht-sty.tex	2024-05-03 14:15:23 UTC (rev 1513)
+++ trunk/lit/tex4ht-sty.tex	2024-05-06 14:50:21 UTC (rev 1514)
@@ -175,12 +175,17 @@
    \let\AtBeginDocument\origatbegindocument
 
 \fi
-% disable new LaTeX's tagging support, 
-% but save the requested keys for possible latter processing
-\ifdefined\DocumentMetadata
-  \def\DocumentMetadata#1{\def\:DocumentMetadata{#1}}
-\fi
 
+% we used to disable new LaTeX's tagging support, 
+% because it clashed with TeX4ht and caused fatal errors
+% we fixed the fatal errors, so it should be possible to 
+% fix other issues as well. The upside will be that we 
+% should be able to coordinate the projects and reuse some code.
+% https://github.com/michal-h21/make4ht/issues/145
+% \ifdefined\DocumentMetadata
+%   \def\DocumentMetadata#1{\def\:DocumentMetadata{#1}}
+% \fi
+
 \def\writesixteen#1{\immediate\write99999{#1}}
 |<save cat codes|>
 |<ifs for TeX4ht|>



More information about the tex4ht-commits mailing list.