Support for “math” added
Sonntag, Mai 18th, 2008It was a rainy day today but luckily Norbert Jaspers got in touch with me last Friday.
Norbert added support for mathematical and chemical symbols to Wiki2Touch. Wiki2Touch is an offline Wikipedia reader for the Apple iPhone/iPod Touch.
Background: If you’re editing articles in Wikipedia and like some symbols you add TeX commands into a <math>-tag. This is then rendered by the Wikipedia software using TeX. The result is finally displayed as an image. TeX is great in producing nice formulas or other special symbols.
Norbert did the add-on without any changes to the current version. He exchanged every <math>-section inside an article with a link to a picture. He let TeX created the proper image from the original tag contents. This picture is added with a certain id to the image database. This works quite well. But you had to use a modified “articles.bin” database.
Norbert told me that he used some code from Erik Zachte. So Erik should be credited, too.
Wiki2Touch is now modified and the ids of the math sections are now calculated on the fly, the sections are removed and the proper images are inserted (if installed of course). Works like a charm:

Wiki2Touch featuring TeX rendered symbols
Because the background of the images currently isn’t transparent you can easily spot what is a image and what is text.
A couple of things still have to get changed. But math support is now added to Wiki2Touch. While on that subject: I think there’s finally enough stuff together for a new version now. So stay tuned.
Thanks for all the support!
Tom
