Bug#559887: texlive-xetex: xelatex inserts multiple spaces for non-break space in source
Package: texlive-xetex
Version: 2007.dfsg.2-8
Severity: normal
Hi,
I'm using xelatex to generate a beamer presentation, and I have a
problem with U+A0 non-break space.
The following example exhibit the problem:
----
\documentclass{article}
\usepackage[french]{babel}
\selectlanguage{francais}
\usepackage{fontspec}
\begin{document}
% unicode non-break space (U+A0) before colon
\par Trouc :
% latex non-break space before colon
\par Trouc~:
% standard space before colon
\par Trouc :
% unicode non-break space (U+A0) between two words
\par Trouc trouc
\end{document}
----
Second and third cases work fine, while first and last don't. It seems
that xetex tries to be smart, knows that in french there should be a
non-break space before the colon and adds it. The problem is that it
adds it *even if it doesn't need to* (first case) and suppress it if it
think there's no need (fourth case).
It's a bit like if it doesn't really recognized U+a0 as a space.
I didn't yet have a chance to try with texlive 2009 so maybe it's fixed.
As a side note, the problem disappears if I don't use the fontspec
package (but then I don't have the accents). So it might be related to
this package or the font selection, I don't really know.
Cheers,
--
Yves-Alexis
-- Package-specific info:
If you report an error when running one of the TeX-related binaries
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report. Don't forget to also include minimal examples of
other files that are needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!
If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at
http://www.latex-einfuehrung.de/mini-en.html (english)
or
http://www.latex-einfuehrung.de/mini.html (german)
##################################
minimal input file
##################################
other files
######################################
List of ls-R files
-rw-r--r-- 1 root root 1118 Dec 4 08:24 /var/lib/texmf/ls-R
-rw-r--r-- 1 root staff 79 Nov 15 11:10 /usr/local/share/texmf/ls-R
lrwxrwxrwx 1 root root 29 Jun 10 07:39 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 27 May 5 2009 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
lrwxrwxrwx 1 root root 27 May 5 2009 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
######################################
Config files
lrwxrwxrwx 1 root root 20 Jun 10 07:39 /usr/share/texmf/web2c/texmf.cnf -> /etc/texmf/texmf.cnf
-rw-r--r-- 1 root root 7474 Dec 4 08:23 /var/lib/texmf/web2c/fmtutil.cnf
-rw-r--r-- 1 root root 10527 Dec 4 08:23 /var/lib/texmf/web2c/updmap.cfg
-rw-r--r-- 1 root root 4805 Dec 4 08:23 /var/lib/texmf/tex/generic/config/language.dat
######################################
Files in /etc/texmf/web2c/
total 4
-rw-r--r-- 1 root root 283 Jun 20 2007 mktex.cnf
######################################
md5sums of texmf.d
42c20d7e8bd343542772b5a145bf8ad8 /etc/texmf/texmf.d/05TeXMF.cnf
5f7f6652cc8b8071c9e4ea6ba9e9f0a1 /etc/texmf/texmf.d/15Plain.cnf
f68e5add6afd6585b982f2f78e2e6a92 /etc/texmf/texmf.d/45TeXinputs.cnf
ea33127256c6a9f37145ae5b16fdb80c /etc/texmf/texmf.d/55Fonts.cnf
afccf1d3f87057411166a77c58e00bd1 /etc/texmf/texmf.d/65BibTeX.cnf
9da7c1c7b1eaf06f941af91f48a23068 /etc/texmf/texmf.d/75DviPS.cnf
7ae52efac46feb97010986e57877d12e /etc/texmf/texmf.d/80DVIPDFMx.cnf
37329819f1109e8a457e64b8b58fecdb /etc/texmf/texmf.d/85Misc.cnf
a8952d594677235951d447665ec46e9c /etc/texmf/texmf.d/90TeXDoc.cnf
30f4f13357c2761ed01a6a15f28725a5 /etc/texmf/texmf.d/95NonPath.cnf
1df66bc319cec731e202eaf39f5d85e1 /etc/texmf/texmf.d/96JadeTeX.cnf
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-rc8-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages texlive-xetex depends on:
ii dpkg 1.15.5.3 Debian package management system
ii dvipdfmx 1:20090708-1 A DVI to PDF translator with CJK s
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libfontconfig1 2.6.0-4 generic font configuration library
ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib
ii libgcc1 1:4.4.2-3 GCC support library
ii libkpathsea4 2007.dfsg.2-8 TeX Live: path search library for
ii libpng12-0 1.2.41-1 PNG library - runtime
ii libpoppler5 0.12.2-2 PDF rendering library
ii libstdc++6 4.4.2-3 The GNU Standard C++ Library v3
ii tex-common 1.20 common infrastructure for building
ii texlive-base 2007.dfsg.2-4 TeX Live: Essential programs and f
ii texlive-common 2007.dfsg.2-4 TeX Live: Base component
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
Versions of packages texlive-xetex recommends:
ii texlive-latex-base 2007.dfsg.2-4 TeX Live: Basic LaTeX packages
texlive-xetex suggests no packages.
Versions of packages tex-common depends on:
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii dpkg 1.15.5.3 Debian package management system
ii ucf 3.0025 Update Configuration File: preserv
Versions of packages texlive-xetex is related to:
pn tetex-base <none> (no description available)
pn tetex-bin <none> (no description available)
pn tetex-extra <none> (no description available)
ii tex-common 1.20 common infrastructure for building
-- debconf information:
tex-common/check_texmf_wrong:
tex-common/check_texmf_missing:
Reply to: