overvale / Textplay

Textplay is a simple command-line script that converts screenplays written in Fountain formatted plain-text to HTML, XML, and FDX (Final Draft).
Other
104 stars 17 forks source link

broken pipe? #33

Closed RichardDooling closed 6 years ago

RichardDooling commented 6 years ago

On Mac High Sierra and using Prince 12, if I do:

textplay < screenplay.fountain | prince - screenplay.pdf

I get

Textplay/textplay:1125:in write': Broken pipe @ io_write - <STDOUT> (Errno::EPIPE) from Textplay/textplay:1125:inputs' from Textplay/textplay:1125:in puts' from Textplay/textplay:1125:in

'

overvale commented 6 years ago

The following works for me...

textplay < test.txt | prince - -o test.pdf

RichardDooling commented 6 years ago

test.txt?

I thought it converted fountain files?

And do you mean to have the solitary dash in there too?

I would think you mean:

textplay < test.fountain | print -o test.pdf

But that doesn't work for me either.

On Sat, Sep 8, 2018 at 1:52 AM Oliver Taylor notifications@github.com wrote:

The following works for me...

textplay < test.txt | prince - -o test.pdf

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/olivertaylor/Textplay/issues/33#issuecomment-419618449, or mute the thread https://github.com/notifications/unsubscribe-auth/ABaFwuD4y9EARGv5MEq1oOkk-1uQctQRks5uY2lKgaJpZM4V5rpH .

--

rd

RichardDooling commented 6 years ago

Sorry, I mean

textplay < test.fountain | prince -o test.pdf

On Sun, Sep 9, 2018 at 11:10 PM Richard Dooling rpdooling@gmail.com wrote:

test.txt?

I thought it converted fountain files?

And do you mean to have the solitary dash in there too?

I would think you mean:

textplay < test.fountain | print -o test.pdf

But that doesn't work for me either.

On Sat, Sep 8, 2018 at 1:52 AM Oliver Taylor notifications@github.com wrote:

The following works for me...

textplay < test.txt | prince - -o test.pdf

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/olivertaylor/Textplay/issues/33#issuecomment-419618449, or mute the thread https://github.com/notifications/unsubscribe-auth/ABaFwuD4y9EARGv5MEq1oOkk-1uQctQRks5uY2lKgaJpZM4V5rpH .

--

rd

--

rd

overvale commented 6 years ago

The solitary dash tells prince to read STDIN (which is what textplay outputs to). Check the docs here. Let me know if that solitary dash makes a difference.

Textplay does not require a ".fountain" extension. It works on any file. I use ".txt".

A couple troubleshooting things to try:

RichardDooling commented 6 years ago

Solved. I had the newest Textplay, but had Prince 12 instead of 12.1.

With 12, I get "prince: warning: disabled parallel downloads: failed to initialise locking for OpenSSL"

But Prince 12.1 fixes it. Thanks for keeping this going. I think it's the best fountain converter out there, and the only one, to my knowledge, that works from the command line.

Rick

On Mon, Sep 10, 2018 at 12:06 AM Oliver Taylor notifications@github.com wrote:

The solitary dash tells prince to read STDIN (which is what textplay outputs to). Check the docs here https://www.princexml.com/doc-refs/#cmd-input-output. Let me know if that solitary dash makes a difference.

Textplay does not require a ".fountain" extension. It works on any file. I use ".txt".

A couple troubleshooting things to try:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/olivertaylor/Textplay/issues/33#issuecomment-419788495, or mute the thread https://github.com/notifications/unsubscribe-auth/ABaFws-grFxyGTgN3No80oygWnCeOMGPks5uZfNkgaJpZM4V5rpH .

--

rd

overvale commented 6 years ago

Glad it worked. I'm glad someone else finds it useful! I'll maintain it as long as I use it. I think you're right, there's nothing quite like it out there. Thanks!