More UI hacking for entering Unicode into XML documents in Emacs.
Anyone can do any amount of work provided it isn't the work he is supposed to be doing at the moment.
Inspired by some additional discussion of character entities on the
I hacked at my
xmlchars.el work a bit more and
produced XML Unicode.
XML Unicode improves on my previous efforts:
Added a function to insert characters by Unicode name. Don’t remember the ISO entity name for “triple prime”? No worries, hit C-t u type “trip<tab>pr<tab><enter>” and in it goes.
Added a similar function for ISO entity names.
Added a glyph list. Inserting literal Unicode characters is great, if they display properly. If not, I’d rather see the numeric character reference.
If the character occurs in an XML name, then I need the real character even if I can’t see it. For those cases, each of the functions takes a prefix arg. In other words, C-u C-t u.
sgml-inputso that it’s sensitive to the glyph list. My new
xml-inputwatches what you type and automatically replaces ISO entity names with appropriate characters.
In other words, typing
éautomatically inserts an “é” while typing
‴inserts ‴ because I don’t have a glyph for it in my emacs setup.
The ISO entity names are all table driven; you can use any mneumonics you like.
I added code to construct a real Emacs pull-down menu (in addition to or instead of the pop-up menu) for any special characters that you’d like to access that way.
Share and enjoy.
Aside: Does the Yahoo Groups archive work for anyone? Half the time I get host not found errors, half of the remaining time I get completely empty documents, and at least half of the time that still remains, I get advertisements that I can’t click through. I’m not sure I’ve ever successfully read a message in their archives.
Or whatever binding you added for