I've spent most of my day trying to migrate a project from pdftex tolualatex. The experience has been mostly positive but there are a few gotchas I can't make heads or tails of.
Most recently I've just noticed that the standard texish ligatures for endash and emdash (i.e -- is typeset as – and --- becomes —) have gone A.W.O.L on me when located in small caps formatted references. This is unfortunate as I use endash in Bible verse references that are typeset in the margins using small-caps.
I have reviewed the info in How to enable ligatures for emdash/endash in LuaTeX ? but this seems to be a different issue.
Here is a MWE showing the issue (compile with lualatex):
\documentclass{scrartcl}
\usepackage{luatextra}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Linux Libertine}
\begin{document}
Test -- endash and --- emdash
{\scshape Test -- endash and --- emdash}
\end{document}
Which for me produces:
What is the culprit here and how do I fix it?


luaotfload– egreg May 10 '14 at 23:08libertinedoes not work any magic although it does defineendashetc. which seemed possibly promising. – cfr May 10 '14 at 23:36\setmainfont{LinLibertine_R}works but shows--as you report. However if you use{\scshape Test – endash and — emdash}` with the characters directly then it works. – David Carlisle May 11 '14 at 00:34\inputfrom and they need to continue working for some folks still compiling with non UTF8 savvy LaTeX engines so I cannot just replace them all. I need a solution that knows what to do with--. – Caleb May 11 '14 at 06:15luaotfload, dated 2014/05/18, and the bug's still there. – Mico Jun 02 '14 at 20:58