[Pmwiki-users] ... Re: more --signature markup thoughts
John Rankin
john.rankin
Tue Feb 10 17:42:28 CST 2004
On Wednesday, 11 February 2004 11:55 AM, Christian Ridderstr?m <chr at home.se> wrote:
>On 11 Feb 2004, John Rankin wrote:
>
>> On Wednesday, 11 February 2004 7:16 AM, Christian Ridderstr?m <chr at home.se> wrote:
>>
>> OTOH, one would have to choose shortcut characters very carefully to
>> avoid ambiguity. For example starting a line:
>>
>> *{{jr}}
>>
>> Is that a bullet or a short cut?
>
>May I suggest using
>
> {{*jr}}
>
>instead? Then you don't have to worry about if it's a bullet or
>not.
But what about:
*JohnRankin
And you implicitly answer this below...
>
>Or how about for a more general markup with shortcuts:
>
> shortcut-link ::= '{{' shortcut-char ( '/' | '.' )
>link-text '}}'
Extending it a bit more:
shortcut-link ::= shortcut-char ( '/' | '.' ) ( WikiWord | FreeLink )
and the following (start of line) should be unambiguous:
**/JohnRankin
is a bullet followed by a shortcut. I like it!
>
>where if you go with '{{~.JR}}' you'll see 'Profiles.JR' and if you go
>with '{{~/JR}}' you'll see 'JR'? ('~' is the shortcut for
>'Profiles')
Or ~/{{jr}} and ~.{{jr}} presumably.
And I *think* you can do {{Group/free link}} as a local customisation:
$FreeLinkXBraces = substr($FreeLinkPattern,2);
$DoubleBrackets["/{{($GroupNamePattern)([.\/])($FreeLinkXBraces)/"]
= "$1$2" . "{{" . "$3";
You'd want to do this at the start of local.php.
>
>/Christian
>
>--
>Christian Ridderstr?m
>http://www.md.kth.se/~chr
>
>
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list