CudaText-addons / cuda_fountain_helper

CudaText plugin: Fountain Helper
0 stars 0 forks source link

Feature request: rendering #4

Open davidhealey opened 5 years ago

davidhealey commented 5 years ago

Do you think it would be possible to integrate something like http://mattdaly.github.io/Fountain.js/ into your addon to enable us to render/print our fountain files directly from cudatext?

Alexey-T commented 5 years ago

It is possible to make a plugin which calls that fountain.js (code on GitHub). Via node Js, like other plugins do. But I have no time for this task...

Alexey-T commented 5 years ago

I can try to write this plugin Fountain Preview (it will require Node Js installed), for donation, eg 20$ http://uvviewsoft.com/donate.htm

davidhealey commented 5 years ago

Hey Alexey, would it be able to save/print to a PDF file too?

Alexey-T commented 5 years ago

It will convert current file to HTML and show this in the current browser, only preview

davidhealey commented 5 years ago

Well that's better than nothing and we can print from the browser. Shame about the node requirement, although I have node installed anyway so not a problem for me. A donation is on the way!

davidhealey commented 5 years ago

I was just checking something in Fountain.JS on GitHub and I came across this https://github.com/ifrost/afterwriting-labs

It has a CLI and produces PDF from Fountain, so if that's a workable solution it might be even better.

davidhealey commented 5 years ago

I can try to write this plugin Fountain Preview (it will require Node Js installed), for donation, eg 20$ http://uvviewsoft.com/donate.htm

My card doesn't seem to work on that site. Do you have a paypal account?

Alexey-T commented 5 years ago

No PayPal, but you can buy UVPro program via card.

CLI tool- you can use it via plugin External Tools!

davidhealey commented 5 years ago

No PayPal, but you can buy UVPro program via card.

You mean this - http://uvviewsoft.com/uviewer/register.htm?

Alexey-T commented 5 years ago

Yes, this UV.

davidhealey commented 5 years ago

Cool, done :)

Alexey-T commented 5 years ago

Confirmed I will begin this work soon.

Alexey-T commented 5 years ago

Added menuitem to plugin FountainHelper. Command "Preview in browser". It requires NodeJS! It works here with BigFish.fountain file (big file). Pls test?

davidhealey commented 5 years ago

Wow that was quick! Yes the preview in the browser works great here. Thanks!

Alexey-T commented 5 years ago

https://packagecontrol.io/packages/Fountainhead It is Sublime plugin. Maybe some functions or syntax highlight not working here? I can add for additional free.

davidhealey commented 5 years ago

Sublime packages can be loaded into Cudatext?

Alexey-T commented 5 years ago

Nope, but you can read the readme there

davidhealey commented 5 years ago

I haven't tried all the features and syntax yet but if I notice something missing I will let you know for sure!

Alexey-T commented 5 years ago

Okay