Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
  • 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
2  
It might be helpful to explain in more detail what metadata you have in mind –  Joseph Wright Dec 17 '11 at 7:10
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.