7

I have a problem with ligatures in LuaLaTeX when using the font Adobe Minion Pro. The fi ligature displays fine but is neither searchable nor copiable. If I copy it, I get some Asian character.

Minimal example:

\documentclass[]{scrartcl}

\usepackage{fontspec}
\usepackage{xunicode}

\setmainfont[]{Minion Pro}

\begin{document}
fi ff tt
\end{document}

Any idea on how to fix this?

Edit: This seems to be a persistent Windows problem. Fonts seems to get mixed-up for an unkown reason and it seems that this is not only happening on my machine. See my last comments to egreg's answer.

Edit2: No Windows problem as it also happens on Kubuntu 13.10. This problem might be reproducible with the 4 Minion Pro OTFs from the Adobe Reader package (Linux .deb version but other versions should be concerned too) and using TeXLive 2013 from DVD (not updated). Can anybody try this out? I suspect it's a TeX bug, possibly something with LuaTeX.

Edit3: It's the TeXLive 2013 version from DVD without update. I updated it and the problem is gone.

9
  • Are you using an OpenType font? I cannot reproduce this problem on my system. Feb 21, 2014 at 23:40
  • Yes it's an OpenType font. It reads version 2.108. I'm using TeXLive 2013 and TeXstudio on a Windows 7 computer. The problem occurs when I'm copying from Adobe Acrobat 10. These are the symbols I get by copying: "昀ff tt" Feb 21, 2014 at 23:45
  • If I copy it including the formating, I get: "昀i ff tt" Feb 21, 2014 at 23:51
  • If you use the polyglossia-package (recommendable), there are different language-specific Options. If those are switched on, "| disables the ligature at this Position. f"|i f"|f. But I dont have the problem: this is the copy-paste from my PDF: fiel auffahrt ...
    – Christof
    Feb 21, 2014 at 23:52
  • From a Windows 7 PC: SumatraPDF: fi ff tt; Adobe Reader 10.1.9: fi ff tt; Adobe Acrobat Pro 10.1.4: fi ff tt. Feb 21, 2014 at 23:53

2 Answers 2

7

This is what I get when compiling your example (by the way, loading xunicode is not required), copying from the PDF viewer and pasting here

fi ff tt

The Minion Pro font I'm using is the one in Adobe Reader.

Here's a picture where the characters have been selected:

enter image description here

The viewer is Skim, but also Adobe Reader gives the expected result.

Here's an example of search:

enter image description here

So, no problem.

Here's the font version information:

Version 2.110;PS 2.000;hotconv 1.0.68;makeotf.lib2.5.35818

11
  • @Christof The problem is not in disabling ligatures.
    – egreg
    Feb 21, 2014 at 23:52
  • Indeed, I would like to retain the ligatures while being able to search and copy them. Feb 21, 2014 at 23:53
  • I know, but just in case ... BTW, did you try another font? Edit: Seems a Problem with Minion Pro. SumatraPDF: ?el auffahrt Acrobat XI: 􀄕el auffahrt. fi doesnt work, ff does (Windows 8).
    – Christof
    Feb 22, 2014 at 0:01
  • I tried Arno Pro (also with ligatures) and it copies fine. So it's specific Minion Pro. "Version 2.110;PS 2.000;hotconv 1.0.68;makeotf.lib2.5.35818" is a newer version. Where is this from? Some bundle? Feb 22, 2014 at 0:07
  • 1
    Well, seems I'm not the only one with this problem. Look at the manual for selnolig: ctan.math.utah.edu/ctan/tex-archive/macros/luatex/latex/… The abstract reads "Other f-ligatures, such as fb, fh, fj and fk, are suppressed globally", copy-paste: "Other f-ligatures, such as 昀, 昀, fj and fk, are suppressed globally" Feb 23, 2014 at 15:55
1

This is some kind of bug. It's not the OS or the font version. It's the TeXLive 2013 version from DVD without update. I updated it and the problem is gone. The bug also showed up in MacTeX 2013, see Mico's comment on egreg's answer.

1
  • It seems to me that the OP is saying that this is the answer to their question: they upgraded TeXLive and the problem disappeared.
    – user30471
    Aug 19, 2015 at 11:34

Not the answer you're looking for? Browse other questions tagged .