wiki:ScrippetMacro

Add Fountain / Scrippets markup to wiki pages

Description

This plugin is an implementation of Fountain as a processor for Trac. Fountain was previously known as Scrippets. 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.

Scrippet Macro in Action

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.

Source

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

Installation

You can install this plugin using easy_install:

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

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

r11442 made some changes to formatting capabilities. 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 21st 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 your trac.ini file:

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

Recent Changes

16544 by netjunki on 2017-04-16 14:33:32
switch to an unminified fountain.js
16543 by netjunki on 2017-04-16 11:28:17
Fixed an incorrect import; use jQuery not $
16542 by netjunki on 2017-04-16 09:31:43
removed imports of salt which is unused
(more)

Author/Contributors

Author: netjunki
Maintainer: Benjamin Lau
Contributors:

Last modified 7 years ago Last modified on Feb 4, 2017, 7:25:43 PM

Attachments (1)

Download all attachments as: .zip