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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Wed Jun 15 14:33:59 CEST 2016


Author: michal_h21
Date: 2016-06-15 15:33:58 +0300 (Wed, 15 Jun 2016)
New Revision: 172

Modified:
   trunk/lit/ChangeLog
   trunk/lit/Makefile
   trunk/lit/tex4ht-4ht.tex
Log:
Moved lettrine.4ht to tex4ht-4ht.tex

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2016-06-10 16:07:20 UTC (rev 171)
+++ trunk/lit/ChangeLog	2016-06-15 12:33:58 UTC (rev 172)
@@ -1,3 +1,10 @@
+2016-06-15  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex,
+	* tex4ht-misc.tex: move definitions for lettrine to tex4ht-4ht.tex
+	* Makefile: don't compile tex4ht-misc.tex, it causes overwritting of
+	mktex4ht.cnf
+
 2016-06-10  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex,

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2016-06-10 16:07:20 UTC (rev 171)
+++ trunk/lit/Makefile	2016-06-15 12:33:58 UTC (rev 172)
@@ -129,9 +129,6 @@
 derived += $(tex4ht_mathplayer_derived)
 tex4ht_mathplayer_derived = mathplayer.4ht
 
-derived += $(tex4ht_misc_derived)
-tex4ht_misc_derived = lettrine.4ht
-
 derived += $(tex4ht_mkht_derived)
 tex4ht_mkht_derived = mkht.4ht mk4ht.perl mkht-scripts.4ht
 
@@ -288,9 +285,6 @@
 $(tex4ht_mathplayer_derived): tex4ht-mathplayer.tex $(common)
 	xhlatex $< "html,3,sections+" "" "-d./" $(tex_1opt)
 
-$(tex4ht_misc_derived): tex4ht-misc.tex $(common)
-	ht tex $<
-
 $(tex4ht_mkht_derived): tex4ht-mkht.tex $(common)
 	latex $(tex_opts) $<
 	perl -c mk4ht.perl  # syntax check

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2016-06-10 16:07:20 UTC (rev 171)
+++ trunk/lit/tex4ht-4ht.tex	2016-06-15 12:33:58 UTC (rev 172)
@@ -29041,6 +29041,80 @@
 \append:def\endmulticols{\EndP\HCode{</div>}} 
 >>>
 
+% Lettrine
+\<lettrine.4ht\><<<
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% lettrine.4ht                             |version %
+|<TeX4ht copyright|>
+|<config lettrine|>
+\Hinput{lettrine}
+\endinput
+>>>                        \AddFile{2}{lettrine}
+
+
+\<config lettrine\><<<
+\NewConfigure{lettrine}{7}
+\define at key{LH}{ante}{\def\LH:ante{#1}}%
+\define at key{LH}{findent}{\def\LH:findent{#1}}%
+\define at key{LH}{lhang}{\def\LH:lhang{#1}}%
+\define at key{LH}{lines}{\def\LH:lines{#1}}%
+\def\reset:LH:keys{\let\LH:ante\@empty
+    \def\LH:lines{2}%
+    \def\LH:lhang{0}%
+    \def\LH:findent{0pt}}
+\reset:LH:keys
+%
+\def\@lettrine[#1]#2#3{\setkeys{LH}{#1}%
+     \def\HlettrineChar{#2}%
+     \def\HlettrineString{#3}%
+     \a:lettrine
+     \ifx\LH:ante\@empty\else\f:lettrine\LH:ante\g:lettrine\fi
+     \c:lettrine
+      \HCode{<span class="letter-}#2\HCode{">}#2\HCode{</span>}
+     \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-\unexpanded{À}{margin-right: 0.3em;}}
+\Css{.lettrine-\unexpanded{À} + .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;}}
+>>>                 
 %-------------------------------- Baby osudeG.sty -------------
 
 \Section{osudeG.sty}



More information about the tex4ht-commits mailing list