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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Wed May 3 23:42:57 CEST 2017


Author: michal_h21
Date: 2017-05-04 00:42:57 +0300 (Thu, 04 May 2017)
New Revision: 299

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Added support for xeCJK package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2017-04-28 22:28:51 UTC (rev 298)
+++ trunk/lit/ChangeLog	2017-05-03 21:42:57 UTC (rev 299)
@@ -1,3 +1,9 @@
+2017-05-03  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (usepackage.4ht): added basic support for
+	xeCJK package, fixed one issue with biblatex.
+	Details:  https://tex.stackexchange.com/a/367968/2891 
+
 2017-04-28  Karl Berry  <karl at freefriends.org>
 
 	* Makefile (common): include mktex4ht.4ht and tex4ht.sty.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2017-04-28 22:28:51 UTC (rev 298)
+++ trunk/lit/tex4ht-4ht.tex	2017-05-03 21:42:57 UTC (rev 299)
@@ -3508,8 +3508,68 @@
 \fi
 >>>
 
+%%%%%%%%%%%%%%%%%
+\Section{biblatex}
+%%%%%%%%%%%%%%%%%
 
+This is a fix for XeLaTeX, it sometimes 
+reported that English language strings
+can't be loaded, even if they were loaded
+correctly. This just removes the error message.
+
+\<use package\><<<
+biblatex,>>>
+
+\<add to usepackage\><<<
+\def\:temp{biblatex}\ifx \@currname\:temp
+\AtEndOfPackage{%
+  \def\blx at mknoautolang{%
+    \blx at lbxinput{\blx at languagename}%
+    {}{}%
+  }%
+}
+\fi
+>>>
+
+
 %%%%%%%%%%%%%%%%%
+\Section{xeCJK}
+%%%%%%%%%%%%%%%%%
+
+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
+\:dontusepackage{xeCJK}
+\AtEndOfPackage{%
+  \RequirePackage{fontspec}
+}
+\DeclareDocumentCommand\setCJKmainfont{o m o}{}
+\let\setCJKsansfont\setCJKmainfont
+\let\setCJKmonofont\setCJKmainfont
+
+\DeclareDocumentCommand\setCJKfamilyfont {m o m }{}
+\DeclareDocumentCommand\newCJKfontfamily {o m o m}{\expandafter\gdef\csname #2\endcsname{\relax}}
+
+\DeclareDocumentCommand\xeCJKsetup{m}{}
+% }
+\AtBeginDocument{%
+  \xeuniuseblock{CJK}
+}
+\fi
+>>>
+
+
+%%%%%%%%%%%%%%%%%
 \Section{fontspec}
 %%%%%%%%%%%%%%%%%
 



More information about the tex4ht-commits mailing list