>>>>> "Earl" == Cahill, Earl <[EMAIL PROTECTED]> writes:

Earl> Not sure if anyone else in the world enjoys perl and writing screenplays,
Earl> but I have written some code using my own tagging language to help format
Earl> screenplays (I wrote lots of tags that tt could handle before I heard of
Earl> tt).  I plan on switching my stuff over to tt and cpaning it.  My stuff
Earl> basically sets up some styles, parses out dialogue and the like and switches
Earl> it to the appropriate style.  Common tags look like
 
Earl> <dia fred>
Earl> You paid how much?
Earl> </dia>
 
Earl> which gets changed to 
 
Earl> <DIV CLASS=character_name>
Earl> FRED
Earl> </DIV>
Earl> <DIV CLASS=dia>
Earl> You paid how much?
Earl> </DIV>

That should really be

<dl class="dialog">
<dt>fred</dt>
<dd>You paid how much?</dd>
...
</dl>

Since a "definition list" is as close semantically as you'll get
to a dialog screenplay.  Then you can assign CSS to ".dialog dt"
and ".dialog dd", and get your desired views on that semantics.
And the nice thing is is that it'll format reasonably well even on
non-CSS screens.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to