From: Patrick Gundlach <patrick@gundla.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: post_linebreak_filter in context
Date: Fri, 25 Feb 2011 16:14:52 +0100 [thread overview]
Message-ID: <3F7A8ABC-A6EE-4CD4-8D64-AE4B5D1CBFE8@gundla.ch> (raw)
In-Reply-To: <4D67A49A.7070803@wxs.nl>
Hello Hans,
>
> first put the function in some namespace, like:
>
> moduledata.mystuff = { }
> moduledata.mystuff.show_hyph = show_hyph
>
> then register it in the finalizer group (which is the post_linebreak stuff)
>
> nodes.tasks.appendaction("finalizers","after","moduledata.mystuff.show_hyph")
Works perfectly.
> (before and after are subgroups that can be used by users if needed; of course one never know to what extent it will influence other processes, so "shipouts","after" might be a better choice)
Ok. In this case it works for me but I'l remember that.
Thanks!
Patrick
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2011-02-25 15:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-25 11:28 Patrick Gundlach
2011-02-25 12:46 ` Hans Hagen
2011-02-25 15:14 ` Patrick Gundlach [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=3F7A8ABC-A6EE-4CD4-8D64-AE4B5D1CBFE8@gundla.ch \
--to=patrick@gundla.ch \
--cc=ntg-context@ntg.nl \
/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).