[pmwiki-users] wikistyles question
dominique.faure.1 at free.fr
Mon Aug 8 16:21:14 CDT 2005
At Monday, August 08, 2005 8:10 PM [GMT+1=CET], Patrick R. Michaud wrote:
> 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
> 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.
In the same mood, but perhaps less greedy, can't we have float numbers and
em/ex units allowed as in %define=box block border='1px solid black'
More information about the pmwiki-users