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

Icebox by @hugovk #133

Open
hugovk opened this issue Dec 2, 2017 · 0 comments
Open

Icebox by @hugovk #133

hugovk opened this issue Dec 2, 2017 · 0 comments
Labels
completed For completed novels! preview There is an excerpt somewhere in the thread!

Comments

@hugovk
Copy link
Member

hugovk commented Dec 2, 2017

Icebox

It's full of plums

Twitter is full of plums the moment.

Here's my 2014 entry 50,000 Meows rehacked into 50,000 Plums.

icebox.py takes an existing book and replaces all words with a plum of the same length, keeping punctuation.

Output

Sample

PLLLLLLUUM PLUUM

Plum pl pl plllluuuum pl plum pl plllluuuum pl pllum pluum. Plllum pllum
pl pluuuuum pllllum pluuum plm. Pluuum plum pluuum pl plm plum pl plum
plum plm pllluum. Plm plum pluuum pluuum pl plum pl pllluum pluum; plum
plm pluuuum pl pl pllllum plm pl plluum pl plum plm. Plm pllllluum plm
plm pluum pllum plm pllluuuuum:--

[Plllllllllum: PLUM--PLUUUUUM PL PL PLUM]

              pLluuum plm Pllluuuum.p

  Plluum.                    Plllluum pl Pluuuum.
  Plluuum Pluuum.            Pluum'p Pllllluum.
  Plm Pllluuum.              Plluuuuuum Plllluum.


           pLlluuuuum plm Pllluum.p

  P. p'Pllluum.              Pllum p'Plum pl Plllllllum Plum.
  Pluuum pl p'Plllllllum.    Plllllum pl Plluum.

Source code

icebox.py (and unit tests in test_icebox.py)

https://github.com/hugovk/meow.py

Footnote

This is a bit of a late entry because I only got the idea yesterday and did this in 20 minutes this morning.

@hugovk hugovk added preview There is an excerpt somewhere in the thread! completed For completed novels! labels Dec 2, 2017
@hugovk hugovk mentioned this issue Dec 7, 2017
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed For completed novels! preview There is an excerpt somewhere in the thread!
Projects
None yet
Development

No branches or pull requests

1 participant