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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Apr 24 14:38:34 CEST 2024


Author: michal_h21
Date: 2024-04-24 12:38:34 +0000 (Wed, 24 Apr 2024)
New Revision: 1510

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
use default letterspacing value provided by Microtype

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-04-23 20:55:59 UTC (rev 1509)
+++ trunk/lit/ChangeLog	2024-04-24 12:38:34 UTC (rev 1510)
@@ -1,3 +1,10 @@
+2024-04-24  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (microtype.4ht),
+	* tex4ht-html4.tex (html4.4ht): use default value of letter spacing
+	provided by Microtype.
+	https://github.com/michal-h21/tex4ebook/issues/127
+
 2024-04-23  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (microtype.4ht),

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-04-23 20:55:59 UTC (rev 1509)
+++ trunk/lit/tex4ht-4ht.tex	2024-04-24 12:38:34 UTC (rev 1510)
@@ -31415,6 +31415,11 @@
 \<microtype textls\><<<
 \NewConfigure{textls}{2}
 \ExplSyntaxOn
+\ifx\MT at letterspace\m at ne
+\edef\:letterspacedefault{\fp_eval:n{\MT at letterspace@default/1000}}
+\else
+\edef\:letterspacedefault{\fp_eval:n{\MT at letterspace/1000}}
+\fi
 \providecommand\:textls[2][]{%
   \begingroup%
     \ifx\relax#1\relax\else%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2024-04-23 20:55:59 UTC (rev 1509)
+++ trunk/lit/tex4ht-html4.tex	2024-04-24 12:38:34 UTC (rev 1510)
@@ -21757,7 +21757,9 @@
 
 \<configure html4 microtype\><<<
 \Configure{textls}{\HCode{<span class="textls" \ifdefined\:letterspacing style="letter-spacing:\:letterspacing rem" \fi>}}{\HCode{</span>}}
-\Css{.textls{letter-spacing:0.1rem;}} % default letter spacing, if no amount is specified
+\ExplSyntaxOn
+\Css{.textls{letter-spacing:\:letterspacedefault rem;}} % default letter spacing, if no amount is specified
+\ExplSyntaxOff
 >>>
 
 



More information about the tex4ht-commits mailing list.