Question
I am wondering if there is a way to provide the \XeTeXglyph as input and get the the character code (preferably in hexidecimal) as output.
Situation
I've been doing many experiments with Generating a table of glyphs with XeTeX. The XeTeX reference manual mentions a few commands:
According to the manual, you can look up characters by
\XeTeXglyph⟨glyph slot⟩\XeTeXglyphname⟨font⟩ ⟨glyph slot⟩\XeTeXglyphindex"⟨glyph name⟩" ⟨space⟩ or \relaxx\XeTeXcharglyph⟨char code⟩
This would be an insanely useful feature.