The Unicode post put up day before yesterday was tedious to create. I had to keep jumping between the editor and the lookup pages until I decided to first get the entities in a line, on paper. Then, feeling rather like a Windtalker, I typed those entities in the editor. Thats a pretty roundabout way of doing things. If I required over forty minutes to write two sentences, there was no hope for transcribing full length Marathi and Hindi articles for the college magazine website. And unless the process was straightforward, people like Bhise (who is interested in putting up some stuff he has written in Marathi) would reject it out of hand.
I got a brainwave and sent a mail to a friend asking him to implement a script to generate the necessary representation in Unicode. The user would just have to click on the character he wants. A sort of typesetting software. After sending the mail, I realised how trivial the request was…
Yesterday, I spent the afternoon and evening in creating this hack. Just like the tyesetting machine I had visualized – it generates Unicode entities as fast as you can click the characters.
I was tempted to get image files for the characters. It would have provided a better look and made it easier while clicking a particular character. A few reasons why I didn’t do it.
- The package would have grown from a single 9 KB file to a 9+ KB file and 148 image files.
- As it is now, you can test how your browser actually renders the characters, because the characters themselves are displayed using Unicode entities.
You can download the file for local use. Let me know how it works. It would be better to squash the bugs before I use it for creating the college magzine webpages.