# [XeTeX] Space characters and whitespace

enrico.gregorio at univr.it enrico.gregorio at univr.it
Thu Mar 3 16:58:19 CET 2011

Ulrike Fischer wrote:

> Am Wed, 02 Mar 2011 22:07:04 +0100 schrieb
> enrico.gregorio at univr.it:
>
> > In (Xe)LaTeX, \, inserts a kern and TeX won't break a line at a kern unless
> > it's followed by glue (a normal space, usually). Thus you can get what you
> > want by
> >
> > \newunicodechar{<U+2009>}{\,\hspace{0pt}}
> > \newunicodechar{<U+202F>}{\,}
> >
> > (with the real characters, of course).
>
> Hm. It may be the main purpose of \newunicodechar to be able to use
> "the real char" in its first argument. But wouldn't this work too
> (and remove the burden to have to find out how to input the real chars:
>
> \newunicodechar{^^^^2009}{\,\hspace{0pt}}
> \newunicodechar{^^^^202f}{\,}

Of course it works.

The main purpose of the package is indeed to use the "real char". Actually
those who don't know how to input it will never use the packages to define
an action for that character, will they? ;-)

Ciao
Enrico

--
Enrico Gregorio          + Dipartimento di Informatica          + Tel: +39 045 8027937
Enrico.Gregorio at univr.it + Università degli Studi di Verona     +
(gregorio at math.unipd.it) + Strada le Grazie 15 / I-37134 Verona + Fax: +39 045 8027928