## Wednesday, February 07, 2007

### Fi, O Fi

When I cut-and-paste from PDF into Emacs, ligatures come out weird. "speciﬁc" comes out . (Note that I had to make that an image, because pasting the same text into a Firefox window renders the ligature correctly. The gobbledygook is a control code that is properly understood by the standard GUI fonts. Note also that the cut-and-paste version is a ligature (ﬁ), but the version I type in directly is not (fi).) Of course, there's ligatures besides "fi", and hyphenation is always a problem. Is there a magic Emacs incantation to make this work correctly?