[Pmwiki-users] Re: wikiword spacing
John Rankin
john.rankin
Sun Oct 17 20:53:22 CDT 2004
An alternative page naming function that turns spaces into
underscores is at
http://www.pmwiki.org/pmwiki2/pmwiki.php/Cookbook/AlternateNamingScheme
For example if $SpaceWikiWords = 1, the following produce
the natural page names: [[Apple iPod]] [[Novell NetWare]]
[[Aimee McDonald]].
On Thursday, 14 October 2004 10:29 PM, Knut Alboldt <mailing at alboldt.de> wrote:
>At 00:25 14.10.2004, John Rankin wrote:
>>- take what the author enters inside [[...]] and make a name
>> by changing ' ' to '_' (eg [[War and Peace]] becomes
>> War_and_Peace
>>
>>- take WikiWords and make the page name as Wiki_Words; this
>> avoids the serious problem of WikiWords and Wiki_Words
>> becoming different pages
>>
>>- for backwards compatibility, if authors write [[War and Peace]]
>> and it doesn't exist, look for a page called WarAndPeace; this is
>> analogous to WikiWord looking for WikiWord.WikiWord and
>> WikiWord.HomePage
>>
>>- if an author enters Group.WikiWord in the browser address bar,
>> it needs to look for Group.Wiki_Word; if neither Group.WikiWord
>> nor Group.Wiki_Word exists, display 'Describe [[Wiki Word]] here'
>> and on save create Wiki_Word
>
>would be nice, if this behaviour (searching for Group.WikiWord as
>alternative) could be customizable (dis/enable). It's ok when migrating an
>old wiki, but I would prefer moving to a new policy and renaming old
>pagenames by a cli-tool.
>So I would prefer the behaviour described abouve without looking for
>Group.WikiWord, but always translating WikiWord and [[Wiki Word]] to
>Wiki_Word for page naming and translating any "_" within names back to
>"space" when displaying.
Yes it's customisable, but have a care:
1. an author can write [[HomePage]] and one might reasonably
expect that entering HomePage will find it
2. A lot of PmWiki group pages are wiki words and you still need
to be able to find them
3. GroupName.GroupName is still reasonable, with GroupName.Home_Page
the alternative (it will find GroupName.HomePage too)
>
>I would appreciate this ! It make text more readable or more exact to the
>language syntax. If you're running a wiki for IT-people it might be not
>that necessary, but if you running the wiki for people, who want's to write
>"normal" text it's important to write it in a right syntax. So the only
>possiblity now is using links with alternate text, which is rather much
>input to do. Your proposal would reduce this work.
>
>
>Knut
>
>
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list