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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Nov 26 21:07:45 CET 2020


Author: michal_h21
Date: 2020-11-26 22:07:45 +0200 (Thu, 26 Nov 2020)
New Revision: 846

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
   trunk/lit/tex4ht-ooffice.tex
Log:
support for csquotes display environments

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-11-23 18:05:43 UTC (rev 845)
+++ trunk/lit/ChangeLog	2020-11-26 20:07:45 UTC (rev 846)
@@ -1,3 +1,11 @@
+2020-11-26  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (csquotes.4ht),
+	tex4ht-html4.tex (html4.4ht),
+	tex4ht-ooffice.tex (ooffice.4ht): support for Csquotes quotation
+	environments.
+	https://puszcza.gnu.org.ua/bugs/?490
+
 2020-11-23  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-mkht.tex (texinfo): use etex rather than tex.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-11-23 18:05:43 UTC (rev 845)
+++ trunk/lit/tex4ht-4ht.tex	2020-11-26 20:07:45 UTC (rev 846)
@@ -22662,9 +22662,10 @@
 % Copyright 2019 TeX Users Group 
 |<TeX4ht license text|> 
 |<csquotes footnote fix|>
+|<csquotes display|>
 \Hinput{csquotes}
 \endinput
->>>
+>>>   \AddFile{7}{csquotes}
 
 Fix for footnotes inside a blockquote environment.
 
@@ -22674,8 +22675,25 @@
 \<csquotes footnote fix\><<<
 \long\def\csq at bquote@i#1#2#3#4#5#6{%
 \csq at bquote@ii{#1}{#2}{#3}{#4}{#5}{#6}}
->>>        \AddFile{7}{csquotes}
+>>>     
 
+Display quotes environment support. We redefine the commands used by multiple
+environments to insert XML tags.
+
+\<csquotes display\><<<
+\NewConfigure{displayquote}{4}
+\let\csq:bdquote\csq at bdquote
+\def\csq at bdquote#1#2#3#4#5{%
+\a:displayquote%
+\csq:bdquote{#1}{#2}{#3}{#4}{#5}%
+}
+
+\let\csq:edquote\csq at edquote%
+\def\csq at edquote{\csq:edquote\d:displayquote}
+
+\renewcommand{\mkenddispquote}[2]{#1\b:displayquote#2\c:displayquote}
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%
 \Section{CJK}
 %%%%%%%%%%%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2020-11-23 18:05:43 UTC (rev 845)
+++ trunk/lit/tex4ht-html4.tex	2020-11-26 20:07:45 UTC (rev 846)
@@ -18195,9 +18195,22 @@
 \def\A:charset{charset=utf-8} 
 >>>
 
+%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{csquotes}
+%%%%%%%%%%%%%%%%%%%%%%%%%
 
+Csquotes provides quoting environment with a citation support
 
+\<configure html4 csquotes\><<<
+\Configure{displayquote}
+{\ifvmode\IgnorePar\fi\EndP\HCode{<blockquote>}}
+{\ifvmode\IgnorePar\fi\EndP\HCode{<footer>}}
+{\EndP\HCode{</footer>}}
+{\ifvmode\IgnorePar\fi\EndP\HCode{</blockquote>}}
+>>>
 
+
+
 %%%%%%%%%%%%%%%%%%%%%%%%%
 \section{Scientific Word}
 %%%%%%%%%%%%%%%%%%%%%%%%%

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2020-11-23 18:05:43 UTC (rev 845)
+++ trunk/lit/tex4ht-ooffice.tex	2020-11-26 20:07:45 UTC (rev 846)
@@ -3129,7 +3129,18 @@
 >>>
 
 
+\<configure ooffice csquotes\><<<
+\Configure{displayquote}{\EndP%
+\bgroup \Configure{HtmlPar}%
+{\EndP \HCode{<text:p text:style-name="quote\if at rl-rtl\fi">}}%
+{\EndP \HCode{<text:p text:style-name="quote\if at rl-rtl\fi">}}%
+{\HCode{</text:p>}}%
+{\HCode{</text:p>}}%
+\par%
+}{\par}{}{\egroup\EndP\par}
+>>>
 
+
 %%%%%%%%%%%%%
 \subsection{Environment Envelop}
 %%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.