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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Tue Feb 20 10:49:09 CET 2018


Author: michal_h21
Date: 2018-02-20 11:49:09 +0200 (Tue, 20 Feb 2018)
New Revision: 378

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Disabled ht-fonts for basic font commands when 'fonts' option is used

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2018-02-19 18:57:28 UTC (rev 377)
+++ trunk/lit/ChangeLog	2018-02-20 09:49:09 UTC (rev 378)
@@ -1,3 +1,8 @@
+2018-02-20  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): disabled ht-fonts for basic font formatting
+	commands.
+
 2018-02-19  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-fonts-noncjk.tex,

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2018-02-19 18:57:28 UTC (rev 377)
+++ trunk/lit/tex4ht-html4.tex	2018-02-20 09:49:09 UTC (rev 378)
@@ -18285,30 +18285,32 @@
 
 \<configure html4 latex\><<<
 \:CheckOption{fonts} \if:Option
-  \Configure{textbf}{\Protect\HCode{<span class="textbf">}}
-                    {\Protect\HCode{</span>}}
-  \Configure{textit}{\Protect\HCode{<span class="textit">}}
-                    {\Protect\HCode{</span>}}
-  \Configure{textrm}{\Protect\HCode{<span class="textrm">}}
-                    {\Protect\HCode{</span>}}
-  \Configure{textup}{\Protect\HCode{<span class="textup">}}
-                    {\Protect\HCode{</span>}}  
-  \Configure{textsc}{\Protect\HCode{<span class="textsc">}}
-                    {\Protect\HCode{</span>}}
-  \Configure{textsf}{\Protect\HCode{<span class="textsf">}}
-                    {\Protect\HCode{</span>}}  
-  \Configure{textsl}{\Protect\HCode{<span class="textsl">}}
-                    {\Protect\HCode{</span>}}
-  \Configure{texttt}{\Protect\HCode{<span class="texttt">}}
-                    {\Protect\HCode{</span>}}
-  \Configure{emph}{\Protect\HCode{<span class="emph">}}
-                    {\Protect\HCode{</span>}}
+  \Configure{textbf}{\Protect\HCode{<span class="textbf">}\NoFonts}
+                    {\EndNoFonts\Protect\HCode{</span>}}
+  \Configure{textit}{\Protect\HCode{<span class="textit">}\NoFonts}
+                    {\EndNoFonts\Protect\HCode{</span>}}
+  \Configure{textrm}{\Protect\HCode{<span class="textrm">}\NoFonts}
+                    {\EndNoFonts\Protect\HCode{</span>}}
+  \Configure{textup}{\Protect\HCode{<span class="textup">}\NoFonts}
+                    {\EndNoFonts\Protect\HCode{</span>}}  
+  \Configure{textsc}{\Protect\HCode{<span class="textsc">}\NoFonts}
+                    {\EndNoFonts\Protect\HCode{</span>}}
+  \Configure{textsf}{\Protect\HCode{<span class="textsf">}\NoFonts}
+                    {\EndNoFonts\Protect\HCode{</span>}}  
+  \Configure{textsl}{\Protect\HCode{<span class="textsl">}\NoFonts}
+                    {\EndNoFonts\Protect\HCode{</span>}}
+  \Configure{texttt}{\Protect\HCode{<span class="texttt">}\NoFonts}
+                    {\EndNoFonts\Protect\HCode{</span>}}
+  \Configure{emph}{\Protect\HCode{<span class="emph">}\NoFonts}
+                    {\EndNoFonts\Protect\HCode{</span>}}
   \Css{span.textbf { font-weight: bold; }}
   \Css{span.textit { font-style: italic; }}
   \Css{span.textrm { font-family: serif; }}
   \Css{span.textsc { font-variant: small-caps; }}
   \Css{span.textsf { font-family: sans-serif; }}
   \Css{span.texttt { font-family: monospace; }}
+  \Css{span.emph   { font-style: italic;}}
+  \Css{span.emph span.emph {font-style: normal;}}
 \else
   \Log:Note{for tracing of latex font commands, 
           use the command line option `fonts'}



More information about the tex4ht-commits mailing list