Difference between revisions of "Extension:Screenplay"

A fragment of the Garden of Remembering

(...)
 
m (Apheori moved page Screenplay to Extension:Screenplay)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Wikitext example ===
=== Wikitext example ===


<pre>
<pre><nowiki>
<screenplay>
<screenplay>
INT. SONM'S POST TAVERN - NIGHT
INT. SONM'S POST TAVERN - NIGHT
Line 19: Line 19:
Barkeep, a shalott for the lady. There's pain what needs forgetting, if only for a little while.
Barkeep, a shalott for the lady. There's pain what needs forgetting, if only for a little while.
</screenplay>
</screenplay>
</pre>
</nowiki></pre>


==== Rendered source ====
==== Result ====
<pre>
<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>
</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

Latest revision as of 01:27, 26 March 2017

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.