[tex4ht-commits] [SCM] tex4ht updated: r534 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Thu Mar 14 21:28:54 CET 2019
Author: michal_h21
Date: 2019-03-14 22:28:54 +0200 (Thu, 14 Mar 2019)
New Revision: 534
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-ooffice.tex
Log:
Save image mim types to the manifest
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2019-03-14 19:11:57 UTC (rev 533)
+++ trunk/lit/ChangeLog 2019-03-14 20:28:54 UTC (rev 534)
@@ -1,6 +1,8 @@
2019-03-14 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-ooffice.tex (ooffice.4ht): fixed image filename parsers.
+ * tex4ht-ooffice.tex (ooffice.4ht): added image mimetypes to the
+ manifest.xml file.
2019-03-13 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex 2019-03-14 19:11:57 UTC (rev 533)
+++ trunk/lit/tex4ht-ooffice.tex 2019-03-14 20:28:54 UTC (rev 534)
@@ -555,7 +555,7 @@
\<graphics obj manifest\><<<
<manifest:file-entry
- manifest:full-path="Pictures/\PictureFile"/>\Hnewline
+ manifest:full-path="Pictures/\PictureFile" manifest:media-type="\get:image:mime:type\Gin at ext"/>\Hnewline
>>>
\<shared manifest\><<<
@@ -1055,6 +1055,14 @@
\<configure ooffice tex4ht\><<<
\def\svg:width{0.0pt}\def\svg:height{0.0pt}
+\def\def:image:mime:type#1#2{\@namedef{image:mime#1}{#2}}
+\def\get:image:mime:type#1{\@nameuse{image:mime#1}}
+\def:image:mime:type{.png}{image/png}
+\def:image:mime:type{.jpg}{image/jpeg}
+\def:image:mime:type{.jpeg}{image/jpeg}
+\def:image:mime:type{.gif}{image/gif}
+\def:image:mime:type{.svg}{image/svg+xml}
+\def\svg:width{0.0pt}\def\svg:height{0.0pt}
\Configure{IMG}
{|<insert shadowing fig file|>%
\ht:special{t4ht=<draw:frame
More information about the tex4ht-commits
mailing list