[XeTeX] Strange hyphenation with polyglossia in French

Cyril Niklaus cyril.niklaus at gmail.com
Sat Oct 16 11:47:33 CEST 2010


Hello all,
I'd never had (or noticed) that problem before, so I don't know if it's a new thing or something I do that does not comply. The problem is simple, hyphenation occurs between an apostrophe and the word it follows : l'information in my case becomes l'-information.
I'm using the latest updated 2010 MacTeX.
I didn't find anything helpful in my searches online, so, since I cannot change the text (it's an article from Le Monde)  what can I do?

In making the small version I include here, I also noticed something surprising: the hyphenation changed depending on the length of the text I cut *after*. Leaving one sentence or two did not give the same results. Cutting immediately after the sentence gave the correct l'in-formation and  l'infor-mation was what I got when cutting before De toute part.

I also noticed that including or not
\defaultfontfeatures{Mapping=tex-text}
changes things quite a bit while \frenchspacing did nothing obvious. I thought it would deal with spaces around the guillemets etc. but no. I'm wondering why I bothered including it. Is that a benefit from polyglossia?

--------
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{french}

\usepackage[margin=2.5cm, includeheadfoot]{geometry} 
\geometry{a4paper, centering}

\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Numbers=OldStyle]{Warnock Pro}
\lccode"2019="0027

%\frenchspacing

\setlength{\parindent}{0cm}
\setlength{\parskip}{\medskipamount} 

%\title{La méthode Sarkozy dans l'impasse}
%\author{Denis Muzet}
\begin{document}


Jamais le concept de « mal-info » n'a été aussi adapté pour décrire la transformation de notre rapport à l'information. Avec la crise, le « bruit de fond » de l'information a monté, au point que notre écosystème médiatique s'en est trouvé altéré. Car il s'agit aussi d'une crise de l'information. Certes toute crise voit la circulation de celle-ci s'accélérer, mais aujourd'hui l'horizon que doit surveiller l'honnête homme qui cherche à s'informer est devenu mondial. De toute part, il est bombardé de nouvelles plus brèves et moins compréhensibles les unes que les autres. Son entendement est submergé.

\end{document}
--------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hyphenation.tiff
Type: image/tiff
Size: 25136 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20101016/d78eb255/attachment-0001.tiff>
-------------- next part --------------


Any pointers welcome.
Cyril


More information about the XeTeX mailing list