I have a problem with LuaLaTeX (from TL 2016: Version 0.95.0 (TeX Live 2016) (format=lualatex 2017.1.29)
) making inappropriate ligatures. Here goes the MWE:
\documentclass[a4paper, 12pt]{article}
\def\czechSingleQuotes #1{‚#1‘} % UTF-8 chars for single quotes
\begin{document}
\czechSingleQuotes{Ahoj!}
\czechSingleQuotes{Nazdar?}
‚Hi!‘
\end{document}
The result looks like this:
I hope LuaTeX guys are reading it here and will do something about it. However, would anyone have any suggestion as how to work around this until it gets fixed? Usual (in different situations) tricks do not help, e.g. \def\czechSingleQuotes #1{‚{#1}{}\relax ‘}
produces the same result.
Thx in advance.
Later EDIT:
This has been fixed in the newest luaotfload
(v2.8-fix-1) however the fix seems to be going a little too far — now even the standard ligatures to create reverted Spanish exclamation or question marks do not work any more, so that this:
\documentclass[a4paper, 12pt]{article}
\begin{document}
Hi?` % standard back apostrophe, no UTF-8
Hi!` % ditto
\end{document}
creates different outputs in LuaTeX (standard q./ex. marks followed by a back quote) and in XeTeX or pdfTeX (Spanish reverted q./ex. marks).
\starttext ‚Hi!‘ \stoptext
{}
. Insert a zero-width\kern
-- it's never discarded.