I'm about ready to start writing dialogue and events for my hack, and while I have conversion tools written for myself in Applescript, they're not instantaneous (or useable by other OS's). So, I decided to write a Javascript tool based on my original one, with a few more bells and whistles. Please take a look and tell me what you think, especially if the Unicode characters aren't showing up right or you can think of any improvements. The link is here:
http://phoenix.hacks.googlepages.com/FF4TextConverter.html Edit: No longer on that page, but the new version is attached below
The textareas are (roughly) 26 characters wide because that's the width for dialog windows. Some of the Unicode characters will screw this up a little. There's a few other things to keep in mind: first off, I haven't coded HTML since about 9th grade, which means I had a lot to catch up on in terms of scripting and CSS. Pointers on CSS (or javascript) would be appreciated if you know how to do something more elegantly.
Secondly, I tested this Camino, Safari, and Firefox, but if something comes up in another browser let me know. There's a few browser-specific kinks I couldn't figure out:
1. In Mozilla browsers, a single string of characters (such as the hex data) scrolls horizontally in textareas. I could fix it by inserting spaces, but that defeats the purpose of having a copy and pasteable version of the hex data. I did a lot of search on this one, and it doesn't appear to be easily fixable (yet).
2. In Camino specifically, some of the buttons show up as squares instead of rounded.
They work in Firefox 3, so it'll probably be fixed in a future version of Camino. Probably won't bother anyone but me, but if you find another browser that does this let me know. This has to do with the font for input buttons. (Lucida Grande causes this for some reason.) Camino also doesn't display a few of the Unicode characters.
Edit: Turns out it doesn't load the Apple Symbols font. I assume no one else will have this font, so there will probably be problems with the display of a few buttons.
3. In Safari, if you insert a character via a button at the start of a line, it will insert a new line before it.
Thanks for any advice/comments/help!
