> Henri Bergius wrote:
> >
> > On 10 Jan, Emiliano Heyns wrote:
> > > &(varname:u);
> > > mark up varname as URL. If $varname =
> > > "<a href="http://www.midgard-project.org/"">http://www.midgard-
project.org/"</a>then &(varname:u);
> > > would expand to <a
> > > href="<a href="http://www.midgard-project.org/">http://www.midgard-
project.org/</a>">http://www.midgard-project.org/">http://www.midgard-
project.org/</a></a>
> >
> > Actually, the :u formatting means that the variable
> > will be printed in URL-encoded format. This means
> > that "Network Security R&D" becomes "Network%20Security%20R%26D"
> > (just an example from page I was working on). This
> > is useful for passing text strings as GET or Midgard
> > Active page arguments.
>
> Correct, my bad. I just located the parser, and I'll try to write a
> little
> something about its workings.
I don't look yet into 2.0 alpha sources about parser code but was it changed
into module structure like other things did? If so, it is very good, I'd like
to add some LaTeX-like formating after 1.2.6 will be released to make life
easier for scientific applications of Midgard. Current implementation of parser
has some limitations in extension scheme (you'll need to rewrite parser at
least in two or three places in different packages), so modularizing it would
be great. Actually, I've already have LaTeX-like formatting done in PHP using
regular expressions and possibly support for PCRE in the text parser would be
useful. I mean that text formating modules could use generalized API for
accessing PCRE library like it is done with DB support. Then creating parsers
would be more efficient (it could be relatively simple to create parser for
Word-like format, as those apps already done in Perl and C). Thus, we could
achieve the same feature set that proprietary systems (like NPS) sell for
thousands of dollars. Especially it would be great if those parsers could be
dynamically loaded (hence, optimisation for memory footprint will be very
effective). Also real document flow is impossible without those things.
Kind regards,
Alexander.
---------------------------------------------
This message was sent via BSPU MailMan server.
http://www.bspu.unibel.by/MailMan/
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]