Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
Screenplay plugin
Plugin for formatting screen and teleplays
Avatar
Zengei #1
Member since Jun 2008 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: Screenplay plugin
Hi all,

For the past few days I've been working on a plugin for formatting screen and teleplays. I"m now ready to release it generally for testing. Details and download can be found here: http://liqd.org/wiki/screenplay/

One issue I haven't be able to resolve is that my matching pattern is
<screenplay.*>.*</screenplay>

Which is technically wrong since that would match <screenplayanything>, however when I try to correct it by using the correct pattern:
<screenplay( .*)?>.*</screenplay>

It doesn't work, and DokuWiki treats the text as if the plugin isn't installed.
This post was edited 3 times, last on 2008-07-11, 19:17 by Zengei.
Avatar
andi (Administrator) #2
Member since May 2006 · 1810 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You may not use grouping parenthesis in your pattern. Instead use non grouping assertions.

This would use an assertion:

<screenplay(?: .*)?>.*</screenplay>

However the .* is too greedy. The following is probably better:

<screenplay(?: [^>]*)?>.*</screenplay>

This is untested code, you should look up the correct assertion syntax.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Zengei #3
Member since Jun 2008 · 5 posts
Group memberships: Members
Show profile · Link to this post
Thanks a lot, that issue has been fixed.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20100516-dev, © 2003-10 by Yves Goergen
Current time: 2010-09-02, 16:28:02 (UTC +02:00)
WikiForumIRCBugsGitXRefTranslate