- Notifications
You must be signed in to change notification settings - Fork7
Description
Code
This is written in Lua 5.1 and requirespdf.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)fori=1,10000dopage:set_text_pos(0,0)page:show("Bro, do you even contain multitudes?")endpage:end_text()page:add()p:write("Legiony_McLegionface.txt")
Result
The resulting novel can be found inthis zip file.
What the Reviewers Said
ALICE: I loved it, I thought it was wonderfully insipid, top-notch NaNoGenMo material and well deserving ofa 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 eventr -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, doesnot deservea green "completed" label. It is obviously a PDF file — everyone knows the file extension can be anything you want, and when you runfile
on it, it says it's aPDF 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 thumbsdown from me I'm afraid.