Verbatim typing and compound breakpoints
Dear List, I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE: \definetype[typeLUA][option=LUA] \setbreakpoints[compound] \starttext \typeLUA{function(argument)} \stoptext Sadly, it does not compile. The problem seems to be the simultaneous use of compound breakpoints and parenthesis. The error message is: callback error: ...est/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:509: bad argument #1 to 'prehyphenchar' (luatex.lang expected, got no value) stack traceback: [C]: in function 'lang.prehyphenchar' ...est/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:509: in field 'prehyphenchar' ...est/tex/texmf-context/tex/context/base/mkiv/typo-brk.lua:171: in local 'method' ...est/tex/texmf-context/tex/context/base/mkiv/typo-brk.lua:392: in upvalue 'typesetters_breakpoints_handler' [string "local tonut = nodes.tonut..."]:16: in function <[string "local tonut = nodes.tonut..."]:11> (...tail calls...) ...est/tex/texmf-context/tex/context/base/mkiv/node-pro.lua:88: in function <...est/tex/texmf-context/tex/context/base/mkiv/node-pro.lua:79> How can I prevent this? Is this a bug? Cheers, Christoph
On Tue, Sep 1, 2020 at 10:50 AM Christoph Reller
I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE:
\definetype[typeLUA][option=LUA] \setbreakpoints[compound] \starttext \typeLUA{function(argument)} \stoptext
Sadly, it does not compile.
I found that resetting the breakpoints within the typing command works: \setbreakpoints[compound] \definetype[typeLUA][option=LUA, command=\resetbreakpoints] \starttext \typeLUA{function(argument)}\par If compound break points are enabled then this text line is broken after the slash/next line. \stoptext Nonetheless: Is this bug? Cheers, Christoph
participants (1)
-
Christoph Reller