I'm kind of confused. Couldn't you use the ucharclasses package for this? Isn't this the precise reason it was created?
-Andy -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex