On 23-2-2011 11:26, Aditya Mahajan wrote:
Hi Hans,
On Wed, 9 Feb 2011, Hans Hagen wrote:
Something new. If you add a section like this in a module:
% begin info % % title : show character data % % comment : show some info about characters in the character database % status : experimental, used for luatex testing % % end info
context --modules
will report this. It only works with modules in the trees (the path where context.mkiv sits is also taken as I want my dev path to be included).
Can you add support for filtering the results? That is,
context --modules plot
should retun the help file of all modules that have "plot" in their filename (or if it is not too expensive, have plot in their description).
Also, some of this information is also part of \module[...] header in the beginning. Is it possible to merge the two? That is, can I just write:
%I title: .... %I author: .... %I email: .... %I version: ... %I license: ... %I copyright: ... %I comment: ... %I status: ...
Then, if I run
context --modules filter
I will see the above information, and if I run
mtxrun --script modules --process t-filter.tex
the above info will be converted to
\module [title=...., author=...., ....]
at the top of the ted file.
I have been thinking about that, but it would come from the begin info section then (or do you propose to make %I equivalent to the info section? Thinking of it we could have multiple info sections so that you can spread help over the file if it make sense. Anyhow, it needs a bit of thinking as I want to keep it clean. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------