Difference between revisions of "Extension:Screenplay"

A fragment of the Garden of Remembering

m
m (...)
Line 21: Line 21:
</nowiki></pre>
</nowiki></pre>


==== Rendered source ====
==== Result ====
<pre><nowiki>
<screenplay>
<div class="screenplay">
INT. SONM'S POST TAVERN - NIGHT
<div class="sp-setting">INT. SONM'S POST TAVERN - NIGHT</div>
 
<div class="sp-block">It is late - the place is mostly empty. Vardaman is seated at the bar, with at least a barkeeep around somewhere as well. Coraline stumbles in, scratched, tired, and muddy, and winds up standing next to Vardaman.</div>
It is late - the place is mostly empty. Vardaman is seated at the bar, with at least a barkeeep around somewhere as well. Coraline stumbles in, scratched, tired, and muddy, and winds up standing next to Vardaman.
<div class="sp-line">
 
<div class="sp-line-speaker">VARDAMAN</div>
VARDAMAN
<div class="sp-line-text">You look worse than I feel.</div>
You look worse than I feel.
</div>
 
<div class="sp-line">
CORALINE
<div class="sp-line-speaker">CORALINE</div>
I feel... well...
<div class="sp-line-text">I feel... well...</div>
 
</div>
Instead of continuing, she sits.
<div class="sp-block">Instead of continuing, she sits.</div>
 
<div class="sp-line">
VARDAMAN
<div class="sp-line-speaker">VARDAMAN</div>
(he sighs)
<div class="sp-line-paren">(he sighs)</div>
Barkeep, a shalott for the lady. There's pain what needs forgetting, if only for a little while.
<div class="sp-line-text">Barkeep, a shalott for the lady. There's pain what needs forgetting, if only for a little while.</div>
</screenplay>
</div>
</div>
</nowiki></pre>


== Parsing rundown ==
== Parsing rundown ==
Things that would normally be wrapped in <nowiki><p>s</nowiki> are wrapped in <nowiki><div>s</nowiki> with classes as follows:
Mostly fountain-like syntax. Parsing based on line layout and position.
 
*'setting': first four letters are 'INT.' or 'EXT.'
*'line': begins all caps (until a single \n) that is not a setting; single linebreaks within these delimit further <nowiki><div></nowiki> wrappers as follows:
**'line-speaker': everything until the first single \n
**'line-paren': any line wrapped in parentheses that is not a speaker
**'line-text': any other line within a 'line'
*'block': anything else

Revision as of 00:08, 15 May 2014

Wikitext example

<screenplay>
INT. SONM'S POST TAVERN - NIGHT

It is late - the place is mostly empty. Vardaman is seated at the bar, with at least a barkeeep around somewhere as well. Coraline stumbles in, scratched, tired, and muddy, and winds up standing next to Vardaman.

VARDAMAN
You look worse than I feel.

CORALINE
I feel... well...

Instead of continuing, she sits.

VARDAMAN
(he sighs)
Barkeep, a shalott for the lady. There's pain what needs forgetting, if only for a little while.
</screenplay>

Result

INT. SONM'S POST TAVERN - NIGHT
It is late - the place is mostly empty. Vardaman is seated at the bar, with at least a barkeeep around somewhere as well. Coraline stumbles in, scratched, tired, and muddy, and winds up standing next to Vardaman.
VARDAMAN
You look worse than I feel.
CORALINE
I feel... well...
Instead of continuing, she sits.
VARDAMAN
(he sighs)
Barkeep, a shalott for the lady. There's pain what needs forgetting, if only for a little while.

Parsing rundown

Mostly fountain-like syntax. Parsing based on line layout and position.