I’m typesetting some documents with XeLaTeX, using in the OS X distribution of Hoefler Text. Unfortunately, said font has had a nasty bug since forever: its default hyphen character is formatted for capital letters, not minuscule. The font has a proper hyphen glyph (glyph 16, accurately named “hyphen”).

It seems1 this glyph is not “linked”2 to any Unicode point, preventing me from using the suggested solution from Ornamental hyphenation character with Xe(La)TeX.

How can I use this glyph for hyphenation? Automatic, manual, or both?

  1. In Font Book.app, no Unicode point appears in the tooltip for this character.
  2. In case there was still any doubt, I have no idea of what a font file looks like.
  • Perhaps something at tex.stackexchange.com/questions/150186/… will help? It explains how to use alternate hyphenation characters in XeLaTeX. (It is much easier with regular LaTeX!) – cfr Apr 29 '14 at 2:02
  • 2
    Instead of using the anonymous glyph 16, you could choose the "minus" sign, which actually looks the same and has a proper Unicode point; so try HyphenChar="2212. – Robert Apr 29 '14 at 2:42
  • @Robert So simple… Now is there a way to substitute the ‘-’ characters I actually with glyph 16 or the minus sign, or should I just us a macro for these? – Édouard Apr 29 '14 at 9:38
  • It's probably easiest to use a macro as there is no way of substituting the hyphen character other than modifying the font itself (eg., with Apple Font Tools). – Robert Apr 30 '14 at 1:23
  • See tex.stackexchange.com/questions/154613/…. Here, one has the option of turning the hyphen active (and alternately restoring it to its original form, if active hyphen breaks things). In the cited answer, the active is used to invoke a \raisebox, though you could make it so the active hyphen invokes glyph 16. – Steven B. Segletes May 2 '14 at 2:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.