wiki:ScrippetMacro

Version 9 (modified by netjunki, 14 months ago) (diff)

--

ScrippetMacro

Scrippet Macro in Action

Description

Implementation of scrippets as a processor for Trac. It now also includes a preview renderer for Final Draft Pro v8 XML (fdx) files. If you attach an fdx file to a Trac page you can just click on it to view the script without having to download it.

See also FountainPlugin.

Bugs/Feature Requests

Existing bugs and feature requests for ScrippetMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Or you can install using easy_install:

easy_install http://trac-hacks.org/svn/scrippetmacro/0.12/

Source

You can check out ScrippetMacro from here using Subversion, or browse the source with Trac.

Example

{{{
#!Scrippet
EXT. ANCIENT ROME - DAY

ANTONIUS and IPSUM are walking down a tiny, crowded street.

ANTONIUS
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 call for Galadius Ipsum whenever they need to fill text blocks.
}}}

r11442 made some changes to formatting capabilites. Here's the above example with those changes. And you can now use standard markup in your dialog if you need it:

{{{
#!Scrippet
EXT. ANCIENT ROME - DAY

ANTONIUS and IPSUM are walking down a tiny, crowded street.

Antonius
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 call for Galadius Ipsum whenever they need to fill text blocks.
}}}

The macro syntax for embedding a subsection should be:

[[Scrippet(fdx=<fdx>,start_with_scene=<number>[,end_with_scene=<number>])]]
Examples:
[[Scrippet(Episode 103.fdx,start_with_scene=1]] #Show scene 1 of Episode 103.fdx attached to current page
[[Scrippet(wiki:Scripts:Episode 103.fdx,start_with_scene=1,end_with_scene=3]] #Show scenes 1-3 of Episode 103.fdx attached to wiki:Scripts

The macro also includes a renderer for .fdx file. This can be enabled by changing the mimeviewer's mime_map property in the trac.ini:

[mimeviewer]                                                                                                                                                         
mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb,text/fdx:fdx

Recent Changes

[13415] by netjunki on 2013-10-17 10:08:16
Fix issues with rendering on parentheticals. There were a bunch of use cases which were causing various rendering errors.; updated version to 0.7
[11442] by netjunki on 2012-03-31 06:43:46
formatting improvements... character names no longer must be in all caps for the dialog system to pick them up; proper support for wiki text markup in the content (borrowed approach from SpoilerMacro); with Agilo... the span.underline CSS definition seems to be missing
[10793] by netjunki on 2011-10-17 05:07:17
removed misleading comment

Author/Contributors

Author: netjunki
Maintainer: netjunki
Contributors:

Attachments (1)

Download all attachments as: .zip