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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sat Oct 17 11:31:53 CEST 2020


Author: michal_h21
Date: 2020-10-17 12:31:53 +0300 (Sat, 17 Oct 2020)
New Revision: 819

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Adapted Tikz and  Polyglossia for the new hooks mechanism

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-10-17 09:20:03 UTC (rev 818)
+++ trunk/lit/ChangeLog	2020-10-17 09:31:53 UTC (rev 819)
@@ -10,6 +10,8 @@
 	the new package hook mechanism.
 	* tex4ht-4ht.tex (usepackage.4ht, tikz-hooks.4ht): adapted Tikz for
 	the new package hook mechanism.
+	* tex4ht-4ht.tex (usepackage.4ht, fontspec-hooks.4ht, polyglossia-hooks.4ht): 
+	adapted Fontspec and Polyglossia for the new package hook mechanism.
 
 2020-10-16  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-10-17 09:20:03 UTC (rev 818)
+++ trunk/lit/tex4ht-4ht.tex	2020-10-17 09:31:53 UTC (rev 819)
@@ -3794,11 +3794,15 @@
 
 User needs to use \`'\Configure{LRdir}'to achieve the correct direction.
 
-\<use package\><<<
-polyglossia,>>>
 
 \<add to usepackage\><<<
-\def\:temp{polyglossia}\ifx \@currname\:temp
+\Configure{PackageHooks}{polyglossia.sty}{polyglossia-hooks.4ht}
+>>>
+
+\<polyglossia-hooks.4ht\><<<
+% polyglossia-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
 \ExplSyntaxOn
 \:AtEndOfPackage{
 \ifdefined\orig_polyglossia at keys_define_lang:n\else
@@ -3821,8 +3825,7 @@
 \fi
 }
 \ExplSyntaxOff
-\fi
->>>
+>>> \AddFile{9}{polyglossia-hooks}
 
 \<polyglossia.4ht\><<<
 % polyglossia.4ht (|version), generated from |jobname.tex
@@ -3843,24 +3846,26 @@
 macros are redefind to do nothing, as we don't really need OpenType fonts
 handling in tex4ht
 
-\<use package\><<<
-fontspec,>>>
-
 The defintions for fontspec are rather big, we moved them to standalone file
 to save some time in package checking.
 
 We also  want to load fontspec only once, it fails with Polyglossia otherwise.
 
 \<add to usepackage\><<<
-\def\:temp{fontspec}\ifx \@currname\:temp
-  \ifdefined\texfourhtfontspecloaded%
-    \:dontusepackage{fontspec}
-  \else 
-    \input usepackage-fontspec.4ht
-  \fi
-\fi
+\Configure{PackageHooks}{fontspec.sty}{fontspec-hooks.4ht}
 >>>
 
+\<fontspec-hooks.4ht\><<<
+% fontspec-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
+\ifdefined\texfourhtfontspecloaded%
+  \:dontusepackage{fontspec}
+\else 
+  \input usepackage-fontspec.4ht
+\fi
+>>> \AddFile{9}{fontspec-hooks}
+
 The actual configurations which are used when fontspec is loaded:
 
 \<usepackage-fontspec.4ht\><<<



More information about the tex4ht-commits mailing list.