[tex4ht-commits] [SCM] tex4ht updated: r928 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Tue May 4 19:53:52 CEST 2021
Author: michal_h21
Date: 2021-05-04 17:53:52 +0000 (Tue, 04 May 2021)
New Revision: 928
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
Fix non breaking space issues with Spanish Babel
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-05-04 14:34:39 UTC (rev 927)
+++ trunk/lit/ChangeLog 2021-05-04 17:53:52 UTC (rev 928)
@@ -6,6 +6,9 @@
https://tex.stackexchange.com/a/595571/2891
* tex4ht-4ht.tex (menukeys.4ht): added support for the menukeys package.
https://puszcza.gnu.org.ua/bugs/?509
+ * tex4ht-html4.4ht (html4.4ht): replace ~ by "\ " in TOC rendering macros.
+ It should fix issues with Spanish Babel.
+ https://tex.stackexchange.com/a/595688/2891
2021-05-02 Karl Berry <karl at freefriends.org>
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2021-05-04 14:34:39 UTC (rev 927)
+++ trunk/lit/tex4ht-html4.tex 2021-05-04 17:53:52 UTC (rev 928)
@@ -748,7 +748,7 @@
\Configure{subsection}{}{}
{\ifvmode \IgnorePar\fi
\EndP\bgroup \IgnorePar\HCode{<h4 class="subsectionHead"\a:LRdir>}%
- \TitleMark~~\HtmlParOff}
+ \TitleMark\ \ \HtmlParOff}
{\HCode{</h4>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
\Configure{likesubsection}{}{}{\EndP\bgroup
\ifvmode \IgnorePar\fi
@@ -1812,7 +1812,7 @@
\<html latex tocs\><<<
\def\tocpart#1#2#3{\par
- \HCode{<span class="partToc" \a:LRdir>}\if !#1!\else #1~~\fi #2\HCode{</span>}\par}%
+ \HCode{<span class="partToc" \a:LRdir>}\if !#1!\else #1\ \ \fi #2\HCode{</span>}\par}%
\def\toclikepart#1#2#3{\par
\HCode{<span class="likepartToc" \a:LRdir>}#2\HCode{</span>}\par}%
|<part toc css|>%
@@ -1872,7 +1872,7 @@
\<scr report,book\><<<
\def\tocpart#1#2#3{\par
\HCode{<span class="partToc" \a:LRdir>}\if !#1!\else
- #1~~\fi #2\HCode{</span>}\par}%
+ #1\ \ \fi #2\HCode{</span>}\par}%
\def\toclikepart#1#2#3{\par
\HCode{<span class="likepartToc" \a:LRdir>}#2\HCode{</span>}\par}%
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
@@ -1881,13 +1881,13 @@
.appendixToc a, .appendixToc, .addchapToc a
{line-height: 200\%; font-weight:bold;}}
\def\tocchapter#1#2#3{\par
- \HCode{<span class="chapterToc" \a:LRdir>}#1~~#2\HCode{</span>}\par}
+ \HCode{<span class="chapterToc" \a:LRdir>}#1\ \ #2\HCode{</span>}\par}
\def\toclikechapter#1#2#3{\par
\HCode{<span class="likechapterToc" \a:LRdir>}#2\HCode{</span>}\par}%
\def\tocaddchap#1#2#3{\par
\HCode{<span class="addchapToc" \a:LRdir>}#2\HCode{</span>}\par}%
\def\tocappendix#1#2#3{\par
- \HCode{<span class="appendixToc" \a:LRdir>}#1~~#2\HCode{</span>}\par}
+ \HCode{<span class="appendixToc" \a:LRdir>}#1\ \ #2\HCode{</span>}\par}
\def\tocsection#1#2#3{\par\ \toc:num{section}{#1}{#2}\par}
\def\toclikesection#1#2#3{\par\
\HCode{<span class="likesectionToc" \a:LRdir>}#2\HCode{</span>}\par}
@@ -1907,13 +1907,13 @@
\ \ \ \ \ \HCode{<span class="likesubparagraphToc" \a:LRdir>}#2\HCode{</span>}\par}
\def\toc:num#1#2#3{\def\:temp{#1#2}%
\HCode{<span class="#1Toc" \a:LRdir>}\ifx \:temp\empty
- \else \def\:temp{#2}\ifx\:temp\empty\else #2~~\fi\fi #3\HCode{</span>}}
+ \else \def\:temp{#2}\ifx\:temp\empty\else #2\ \ \fi\fi #3\HCode{</span>}}
>>>
\<revtex sections\><<<
\def\tocpart#1#2#3{\par
- \HCode{<span class="partToc" \a:LRdir>}\if !#1!\else #1~~\fi #2\HCode{</span>}\par}%
+ \HCode{<span class="partToc" \a:LRdir>}\if !#1!\else #1\ \ \fi #2\HCode{</span>}\par}%
\def\toclikepart#1#2#3{\\HCode{<span class="parlikepartToc" \a:LRdir>}#2\HCode{</span>}\par}%
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
{line-height: 200\%; font-weight:bold; font-size:110\%;}}
@@ -1991,19 +1991,19 @@
{}
{\HCode{</span><br />}}
\ConfigureToc{subsection}
- {\HCode{<span class="subsectionToc" \a:LRdir>}~~\toc:Mark{subsection}}
+ {\HCode{<span class="subsectionToc" \a:LRdir>}\ \ \toc:Mark{subsection}}
{\End:Mark}
{}
{\HCode{</span><br />}}
\ConfigureToc{subsubsection}
{\HCode{<span
- class="subsubsectionToc" \a:LRdir>}~~~~\toc:Mark{subsubsection}}
+ class="subsubsectionToc" \a:LRdir>}\ \ \ \ \toc:Mark{subsubsection}}
{\End:Mark}
{}
{\HCode{</span><br />}}
\def\toc:Mark#1#2\End:Mark{\if !#2!\else
\expandafter\ifx \csname #1name\endcsname\relax\else
- \csname #1name\endcsname~\fi #2.~~\fi}
+ \csname #1name\endcsname\ \fi #2.\ \ \fi}
>>>
@@ -2015,19 +2015,19 @@
{\HCode{</span><br />}}
\ConfigureToc{chapter}
{\HCode{<span class="chapterToc" \a:LRdir>}%
- \ifx \chaptername\:UnDef\else \chaptername~\fi}
- {.~~}
+ \ifx \chaptername\:UnDef\else \chaptername\ \fi}
+ {.\ \ }
{}
{\HCode{</span><br />}}
\ConfigureToc{likechapter}
{\HCode{<span class="likechapterToc" \a:LRdir>}}
- {~~}
+ {\ \ }
{}
{\HCode{</span><br />}}
\ConfigureToc{appendix}
{\HCode{<span class="appendixToc" \a:LRdir>}%
- \ifx \appendixname\:UnDef\else \appendixname~\fi}
- {.~~}
+ \ifx \appendixname\:UnDef\else \appendixname\ \fi}
+ {.\ \ }
{}
{\HCode{</span><br />}}
>>>
@@ -2346,7 +2346,7 @@
|<config bib-p HtmlPar|>%
}
{\EndP}
- {\HCode{<span class="bibsp">}~~~\HCode{</span></span>}}
+ {\HCode{<span class="bibsp">}\ \ \ \HCode{</span></span>}}
>>>
@@ -3673,7 +3673,7 @@
\ConfigureToc{part}
{\toc:br
\HCode{<span class="partToc" \a:LRdir><span class="toc-mark">}}
- {\HCode{</span>}~}
+ {\HCode{</span>}\ }
{}
{\HCode{</span>}}
>>>
@@ -3685,7 +3685,7 @@
\ConfigureToc{chapter}
{\toc:br
\HCode{<span class="chapterToc" \a:LRdir><span class="toc-mark">}}
- {\HCode{</span>}~}
+ {\HCode{</span>}\ }
{}
{\HCode{</span>}}
>>>
@@ -3695,7 +3695,7 @@
\ConfigureToc{section}
{\toc:br
\HCode{<span class="sectionToc" \a:LRdir><span class="toc-mark">}}
- {\HCode{</span>}~}
+ {\HCode{</span>}\ }
{}
{\HCode{</span>}}
>>>
@@ -3705,7 +3705,7 @@
\ConfigureToc{subsection}
{\toc:br
\HCode{<span class="subsectionToc" \a:LRdir><span class="toc-mark">}}
- {\HCode{</span>}~}
+ {\HCode{</span>}\ }
{}
{\HCode{</span>}}
>>>
@@ -3715,7 +3715,7 @@
\ConfigureToc{subsubsection}
{\toc:br
\HCode{<span class="subsubsectionToc" \a:LRdir><span class="toc-mark">}}
- {\HCode{</span>}~}
+ {\HCode{</span>}\ }
{}
{\HCode{</span>}}
>>>
@@ -3725,7 +3725,7 @@
\ConfigureToc{subsubsubsection}
{\toc:br
\HCode{<span class="subsubsubsectionToc" \a:LRdir><span class="toc-mark">}}
- {\HCode{</span>}~}
+ {\HCode{</span>}\ }
{}
{\HCode{</span>}}
>>>
@@ -3735,7 +3735,7 @@
\ConfigureToc{subsubsubsubsection}
{\toc:br
\HCode{<span class="subsubsubsubsectionToc" \a:LRdir><span class="toc-mark">}}
- {\HCode{</span>}~}
+ {\HCode{</span>}\ }
{}
{\HCode{</span>}}
>>>
@@ -10343,7 +10343,7 @@
|<section TITLE+|>
\Configure{section}{}{}
{\ifvmode \IgnorePar\fi \EndP\IgnorePar
- \HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark~~\HtmlParOff}
+ \HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark\ \ \HtmlParOff}
{\HCode{</h3>}\HtmlParOn \IgnoreIndent \ShowPar \par}
\Configure{likesection}{}{}
{\ifvmode \IgnorePar\fi
@@ -10360,7 +10360,7 @@
\ConfigureMark{appendix}{\HCode{<span class="titlemark">}%
\thechapter\HCode{</span>}}
\Configure{appendix}{}{}
- {\IgnorePar\EndP\HCode{<h2 class="appendixHead"\a:LRdir>}\TitleMark{}.~~}
+ {\IgnorePar\EndP\HCode{<h2 class="appendixHead"\a:LRdir>}\TitleMark{}.\ \ }
{\HCode{</h2>}\IgnoreIndent\par}
\Configure{appendixTITLE+}{\thechapter\space#1}
\Configure{likechapter}{}{}
@@ -10375,7 +10375,7 @@
\<configure html4 scrbook\><<<
\ConfigureMark{chapter}
{\if at mainmatter
- \HCode{<span class="titlemark">}\thechapter\HCode{</span>}~~\fi}
+ \HCode{<span class="titlemark">}\thechapter\HCode{</span>}\ \ \fi}
\Configure{chapter}{}{}
{\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}\TitleMark{}}
{\HCode{</h2>}\IgnoreIndent\par}
@@ -10385,7 +10385,7 @@
\<configure html4 scrreprt\><<<
\ConfigureMark{chapter}
- {\HCode{<span class="titlemark">}\thechapter\HCode{</span>}~~}
+ {\HCode{<span class="titlemark">}\thechapter\HCode{</span>}\ \ }
\Configure{chapter}{}{}
{\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}\TitleMark{}}
{\HCode{</h2>}\IgnoreIndent\par}
More information about the tex4ht-commits
mailing list.