view README.rst @ 19:6e8d5d95f6b5

Added tag 0.2.1 for changeset db27f548daa8
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 04 Jan 2017 09:19:24 -0800
parents ee741bbe96a8
children f21776c7fbfc
line wrap: on
line source


########
JOUVENCE
########


`Fountain`_ is a plain text markup language for screenwriting. Jouvence
is a Python package for parsing and rendering Fountain documents.

Jouvence supports:

* Most of the Fountain specification (see limitations below).
* Rendering to HTML and terminals.

.. _fountain: http://fountain.io/


Installation
============

As with many Python packages, it's recommended that you use `virtualenv`_,
but since Jouvence doesn't have many dependencies, you should be fine.

You can install Jouvence the usual way::

  pip install jouvence

If you want to test that it works, you can feed it a Fountain screenplay and
see if it prints it nicely in your terminal::

  jouvence <path-to-fountain-file>

You should then see the Fountain file rendered with colored and indented
styles.

.. _virtualenv: https://virtualenv.pypa.io/en/stable/


Usage
=====

The Jouvence API goes pretty much like this::

  from jouvence.parser import JouvenceParser
  from jouvence.html import HtmlDocumentRenderer

  parser = JouvenceParser()
  document = parser.parse(path_to_file)
  renderer = HtmlDocumentRenderer()
  markup = renderer.render_doc(document)
  return markup


Limitations
===========

Jouvence doesn't support the complete Fountain syntax yet. The following things
are not implemented yet:

* Dual dialogue
* Notes
* Boneyards
* Sections and synopses