summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-badhyph.html
blob: d2b9a1f7914c022f8cd354adc4b9817721e872be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<head>
<title>UK TeX FAQ -- question label badhyph</title>
</head><body>
<h3>Improper <code>\</code><code>hyphenation</code> will be flushed</h3>
<p>For example
<pre>
! Improper \hyphenation will be flushed.
\'#1-&gt;{
       \accent 19 #1}
&lt;*&gt; \hyphenation{Ji-m\'e
                        -nez}
</pre>
(in Plain TeX) or
<pre>
! Improper \hyphenation will be flushed.
\leavevmode -&gt;\unhbox 
                      \voidb@x 
&lt;*&gt; \hyphenation{Ji-m\'e
                        -nez}
</pre>
in LaTeX.
<p>As mentioned in <a href="FAQ-nohyph.html">"hyphenation failures"</a>,
words with accents in them may not be hyphenated.  As a result, any
such word is deemed improper in a <code>\</code><code>hyphenation</code> command.
<p>The solution is to use a font that contains the character in question,
and to express the <code>\</code><code>hyphenation</code> command in terms of that
character; this "hides" the accent from the hyphenation mechanisms.
LaTeX users can be achieved this by use of the <i>fontenc</i>
package (part of the LaTeX distribution).  If you select an 8-bit
font with the package, as in <code>\</code><code>usepackage[T1]{fontenc}</code>,
accented-letter commands such as the <code>\'</code><code>e</code> in
<code>\hyphenation{Ji-m\'</code><code>e-nez}</code> automatically become the single accented
character by the time the hyphenation gets to look at it.
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=badhyph">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=badhyph</a>
</body>