PierreJ wrote:Thank you very much for your explanation! I've corrected my post.
The problem with changing \righthyphenmin and \lefthyphenmin is that I then get faulty hyphenation cases (for instance, in French, it's forbidden to have "chan-gent").
babel
sets
\lefthyphenmin
to 2 and
\righthyphenmin
to 3 for
french
which AFAIK is correct for French (if it isn't, you should make a bug report). But if only some words are faulty hyphenated, you should correct these words, e.g., using
\hyphenation{changent}
in your document preamble. Global settings of
\lefthyphenmin
and
\righthyphenmin
to large values make hyphenation and therefore paragraph breaking difficult to TeX. So it is not recommended to do so to solve hyphenations problems of some words only.
BTW: AFAIK
Code: Select all
% Typesetter: XeLaTeX
\documentclass[a4paper,twoside,openright,french]{memoir}
\usepackage[fontsize=13pt]{scrextend}
\usepackage[french]{babel}
\usepackage{fontspec}
\usepackage{ebgaramond}
\begin{document}
Certains pubs anglais ont donné l'impression d'obtempérer en affichant une pancarte sur leur porte avec les mots \textit{Black Troops Only} (réservé aux militaires noirs) — sauf qu'à l'intérieur il y avait les clients habituels, si bien que les soldats noirs qui entraient se retrouvaient dans un pub normal et fraternisaient avec les locaux blancs, y compris des jeunes femmes ravies de découvrir les danses des États-Unis, particulièrement le jitterbug. Cette façon ironique d'implanter la ségrégation enrageait les racistes américains, ce qui réjouissait d'autant plus les patrons des pubs concernés.
\end{document}
used only allowed hyphenations. So there is also no need to change the font. However, of you like Linux Libertine more than Garamond, just use it. (But don't expect, that this solves all hyphenation problems for every text and for all time).
Moreover, if you are using the current French hyphenation pattern,
changent
will not be hyphenated with the default settings:
Code: Select all
%!TeX log
\documentclass[a4paper,twoside,openright,french]{memoir}
\usepackage[fontsize=13pt]{scrextend}
\usepackage[french]{babel}
\usepackage{fontspec}
\usepackage{ebgaramond}
\begin{document}
\showhyphens{changent}
\end{document}
shows
Code: Select all
Underfull \hbox (badness 10000) in paragraph at lines 8--8
\TU/lmr/m/n/13 changent
in the log-file. So there are not any hyphenation points in «changent». If you get another result, you should check, if the hyphenation patterns for french are installed and activated and if your TeX installation is up-to-date.