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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Wed Jul 4 10:37:17 CEST 2018


Author: michal_h21
Date: 2018-07-04 11:37:17 +0300 (Wed, 04 Jul 2018)
New Revision: 419

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
Removed DOCTYPE definitions

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2018-07-03 17:37:07 UTC (rev 418)
+++ trunk/lit/ChangeLog	2018-07-04 08:37:17 UTC (rev 419)
@@ -1,3 +1,8 @@
+2018-07-04  Michal Hoftich  <michal.h21 at gmail.com>
+
+  * tex4ht-ooffice.tex (ooffice.4ht): removed all DOCTYPE definitions, they
+	cause validation failure in https://odfvalidator.org/. 
+
 2018-07-03  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-t4ht.tex (texmf :=): replace %%~ with $TEXMFDIST,

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2018-07-03 17:37:07 UTC (rev 418)
+++ trunk/lit/tex4ht-ooffice.tex	2018-07-04 08:37:17 UTC (rev 419)
@@ -147,13 +147,14 @@
 \def\oo:dtd:ver{2.0}
 >>>
 
+The DOCTYPE can actually make the ODT file invalid. Just insert xtpipes instruction.
+
 \<configure ooffice tex4ht\><<<
 \Configure{VERSION}{\HCode{|<VERSION|>}}
 \:CheckOption{-xtpipes} \if:Option 
-   \Configure{DOCTYPE}{\HCode{|<DOCTYPE|>}}
+   \Configure{DOCTYPE}{}
 \else
-   \Configure{DOCTYPE}{\HCode{|<DOCTYPE|>\Hnewline
-        <?xtpipes file="oo-text.4xt" ?>\Hnewline}}
+   \Configure{DOCTYPE}{\HCode{<?xtpipes file="oo-text.4xt" ?>\Hnewline}}
 \fi
 >>>
 
@@ -283,9 +284,6 @@
 >>>
 
 \<DOCTYPE\><<<
-<!DOCTYPE office:document-content PUBLIC
-   "-//OpenOffice.org//DTD OfficeDocument \oo:dtd:ver//|<dtd lang|>" 
-   "office.dtd">\Hnewline
 >>>
 
 
@@ -369,15 +367,11 @@
 >>>
 
 
-Writer2LaTeX (w2l) doesn't currently allow line breaks with DOCTYPE
 
 
 
 \<oo2 styles.xml\><<<
 |<VERSION|>%
-<!DOCTYPE office:document-styles PUBLIC
-    "-//OpenOffice.org//DTD OfficeDocument \oo:dtd:ver//|<dtd lang|>"
-    "office.dtd">\Hnewline
 <office:document-styles \Hnewline
        |<xml styles name spaces 2.0|>\Hnewline
        office:version="1.0">\Hnewline
@@ -472,9 +466,6 @@
 \jobname-settings.4os>>>
 
 \<settings DOCTYPE\><<<
-<!DOCTYPE office:document-settings PUBLIC
-    "-//OpenOffice.org//DTD OfficeDocument \oo:dtd:ver//|<dtd lang|>" 
-    "office.dtd">\Hnewline
 >>>
 
 
@@ -535,9 +526,6 @@
 
 \<oo2 manifest.xml\><<<
 |<VERSION|>%
-<!DOCTYPE manifest:manifest PUBLIC 
-       "-//OpenOffice.org//DTD 
-       Manifest \oo:dtd:ver//|<dtd lang|>" "Manifest.dtd">\Hnewline
 <manifest:manifest       
        xmlns:manifest =
        "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">\Hnewline
@@ -602,7 +590,6 @@
 \<oo2 meta.xml\><<<
 \ht:special{t4ht>|<meta file name|>}%
   \ht:special{t4ht=|<VERSION|>}%
-  \ht:special{t4ht=|<meta DOCTYPE|>}%
   \ht:special{t4ht=|<oo2 start meta|>}%
   \ht:special{t4ht=\a:META}%
   \ht:special{t4ht=|<close meta|>}%
@@ -628,11 +615,6 @@
 \jobname-meta.4ot>>>
 
 
-\<meta DOCTYPE\><<<
-<!DOCTYPE office:document-meta PUBLIC
-    "-//OpenOffice.org//DTD OfficeDocument \oo:dtd:ver//|<dtd lang|>"
-    "office.dtd">\Hnewline
->>>
 
 
 
@@ -872,32 +854,19 @@
 
 
 \<config mathml object file\><<<
-\Configure{DOCTYPE}{|<oo2 mml doctype|>}%
+\Configure{DOCTYPE}{}%
 |<oo math xtpipes|>%
 \Configure{HTML}{}{\noindent}%
 \Configure{BODY}{}{}%
 >>>
 
 
-
-
-\<oo2 mml doctype\><<<
-\HCode{<!DOCTYPE \a:mathml math PUBLIC
-    "-//W3C//DTD MathML 2.0//|<dtd lang|>" 
-    "math.dtd">\Hnewline}
->>>
-
-%    "-//OpenOffice.org//DTD Modified W3C MathML 1.01//|<dtd lang|>" 
-
-
-
 \<oo math xtpipes\><<<
 \:CheckOption{-xtpipes} \if:Option 
    \Log:Note{Use the `-xtpipes' command line option to 
              avoid xtpipes post processing}
 \else
       \Configure{DOCTYPE}{%%
-          |<oo2 mml doctype|>%
           \HCode{|<tex4ht math note|>}%
       }%
 \fi



More information about the tex4ht-commits mailing list