ifrost / afterwriting-labs Goto Github PK
View Code? Open in Web Editor NEWPost-processing for Fountain screenplays
Home Page: http://www.afterwriting.com
Post-processing for Fountain screenplays
Home Page: http://www.afterwriting.com
converter
pdfmaker
charts
preprocessors
simple utils (url params, fn)
pdfjs viewer
code mirror fountain mode
Plot structure in a cricle with sequences/synopses marked on it.
In this example the all-caps action line is parsed as a character element when I think it should be parsed as action (since there is no preceding blank line).
Her hands beneath her.
Feeling for anything.
SHARDS OF BROKEN GLASS.
She grabs a SHARD.
Holds tight. Slicing her palms.
Contrast with:
Her hands beneath her.
Feeling for anything.
SHARDS OF BROKEN GLASS.
She grabs a SHARD.
Holds tight. Slicing her palms.
which should be parsed as character.
Hey Piotr, just letting you know the latest version on npm is only at 1.2.6 (which gives me errors when attempting PDF creation). The git HEAD version works fine though.
Edit: Sorry my fault! I was using "letter" instead of "usletter" in my config file. v1.2.6 via npm works fine.
Scene continuation appears in the header where in numerous examples it's part of the regular script and shows like a normal scene heading.
I love awc.js
. I think it's the best CLI for generating PDFs from Fountain files.
I'd like to install as a global package but it appears afterwriting-labs
is not set up for that. Ideally I'd like to be able to npm install afterwriting
or similar.
I'm making a short film and feel like it would be a great chance to test Fountain and a spec addition I proposed for page-locking. How do you feel about testing out this spec addition, maybe in a separate branch? https://groups.google.com/d/topic/fountain-dev/W_cAivCNhIk/discussion
It's backwards compatible so won't interfere with existing scripts. Basically:
=== 10
or
=== 10 ===
or
====== 10 ==
where 10 is the forced page number.
Use appcache to cache the app. Display a pop-up alert with a refresh button if new version was deployed.
Extract fountain parser/liner and fquery to a separate library
privacy disclaimer
Goto, search, fold.
I'ld like to try out the latest dev version, but building via grunt results in:
Running "requirejs:compile" (requirejs) task
Error: ENOENT: no such file or directory, open '/home/username/afterwriting-labs/js/view/settings-panel.js'
In module tree:
afterwriting-bootstrap
plugins/settings
{ Error: Error: ENOENT: no such file or directory, open '/home/username/afterwriting-labs/js/view/settings-panel.js'
In module tree:
afterwriting-bootstrap
plugins/settings
at Error (native)
at /home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:30099:19
at /home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:3081:39
at /home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:3021:25
at Function.prim.nextTick (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:29929:9)
at Object.errback (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:3020:26)
at Object.callback (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:3006:23)
at Object.then (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:3060:23)
at build (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:30056:12)
at runBuild (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:32006:17)
at Object.execCb (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:1941:33)
originalError:
{ Error: ENOENT: no such file or directory, open '/home/username/afterwriting-labs/js/view/settings-panel.js'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at Object.readFile (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:3760:27)
at Object.readFileAsync (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:3774:32)
at Function.require._cacheReadAsync (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:29948:25)
at /home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:29506:48
at /home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:3063:37
at /home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:3011:25
at Function.prim.nextTick (/home/username/afterwriting-labs/node_modules/requirejs/bin/r.js:29929:9)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/username/afterwriting-labs/js/view/settings-panel.js',
fileName: '/home/username/afterwriting-labs/js/view/settings-panel.js',
moduleTree: [ 'plugins/settings', 'afterwriting-bootstrap' ] } }
Would you please look into it?
Use dependency management tool (ditch libs)
notes, boneyard, indetation
wrapping text?
In the following situation I've found that words are being skipped when you preview the PDF.
Type out "She slides her phone over and fumbles with her watch strap." (or copy/paste, I won't judge!)
With page size on "A4", the word "watch" is skipped when you preview in PDF. "US letter" doesn't have the same issue.
I'm using Firefox 47.0.
The bug happens for both the default firefox PDF viewer and the experimental JavaScript PDF viewer.
I've only noticed the bug on this particular line, so perhaps that sentence is the perfect storm of page width and word lengths?
Keep up the great work!
Custom settings for printing.
Possible available also in a comment section at the beginning of the script.
For characters and locations
"namespaced" config entries; global/plugin settings
for MORE, CONT'D, etc.
also for stats, like DAY, NIGHT, INT, EXT
Set a goal (number/range of pages, minutes, dialogue/action balance, max number of characters, max scene length)
Chinese?
similarity between characters
https://github.com/watson-developer-cloud/personality-insights-nodejs
https://personality-insights-livedemo.mybluemix.net/
Finds "hanging words" and places where number of lines can be increased by few characters. Helps meet desired number of pages
Load about section with main index.html
Conversion from fountain to pdf is not compatible with Japanese/Chinese characters.
Characters are replaced by blank spaces. Is it related to the font? #25
awc.js crashes
node awc.js --source Big-Fish.fountain --pdf
'afterwriting command line interface
www: http://afterwriting.com
/home/$USERNAME/afterwriting-labs-1.2.17/js/client/awrequire.js:54
var exp = definition(require);
^
TypeError: undefined is not a function
at global.define (/home/$USERNAME/afterwriting-labs-1.2.17/js/client/awrequire.js:54:12)
at Object.<anonymous> (/home/$USERNAME/afterwriting-labs-1.2.17/js/utils/textstats.js:1:63)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at Object.require (module.js:384:17)
at Object.<anonymous> (/home/$USERNAME/afterwriting-labs-1.2.17/js/client/awrequire.js:36:24)
at /home/$USERNAME/afterwriting-labs-1.2.17/js/utils/pdfmaker.js:6:15
The line-wrapping (to 72-chars) is ignored for the sections defined by regexes. It's just in the narrative that the newlines are taken verbatim.
I tried to look through the parser to see if it would be a trivial fix (I don't know javascript or regexes well), but I couldn't figure it out. Fountain.js has the same problem.
This might also pose a problem in the editor. Is there a way to match the narrative blocks? (Text between a pair of double newlines that's not a match for anything else?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.