Scrippet Plugin

3 Comments

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 Lorem Ipsum whenever they need to fill text blocks.

I was wondering by Habari's trac and I saw a very old ticket about http://scrippets.org/ and got interest by the subject. As I got nothing to do by the time, I thought it would be nice to spend some time doing a plugin to Habari.

I am not and screenwriter and neither want to be one, so if you are using this plugin, let me know about problems and/or suggestions you may have.The plugin can be downloaded here.

To add a scrippet, just type your text, beginning with [scrippet] and ending with [/scrippet]. Character names, scene headers and transitions need to be in UPPERCASE. Everything else is done for you.

For the example above, you would write...

[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 Lorem Ipsum whenever they need to fill text blocks.

[/scrippet]

The Scrippets plug-in will do the rest, generating the markup and CSS to make it look good. More information about the Scrippet format can be found at http://scrippets.org/

Kylel

Hey,

Thanks for the plugin! I was the one who put in the ticket. Now I just need to restart my blogging habits. :)

Thanks again for the plug in!

-Kyle

04/01/2009 03:21:42

Nima

Nice work, Augusto. Just two suggestions:

1. You should include the original code's MIT/Expat license.
2. I looked at your code and you might consider refactoring your plugin to either call the Scrippetize function in an external file (ideal) or as a separate method in the your class. This would make it easier for you to make changes/updates in the event that I change the regexes for bug fixes (God forbid) or to accommodate foreign languages. It might mean a little less work for you, is all.

Again, great job, and thanks for the work.

05/01/2009 14:08:31

AndrewBoldman

Original post by mattusximus

04/06/2009 17:47:38