Skip to content

wixette/fountain2html

Repository files navigation

fountain2html

中文说明请见 README.zh.md

A simple Node/JavaScript module to convert .fountain screenplays to HTML format, with non-latin charset support.

Visit wixette.github.io/fountain2html/ to try it out online.

See the definition of Fountain format at fountain.io

This project is partially derived from Fountain.js, with the following additional features:

  • Non-latin charset support. E.g. Chinese character name preceded with the "at" symbol @, CJK action paragraphs, CJK-friendly themes, etc.
  • Commandline interface to convert a .fountain file to HTML.
  • @media print support, enabling page-break when printing.
  • Predefined print-friendly themes, including colorful and high-contrast themes.

Use the Web application

Visit https://wixette.github.io/fountain2html/ to use the web application.

You can also host and run index.html locally with any web server.

In the web app, you can drag and drop, or upload a .fountain file to the page. You can also input the screenplay text directly. The Fountain content will be converted to HTML automatically. Then you can select a theme from the dropdown menu. The converted HTML will be rendered in the page and ready for printing (to a PDF file or to papers).

Use the command-line utility

Make sure you have Node.js and all yarn dependencies installed:

yarn install

Then use the following command to convert a Fountain file to HTML:

node . --theme=default example.fountain > example.html

Screenshots

Default theme

ScreenShot

Ocean theme

ScreenShot

Dark theme

ScreenShot

Colorful theme

ScreenShot

Chinese screenplay, CJK theme

ScreenShot

Chinese screenplay, colorful theme

ScreenShot

About

A simple Node/JavaScript app to convert .fountain screenplays to HTML format, with non-latin charset support

Topics

Resources

License

Stars

Watchers

Forks