scric

picture

script formatter to plain text and html in rc

Previously: skrish

Write movie/theater/play scripts in simple plain text syntax and format them into attractive plain text or html.

By default scric outputs a page 72 characters wide, dialogue column 40 and the rest 60. These can be edited at the top of the code.

Download

scric

Usage

scric [file]

schtml [file]

Anatomy of a scric file

First line is a title
Second line is subtitle/author name/whatever

#lines beginning with '#' are centered

FADE IN

Blocks of text separated by
spaces are formatted
as full-page-width paragraphs

@CHARACTER NAME
Followed by a block of
text are formatted as
dialogue

@CHARACTER NAME (CONT)
Notice that the line width is irrelevant. The only
requirement is that blocks of text must be separated
by 
empty
lines.

She said calmly.

#END SCRIC

The default scric formats the previous like so:

pic

schtml formats it like so:

<h1> 
                          First line is a title 
</h1>
<p>  
              Second line is subtitle/author name/whatever 
</p>



<h2>
                 lines beginning with '#' are centered
</h2>

<p>
        FADE IN

</p>
<p>
        Blocks of text separated by spaces are formatted as
        full-page-width paragraphs

</p>
<p class="char">
                             CHARACTER NAME:
</p>
<p class="diag">
                Followed by a block of text are
                formatted as dialogue

</p>
<p class="char">
                         CHARACTER NAME (CONT):
</p>
<p class="diag">
                Notice that the line width is
                irrelevant.  The only requirement is
                that blocks of text must be separated by
                empty lines.

</p>
<p>
        She said calmly.

</p>
<h2>
                               END SCRIC
</h2>

While it does look horrendous on paper, and is a major afterthought, it does make the html code somewhat resemble the script format when curling, ftping, hgeting or viewing source. The idea is that you should be able to read this without a web browser.

Bugs

I made this for myself.

The html output looks ugly without css.

You probably shouldnt supply it with files that are not made for scric.

First two lines and #subheaders cannot be longer than page-width.