It seems a complely different topic, but: is there something to learn about text saving from the smart trick of TeX formulas storing? I did a little bit of "reverse engineering" on that algorithm, I did never find anything useful application from it, but much fun. :-)
Alex