Giter VIP home page Giter VIP logo

fountain's Introduction

Fountain parser

About

This python script is a fountain script parser, which converts .fountain files to python object. It is ported to Python 3 by Colton J. Provias - [email protected] - original code here, based on Fountain by Nima Yousefi & John August; original code for Objective-C at https://github.com/nyousefi/Fountain.

I did just some little tweaks to Coltons code, since I ran into some issues.

Install

  1. Make a pull request of this repo
  2. Go into the repo-dir on your machine
  3. sudo python3 setup.py install

Usage

from fountain import fountain

F = fountain.Fountain(STRING)

This will make F to a fountain object.

fountain's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fountain's Issues

Dialogues with linebreaks lose "original_content" after first line

I'm parsing and reconstructing screenplays using this (very useful!) module.
I noticed that on dialogues with multiple lines, the original_content was missing lines after the first:

image

I checked, and you are adding the new element_text to the previous Dialog element, but you're not adding the line itself to the original content.

On my monkey-patched version, I added the following:

image

and it solved my problems. I'll raise a PR, if you want to bring it in.

Empty Line broken?

I'm trying to get some sort of fountain preview to work in Blender with Andrea, but it seems like no "Empty Line" types are generated. Is this a bug?

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.