Giter Club home page Giter Club logo

nanogenmo2014's Introduction

Seraphs: NaNoGenMo2014

Generate a 50,000+ word "book" based on the Voynich Manuscript. Uses the following resources:

  • The Flickr API and Internet Archive Commons account to grab 18th century images based on specific themes like "biology" and "alchemy."
  • Processes the resulting illustrations to match background colors and discard undesirable images.
  • Uses a randomized corpus of the original Voynich Manuscript (from the EVA transcription) remapped to a public domain Voynich-like font.
  • Generates a set of themed "folios" based on the themes from the original manuscript.
  • Converts the output using CSS3 paged media to print-ready PDF (requires a local installation of Prince XML).

The source code in this repository is in the public domain. Note that a mix of commercial and closed-source software is necessary to generate the final output.

Installation

Set up a virtual environment:

virtualenv ve

Ensure that you have various JPEG libraries installed (for OS X users, brew install libjpeg and brew install libpng).

Install the dependencies:

. ve/bin/activate
python setup.py develop

Get a Flickr API key and add it to a directory called secret:

mkdir secret
cat "FLICKR_KEY = 'YOUR-KEY-HERE'" > secret/__init__.py
cat "FLICKR_SECRET = 'YOUR-SECRET-HERE'" >> secret/__init__.py

Install PrinceXML (http://princexml.com/) locally.

Run the program:

python seraphs/generate.py

The program should go off and acquire a lot of images from Flickr, randomize them, and generate a PDF somewhere in the 400-page range.

Once it runs, it will cache the resulting images (as local pickle files) in seraphs/cache and pull a random set from those. Delete that directory to re-acquire the assets from Flickr.

The output will be seraphs/build/book.pdf. It will be very large (more than 1 gigabyte).

Example output

Page Page Page Page Page Page Page Page Page Page Page Page Page Page Page Page

nanogenmo2014's People

Contributors

lizadaly avatar

Watchers

James Cloos avatar Gladstone Alves avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.