[Pmwiki-users] Single-Word WikiWords

Michael_Paulukonis@divintech.com Michael_Paulukonis
Tue May 4 12:55:29 CDT 2004


>I.e., if I have pages named "Java", 
"PHP", and "Perl", and I write the text

   Dr. Patrick R. Michaud taught a course covering Perl and PHP.

then "Perl" and "PHP" would be links to the corresponding pages (because
they exist), while "Dr", "Patrick", and "Michaud" would be left alone?
<

That is something along the ideas of what I was looking for--but I also 
figured it would slow it down quite a bit. On the otherhand, if it ran 
from a lookup table (say, "singlewordwikiwords.txt") and only converted 
what it found there--would it work faster?

That's the idea behind PhpGiggle--it has a file ("phpgiggle.words.txt") 
contining lines like

perl = http://www.perl.org
php = http://www.php.net


and then makes each instance of "perl" into <a 
href="http://www.perl.org">perl</a> 

In our case, the file could contain lines like

perl = IT/Perl
php = IT/Php
employees = Profiles/Employees

etc.


A nice side benefit is being able to dynamically reroute all references as 
the file is updated.

Michael J. Paulukonis
Technical Support Specialist
Diversified Information Technologies
570-343-2300 Ext 3043




"Patrick R. Michaud" <pmichaud at pobox.com> 
05/04/2004 02:38 PM

To
Michael_Paulukonis at divintech.com
cc
Pmwiki-users at pmichaud.com
Subject
Re: [Pmwiki-users] Single-Word WikiWords






I can come up with an easy way to automatically convert "Group.Name"
and "Group/Name" into links, but I suspect that's not exactly what you're 
looking for.

To rephrase your question -- are you looking for a method such that 
single-word pagenames are automatically converted to a link if a 
page by that name already exists?  I.e., if I have pages named "Java", 
"PHP", and "Perl", and I write the text

   Dr. Patrick R. Michaud taught a course covering Perl and PHP.

then "Perl" and "PHP" would be links to the corresponding pages (because
they exist), while "Dr", "Patrick", and "Michaud" would be left alone?

I might be able to build something like this.  OTOH, it may significantly
slow down the processing/formatting of pages, since every capitalized 
word would have to be checked to determine if there's a page of the same 
name.

Let me know.

Pm


On Tue, May 04, 2004 at 01:58:25PM -0400, Michael_Paulukonis at divintech.com 
wrote:
> 
>    I'm  a  very  new  user/admin of PmWiki, just having installed it 
last
>    week.  Despite  my  preliminary  flailings about, several others in 
my
>    department  are  already  quite  interested  and  building  pages! 
But
>    they've  brought up some issues that I'm researching--one of which 
I'm
>    completely  failing  to  find  any  answers  to  in  the  archives or
>    elsewhere.
>    To use a single-word  as a WikiWord we have to use a free link. But 
is
>    there  any way to make future occurences of that Word (now existing 
as
>    Foo.Page)  automatically link to the page, instead of having the 
admin
>    or  others  edit  it  in? Or, by extension, have any set series 
string
>    link to a particular page. PhpGiggle
>    (http://www.biermana.org/index.php?p=12)  provides a system to 
convert
>    particular  strings/words  to  embedded links (<a 
href="foo">...</a>),
>    but  that  isn't exactly what we need for the PmWiki set up. The 
other
>    users  just  don't want to type extra markup every time they enter 
the
>    words  "Java"  "Perl"  or  "Jython"....Nor  am  I  keen on the idea 
of
>    patrolling the RecentChanges & fixing the markups each morning.
>    Is  their  a  "plug-in"  include,  or  some  system variables that 
I'm
>    overlooking?
>    Great system!
>    Michael J. Paulukonis
>    Technical Support Specialist
>    Diversified Information Technologies
>    570-343-2300 Ext 3043

> -- 
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://contra.vosn.net/pipermail/pmwiki-users_pmichaud.com/attachments/20040504/c45a7bda/attachment.htm


More information about the pmwiki-users mailing list