Code Monkey home page Code Monkey logo

fountainhead's Introduction

Fountainhead

This is a parser for Fountain-formatted scripts that will output "active documents" that incorporate dynamic, code-based elements and are also used for control of the show.

This work is based on the obj-c fountain parser: https://github.com/nyousefi/Fountain

License: GPLv3

Usage:

python -O main.py -v <parser version tag> -i <inputfile> -c <css file: relevant to output file path> -o <output file> -f <component parent folder name, relevant to output file path> -n <include parent folder name, relevant to outputFile path> -s <special generation flag>

Flags:

  • -v, --version: Parser version tag, supported are 'base' and 'remap'
  • -i, --ifile: Fountain input file path
  • -o, --ofile: HTML output file path
  • -c, --cfile: CSS file path (relative to output file path)
  • -f, --compfolder: Component folder path (relative to output file path)
  • -n, --incfolder: Include folder path (relative to output file path)
  • -s, --special-generation: Special generation flag
  • -h: Print help and exit

Please refer to remap-syntax.md for added syntax for version tag "remap", and added functions for "special generation flag".

For a quick test run, please go to the root directory

cd src
python -O main.py -s

This will overwrite html-test/sample.html with the parser output from html-test/los-atlantis-latest.fountain.

Or run

cd src
python -O main.py -i ../html-test/your-fountain-file -o ../html-test/your-target-html-output -s

Contributing:

For guide on scripting your own web components, please refer to contributing.md

Links:

Active script: http://the-archive.la/script/fountainhead/html-test/sample.html

(For Firefox, please enable web components)

Specification: http://redmine.remap.ucla.edu/projects/fountainhead/documents

Issue tracking: http://redmine.remap.ucla.edu/projects/fountainhead/

Bug report and contact: Zhehao [email protected]

fountainhead's People

Contributors

zhehaowang avatar radialbalance avatar jburkeucla avatar

Watchers

Alex Nano avatar  avatar James Cloos avatar Jeff Thompson avatar Peter Gusev avatar  avatar  avatar Manasi Deshmukh avatar  avatar

Forkers

radialbalance

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.