texlive[60744] Master/texmf-dist: ooffice fixes, tex4ht r992;

commits+karl at tug.org commits+karl at tug.org
Tue Oct 12 22:50:43 CEST 2021


Revision: 60744
          http://tug.org/svn/texlive?view=revision&revision=60744
Author:   karl
Date:     2021-10-12 22:50:43 +0200 (Tue, 12 Oct 2021)
Log Message:
-----------
ooffice fixes, tex4ht r992; \(sub)paragraph cleanup, tex4ht 993

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

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
    trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2021-10-12 20:07:20 UTC (rev 60743)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2021-10-12 20:50:43 UTC (rev 60744)
@@ -1,3 +1,12 @@
+2021-10-12  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): clean up for \paragraph and \subparagraph
+	commands.
+	https://puszcza.gnu.org.ua/bugs/?530#discussion
+	* tex4ht-ooffice.tex (ooffice.4ht): fixed handling of paragraphs in
+	\paragraph and \subpagraph.
+	https://puszcza.gnu.org.ua/bugs/?530#discussion
+
 2021-10-10  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-fonts-noncjk.tex (

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex	2021-10-12 20:07:20 UTC (rev 60743)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex	2021-10-12 20:50:43 UTC (rev 60744)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 988 2021-09-28 21:06:02Z michal_h21 $
+% $Id: tex4ht-html4.tex 992 2021-10-12 12:17:53Z michal_h21 $
 % Compile 4 times: latex tex4ht-html4
 % Copy html4.4ht into the work directory before all but the last compilation.
 %
@@ -9178,7 +9178,7 @@
 
 \<ams proc,book\><<<
 \Configure{paragraph}{}{}
-  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
+  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup}
   {\endgroup\HCode{</span>}\IgnorePar}
 \ConfigureMark{subparagraph}{\thesubparagraph}
 \Css{.paragraphHead  { margin-top:2em; font-weight: bold;}}
@@ -9197,7 +9197,7 @@
 
 \<ams proc,book\><<<
 \Configure{subparagraph}{}{}
-  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
+  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup
    \TitleMark\space}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Css{.subparagraphHead { font-weight: bold;}}
@@ -10264,21 +10264,21 @@
 |<config lists of figures and tables|> 
 
 \Configure{paragraph}{}{}
-  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
-  {\endgroup\HCode{</span>}}
+  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup}
+  {\endgroup\HCode{</span>}\IgnorePar}
 \Configure{likeparagraph}{}{}
   {\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
-  {\HCode{</span>}}
+  {\HCode{</span>}\IgnorePar}
 \Css{.paragraphHead, .likeparagraphHead
    { margin-top:2em; font-weight: bold;}}
 
-\ConfigureMark{subparagraph}{\thesubparagraph}
+\ConfigureMark{subparagraph}{}
 \Configure{subparagraph}{}{}
-  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
+  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup
    \TitleMark\space}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Configure{likesubparagraph}{}{}
-  {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
+  {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Css{.subparagraphHead, .likesubparagraphHead
    { font-weight: bold;}}

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex	2021-10-12 20:07:20 UTC (rev 60743)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex	2021-10-12 20:50:43 UTC (rev 60744)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 983 2021-09-17 14:27:15Z michal_h21 $
+% $Id: tex4ht-ooffice.tex 993 2021-10-12 15:19:37Z michal_h21 $
 % compile 3 times: latex tex4ht-ooffice
 %      htlatex tex4ht-ooffice "xhtml,4,sections+"
 %
@@ -467,10 +467,10 @@
 \<utilities\><<<
 \def\:DefineParagraph#1#2{%
 \Configure{#1}
-   {\IgnorePar\EndP \HCode{<!--start of #1 -->}}
-   {\IgnorePar\EndP \HCode{<!--start of #1 -->}}
-   {\bgroup\HTML:PAR{#1-p}{#1-p}\par\HCode{<text:span text:style-name="#2" >}}
-   {\HCode{</text:span><text:s/><text:s/>\Hnewline}\egroup}
+   {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
+   {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
+   {\bgroup\HTML:PAR{#1-p}{#1-p}\ifvmode\IgnorePar\fi\EndP\par\HCode{<text:span text:style-name="#2" >}}
+   {\HCode{</text:span><text:s/><text:s/>\Hnewline}\egroup\IgnorePar}
 \:ParagraphStyle{#1-p}
 }
 >>>

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2021-10-12 20:07:20 UTC (rev 60743)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2021-10-12 20:50:43 UTC (rev 60744)
@@ -1,4 +1,4 @@
-% html4.4ht (2021-09-28-14:09), generated from tex4ht-html4.tex
+% html4.4ht (2021-10-12-13:20), generated from tex4ht-html4.tex
 % Copyright 2009-2021 TeX Users Group
 % Copyright 1997-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2021-09-28-14:09}
+\immediate\write-1{version 2021-10-12-13:20}
 
 \exit:ifnot{8859-6,% 
 CJK,% 
@@ -16631,12 +16631,12 @@
     \TitleMark\space \HtmlParOff}
    {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
 \Configure{paragraph}{}{}
-  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
+  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup}
   {\endgroup\HCode{</span>}\IgnorePar}
 \ConfigureMark{subparagraph}{\thesubparagraph}
 \Css{.paragraphHead  { margin-top:2em; font-weight: bold;}}
 \Configure{subparagraph}{}{}
-  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
+  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup
    \TitleMark\space}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Css{.subparagraphHead { font-weight: bold;}}
@@ -19256,12 +19256,12 @@
     \TitleMark\space \HtmlParOff}
    {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
 \Configure{paragraph}{}{}
-  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
+  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup}
   {\endgroup\HCode{</span>}\IgnorePar}
 \ConfigureMark{subparagraph}{\thesubparagraph}
 \Css{.paragraphHead  { margin-top:2em; font-weight: bold;}}
 \Configure{subparagraph}{}{}
-  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
+  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup
    \TitleMark\space}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Css{.subparagraphHead { font-weight: bold;}}
@@ -32828,21 +32828,21 @@
 
 
 \Configure{paragraph}{}{}
-  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
-  {\endgroup\HCode{</span>}}
+  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup}
+  {\endgroup\HCode{</span>}\IgnorePar}
 \Configure{likeparagraph}{}{}
   {\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
-  {\HCode{</span>}}
+  {\HCode{</span>}\IgnorePar}
 \Css{.paragraphHead, .likeparagraphHead
    { margin-top:2em; font-weight: bold;}}
 
-\ConfigureMark{subparagraph}{\thesubparagraph}
+\ConfigureMark{subparagraph}{}
 \Configure{subparagraph}{}{}
-  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
+  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup
    \TitleMark\space}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Configure{likesubparagraph}{}{}
-  {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
+  {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Css{.subparagraphHead, .likesubparagraphHead
    { font-weight: bold;}}

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht	2021-10-12 20:07:20 UTC (rev 60743)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht	2021-10-12 20:50:43 UTC (rev 60744)
@@ -1,4 +1,4 @@
-% ooffice.4ht (2021-09-17-15:31), generated from tex4ht-ooffice.tex
+% ooffice.4ht (2021-10-12-13:20), generated from tex4ht-ooffice.tex
 % Copyright 2009-2021 TeX Users Group
 % Copyright 2001-2009 Maarten Wisse, James Naughton, Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2021-09-17-15:31}
+\immediate\write-1{version 2021-10-12-13:20}
 
   \exit:ifnot{Preamble,% 
 algorithmicx,% 
@@ -199,10 +199,10 @@
 }
 \def\:DefineParagraph#1#2{%
 \Configure{#1}
-   {\IgnorePar\EndP \HCode{<!--start of #1 -->}}
-   {\IgnorePar\EndP \HCode{<!--start of #1 -->}}
-   {\bgroup\HTML:PAR{#1-p}{#1-p}\par\HCode{<text:span text:style-name="#2" >}}
-   {\HCode{</text:span><text:s/><text:s/>\Hnewline}\egroup}
+   {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
+   {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
+   {\bgroup\HTML:PAR{#1-p}{#1-p}\ifvmode\IgnorePar\fi\EndP\par\HCode{<text:span text:style-name="#2" >}}
+   {\HCode{</text:span><text:s/><text:s/>\Hnewline}\egroup\IgnorePar}
 \:ParagraphStyle{#1-p}
 }
 \def\:BoldStyle#1{%



More information about the tex-live-commits mailing list.