Sat Sep 25 14:16:46 CDT 2004
At 21:52 25.09.2004, Pm wrote:
>On Sat, Sep 25, 2004 at 09:11:15PM +0200, Knut Alboldt wrote:
> > Is there a possibility in pmwiki 2 to process a edited page before it' s
> > being saved ?
> > I found out, that e.g. for a german keyboard the markup of a markup [::]
> > it's a bit like the alt-ctrl-del (monkey-grip ?):
> > alt-gr-8 shift-dot shift-dot alt-gr-9.
> > [...]
> > What I thought about is entering e.g. "<<" and translate it to "[:" and
> > ">>" and translate it to ":]" (or any other) before saving the page.
> > Is there an easy way to process this within the edit-save-procedure
> > (concerning pmwiki2) without changing pmwiki.php (e.g. as an exit which
> > be hooked up in config.php ?
> # Add ROSPatterns to convert << to [: and >> to :] in input text
> $ROSPatterns['/<</'] = '[:';
> $ROSPatterns['/>>/'] = ':]';
great ! Ok I've to be shure to use keys, that might not be used otherwise
in the text (like [[<<]] :-)
>Or, you could just go ahead and store pages with the <<directive>> markup,
>and do the conversion when the page is being displayed:
> # Convert << and >> to [: and :] at beginning of page translation
> # (but after [=...=] and [@...@] markup).
I don't want to go that way, cause it might be, that I like to exchange
wiki-pages, e.g. cookbook-entries from my wiki to pmwiki.org. Then << >>
would not be accepted as markup in pmwiki.org.
More information about the pmwiki-users