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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Mar 30 16:20:58 CEST 2017


Author: michal_h21
Date: 2017-03-30 17:20:58 +0300 (Thu, 30 Mar 2017)
New Revision: 267

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html5.tex
Log:
Added support for xmlns in html5

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2017-03-30 13:54:09 UTC (rev 266)
+++ trunk/lit/ChangeLog	2017-03-30 14:20:58 UTC (rev 267)
@@ -2,6 +2,7 @@
 
 	* tex4ht-html5.tex (html5.4ht): Added support for xml:lang and lang
 	attributes in <html> element. 
+	Added support for xmlns in <html> tag.
 
 2017-03-30  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-html5.tex
===================================================================
--- trunk/lit/tex4ht-html5.tex	2017-03-30 13:54:09 UTC (rev 266)
+++ trunk/lit/tex4ht-html5.tex	2017-03-30 14:20:58 UTC (rev 267)
@@ -43,7 +43,7 @@
 |<patch charset|>
 \Configure{VERSION}{}
 \Configure{DOCTYPE}{\HCode{<!DOCTYPE html>\Hnewline}}
-\Configure{HTML}{\HCode{<html lang="\Get:Language" xml:lang="\Get:Language">\Hnewline}}{\HCode{\Hnewline</html>}}
+\Configure{HTML}{\HCode{<html lang="\Get:Language" xml:lang="\Get:Language" \html:xmlns>\Hnewline}}{\HCode{\Hnewline</html>}}
 \Configure{@HEAD}{}
 \Configure{@HEAD}{\HCode{<meta \use:charset />\Hnewline}}
 \Configure{@HEAD}{\HCode{<meta name="generator" content="TeX4ht
@@ -72,6 +72,9 @@
 >>>
 
 
+We can interfere the document language from \verb|\bbl at main@language| macro. It
+is supported by both Babel and Polyglossia.
+
 \<configure html5 tex4ht\><<<
 \def\Declare:Language#1#2{%
 \expandafter\gdef\csname rfclang#1\endcsname{#2}%
@@ -144,7 +147,19 @@
 \Declare:Language{welsh}{cy}
 >>>
 
+Support for xml name spaces. It must be configured after
+\verb|\begin{document}| in the configuration file.
 
+\<configure html5 tex4ht\><<<
+\edef\html:xmlns{}
+\NewConfigure{xmlns}[2]{%
+  \ifx\relax#2\relax%
+    \edef\html:xmlns{}%
+  \else%
+    \edef\html:xmlns{\html:xmlns xmlns\ifx\relax#1\relax\else :#1\fi="#2"}%
+  \fi%
+}
+>>>
 
 
 



More information about the tex4ht-commits mailing list