Unicode Grabber
Sorry for the hiatus – not sure who knows what, but I got married in late spring of this year. It was super busy before the wedding and things haven’t settled down since. We still haven’t decorated the new place yet or anything. In time…
Anyhow, I’ve built this little tool that I needed dearly for a project I was working on and thought I’d share it. I will soon post re-distributable code for everyone if anyone wants it. For now, I will give a short explanation and let you have at it.
The UnicodeGrabber is a tool that will parse any .txt or .xml file, grab all of the characters (only characters in node values/attributes for XML files) and return their Unicode Hex values. It also strips duplicates from the list.
What is this good for? I needed to create a lightweight font package for some Asian Flash pieces and the only way to do that is to only embed the characters you need. Since I have no knowledge of any CJK alphabet I decided to look to code. When you use the Flex SDK to create a font SWF it will (by default) embed the entire character set. Nice. Handy. Except when you need an Asian font package and realize that all of the characters in the Japanese alphabet will weigh down your font SWF to about 12 megabytes. So, it was either make this little app or a really REALLY cool pre-loader…….
Enjoy!
BTW, if it breaks please let me know. Take a screenshot if you can.
The sample font.as class can be found here.

