NaNoGenMo / 2017

National Novel Generation Month, 2017 edition.
https://nanogenmo.github.io
185 stars 7 forks source link

Legiony McLegionface #87

Open cpressey opened 6 years ago

cpressey commented 6 years ago

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 commented 6 years ago

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

screenshot_20171106-143034

nossidge commented 6 years ago

This is terrible and I love it.