Seems good except for the indentations. You seem to assume 1 tab equals 8 spaces and the code doesn't look fine when tab width is set to, for example, 4 characters. IMO, depending on tab width should be avoided.
-- Muneyuki Noguchi -- Google Groups "uim-en" group uim-en@googlegroups.com http://groups.google.com/group/uim-en/about