[tex4ht-commits] [SCM] tex4ht updated: r266 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Thu Mar 30 15:54:09 CEST 2017
Author: michal_h21
Date: 2017-03-30 16:54:09 +0300 (Thu, 30 Mar 2017)
New Revision: 266
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html5.tex
Log:
Added support for lang and xml:lang attributes in html element
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2017-03-30 10:50:07 UTC (rev 265)
+++ trunk/lit/ChangeLog 2017-03-30 13:54:09 UTC (rev 266)
@@ -1,5 +1,10 @@
2017-03-30 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-html5.tex (html5.4ht): Added support for xml:lang and lang
+ attributes in <html> element.
+
+2017-03-30 Michal Hoftich <michal.h21 at gmail.com>
+
* tex4ht-html4.tex (html4-math.4ht): Configure AMS math align-type
environments to start a new paragraph.
Modified: trunk/lit/tex4ht-html5.tex
===================================================================
--- trunk/lit/tex4ht-html5.tex 2017-03-30 10:50:07 UTC (rev 265)
+++ trunk/lit/tex4ht-html5.tex 2017-03-30 13:54:09 UTC (rev 266)
@@ -43,7 +43,7 @@
|<patch charset|>
\Configure{VERSION}{}
\Configure{DOCTYPE}{\HCode{<!DOCTYPE html>\Hnewline}}
-\Configure{HTML}{\HCode{<html>\Hnewline}}{\HCode{\Hnewline</html>}}
+\Configure{HTML}{\HCode{<html lang="\Get:Language" xml:lang="\Get:Language">\Hnewline}}{\HCode{\Hnewline</html>}}
\Configure{@HEAD}{}
\Configure{@HEAD}{\HCode{<meta \use:charset />\Hnewline}}
\Configure{@HEAD}{\HCode{<meta name="generator" content="TeX4ht
@@ -72,8 +72,82 @@
>>>
+\<configure html5 tex4ht\><<<
+\def\Declare:Language#1#2{%
+\expandafter\gdef\csname rfclang#1\endcsname{#2}%
+}
+\def\Get:Language{%
+\ifx\bbl at main@language\@undefined en-US%
+\else%
+\expandafter\ifdefined\csname rfclang\bbl at main@language\endcsname \csname rfclang\bbl at main@language\endcsname\fi%
+\fi%
+}
+\Declare:Language{english}{en}
+\Declare:Language{czech}{cs}
+\Declare:Language{french}{fr}
+\Declare:Language{polish}{pl}
+\Declare:Language{german}{de}
+\Declare:Language{bulgarian}{bg}
+\Declare:Language{catalan}{ca}
+\Declare:Language{croatian}{hr}
+\Declare:Language{danish}{da}
+\Declare:Language{dutch}{nl}
+\Declare:Language{USenglish}{en}
+\Declare:Language{american}{en}
+\Declare:Language{UKenglish}{en}
+\Declare:Language{british}{en}
+\Declare:Language{canadian}{en}
+\Declare:Language{australian}{en}
+\Declare:Language{newzealand}{en}
+\Declare:Language{esperanto}{eo}
+\Declare:Language{estonian}{et}
+\Declare:Language{finnish}{f\/i}
+\Declare:Language{francais}{fr}
+\Declare:Language{canadien}{fr}
+\Declare:Language{acadian}{fr}
+\Declare:Language{galician}{gl}
+\Declare:Language{austrian}{de}
+\Declare:Language{german}{de}
+\Declare:Language{germanb}{de}
+\Declare:Language{ngerman}{de}
+\Declare:Language{naustrian}{de}
+\Declare:Language{greek}{el}
+\Declare:Language{polutonikogreek}{el}
+\Declare:Language{hebrew}{he}
+\Declare:Language{magyar}{hu}
+\Declare:Language{hungarian}{hu}
+\Declare:Language{icelandic}{is}
+\Declare:Language{interlingua}{ie}
+\Declare:Language{irish}{ga}
+\Declare:Language{italian}{it}
+\Declare:Language{latin}{la}
+\Declare:Language{lowersorbian}{dsb}
+\Declare:Language{samin}{se}
+\Declare:Language{norsk}{no}
+\Declare:Language{nynorsk}{no}
+\Declare:Language{portuges}{pt}
+\Declare:Language{portuguese}{pt}
+\Declare:Language{brazilian}{pt}
+\Declare:Language{brazil}{pt}
+\Declare:Language{romanian}{ro}
+\Declare:Language{russian}{ru}
+\Declare:Language{scottish}{gd}
+\Declare:Language{spanish}{es}
+\Declare:Language{slovak}{sk}
+\Declare:Language{slovene}{sl}
+\Declare:Language{swedish}{sv}
+\Declare:Language{serbian}{sr}
+\Declare:Language{turkish}{tr}
+\Declare:Language{ukrainian}{uk}
+\Declare:Language{uppersorbian}{hsb}
+\Declare:Language{welsh}{cy}
+>>>
+
+
+
+
\endinput
More information about the tex4ht-commits
mailing list