Re: [NTG-context] Verbatim typing and compound breakpoints

2020-09-01 Thread Christoph Reller
On Tue, Sep 1, 2020 at 10:50 AM Christoph Reller 
wrote:

> 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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Verbatim typing and compound breakpoints

2020-09-01 Thread Christoph Reller
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___