Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output PDF document does not display scene numbering. Even if it's in the fountain file. #4

Open
chariegg opened this issue Nov 29, 2023 · 4 comments

Comments

@chariegg
Copy link

chariegg commented Nov 29, 2023

I find your command line program to be very cool. However, it lacks in one thing: scene numbering. What it does is if the numbering like 'poundsign-number-poundsign' is in the right place, just bold the scene or if improperly (like at the start because I made a mistake with where to put it), it removes the scene line (such as INT. or EXT.) entirely. I'm going to provide my example fountain file and the output to what ftn2pdf generated. I'll even share with you a short awk/perl snippet I used to number all the scenes, though I haven't tried it yet when a scene is already numbered.

awk '/^INT.|^EXT./ {$0=$0 " #NUMBERLATER#"} 1' $1 > $2
perl -pe 's/NUMBERLATER/++$i/e' $RNAME > $OUTPUTNAME

If you could please add an option to number scenes upon conversion and correctly show the scene numbering if they're put in the document properly, that would be great to have. Thank you for this project.

example.file.txt
output.pdf

@xiota
Copy link
Owner

xiota commented Nov 29, 2023

Do you have a reference that shows how scene numbering is supposed to look in the final output?

I haven't looked at the code in a while. So this would depend on how easy it is to add (if I can even understand the code anymore).

@chariegg
Copy link
Author

Do you have a reference that shows how scene numbering is supposed to look in the final output?

I haven't looked at the code in a while. So this would depend on how easy it is to add (if I can even understand the code anymore).

In the fountain syntax, it says that any number between two pound signs is completely valid for a scene numbering. In fact, that's how other editors (like betterfountain for vscode or fountain-mode for emacs) do auto scene numbering, by wrapping them in two pound signs.

https://fountain.io/syntax/#scene-headings

@chariegg
Copy link
Author

Do you have a reference that shows how scene numbering is supposed to look in the final output?

I haven't looked at the code in a while. So this would depend on how easy it is to add (if I can even understand the code anymore).

Here is an example from afterwriting, using the fountain.js javascript library. It has the option to have scene numbering on either side or both, though I'm not sure if on the left side is valid scene numbering.
BrickAndSteelEXAMPLE.pdf

@xiota
Copy link
Owner

xiota commented Nov 30, 2023

I remember doing something with scene numbering before. Maybe it was in the xml/html output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants