[Pmwiki-users] Re: Re: AsSpaced function (was pmwiki-2.0.devel9 released)

chr@home.se chr
Sun Oct 3 20:16:50 CDT 2004


On 4 Oct 2004, John Rankin wrote:

> On Monday, 4 October 2004 12:52 PM, chr at home.se wrote:
> 
> >> Another solution is to simply disable the link decorations on links to
> >> non-existent pages, so that the WikiWord to a non-existent page looks 
> >> like normal text but the link is still available if someone wants to 
> >> create the target page.
> >
> >It's not a bad idea, although it'd still be a matter of only doing this 
> >for certain wiki words (e.g. CCDs).
> 
> A simple solution might be to write the following local customisation:
> (pmwiki 2 markup)
> 
> Markup('nowiki','<wikilink','/(\b[[:upper:]]+s)/e',"Keep('$1','L')");

I think this is worth a cookbook entry, since it can be generalized to a
method for making patterns *not* be interpreted as wiki words. 

> (Or just omit the ess on plural abbreviations.)

Well, I'm leaning towards that the "s" is mostly motivated in my
situations (see other mail).

/Christian

-- 
Christian Ridderstr?m, +46-8-768 39 44               http://www.md.kth.se/~chr




More information about the pmwiki-users mailing list