Comments on Generate Lewis Caroll's Jabberwocky
Parent
Generate Lewis Caroll's Jabberwocky
The task is to generate the text of Lewis Caroll's Jabberwocky.
The text, quoted from Wikipedia, is as follows (I've replaced a non-ASCII character with ASCII, otherwise it's direct copy&paste from the linked Wikipedia article):
'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.
"Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!"
He took his vorpal sword in hand:
Long time the manxome foe he sought-
So rested he by the Tumtum tree,
And stood awhile in thought.
And as in uffish thought he stood,
The Jabberwock, with eyes of flame,
Came whiffling through the tulgey wood,
And burbled as it came!
One, two! One, two! And through and through
The vorpal blade went snicker-snack!
He left it dead, and with its head
He went galumphing back.
"And hast thou slain the Jabberwock?
Come to my arms, my beamish boy!
O frabjous day! Callooh! Callay!"
He chortled in his joy.
'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.
The text above has to be produced verbatim, including newlines (you can use any of the common newline characters or character sequences, provided you stay consistent). Note that there is a newline character at the end of the last line.
This is code-golf, so the shortest entry per language wins.
Japt, 625 615 bytes ``` `' …
3y ago
Japt, 610 606 bytes Don't t …
3y ago
[Bubblegum], 769 bytes …
4y ago
[Python 3], 874 bytes …
3y ago
Post
Japt, 625 615 bytes
`'T°s ߦg, d e sÒy v
Did gy d g½e e °¼;
A¥ Úßy ØÀ e Þgov,
A e Ú ÎÈs tg¼.
`
+i`
"BeØ e {=`Jab¼rwock`}, my s!
T jaws È ßÒ, e claws È ¯t®!
BeØ e Jubjub bird, d д
T èã BÂrsn
®!"
He ok s vpal sÙ Ê@:
Lg ÈØ e µnxo´ foe Ñht-
So Î by e Tumtum É,
A ÐOd aØe Èght.
A uffh Èght ÐOd,
T {U}, ØP ey fla´,
Ca´ ²iffÒ È*ugh e tªgey wood,
A ¿rÞB ¯´!
O, two! O, two! A È*ugh d È*ugh
T vpal Þue ØË sÍõ-snack!
He ¤ft Ü%, d ØP s Ê%
He ØË galumpÊ back.
"A ÊQ È sÓ° e {U}?
Co´ my ms, my ¼aÚÊ ¾y!
O fbjs »y! CÃ
oh! CÃy!"
He Öt¤d s joy.
-10 bytes thanks to @Shaggy
Dictionary compression, repeating the first paragraph. I can't really find any patterns to do anything else... words such as "Jabberwock" (which aren't in the dictionary) aren't compressed enough to try and save on, I think.
0 comment threads