Update : use version 1.1, which allows minification ! :
https://dl.dropbox.com/u/1412774/Base32kDemo/pode_base32k.1.1.zip
Here's a plugin to deal with the problem of unsufficient space storage (localStorage or WebDB/variants).
<img src="https://dl.dropbox.com/u/1412774/Base32kDemo/demo.png" border="0">
When you use a lot of base64 strings (when switching images, for examples), saving them, sending them over the network, you have an overhead (since binary => base64 conversion can add up to 33% space used by the data).
Saving them on disk is also a problem after some time.
If you have a game (say, a visual novel) that uses a lot of text (XML or plain text, by the way), you also need to save a lot of text strings.
This plugin use a nice property of Javascript strings. In fact, all Javascript Strings uses UTF-16 internally (or UCS-2, if you want to be more precise, depending on what side of psychorigidity you are). That means that two bytes are use internally to represent one character (so two bytes used to represent one byte => one byte is lost each time).
Since non-latin alphabet are displayed with Unicode (UTF-16), you can do the same conversion that base64 does, but instead of going from binary data to latin alphabet, you go from binary data to asiatic characters !
(That means you don't lose a byte every two bytes internally).
So instead of loosing 33% more space in the worst case, you only loose around 3 or 4 percents...
It's usefull when you want to save a string ondisk. PAck it with this Base32k plugin. When you want to use it back, load it, unpack it with this plugin, and *hop* it's done !
The demo : https://dl.dropbox.com/u/1412774/Base32kDemo/index.html
The plugin : https://dl.dropbox.com/u/1412774/Base32kDemo/pode_base32k.1.0.zip
The .capx : https://dl.dropbox.com/u/1412774/Base32kDemo/Base32kDemo.capx
This plugin is made with the help of this codebase : https://github.com/simonratner/base32k