[pmwiki-users] yet another documentation suggestion ...
John Rankin
john.rankin at affinity.co.nz
Thu Aug 4 19:45:40 CDT 2005
On Friday, 5 August 2005 2:25 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>An interesting approach would be to have
>
> (:pagelist group=PmWiki fmt=keyindex:)
>
>which scans the pages in the PmWiki group, and then generates
>an alphabetized index based on the (:keywords:) directive in
>each page.
>
This assumes people have put (:keywords:) on the pages.
Another idea: Use the (:title:) or name to build a
KWOC (key-word out of context) index. That is:
1. generate a list of all words used in (:title:)
and create an array of word, title
2. discard words on a stop list (all 2 letter
words, things like the, and, for, ...)
3. sort by word and output
word1
title1
title2
title3
word2
titleA
titleB
and so on
Provide an option to reformat as a KWIC (keyword in context)
index. This is a bit trickier to format:
- each title consists of prefix word suffix
- align the centre of word with the centre of the page
this as an article
article on cats
the article about indexing pages
Just a thought...
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list