On Sat, 7 Nov 2020 at 23:10, luigi scarso <[email protected]> wrote:
> > > On Sat, Nov 7, 2020 at 7:40 PM Robert Alessi <[email protected]> > wrote: > >> Dear all, >> >> I have no idea why the following all of a sudden fails to compile with >> lualatex (I run an up-to-date texlive 2020): >> >> --------------------snip-------------------- >> \documentclass{article} >> >> \usepackage{minted} >> >> \begin{document} >> >> \begin{minted}{latex} >> a-' >> \end{minted} >> >> \end{document} >> --------------------snip-------------------- >> >> Remarks: >> -------- >> >> 1. The error message I get: >> (./_minted-test/C1B3C74AA35F87A14838FF588F40D6B6715769D21B52E45A >> A7CE8C545C6279BA.pygtexlualatex: >> ../../../texk/web2c/luatexdir/lang/texlang.c:986: hnj_hyphenation: >> Assertion `(((varmem[(wordstart)].hh.u.B1) & (1 << 0)) && >> !((varmem[(wordstart)].hh.u.B1) & (1 << 1) ) && >> !((varmem[(wordstart)].hh.u.B1) & (1 << 2) ))' failed. >> >> 2. If I remove the straight single quotation mark so as to write a- >> instead of a-' it passes. >> >> 3. xelatex and pdflatex work on this file. >> >> 4. I tried lualatex-dev --shell-escape but no avail. >> >> Any ideas would be much appreciated! >> >> Best, >> >> Robert >> >> > It's the same problem as in > Assertion from texlang.c with reproducible example > <https://tug.org/pipermail/luatex/2020-November/007424.html> > > ( the hyphenation expects a simple word, but > the word doesn't start with a character.) > For the moment I will make a better error message. > > > -- > luigi > ah so a workaround for the OP would be to hide the quote in a box so hyphenation is back in more normal territory \documentclass{article} \usepackage{minted} \begingroup \makeatletter \catcode`\'=\active \gdef\minted@patch@PYGZsq@i{\gdef\PYGZsq{\mbox{'}}} \endgroup \begin{document} \begin{minted}{latex} a-' \end{minted} \end{document} David
