• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

John August

  • Arlo Finch
  • Scriptnotes
  • Library
  • Store
  • About

John

Scrippets, a call to coders

August 22, 2008 Geek Alert, Hive Mind, Scrippets

UPDATED. See below.

For the past four years, I’ve been including little blocks of formatted screenplay examples in my posts, such as…

INT. LIVING ROOM – DAY

As the phone RINGS, Gary dozily reaches one dirty-socked foot off the couch to sit up — and suddenly finds himself falling. He lands hard, dazed. We REVEAL that the couch is propped up by cinder blocks, five feet off the floor.

Gary staggers to his feet, bewildered. Realizing who must be behind the prank…

GARY

Grandma!

I call these little blocks [scrippets](http://scrippets.org), and they’ve proved to be very useful. They’re made with [some custom CSS code](http://johnaugust.com/archives/2004/screenbox) I wrote in 2004, ((If you look at the example in the original post, it comes from the script for The Nines, which I was writing at the time.)) which several other screenwriting bloggers have implemented with their own tweaks and changes.

geek alertIf you’re reasonably familiar with HTML and CSS, it’s not hard to do the same: you [paste the CSS](http://pastie.org/257678) into your stylesheet, and mark up your script section with the proper tags. For the example above, the code reads…

<div class="scrippet">
<p class="sceneheader"> INT. LIVING ROOM – DAY</p>
<p class="action"> As the phone RINGS, Gary dozily reaches one dirty-socked foot off the couch to sit up — and suddenly finds himself falling. He lands hard, dazed. We REVEAL that the couch is propped up by cinder blocks, five feet off the floor.</p>
<p class="action"> Gary staggers to his feet, bewildered. Realizing who must be behind the prank…</p>
<p class="character"> GARY</p>
<p class="dialogue"> Grandma!</p>
</div>

Each line is wrapped in a class tag identifying its function, and the whole thing is wrapped in a div. ((As originally implemented, I used an unordered list instead of a div, and styled list items for the individual lines. It was trendy, but two issues made me switch. First, blog comments are also list items, so nesting another list inside kept creating issues. Second, feed readers don’t get any CSS styling — they got a bullet list. So, for now, it’s divs and p’s.)) A human can read it, but it’s a pain to write.

Fortunately, I do all my blog writing in [TextMate](http://macromates.com/), so it was relatively trivial to modify its “Wrap Each Selected Line In…” command to speed the process. For a few years, I just saved the scrippet formatting until last, and it was bearable.

Then, during the strike, I had the time and inclination to find a more elegant solution. I wrote a [script in Ruby](http://pastie.org/257717) that would let me write the above example without any spacing, markup or attempt at formatting, and then with one command wrap it in the proper format. It’s made my blog life a lot easier. But it’s no help to other bloggers who want to include scrippets, or readers who want to post a scrippet in the comments section. It’s too home-brewed and specific.

Ultimately, I’d like every blogger to be able to include scrippets, both in posts and comments. (And forums, though that’s its own beast.) But that’s a hell of a lot of work to support multiple systems and scenarios. So let’s start a little smaller.

Geeks wanted
===

I want to create a WordPress plug-in that would let a blogger or commenter write…

<scrippet>  
MARY
Anything you want to tell me?

FRANK  
I swear, honey, I don't know how mayonnaise got in the piano.  
</scrippet>

…and end up with…

MARY

Anything you want to tell me?

FRANK

I swear, honey, I don’t know how mayonnaise got in the piano.

However, that’s simply beyond my coding prowess. WordPress is built around PHP, and while I can understand it well enough to modify a simple template, I fail to grok it the way I do Ruby and Python. But I have a feeling some of my readers could write the PHP equivalent of [my script](http://pastie.org/257717) while half-watching Battlestar Galactica.

If that sounds like you, and you’re up for the challenge, I encourage you to muck around with the code and share your progress. [Wordpress](http://wordpress.org) is trivial to install, with a big developer community. See what you can get working, and include a link to let me and others see your progress.

Here are some caveats, pitfalls and other bits of advice to help you out:

1. Since you’ll be setting hooks to filter the text, you need to play nice with other plugins that do the same, such as [Markdown](http://daringfireball.net/projects/markdown/). Michel Fortin has a [useful post](http://michelf.com/weblog/2005/wordpress-text-flow-vs-markdown/) about some of the challenges in doing Markdown for WordPress. ((And yes, I asked Michel if he wanted to write a scrippet plug-in, but he declined.))
2. While [my script](http://pastie.org/257717) shows the scope of what I’m looking for, Dwayne Bent has already created a [much more sophisticated version](http://liqd.org/wiki/screenplay/main) for DokuWiki in PHP. He’s busy with school, and unfamiliar with WordPress, but offers up his code under the GPL if it’s helpful.
3. <scrippet> may be a terrible delimiter, prone to wonkiness. So other options are welcome. One I’ve considered is +- and -+, which coveys the idea of creating a box around something.
4. The CSS actually does quite a bit of the work. Let your code identify and label the elements, but leave the formatting to the CSS.
5. The plugin should include the CSS — yet make it easy to modify the CSS to suit an individual blog. Specifically, a blogger will want to be able to control the box width, background color, text color and padding. A straightforward admin screen in WordPress seems doable.

I have no timetables or deadlines for the project, but I will offer up a signed Nines poster to a coder who comes up with a viable and elegant version of the plug-in — and of course, heaps of praise and bragging rights.

And if WordPress isn’t your bag, but you feel the calling to take on a similar version for another platform (Movable Type, bbPress, vBulletin), by all means go for it. If this comment thread gets out of control, I’ll move it to a different forum.

**UPDATE:** Just over 24 hours in, there’s been a lot of progress. Thanks to everyone who’s given a chunk of their weekend to the cause.

By Monday or Tuesday, I’ll be posting a link to a test blog where readers can try out the plug-in for themselves. Before releasing it into the wild, we want to make sure it works with a range of stock themes and feels intuitive to readers leaving comments.

Aquaman is a Pescepublican

August 13, 2008 Dead Projects, Projects, Psych 101

Recent articles about the [political leanings](http://tor.com/index.php?option=com_content&view=blog&id=578) of popular comic book characters got me thinking about the uncanny valley between fictional and real-world ideologies. We’re happy to have characters speak in broad terms — “With great power comes great responsibility” — but the minute they start referring to specific issues, we become very uncomfortable.

How does The Flash feel about immigration? Is Wolverine pro-choice? Does Black Canary support the First Amendment rights of hate groups? We don’t know, and really don’t want to know.

To be certain, comics sometimes do have their characters take specific, controversial political stands. Famously, Frank Miller’s Superman in The Dark Knight Returns is literally working for Reagan. But more often, we get placeholders and parallels to soften the blow.

Wonder Woman’s homeland of Themiscyra is isolationist, as the U.S has been at times. The Green Lanterns police the universe, like U.N. peacekeepers writ large. And X-Men are mutants who fight prejudice, discrimination and mutant-phobia.

Sometimes the analogies are transparent. Black Adam rules Kahndaq with an iron fist — he’s literally a weapon of mass destruction, and a danger to the free world. But the facile Iraq/Al-Qaeda parallels only go so far. Yes, he’s a tyrant, but there’s no religion or oil at stake, no greater cause beyond his own ego. If Black Adam were to get sucked into a magic scarab, or sent to the farthest reaches of the universe, there would be no more “Kahndaq crisis.” ((As recent history has shown, simply getting rid of the leader achieves less than you’d think in the real world.))

And this is probably a good thing. I’d argue that the thematic success of comic book characters, and comic book storylines, comes from how closely they can approach the line separating Real from Too Real, without crossing it.

For example, this summer’s The Dark Knight is set in the most realistic Gotham City yet, but its characters still speak in broad philosophical proclamations. Just listen to Batman:

> Sometimes, truth isn’t good enough. Sometimes people deserve more. Sometimes people deserve to have their faith rewarded.

Sometimes, dialogue should only be spoken while wearing a mask. His statement makes sense in abstract, but you wouldn’t want it applied to, say, the invasion of a sovereign nation based on false evidence. Even Commissioner Gordon seems to understand that Batman is better suited to villain-thumping than leadership. His improbable answer to his young son’s question about why Batman is running:

> Because he’s the hero Gotham deserves, but not the one it needs right now…and so we’ll hunt him, because he can take it. Because he’s not a hero. He’s a silent guardian, a watchful protector…a dark knight.

(MUSIC RISES.)

Efforts to place TDK’s Batman on a real-world political spectrum are doomed. Sure, he’s tough on crime, but he’s also anti-gun. He holds himself outside the law, but destroys his own phone-tapping technology. Is he a [Conservative](http://online.wsj.com/article/SB121694247343482821.html?mod=opinion_main_commentaries)? A [Liberal](http://thatsrightnate.com/2008/07/20/dark-knight-liberal-propaganda-is-a-joke/)? ((Note: Dry humor at link. You have to read a few entries to get the gist of it.)) A [Libertarian](http://blog.mises.org/archives/008317.asp)?

Nope, he’s just Batman. And as a comic book character, he’s allowed to hold simultaneous incompatible philosophies.

I think fans are responding to this latest wave of superhero movies not because they’re more realistic, but because they safely insulate us from reality, letting us address epic themes without uncomfortable details. Law versus Chaos is entertaining in TDK, but messy when you look at Iraq. The military-industrial complex is, well, less complex when Tony Stark can simply stop making weapons. And become a weapon. Or something. (The important thing is, he beat up Jeff Bridges, who was visibly evil and bald.)

The episode of Heroes: Origins I was set to write and direct last year deliberately crossed that line between “somewhat believable” and “far too realistic.” It was structured as an installment of A&E’s great documentary series [Intervention](http://www.aetv.com/intervention/), and followed two addicts with superpowers. We never shot it — [the whole series got shelved](http://johnaugust.com/archives/2007/no-heroes) — but I’m not sure it would have worked. And the producers were certainly nervous. In Iron Man, Tony Stark’s alcoholism is fundamental but non-threatening; real addiction is too real, too uncomfortable.

On some level, we want to keep our heroes just pure enough to fight the bad guys without encumbrance.

Handling a character’s POV shot

July 31, 2008 Formatting, QandA, Words on the page

questionmarkI have a character — let’s call him Evan — leans out an open kitchen window. I want it to be a POV shot, so everything on the screen is outside the window. Do I have to put the action of what’s going on, outside, under a new scene heading (EXT. FRONT YARD – DAY), or do I stay INT. KITCHEN and just throw in an EVAN’s POV:?

— Ryan
Los Angeles, CA

You can do either. The reader will understand that we’re looking outside. The main advantage to creating the EXT. scene header is that it reminds production that they need to secure an appropriate location. If the kitchen is a set built on a soundstage, they’ll need to find a corresponding exterior.

Here’s how I would write that scene:

Evan is three spoonfuls into his muesli when he hears an EXPLOSION outside. Racing to the window...

EXT. KITCHEN WINDOW / FRONT YARD – DAY

...Evan leans out to see his Toyota Yaris flipped over on the front lawn, engulfed in flames.

I didn’t stress that the shot is from Evan’s point of view. It rarely matters, unless the audience needs to understand that one character in a scene can see something that another one can’t.

A bunch of marriage news

July 27, 2008 News

It’s been weirdly under-reported, but Proposition 8, the November ballot initiative that seeks to amend the California constitution to ban same-sex marriage, had its official language changed earlier this month. It used to read as follows:

LIMIT ON MARRIAGE. CONSTITUTIONAL AMENDMENT.

Amends the California Constitution to provide that only marriage between a man and a woman is valid or recognized in California. Summary of estimate by Legislative Analyst and Director of Finance of fiscal impact on state and local government: The measure would have no fiscal effect on state or local governments. This is because there would be no change to the manner in which marriages are currently recognized by the state.

What’s going to appear on the ballots in November is much more accurate, and makes it clear that voting for it means actively taking away existing rights:

ELIMINATES RIGHT OF SAME-SEX COUPLES TO MARRY.

INITIATIVE CONSTITUTIONAL AMENDMENT.

Changes California Constitution to eliminate right of same-sex couples to marry. Provides that only a marriage between a man and a woman is valid or recognized in California.

Fiscal Impact: Over the next few years, potential revenue loss, mainly sales taxes, totaling in the several tens of millions of dollars, to state and local governments. In the long run, likely little fiscal impact to state and local governments.

I would have added, “Voting for this means you’re a dick.” But the new language is certainly an improvement.

As I [noted earlier](http://johnaugust.tumblr.com/post/35835686/the-numbers-on-californias-gay-marriage), the polling indicates that the initiative is struggling: [just 42% are in favor](http://www.field.com/fieldpollonline/subscribers/Rls2278.pdf), a huge drop from 2000’s similar initiative. So its backers are already falling back on FUD tactics, the most recent being [kindergartners](http://www.sfgate.com/cgi-bin/article.cgi?f=/c/a/2008/07/24/BA5511V2DO.DTL&type=politics). They warn —

lovejoy
> If the gay marriage ruling is not overturned, teachers will be required to teach young children there is no difference between gay marriage and traditional marriage.

In the words of Mrs. Lovejoy: “Think about the children!”

Nevermind that the statement is factually wrong. Also, when do public school teachers give lessons on marriage, period? And are there popsicle sticks and yarn involved?

It’s easy to be glib, but dangerous. The proponents of Prop. 8 — many of them out-of-state — have deep pockets and a long history of stirring shit up in their favor. That’s why in lieu of a traditional wedding registry, we signed up with [Equality California](http://eqca.org), which is spearheading the opposition campaign. Frankly, we’d rather have justice than a toaster. ((If you’re itching for some righteous equality but don’t have another couple to gift, the registry is still there. John and Michael August, under “J,” strangely enough.))

But worst case scenario — what happens if it passes? That’s still up for debate.

The consensus is that existing marriages couldn’t be voided, since they were legal at the time they were enacted. And to paraphrase the late Charlton Heston: you can pry my ring off my cold, dead hand. But there are reasons to believe the amendment might still get considerable court scrutiny even if it passes. The legal lingo about “suspect classes” is a bit head-swirling, but can be summarized thusly: imagine an amendment that said African-Americans couldn’t marry. You’d have a guaranteed court battle.

. . .

In much happier news, my friend Andrew Lippa just wed his longtime squeeze David Bloch, and the New York Times has a [great piece on it](http://www.nytimes.com/2008/07/20/fashion/weddings/20lippa.html?_r=1&ref=weddings&oref=slogin). I hadn’t realized that the Times now does video interviews, but wow, it’s great. You get a much better sense of the couple when you hear them tell their own story. You’d have to be pretty hard-hearted not to want them married.

Andrew is a genius composer and lyricist, and I’ve been fortunate to be working on a project with him for the past two years. Mazel Tov to them both.

« Previous Page
Next Page »

Primary Sidebar

Newsletter

Inneresting Logo A Quote-Unquote Newsletter about Writing
Read Now

Explore

Projects

  • Aladdin (1)
  • Arlo Finch (27)
  • Big Fish (88)
  • Birdigo (2)
  • Charlie (39)
  • Charlie's Angels (16)
  • Chosen (2)
  • Corpse Bride (9)
  • Dead Projects (18)
  • Frankenweenie (10)
  • Go (29)
  • Karateka (4)
  • Monsterpocalypse (3)
  • One Hit Kill (6)
  • Ops (6)
  • Preacher (2)
  • Prince of Persia (13)
  • Shazam (6)
  • Snake People (6)
  • Tarzan (5)
  • The Nines (118)
  • The Remnants (12)
  • The Variant (22)

Apps

  • Bronson (14)
  • FDX Reader (11)
  • Fountain (32)
  • Highland (75)
  • Less IMDb (4)
  • Weekend Read (64)

Recommended Reading

  • First Person (87)
  • Geek Alert (151)
  • WGA (162)
  • Workspace (19)

Screenwriting Q&A

  • Adaptation (65)
  • Directors (90)
  • Education (49)
  • Film Industry (489)
  • Formatting (128)
  • Genres (89)
  • Glossary (6)
  • Pitches (29)
  • Producers (59)
  • Psych 101 (118)
  • Rights and Copyright (96)
  • So-Called Experts (47)
  • Story and Plot (170)
  • Television (165)
  • Treatments (21)
  • Words on the page (237)
  • Writing Process (177)

More screenwriting Q&A at screenwriting.io

© 2026 John August — All Rights Reserved.