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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Dec 27 13:15:04 CET 2021


Author: michal_h21
Date: 2021-12-27 12:15:04 +0000 (Mon, 27 Dec 2021)
New Revision: 1042

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed biblatex spacing issue

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-12-26 17:19:28 UTC (rev 1041)
+++ trunk/lit/ChangeLog	2021-12-27 12:15:04 UTC (rev 1042)
@@ -1,3 +1,10 @@
+2021-12-27  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (biblatex.4ht): removed code that interfered with
+	spacing. Redefined \addnbspace to produce non-breaking space
+	character.
+	https://tex.stackexchange.com/a/628208/2891
+
 2021-12-26  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-4ht.tex (minted.4ht): copyright 2021.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2021-12-26 17:19:28 UTC (rev 1041)
+++ trunk/lit/tex4ht-4ht.tex	2021-12-27 12:15:04 UTC (rev 1042)
@@ -2576,34 +2576,24 @@
        {}}%
     {}%
   \blx at postpunct
-  \blx at resetpuncthook
+  \blx at imc@resetpunctfont
   \iftoggle{blx at tempa}%
     {}%
     {\global\togglefalse{blx at insert}}%
   \csname a:blx at unit\endcsname
   \blx at leavevmode
-  \blx at csq@ifkernmark
-    {}%
-    {\penalty\@M
-    \hskip-\blx at unitmark\relax
-    \hskip\blx at unitmark\relax
-    }%
   \begingroup
     \Configure{blx at unit}{}{}%
 }
 \def\blx at endunit{%
   \endgroup
-  \csname b:blx at unit\endcsname
+  \csname b:blx at unit\endcsname%
   \Configure{blx at unit}{}{}%
-  \ifdim\lastskip=\blx at unitmark
-    \unskip\unskip\unpenalty
-    \global\togglefalse{blx at lastins}%
-  \else
-   \global\toggletrue{blx at insert}%
-   \global\toggletrue{blx at lastins}%
- \fi
+  \global\toggletrue{blx at insert}%
+  \global\toggletrue{blx at lastins}%
 }
 \NewConfigure{blx at unit}{2}
+
 %
    \else
 \fi
@@ -2620,6 +2610,17 @@
 \fi
 >>>
 
+BibLaTeX don't use \`'\nobreakspace' command for non-breaking spaces, 
+so TeX4ht outputs regular spaces in their place. This redefinition should
+fix it.
+
+\<config biblatex\><<<
+\renewrobustcmd*{\addnbspace}{%
+  \unspace\blx at postpunct%
+  % insert real non-breaking space character
+  \nobreakspace\blx at imc@resetpunctfont}
+>>>
+
 \<shared config biblatex\><<<
 \append:def\blx at bibinit{\a:bibinit}%
 \NewConfigure{bibinit}{1}%



More information about the tex4ht-commits mailing list.