* Verbatim typing and compound breakpoints
@ 2020-09-01 8:50 Christoph Reller
2020-09-01 9:10 ` Christoph Reller
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Reller @ 2020-09-01 8:50 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1141 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1450 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Verbatim typing and compound breakpoints
2020-09-01 8:50 Verbatim typing and compound breakpoints Christoph Reller
@ 2020-09-01 9:10 ` Christoph Reller
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Reller @ 2020-09-01 9:10 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 665 bytes --]
On Tue, Sep 1, 2020 at 10:50 AM Christoph Reller <christoph.reller@gmail.com>
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
[-- Attachment #1.2: Type: text/html, Size: 1131 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-01 9:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01 8:50 Verbatim typing and compound breakpoints Christoph Reller
2020-09-01 9:10 ` Christoph Reller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).