Comments (3)
Hi @pjebs,
Just letting you know that I've renamed Fountain.ts
to fountain-js
.
You can now find the NPM package at https://www.npmjs.com/package/fountain-js.
Install:
npm install fountain-js
Note the import statement is now different too:
import { Fountain } from 'fountain-js';
let fountain = new Fountain();
from fountain-js.
Appreciate the question and your interest in this repo. I forked mattdaly/Fountain.js a couple of years ago and essentially added typing as well as refactored a few older common JS styles to take advantage of some of the newer methodologies of ES2016. This was mostly a project meant to familiarize myself with Typescript and get some practice typing an older package, which to my knowledge isn't maintained much any more.
Overall, it is at its core exactly the same. The regex's for tokenizing all mirror Matt's original package. I believe Matt's original package did not fully implement all of Fountain to spec so therefore nor does mine.
Is this more robust in terms of interpreting or less error prone?
To be honest, my assumption is it is no less error prone than his and I have to assume it is also not much of an improvement over the original either in terms of lexing robustness given it uses the same regex.
After working with this package, I actually decided to begin working on my own screenwriting markdown specification and am in the middle of currently writing the library for it. I hope to eventually implement Fountain as well so that those interested may continue supporting Fountain since I think the concept is still a great one given I'm trying to write a spec of my own.
Anyway, this is just background context mostly as that library is still a ways off, but also to note that I don't have a lot of plans to improve or update this package beyond ensuring its working for those who want to use it and fixing obvious issues they find like #8 .
That being said, I am always open to modifying this library to make it better and am happy to look over any PR or improvement those interested may want to contribute since my own library could benefit from an improved Fountain regex too.
from fountain-js.
Awesome work!
from fountain-js.
Related Issues (8)
- Question: Nesting dialog HOT 1
- Character names with hashes (#) are parsed incorrectly HOT 4
- Action with a newline gets a <br /> inserted HOT 3
- Parentheticals can't be italicized HOT 6
- SyntaxError: Invalid regular expression: invalid group specifier name RegExp — rules.ts:23
- import { Fountain } from 'fountain' doesn't work HOT 6
- Doesn't seem to recognise `!` and `@` HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fountain-js.