中文说明请见 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 printsupport, enabling page-break when printing.- Predefined print-friendly themes, including colorful and high-contrast themes.
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).
Make sure you have Node.js and all yarn dependencies installed:
yarn installThen use the following command to convert a Fountain file to HTML:
node . --theme=default example.fountain > example.html




