[pmwiki-users] wikistyles question

Patrick R. Michaud pmichaud at pobox.com
Mon Aug 8 13:10:24 CDT 2005

On Mon, Aug 08, 2005 at 04:16:08PM +0100, Ed W wrote:
> >I know that percent sizes don't work -- the problem is accurately
> >knowing when something is a percent sign and when it's the end of
> >the wikistyle.  (An unfortunate consequence of having chosen %'s
> >to delimit wikistyles.)  Getting %'s to be recognized properly
> >is going to be a pain but probably worth the effort in the long run.
> >I've been thinking that a workaround might be to convert "pct" into "%"
> >in wikistyles, so that one could do %width=50pct%
> > 
> >
> Would allowing %width='50%'% be any easier?

Maybe, but not immediately.  At the moment PmWiki grabs out the wikistyles
by looking for %...% with a limited set of allowed characters between
them.  After it has the full wikistyle spec pulled out, it then works
on parsing the individual options.  We could try changing this to
parse out the individual options in the first pass (thus being able
to determine if a particular % is part of an option or the end of the
wikistyle spec), but the problem there is that it can make wikistyles
a little "too greedy" and think that %'s in normal text are actually
wikistyle delimiters.


More information about the pmwiki-users mailing list