uliska / lilyglyphs

Make LilyPond's notational elements available in Lua- and XeLaTeX
30 stars 13 forks source link

Conflict with csquotes active quotes #94

Closed marczellm closed 7 years ago

marczellm commented 7 years ago

I use LuaTeX 1.0.4 on MiKTeX on Windows 10 x64, and the CTAN version of lilyglyphs.

When I compile

\documentclass{article}
\usepackage{fontspec, csquotes, lilyglyphs}
\MakeOuterQuote{"}
\EnableQuotes
\begin{document}
\wholeNote
\end{document}

I get an error saying

! Missing number, treated as zero.
<to be read again>
\begingroup
l.9 \end
      {document}
uliska commented 7 years ago

Thank you for the report, I hadn't run into this so far.

To start pinning it down:

Obviously the issue is when loading a glyph by its name. I suspect this code in core/genericAccess.inp

\ifluatex
% ...
\def\lilyGetGlyph#1{\directlua{documentdata.fontchar "#1"}}
\fi

to be the culprit but currently don't have a clue how to fix the issue. @davebellows do you have an idea?

uliska commented 7 years ago

https://tex.stackexchange.com/questions/367917/csquotes-conflicts-with-quotation-marks-in-lua-code

uliska commented 7 years ago

So the bug is fixed, but I can't tell for sure when it will be in the CTAN version (and when it will be available in TeXLive etc.