I do not know anything about the subject but a quick search yields:
http://johnaugust.com/2004/screenbox
So once could define:
.screenplay { font: 12px/14px Courier, fixed; width: 420px; background:
#eee; border: 1px solid #333; padding: 5px 14px;}
.screenplay h2, .screenplay h3, .screenplay blockquote { padding-top:
1.5ex; }
.screenplay blockquote { padding-right: 5%; }
.screenplay h3 { margin-left: 40%; }
.screenplay p { margin-left: 25%; padding-right: 25%; }
and use {{=DIV(MARKMIN(screenplay),_class="screenplay")}}
where
screenplay = """
## EXT. FOREST / ELSEWHERE - DAY
------
Susan is on a cell-phone call. She smiles at Melissa, who walks by with two
cups of coffee.
------
### SUSAN (V.O.)
Right now, this is probably our top pilot. But things change.
### MELISSA
I have no idea what we are talking about.
"""
Massimo
On Saturday, 25 August 2012 11:42:08 UTC-5, Rob_McC wrote:
>
> Hi:
>
> Any thoughts on *screenplay formatting *for a web2py app?
>
> I've been studying markdown2.py
> and I think it could be easily? modified for Screenplay format.
> easily?
>
> *Summary*:
> Screenplay have a very set, and old fashioned format:
> Here is example of standard format used in Hollywood today.
>
> -----
> EXT. ANCIENT ROME — DAY
>
> ANTONIUS and IPSUM are walking down a tiny, crowded street.
>
> ANTONIUS
> (shaking his head)
> Do you think in a thousand years,
> anyone will remember our names?
>
> IPSUM
> Not yours. But they'll know mine.
> Because I intend to write something so
> profound that it will be remembered
> for the ages.
>
> Designers in the 20th Century will
> call for Lorem Ipsum whenever they
> need to fill text blocks.
>
> INT. BATHHOUSE – DAY
>
> Antonius is in the bathhouse.
>
> etc.
> -----
>
>
>
> I want to use this (markdown-like) format to create the above
> *s: is Scene
> a: is Action
> c: is Character
> p: is Parenthetical
> d: is Dialog*
>
>
> -----
> s:EXT. ANCIENT ROME — DAY
> a:ANTONIUS and IPSUM are walking down a tiny, crowded street.
> c:ANTONIUS
> p:shaking his head
> d:Do you think in a thousand years, anyone will remember our names?
> c:IPSUM
> d:Not yours. But they'll know mine. Because I intend to write something so
> profound that it will be remembered for the ages.
>
> Designers in the 20th Century will call for Lorem Ipsum whenever they need
> to fill text blocks.
>
> s:INT. BATHHOUSE – DAY
> a:Antonius is in the bathhouse.
>
> etc.
> -----
>
> Thanks for your opinions. Of course, a PDF would be the next step...
>
> Rob
>
>
> ---
> Ref:
>
> http://code.google.com/searchframe#uyCl3L51_dI/gluon/contrib/markdown/markdown2.py&q=markdown%20package:web2py\.googlecode\.com&sq=&l=33&ct=rc&cd=2<http://code.google.com/searchframe#uyCl3L51_dI/gluon/contrib/markdown/markdown2.py&q=markdown%20package:web2py%5C.googlecode%5C.com&sq=&l=33&ct=rc&cd=2>
>
>
> I am aware of this http://fountain.io/scrippets
> which looks very good, but I would prefer a little more control using
> "a:" type of syntax. I wrote a 109 page script with Fountain format just
> recently.
>
> Fountain makes heavy use of regular expressions...
>
>
>
--