I would oppose a requirement for a Python wrapper in order to keep
things simple.

The most simplest filter is just an AsciiDoc conf file with a few
lines of config entries and I hope that stays that way.

A wrapper is only required for filter applications which require some
post processing or cannot digest input from stdin.

Cheers

Henrik

On Feb 5, 8:14 pm, Lex Trotman <[email protected]> wrote:
> On 5 February 2011 08:59, Stuart Rackham <[email protected]> wrote:
>
>
>
> > Hi All
>
> > I've a attached a proposal for installing and removing AsciiDoc
> > filters. Comments please.
>
> > I haven't addressed the important question of how to publish and
> > distribute filters. Maybe a noticeboard where it's easy for authors to
> > register their filters -- then they would be free to host them on
> > Google Code, Github or whereever. This is not something I have the
> > time to get involved in.
>
> > My motivation is also driven by self interest: this will free me from
> > having to act as filter custodian and from having to maintain and ship
> > new filters with the AsciiDoc distribution.
>
> > WARNING: I may be getting ahead of myself here -- I haven't
> > implemented any code yet, hopefully I'm not painting myself into a
> > corner.
>
> > Cheers, Stuart
>
> Hi Stuart,
>
> Creating a method for standardising the handling of filters is a good idea.
>
> Filters may need to have a Python wrapper to be able to check for
> their platform dependencies (since it is mostly platform independent
> and needed for Asciidoc).  eg if a filter has an executable it will
> only run on a specific platform (windows, linux 32, linux 64, mac etc)
> and that needs to be checked (and maybe a different executable
> downloaded)
>
> But it may be nicer to provide a way to perform these checks at
> install time rather than incur the cost each time the filter is run in
> the document.
>
> Taking a leaf from the Python book, like Python packages having an
> __init__.py maybe if the directory contained an install.py file it
> would be run at install and if it returned a non-zero completion value
> the install would abort.
>
> Also anyone worried about security can unzip and check the script
> (only .py not .pyc would be acceptable) file before it is run at
> install.
>
> Cheers
> Lex
>
>
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "asciidoc" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/asciidoc?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to