[XeTeX] XeTeX Logo Problems and Other Questions

Jonathan Kew jonathan_kew at sil.org
Sun Jul 9 14:43:30 CEST 2006


On 9 Jul 2006, at 11:50 am, jeffdod at netzero.net wrote:

>
> However...I have not tried the hyphenation in XeTeX. I have placed a
> \hyphenpenalty=10000 before the main (Greek) body of the text, but I
> noticed that even if I remove this, the text remains unhyphenated! In
> other words, I am not doing anything to turn off hyphenation, yet both
> my English and Greek text shows up unhyphenated.
>
> How might I turn hyphenation on in XeTeX for English and Greek anyhow?

You won't get any hyphenation of (Unicode-encoded) Greek unless you  
take steps to load and activate Unicode Greek patterns; there aren't  
any present by default. So I'd expect the Greek to be unhyphenated.

It should hyphenate English when necessary, as the English patterns  
are the default in (La)TeX; but remember that TeX first tries to set  
each paragraph with no hyphenation, and only tries the current  
patterns if this can't be done acceptably. So in many cases,  
especially if you're not using narrow columns, it may be quite rare  
to actually see a hyphenated word.

If you want to see a lot more hyphenation (of English, or using  
whatever other patterns you may load and activate), you can try  
preceding your text with something like:

  \pretolerance = -1 % don't try to set para without hyphenation
  \hyphenpenalty = -100 % prefer line-breaks at hyphens

and you should see a lot more lines being hyphenated. (This can be  
interesting as a test; don't do it for the final product, though!)

JK



More information about the XeTeX mailing list