I was recently gifted the Zapfino otf character, and I'm using it to typeset an "handwritten" letter inside of a book. I like the way the discretionary ligature are typeset, but the Co ligature is kind of a pain since the o is placed inside the C, which is not suitable for my composition.
Since this is confined in an environment inside of the book, I'd like to know whether it is possible to disable the ligature
- per font
- per environment
I'm using LuaLaTeX with TeX Live 2016.
EDIT this has been closed by comments.
That is:
one can use the Lua-specific features described in this post
One can resort to use the
selnoligpackage, removing the ligature throughout the document via\nolig{Co}{C|o}. While this is more invasive and not font-based, it's quicker for some strange ligature such as mine.
I found that both solutions were adequate.
selnoligpackage and issuing the instruction\nolig{Co}{C|o}? – Mico Jul 13 '16 at 22:29microtypepackage. As far as I know, ligatures can only be disabled globally. Since you are using LuaLaTeX, there is also theselnoligpackage available, but I don’t think it exactly addresses your problem. Edit: @Mico: Because the disablement is not context-based, in this case. – GuM Jul 13 '16 at 22:29selnoligbut I did not know that ligatures cannot be disabled locally. I will look into the resources you suggested. Thanks – Moriambar Jul 13 '16 at 22:30selnoligis to perform selective, context-based ligature suppression. However, the package's\noligmacro can also be used to suppress selected ligatures globally. – Mico Jul 13 '16 at 22:34\tagcodeprimitive. (2) That primitive does not permit to disable ligatures only inside a group, but (3) it does permit disablement on a per-font basis. – GuM Jul 13 '16 at 22:42tagcodeor theselnoligpackage. Can you please elaborate in a more complete answer? Thanks – Moriambar Jul 13 '16 at 23:26selnolig, and also I think I'm abusing the package since, as I understand it, it was created with another purpose in mind. Nevertheless for this special case I think it works, so thanks! – Moriambar Jul 15 '16 at 06:34selnoligis working for you. :-) Don't worry one bit about possibly abusing the package because you're using it to suppress a ligature globally rather than for certain contexts only. Indeed, the package itself suppresses ligatures such asfb,fhandfkglobally if either thengermanorenglishlanguage options were set. Incidentally, I can see no downside to suppressing theColigature globally rather than just forZapfino: If this ligature is not desirable withZapfino, it's probably not desirable with other fonts either, right? – Mico Jul 15 '16 at 12:52