vilcans / screenplain

Write your screenplay in plain text and run it through this program to make it look good
MIT License
162 stars 29 forks source link

Make title page keys case-insensitive #78

Open rnkn opened 3 months ago

rnkn commented 3 months ago

Hello!

Thanks for your work on Screenplain and contribution to the Fountain community.

I have a small feature request. I would like it if Screenplain parsed the title page keys as case-insensitive, e.g.:

title: My Script
credit: written by
...

I know it seems pedantic but my reason is that I maintain a Fountain program and for about the last ten years it has inserted title page keys in lowercase, so there are probably a lot of scripts like that.

What do you think?

vilcans commented 3 months ago

It's strange that the keys are written like that as they are capitalized in the Fountain specification. But on the other hand, the spec is not explicit about them being case sensitive, so I'm not sure. What software generated those files in the first place? Or were they hand-written?

rnkn commented 3 months ago

Fountain Mode for Emacs. There's a skeleton that auto-inserts the title page metadata keys with prompts for the values. I just made the insertion of the keys lowercase because I thought they looked better. The program itself treats metadata as case-insensitive.

Fountain Mode exports to PostScript/PDF (using troff) but also comes setup to export via existing command line tools, e.g. Screenplain.