screenplain icon indicating copy to clipboard operation
screenplain copied to clipboard

Make title page keys case-insensitive

Open rnkn opened this issue 1 year ago • 2 comments

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?

rnkn avatar May 25 '24 06:05 rnkn

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?

vilcans avatar May 31 '24 09:05 vilcans

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.

rnkn avatar May 31 '24 12:05 rnkn