[Pmwiki-users] Feature Suggestion

Davis, James C. jdavis at cob.tamucc.edu
Fri Mar 7 16:47:18 CST 2003


What if shortcuts are expanded when the page is saved and stored in =
regular WikiMarkup. This would allow the use of custom shortcuts when =
creating pages (or editing), but would not confuse others editing the =
page later.

James Davis
Network Manager
College of Business
Texas A&M University - Corpus Christi
(361) 825-5926
jdavis at cob.tamucc.edu


> -----Original Message-----
> From: Patrick R. Michaud [mailto:pmichaud at sci.tamucc.edu]
> Sent: Friday, March 07, 2003 4:11 PM
> To: duff at pobox.com
> Cc: pmwiki-users at pmichaud.com
> Subject: Re: [Pmwiki-users] Feature Suggestion
>=20
>=20
> For intermaps:
>=20
> UseMod and Meatball had a lot of discussion about wiki-editable=20
> intermaps, primarily in the context of having a global InterMap page=20
> that contained the intermap link mappings.  There were several pros=20
> and cons to this approach; but PmWiki's group structure alleviates=20
> a number of the cons since the intermap definitions are no longer
> limited to a single global intermap page.
>=20
> To avoid the "line oriented" markup that Scott proposed, I'd=20
> counter-propose
> markups such as:
>=20
>    [%Abbrev0 http://www.replacement.org/url/prefix0%]
>    [%Abbrev1 http://www.replacement.org/url/prefix1%]
>=20
>    =3Dintermap Abbrev0 http://www.replacement.org/url/prefix0
>    =3Dintermap Abbrev1 http://www.replacement.org/url/prefix1
>=20
> or something along these lines.  I think this can probably be handled=20
> as a local customization w/o modifying pmwiki.php, although it
> may require some tricky handling of the $LinkPatterns array to make
> sure the patterns stay in the correct sequence.
>=20
> For shortcuts:
>=20
> On a similar thought, and starting down a very slippery slope that
> I've been quite reluctant to examine, does PmWiki need author-defined=20
> generic abbreviation capabilities?  (Perhaps this is what Scott
> meant by "shortcuts"?)  While writing the documentation
> trail pages and other pages I've sometimes found myself wishing to be=20
> able to simply write something like [%trail%] and have that be=20
> automatically converted to %trail%<<|PmWiki.DocumentationIndex|>>,=20
> but not have to hard-code this as a local customization to PmWiki.
> I.e., enable full-text shortcuts to be defined within a wiki=20
> page such as=20
> PmWiki.GroupHeader (as opposed to just intermap shortcuts=20
> But I'm *very* worried that this "macro" capability will be just the=20
> beginning of a very slippery slope that will ultimately lead to the=20
> exclusion of naive authors--i.e., in addition to learning the=20
> TextFormattingRules, they'd also have to be aware of all of the=20
> author-defined custom markups that were generated.
>=20
> Any comments, ideas?  Am I imagining a problem that doesn't exist, or
> is it real?
>=20
> Pm
>=20
>=20
>=20
> On Fri, 7 Mar 2003, Jonathan Scott Duff wrote:
>=20
> > In the interest of favoring authors, how about a way to include
> > "intermaps" (I'll be calling these shortcuts from now on as the word
> > "intermap" doesn't make much sense to me anymore) in wiki=20
> pages?  For
> > instance, say the ISBN shortcut wasn't in the intermap.txt=20
> nor in the
> > localmap.txt or you want ISBN to be a shortcut to=20
> Barnes&Noble rather
> > than whatever the PmWikiAdmin has decided it should be a=20
> shortcut to.
> > If there were a way to specify a shortcut using=20
> PmWikiMarkup, then the
> > author of a page could define shortcuts where it makes sense.
> >=20
> > The only syntactic way that springs to mind right off is something
> > like (the all too line oriented):
> >=20
> > [%
> > Abbrev0 FullyExpandedThing0
> > Abbrev1 FullyExpandedThing1
> > %]
> >=20
> > s/%/<some other character>/   maybe a colon would work.
> >=20
> > This could also allow shortcuts for a whole group by making=20
> it part of
> > the GroupAttributes page (for instance) and have pmwiki=20
> read that page
> > for shortcuts after reading intermap.txt. The rule would be=20
> that page
> > specific shortcuts override group specific shortcuts override
> > intermap.txt.
> >=20
> > -Scott
> >=20
>=20
>=20
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
>=20




More information about the pmwiki-users mailing list