Lighter-weight manuscripts were one of the big ideas from the Books in Browsers 2012 talk that Liza and I presented last month. In our particular case, we focused on the combination of voice recognition and wordprocessor-free authoring, but this is really part of a larger trend which Peter Brantley captured: an “explosion of new services, spreading across many niches of story-telling that never before were beneficiaries of Internet technologies.” Although Google Docs are now more than five years old, the publishing community has not fully grasped the disruptive potential of writing in a world that doesn’t worry about files or formats, where sharing is native and painless.
Our talk presented a very simple demonstration of that disruptive potential by stringing together basic tools for making manuscripts (Dragon Dictate, Google Docs), editing (edits in Google Docs), and commenting (Twitter
#hashtags). In the hope that these building blocks might spur more interesting work, I’ve released the code behind one piece of our talk, a tiny project-let called Oration.
Oration transforms a series of Google Docs inside a folder into a presentation with static HTML in the center, Google Doc comments on the left, and Tweets matching a hashtag on the right.
Oration worked well for our talk. We followed this basic setup:
- Set up a Google Doc folder and share it (publicly or however you prefer)
- Add Google Docs to the folder in the order they should be presented
- Ask people to edit any Google Doc to improve it
- Ask people to comment on any Google Doc to discuss specific topics
- Ask people to tweet with a specific
- Publish the HTML output of Oration somewhere to preserve a “final” version
Under the hood, Oration pulls from both the Twitter API and the Google Drive SDK to build the consolidated HTML output. Each Google Doc in the specified folder is extracted as HTML and appended to the main content as a row. The primary content for the row is stuffed into the center column, any Google Doc comments are pulled out (using a terrible, fragile hack) into the left column of the row, and any tweets that matched the time window when the Google Doc itself was created (this is probably too fiddly in practice) are put into the right column.
The Python code is available at https://github.com/safarijv/oration under a BSD license.