[tex4ht-commits] [SCM] tex4ht updated: r1518 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Mon May 13 22:19:03 CEST 2024
Author: michal_h21
Date: 2024-05-13 20:19:03 +0000 (Mon, 13 May 2024)
New Revision: 1518
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
trunk/lit/tex4ht-html4.tex
Log:
fixed lettrine support
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2024-05-10 11:27:42 UTC (rev 1517)
+++ trunk/lit/ChangeLog 2024-05-13 20:19:03 UTC (rev 1518)
@@ -1,5 +1,13 @@
2024-05-10 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-4ht.tex (lettrine.4ht): defined more keys supported by the
+ \lettrine command.
+ https://tex.stackexchange.com/a/717883/2891
+ * tex4ht-html4.tex (html4.4ht): moved HTML declarations for the
+ Lettrine package from lettrine.4ht.
+
+2024-05-10 Michal Hoftich <michal.h21 at gmail.com>
+
* tex4ht-fonts-noncjk.tex (
./tex4ht.dir/texmf/tex4ht/ht-fonts/unicode/adobe/courier/*.htf,
./tex4ht.dir/texmf/tex4ht/ht-fonts/alias/adobe/courier/*.htf
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2024-05-10 11:27:42 UTC (rev 1517)
+++ trunk/lit/tex4ht-4ht.tex 2024-05-13 20:19:03 UTC (rev 1518)
@@ -34963,10 +34963,24 @@
\<config lettrine\><<<
\NewConfigure{lettrine}{7}
+\NewConfigure{lettrinechar}{2}
\define at key{L}{ante}{\def\LH:ante{#1}}%
\define at key{L}{findent}{\def\LH:findent{#1}}%
\define at key{L}{lhang}{\def\LH:lhang{#1}}%
\define at key{L}{lines}{\def\LH:lines{#1}}%
+\define at key{L}{slope}{}
+\define at key{L}{depth}{}
+\define at key{L}{loversize}{}
+\define at key{L}{lraise}{}
+\define at key{L}{nindent}{}
+\define at key{L}{novskip}{}
+\define at key{L}{image}{}
+\define at key{L}{grid}{}
+\define at key{L}{realheight}{}
+\define at key{L}{refstring}{}
+\define at key{L}{refstring}{}
+\define at key{L}{optionsfile}{}
+
\def\reset:LH:keys{\let\LH:ante\@empty
\def\LH:lines{2}%
\def\LH:lhang{0}%
@@ -34979,48 +34993,9 @@
\a:lettrine
\ifx\LH:ante\@empty\else\f:lettrine\LH:ante\g:lettrine\fi
\c:lettrine
- \HCode{<span class="lettrine-}#2\HCode{">}#2\HCode{</span>}
+ \a:lettrinechar#2\b:lettrinechar
\b:lettrine\d:lettrine#3\e:lettrine
\reset:LH:keys}
-%
-% a: before lettrine
-% b: after lettrine
-% c: before letter
-% d: between letter and string
-% e: after string
-% f: before ante
-% g: after ante
-%
-\Configure{lettrine}
- {\HCode{<span class="lettrine">}}
- {\HCode{</span>}}
-%
- {\HCode{<span class="lettrine-letter">}}
- {\HCode{</span><span class="lettrine-line">}}
- {\HCode{</span>}}
-%
- {\HCode{<span class="lettrine-ante">}}
- {\HCode{</span>}}
-%
-% Define default Css
-%
-\Css{.lettrine{float: left;
- line-height: 0.7; margin-left: -0.1em;
- margin-bottom: -.5em; margin-right: 0.2em;
- }}
-\Css{.lettrine-ante{vertical-align: top;}}
-\Css{.lettrine-letter{font-style: normal;
- font-size: 4em; color: gray;}}
-%
-\Css{.lettrine-A{margin-right: 0.3em;}}
-\Css{.lettrine-A + .lettrine-line{margin-left: -0.4em;}}
-\Css{.lettrine-J{line-height: 1; margin-right: 0;}}
-\Css{.lettrine-H, .lettrine-I, .lettrine-N, .lettrine-U{margin-right: 0;}}
-\Css{.lettrine-V{margin-right: -0.3em;}}
-\Css{.lettrine-V + .lettrine-line{margin-left: 0.3em;}}
-\Css{.lettrine-Q{padding-bottom: 1em;margin-top: -0.6em;}}
-\Css{.lettrine-line{font-variant: small-caps;}}
-\Css{p.indent{text-indent: 0em;}}
>>>
\Section{osudeG.sty}
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2024-05-10 11:27:42 UTC (rev 1517)
+++ trunk/lit/tex4ht-html4.tex 2024-05-13 20:19:03 UTC (rev 1518)
@@ -15872,7 +15872,52 @@
>>>
+\section{lettrine.sty}
+\<configure html4 lettrine\><<<
+%
+% a: before lettrine
+% b: after lettrine
+% c: before letter
+% d: between letter and string
+% e: after string
+% f: before ante
+% g: after ante
+%
+\Configure{lettrine}
+ {\HCode{<span class="lettrine">}}
+ {\HCode{</span>}}
+%
+ {\HCode{<span class="lettrine-letter">}}
+ {\HCode{</span><span class="lettrine-line">}}
+ {\HCode{</span>}}
+%
+ {\HCode{<span class="lettrine-ante">}}
+ {\HCode{</span>}}
+
+\Configure{lettrinechar}{\HCode{<span class="lettrine-\HlettrineChar">}}{\HCode{</span>}}
+%
+% Define default Css
+%
+\Css{.lettrine{float: left;
+ line-height: 0.7; margin-left: -0.1em;
+ margin-bottom: -.5em; margin-right: 0.2em;
+ }}
+\Css{.lettrine-ante{vertical-align: top;}}
+\Css{.lettrine-letter{font-style: normal;
+ font-size: 4em; color: gray;}}
+%
+\Css{.lettrine-A{margin-right: 0em;}}
+\Css{.lettrine-A + .lettrine-line{margin-left: -0.4em;}}
+\Css{.lettrine-J{line-height: 0.9; margin-right: 0;}}
+\Css{.lettrine-H, .lettrine-I, .lettrine-N, .lettrine-U{margin-right: 0;}}
+\Css{.lettrine-V{margin-right: -0.0em;}}
+\Css{.lettrine-V + .lettrine-line{margin-left: 0.3em;}}
+\Css{.lettrine-Q{line-height: 0.9;padding-bottom: 1em;margin-top: -0.6em;}}
+\Css{.lettrine-line{font-variant: small-caps;}}
+>>>
+
+
%%%%%%%%%%%%%%%%%%
\section{gmatrix.sty}
%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.