TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  • Do any font types store metadata about each letter?
  • Or does Unicode provide any linguistic information about each symbol?
  • Can this metadata be accessed in XeTeX?
share|improve this question
It might be helpful to explain in more detail what metadata you have in mind – Joseph Wright Dec 17 '11 at 7:10

The only things I know:

  • Use \fontdimen to get the dimensions of the font. See TeX by Topic 4.3 Font information.

  • Use \XeTeXglyphbounds to get the boundingbox of every glyph. See XeTeX Reference.

  • Use \the\XeTeXcharclass ... to get the predefined character class of a glyph. You can distinguish CJK characters (class 1), CJK punctuations (class 2 and 3) from normal characters (class 0). That's all XeTeX knows. For example,

    \the\XeTeXcharclass`a    % 0
    \the\XeTeXcharclass`文   % 1
    \the\XeTeXcharclass`《   % 2, should not be at the end of a line
    \the\XeTeXcharclass`。   % 3, should not be at the beginning of a line

I don't think there are linguistic information of each symbol.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.