texlive[43674] Master/texmf-dist/tex/generic/tex4ht/html5.4ht: html5

commits+karl at tug.org commits+karl at tug.org
Sun Apr 2 01:07:20 CEST 2017


Revision: 43674
          http://tug.org/svn/texlive?view=revision&revision=43674
Author:   karl
Date:     2017-04-02 01:07:20 +0200 (Sun, 02 Apr 2017)
Log Message:
-----------
html5 fixes: no tabular cellspacing/cellpadding (r268), xmlns in <html> (r267), lang in <html> (r266)

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=268
    http://tug.org/svn/texlive?view=revision&revision=267
    http://tug.org/svn/texlive?view=revision&revision=266

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/generic/tex4ht/html5.4ht

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html5.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html5.4ht	2017-04-01 21:30:49 UTC (rev 43673)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html5.4ht	2017-04-01 23:07:20 UTC (rev 43674)
@@ -1,5 +1,5 @@
-% html5.4ht (2016-11-25-14:49), generated from tex4ht-html5.tex
-% Copyright 2016 TeX Users Group
+% html5.4ht (2017-04-01-16:06), generated from tex4ht-html5.tex
+% Copyright 2016-2017 TeX Users Group
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -16,9 +16,10 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2016-11-25-14:49}
+\immediate\write-1{version 2017-04-01-16:06}
 
-\exit:ifnot{tex4ht}
+\exit:ifnot{latex,% 
+tex4ht}
 
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -30,23 +31,99 @@
 }
 \def\use:charset{%
   \expandafter\ifx\csname a:charset\endcsname\relax%
-    \expandafter\:charset:quotes\A:charset.
+    \expandafter\expandafter\expandafter\:charset:quotes\csname A:charset\endcsname.
   \else%
-    \expandafter\:charset:quotes\a:charset.
+    \expandafter\expandafter\expandafter\:charset:quotes\csname a:charset\endcsname.
   \fi
 }
 
 \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" \html:xmlns>\Hnewline}}{\HCode{\Hnewline</html>}}
 \Configure{@HEAD}{}
 \Configure{@HEAD}{\HCode{<meta \use:charset />\Hnewline}}
 \Configure{@HEAD}{\HCode{<meta name="generator" content="TeX4ht
 (http://www.tug.org/tex4ht/)" />\Hnewline}}
 \Configure{@HEAD}{\HCode{<link
-    rel="stylesheet" type="text/css"
-href="\expandafter\csname aa:CssFile\endcsname" />\Hnewline}}
+             rel="stylesheet" type="text/css"
+                      href="\expandafter\csname aa:CssFile\endcsname" />\Hnewline}}
+\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}
+\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%
+}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
@@ -57,8 +134,18 @@
 
 
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+                \ConfigureHinput{latex}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+    \Configure{halignTB<>}{tabular}{\HCode{id="TBL-\TableNo"  class="tabular"\Hnewline \GROUPS\Hnewline
+   }<>\HAlign}
+\Css{table.tabular{border-collapse: collapse; border-spacing: 0;}}
 
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+  
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
 
@@ -102,6 +189,15 @@
 
 
 
+
+
+
+
+
+
+
+
+
 
 
 



More information about the tex-live-commits mailing list