Oleg Paraschenko <
ole...@gmail.com> wrote:
> Hello,
>
> so far, I considered the unicode symbol \u00a0 should be converted to
> the tilde in TeX. But now I've got a counterexample:
>
> \documentclass{article}
> \begin{document}
> test:\newline
> aaa~aaa\newline
> ~~~~~aaa~~~aaa\newline
> \end{document}
>
> The use of "~" as non-collapsing white-space does work inside lines,
> but does not work at the beginning of lines. "~~~~~" is ignored. I
> think I know why (kern after break?), but it does not help me to
> realize:
>
> How to represent the symbol \u00a0 in TeX?
~ is not "non collapsing space": it does what is the duty of spaces
in TeX, that is, disappearing after a line break.
I would never use a sequence of spaces in that way, but rather
\hspace or \hspace* that allows for precise control.
If you really want to use U+00A0 in that way,
\usepackage{newunicodechar}
\newunicodechar{^^^^00a0}{\leavevmode~}
Ciao
Enrico