I know the conversion of --- to an em-dash is an on-going problem with lualatex. But I don't understand why using Greek in one font should (afterwards) break conversion of 3 hyphens to an em-dash in another.
Here is my code:
%!TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage{fontspec}
\usepackage{ednotes}
\setmainfont[Ligatures=TeX]{Linux Libertine O}
\setsansfont[Ligatures=TeX,Scale=MatchLowercase]{TeX Gyre Heros}
\setmonofont[Scale=MatchLowercase]{Inconsolata}
\newfontfamily\myGk[Script=Greek,Scale=MatchUppercase,Ligatures=TeX]{Cambria}
%\newfontfamily\myGk[Script=Greek,Scale=MatchUppercase,Ligatures=TeX]{Linux Libertine O}
\newcommand\textgreek[1]{\myGk\emph{#1}}
\begin{document}
\fontsize{11.5}{13}\selectfont
This is a test---to see if dashes are being converted to emdashes.
\textgreek{Ἐν ἀρχῇ ἦν ὁ λόγος}
This is a test---to see if dashes are being converted to emdashes.
\end{document}
For me, if I run the above code as is, the second "This is a test..." comes out with dashes instead of an em-dash. If I use the Linux Libertine O font for the Greek, I don't have the problem.
Can anyone tell me how I can use the Cambria Greek (which I prefer) without breaking em-dashes in the main font? I am using TeXLive 2012 with Mac TeXShop.
---correctly is due to a bug in luaotfload. – topskip Aug 21 '12 at 20:34