[tex4ht-commits] [SCM] tex4ht updated: r850 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Fri Nov 27 23:56:43 CET 2020
Author: michal_h21
Date: 2020-11-28 00:56:43 +0200 (Sat, 28 Nov 2020)
New Revision: 850
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
use blockquote elements for quotation envrionments
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-11-27 20:10:35 UTC (rev 849)
+++ trunk/lit/ChangeLog 2020-11-27 22:56:43 UTC (rev 850)
@@ -6,6 +6,8 @@
* tex4ht-ooffice.tex (ooffice.4ht): fixed paragraph handling for Csquotes
quotation environments.
https://puszcza.gnu.org.ua/bugs/index.php?490
+ * tex4ht-html4.tex (html4.4ht): use <blockquote> element for quotation
+ environments.
2020-11-26 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2020-11-27 20:10:35 UTC (rev 849)
+++ trunk/lit/tex4ht-html4.tex 2020-11-27 22:56:43 UTC (rev 850)
@@ -17547,13 +17547,14 @@
\ConfigureEnv{quote}
{}{}
{\IgnorePar\EndP
- \HCode{<div class="\getClass{quote}">}\afterGetClass{quote}}
- {\IgnorePar\EndP\HCode{</div>}\ShowPar\ShowIndent}
-\Css{.quote {margin-bottom:0.25em; margin-top:0.25em;
- margin-left:1em; margin-right:1em; text-align:justify;}}
+ \HCode{<blockquote class="\getClass{quote}">}\afterGetClass{quote}}
+ {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\ShowIndent}
\NewConfigure{quoteClass}{2}
\Configure{quoteClass}{quote}{}
>>>
+% let browser handle quotation formatting
+% \Css{.quote {margin-bottom:0.25em; margin-top:0.25em;
+% margin-left:1em; margin-right:1em; text-align:justify;}}
\<configure html4 tex4ht\><<<
\def\getClass#1{\expandafter
@@ -17567,14 +17568,14 @@
\<quote noindent config\><<<
\ConfigureEnv{quote}
{}{}
- {\IgnorePar\EndP\HCode{<div class="quote">}\IgnoreIndent}
- {\IgnorePar\EndP\HCode{</div>}\ShowPar\ShowIndent}
-\Css{.quote {margin-bottom:0.25em; margin-top:0.25em;
- margin-left:1em; margin-right:1em; text-align:justify;}}
+ {\IgnorePar\EndP\HCode{<blockquote class="quote">}\IgnoreIndent}
+ {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\ShowIndent}
>>>
+% maybe we should let browsers to use the default formatting for quotes
+% \Css{.quote {margin-bottom:0.25em; margin-top:0.25em;
+% margin-left:1em; margin-right:1em; text-align:justify;}}
-
\<config book-report-article\><<<
\ConfigureEnv{verse}
{\ifvmode \IgnorePar\fi\EndP\Tg<div class="verse">}
@@ -21175,11 +21176,12 @@
\<quotations\><<<
\ConfigureEnv{quotation}
{}{}
- {\IgnorePar\EndP\HCode{<div class="quotation">}}
- {\IgnorePar\EndP\HCode{</div>}\ShowPar}
-\Css{.quotation {margin-bottom:0.25em;
- margin-top:0.25em; margin-left:1em; }}
+ {\IgnorePar\EndP\HCode{<blockquote class="quotation">}}
+ {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar}
>>>
+% Browsers can handle quotation better
+% \Css{.quotation {margin-bottom:0.25em;
+% margin-top:0.25em; margin-left:1em; }}
More information about the tex4ht-commits
mailing list.