* linebreak error: no leftinit or rightinit or leftfill or rigthfill expected
@ 2022-07-15 13:06 黄复雄 via ntg-context
2022-07-15 15:12 ` Hans Hagen via ntg-context
2022-07-15 15:44 ` Hans Hagen via ntg-context
0 siblings, 2 replies; 5+ messages in thread
From: 黄复雄 via ntg-context @ 2022-07-15 13:06 UTC (permalink / raw)
To: ntg-context; +Cc: 黄复雄
[-- Attachment #1.1: Type: text/plain, Size: 1435 bytes --]
I mistakenly sent the following letter to luatex@tug.org yesterday. I hope
it won't cause anyone any trouble. Thanks to luigi for pointing out the
error.
-------------------------------------------------
Hi all,
I just updated my ConTeXt to
system > ConTeXt ver: 2022.07.06 21:42 LMTX fmt: 2022.7.12 int:
english/english
yesterday and got a error message in using tex.linebreak(head) as follow:
luatex warning > linebreak: no [ leftinit | rightinit | leftfill |
rigthfill] expected
I can't get any information about them. The head and the list going to
tex.linebreak() like:
<node : nil <= 2371 => 2873 : par vmodepar>
<node : 2371 <= 2873 => 2879 : glue indentskip>
<node : 2873 <= 2879 => 2891 : glyph unset>
<node : 2879 <= 2891 => 2897 : glue userskip>
...
<node : 636 <= 3077 => 639 : glyph unset>
<node : 3077 <= 639 => 3089 : kern userkern>
<node : 639 <= 3089 => 2334 : glue userskip>
<node : 3089 <= 2334 => 3095 : rule normal>
<node : 2334 <= 3095 => 3101 : glue spaceskip>
<node : 3095 <= 3101 => 642 : glue spaceskip>
<node : 3101 <= 642 => 3107 : penalty userpenalty>
<node : 642 <= 3107 => nil : glue userskip>
My question is:
Which of them is necessary, and
How can I node.new() one and
Where should it go in the list?
Any hint would be appreciated,
Huang Fusyong(黄复雄)
[-- Attachment #1.2: Type: text/html, Size: 2150 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linebreak error: no leftinit or rightinit or leftfill or rigthfill expected
2022-07-15 13:06 linebreak error: no leftinit or rightinit or leftfill or rigthfill expected 黄复雄 via ntg-context
@ 2022-07-15 15:12 ` Hans Hagen via ntg-context
2022-07-15 15:44 ` Hans Hagen via ntg-context
1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen via ntg-context @ 2022-07-15 15:12 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
On 7/15/2022 3:06 PM, 黄复雄 via ntg-context wrote:
> I mistakenly sent the following letter to luatex@tug.org
> <mailto:luatex@tug.org> yesterday. I hope it won't cause anyone any
> trouble. Thanks to luigi for pointing out the error.
> -------------------------------------------------
>
> Hi all,
> I just updated my ConTeXt to
>
> system > ConTeXt ver: 2022.07.06 21:42 LMTX fmt: 2022.7.12
> int: english/english
>
> yesterday and got a error message in using tex.linebreak(head) as follow:
>
> luatex warning > linebreak: no [ leftinit | rightinit | leftfill |
> rigthfill] expected
>
> I can't get any information about them. The head and the list going to
> tex.linebreak() like:
>
> <node : nil <= 2371 => 2873 : par vmodepar>
> <node : 2371 <= 2873 => 2879 : glue indentskip>
> <node : 2873 <= 2879 => 2891 : glyph unset>
> <node : 2879 <= 2891 => 2897 : glue userskip>
> ...
> <node : 636 <= 3077 => 639 : glyph unset>
> <node : 3077 <= 639 => 3089 : kern userkern>
> <node : 639 <= 3089 => 2334 : glue userskip>
> <node : 3089 <= 2334 => 3095 : rule normal>
> <node : 2334 <= 3095 => 3101 : glue spaceskip>
> <node : 3095 <= 3101 => 642 : glue spaceskip>
> <node : 3101 <= 642 => 3107 : penalty userpenalty>
> <node : 642 <= 3107 => nil : glue userskip>
>
>
> My question is:
> Which of them is necessary, and
> How can I node.new() one and
> Where should it go in the list?
>
> Any hint would be appreciated,
Where do you intercept the list?
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linebreak error: no leftinit or rightinit or leftfill or rigthfill expected
2022-07-15 13:06 linebreak error: no leftinit or rightinit or leftfill or rigthfill expected 黄复雄 via ntg-context
2022-07-15 15:12 ` Hans Hagen via ntg-context
@ 2022-07-15 15:44 ` Hans Hagen via ntg-context
2022-07-16 2:02 ` 黄复雄 via ntg-context
1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen via ntg-context @ 2022-07-15 15:44 UTC (permalink / raw)
To: 黄复雄 via ntg-context; +Cc: Hans Hagen
On 7/15/2022 3:06 PM, 黄复雄 via ntg-context wrote:
> I mistakenly sent the following letter to luatex@tug.org
> <mailto:luatex@tug.org> yesterday. I hope it won't cause anyone any
> trouble. Thanks to luigi for pointing out the error.
> -------------------------------------------------
>
> Hi all,
> I just updated my ConTeXt to
>
> system > ConTeXt ver: 2022.07.06 21:42 LMTX fmt: 2022.7.12
> int: english/english
>
> yesterday and got a error message in using tex.linebreak(head) as follow:
>
> luatex warning > linebreak: no [ leftinit | rightinit | leftfill |
> rigthfill] expected
>
> I can't get any information about them. The head and the list going to
> tex.linebreak() like:
the linbebreak routine expects:
> <node : nil <= 2371 => 2873 : par vmodepar>
> <node : 2371 <= 2873 => 2879 : glue indentskip>
<parinitleftskip>
<parinitrightskip>
> <node : 2873 <= 2879 => 2891 : glyph unset>
> <node : 2879 <= 2891 => 2897 : glue userskip>
> ...
> <node : 636 <= 3077 => 639 : glyph unset>
> <node : 3077 <= 639 => 3089 : kern userkern>
> <node : 639 <= 3089 => 2334 : glue userskip>
> <node : 3089 <= 2334 => 3095 : rule normal>
> <node : 2334 <= 3095 => 3101 : glue spaceskip>
> <node : 3095 <= 3101 => 642 : glue spaceskip>
> <node : 3101 <= 642 => 3107 : penalty userpenalty>
> <node : 642 <= 3107 => nil : glue userskip>
<infinite penalty>
<parfillleftskip>
<parfillrightskip>
> My question is:
> Which of them is necessary, and
> How can I node.new() one and
> Where should it go in the list?
the next upload will have a prepare helper
print("=====================================================")
local h = nodes.copylist(head)
tex.preparelinebreak(h)
local n = tex.linebreak(h)
nodes.flushlist(n)
print("=====================================================")
> Any hint would be appreciated,
the luametatex par builder is a bit nore advanced than the luatex one as
it offers more features for which it also needs s few more nodes in the
list; it could work without but then its also doesn't honor some
parameters which then would raise questions; so we're more picky instead
(the resulting line boxes are also somewhat different)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linebreak error: no leftinit or rightinit or leftfill or rigthfill expected
2022-07-15 15:44 ` Hans Hagen via ntg-context
@ 2022-07-16 2:02 ` 黄复雄 via ntg-context
2022-07-29 11:29 ` 黄复雄 via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: 黄复雄 via ntg-context @ 2022-07-16 2:02 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: 黄复雄
[-- Attachment #1.1: Type: text/plain, Size: 1070 bytes --]
Thanks, Hans
I modified my list to:
<node : nil <= 2371 => 2873 : par vmodepar>
<node : 2371 <= 2873 => 3113 : glue indentskip>
<node : 2873 <= 3113 => 3119 : glue parinitleftskip>
<node : 3113 <= 3119 => 2879 : glue parinitrightskip>
<node : 3119 <= 2879 => 2891 : glyph unset>
...
<node : 636 <= 3077 => 639 : glyph unset>
<node : 3077 <= 639 => 3089 : kern userkern>
<node : 639 <= 3089 => 2334 : glue userskip>
<node : 3089 <= 2334 => 3095 : rule normal>
<node : 2334 <= 3095 => 3101 : glue spaceskip>
<node : 3095 <= 3101 => 642 : glue spaceskip>
<node : 3101 <= 642 => 3107 : penalty userpenalty>
<node : 642 <= 3107 => 645 : glue userskip>
<node : 3107 <= 645 => 3125 : penalty userpenalty>
<node : 645 <= 3125 => 3131 : glue parfillleftskip>
<node : 3125 <= 3131 => nil : glue parfillskip>
but the error is the same, so I'll wait the tex.preparelinebreak(), and
observe it's work for more details.
Huang Fusyong(黄复雄)
[-- Attachment #1.2: Type: text/html, Size: 1427 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linebreak error: no leftinit or rightinit or leftfill or rigthfill expected
2022-07-16 2:02 ` 黄复雄 via ntg-context
@ 2022-07-29 11:29 ` 黄复雄 via ntg-context
0 siblings, 0 replies; 5+ messages in thread
From: 黄复雄 via ntg-context @ 2022-07-29 11:29 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: 黄复雄
[-- Attachment #1.1: Type: text/plain, Size: 1700 bytes --]
Thanks, Hans.
My module works again now, with the help of tex.preparelinebreak().
For potential readers:
tex.preparelinebreak(list) modifyed my list for tex.linebreak(list) to:
<par vmodepar> # by user in advance, necessary
<glue parinitleftskip>
<glue parinitrightskip>
<glue indentskip> # by user in advance, necessary
...
<penalty linepenalty> # The last glue here, in the end of the list, is
removed
<glue parfillleftskip>
<glue parfillskip> # as same as parfillrightskip
黄复雄 <aahuaang@gmail.com> 于2022年7月16日周六 10:02写道:
> Thanks, Hans
>
> I modified my list to:
>
> <node : nil <= 2371 => 2873 : par vmodepar>
> <node : 2371 <= 2873 => 3113 : glue indentskip>
> <node : 2873 <= 3113 => 3119 : glue parinitleftskip>
> <node : 3113 <= 3119 => 2879 : glue parinitrightskip>
> <node : 3119 <= 2879 => 2891 : glyph unset>
> ...
> <node : 636 <= 3077 => 639 : glyph unset>
> <node : 3077 <= 639 => 3089 : kern userkern>
> <node : 639 <= 3089 => 2334 : glue userskip>
> <node : 3089 <= 2334 => 3095 : rule normal>
> <node : 2334 <= 3095 => 3101 : glue spaceskip>
> <node : 3095 <= 3101 => 642 : glue spaceskip>
> <node : 3101 <= 642 => 3107 : penalty userpenalty>
> <node : 642 <= 3107 => 645 : glue userskip>
> <node : 3107 <= 645 => 3125 : penalty userpenalty>
> <node : 645 <= 3125 => 3131 : glue parfillleftskip>
> <node : 3125 <= 3131 => nil : glue parfillskip>
>
> but the error is the same, so I'll wait the tex.preparelinebreak(), and
> observe it's work for more details.
>
> Huang Fusyong(黄复雄)
>
[-- Attachment #1.2: Type: text/html, Size: 2418 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-07-29 11:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-15 13:06 linebreak error: no leftinit or rightinit or leftfill or rigthfill expected 黄复雄 via ntg-context
2022-07-15 15:12 ` Hans Hagen via ntg-context
2022-07-15 15:44 ` Hans Hagen via ntg-context
2022-07-16 2:02 ` 黄复雄 via ntg-context
2022-07-29 11:29 ` 黄复雄 via ntg-context
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).