The compressed text is only just over the character limit for a post here so pastebin, too I guess. The original text is too long to post here so, pastebin! Bee Movie Script
The keys were base-36 (so they take up less characters), upper case, and I substituted them in where their corresponding words were in the text, which was all lower case and had all non-alphanumeric characters stripped besides apostrophes. I'd then have the dictionary written after the text after an empty line. Honyey begins when ouw vawiant Powwen Jocks bwing the nyectaw to the hive. We knyow that you, as a bee, have wowked youw whowe wife to get to the point whewe you can wowk fow youw whowe wife. My approach was to count word frequencies and add them to a dictionary if they appear enough in the text for their length, so that doing so actually saves characters (I had a function that returns whether or not it will that takes into account the characters it'll use in the dictionary and all the substitutions of that word). Wewcome to Honyex, a division of Honyesco and a pawt of the Hexagon Gwoup.
Compress the entire bee movie script to be small enough to fit on an A4 page and be readable by a human with the naked eye.