[tex4ht] thin space to non-breaking space?

Sat Oct 2 16:50:59 CEST 2010

On 02-Oct-2010, at 6:15 PM, Michael A. Allen wrote:

> Is it possible to configure tex4ht to convert the thin space \,
> into a non-breaking space? At the moment \, is converted into an
> ordinary space. [There is actually a thin space character in html but
> it seems many browsers don't recognize it, so converting to some sort
> of ordinary space seems like the best option for the time
> being. Ordinary TeX treats \, as non-breakable.]

non-breaking space:

\@ifundefined{HCode}{}{\def\thinspace{\HCode{\string&\#x00A0;}}}

thinspace:

\@ifundefined{HCode}{}{\def\thinspace{\HCode{\string&\#x2009;}}}

--