[tex4ht-commits] [SCM] tex4ht updated: r821 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sat Oct 17 11:42:16 CEST 2020
Author: michal_h21
Date: 2020-10-17 12:42:16 +0300 (Sat, 17 Oct 2020)
New Revision: 821
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
Adapted xeCJK for the new package mechanism
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-10-17 09:36:23 UTC (rev 820)
+++ trunk/lit/ChangeLog 2020-10-17 09:42:16 UTC (rev 821)
@@ -14,6 +14,8 @@
adapted Fontspec and Polyglossia for the new package hook mechanism.
* tex4ht-4ht.tex (usepackage.4ht, ctex-hooks.4ht): adapted Ctex for
the new package hook mechanism.
+ * tex4ht-4ht.tex (usepackage.4ht, xecjk-hooks.4ht): adapted xeCJK 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:36:23 UTC (rev 820)
+++ trunk/lit/tex4ht-4ht.tex 2020-10-17 09:42:16 UTC (rev 821)
@@ -3708,16 +3708,19 @@
The xeCJK package makes CJK characters active and the macros they call fall.
Best what we can do is to block it.
-\<use package\><<<
-xeCJK,>>>
-
We need to load fontspec explicitly, block the package, define some basic commands
this package provides and load definitions for CJK Unicode block.
Note that not all commands are provided, more can be added on user request.
\<add to usepackage\><<<
-\def\:temp{xeCJK}\ifx \@currname\:temp
+\Configure{PackageHooks}{xeCJK.sty}{xecjk-hooks.4ht}
+>>>
+
+\<xecjk-hooks.4ht\><<<
+% xecjk-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
\:dontusepackage{xeCJK}
\:AtEndOfPackage{%
\RequirePackage{fontspec}
@@ -3734,8 +3737,7 @@
\AtBeginDocument{%
\xeuniuseblock{CJK}
}
-\fi
->>>
+>>> \AddFile{9}{xecjk-hooks}
%%%%%%%%%%%%%%%%%
\Section{ctex}
More information about the tex4ht-commits
mailing list.