ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "黄复雄 via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: 黄复雄 <aahuaang@gmail.com>
Subject: Re: linebreak error: no leftinit or rightinit or leftfill or rigthfill expected
Date: Fri, 29 Jul 2022 19:29:01 +0800	[thread overview]
Message-ID: <CAHN0TNguHRCOnXk6Gn8kMvjifF29H3dESfuhvW0S2kZ4pVJViw@mail.gmail.com> (raw)
In-Reply-To: <CAHN0TNhfM0=hB6q9p_Lm_4ucNQPEs7mfMpCeXFa9TeCMmckYgA@mail.gmail.com>


[-- 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
___________________________________________________________________________________

      reply	other threads:[~2022-07-29 11:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2022-07-16  2:02   ` 黄复雄 via ntg-context
2022-07-29 11:29     ` 黄复雄 via ntg-context [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHN0TNguHRCOnXk6Gn8kMvjifF29H3dESfuhvW0S2kZ4pVJViw@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=aahuaang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).