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

Legiony McLegionface #87

Open
cpressey opened this issue Nov 6, 2017 · 2 comments
Open

Legiony McLegionface #87

cpressey opened this issue Nov 6, 2017 · 2 comments
Labels
completed For completed novels!

Comments

@cpressey
Copy link

cpressey commented Nov 6, 2017

Code

This is written in Lua 5.1 and requires pdf.lua.

require "pdf"
p = PDF.new()
times = p:new_font{name="Times-Roman"}
page = p:new_page()
page:begin_text()
page:set_font(times, 12)
page:set_text_pos(100, 100)
for i = 1, 10000 do
    page:set_text_pos(0, 0)
    page:show("Bro, do you even contain multitudes?")
end
page:end_text()
page:add()
p:write("Legiony_McLegionface.txt")

Result

The resulting novel can be found in this zip file.

What the Reviewers Said

ALICE: I loved it, I thought it was wonderfully insipid, top-notch NaNoGenMo material and well deserving of a green "completed" label. It's obviously a plain text file — its name ends in .txt and if you open it in a text editor you'll see it's perfectly well-formed plain text, no weird characters or anything. And it certainly contains more than 50,000 words — wc -w says it contains 100,130, and even tr -d '[:punct:][:digit:]' | wc -w says it contains 80,063. I give it a thumbs up.

BOB: I couldn't disagree more, Alice, I hated it. I thought it was a woefully insipid work that has a long
way to go before it's ready for NaNoGenMo, and importantly, does not deserve a green "completed" label. It is obviously a PDF file — everyone knows the file extension can be anything you want, and when you run file on it, it says it's a PDF document, version 1.0, which pretty much cinches it I think. And then, when you open it in a PDF viewer and look at it, you'll see that it contains a mere 6 words. That's, what, 49994 words short. So it's a thumbs down from me I'm afraid.

@hugovk hugovk added the completed For completed novels! label Nov 6, 2017
@hugovk
Copy link
Member

hugovk commented Nov 6, 2017

I especially like the user of colour when opening on a phone.

screenshot_20171106-143034

@nossidge
Copy link

nossidge commented Nov 6, 2017

This is terrible and I love it.

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

No branches or pull requests

3 participants