[XeTeX] encoding radicals in traditional Chinese

Jonathan Kew jonathan at jfkew.plus.com
Fri Nov 28 06:27:05 CET 2008


On 28 Nov 2008, at 16:54, Daniel Greenhoe wrote:

>
> I am having trouble encoding some of the radicals in traditional  
> Chinese using XeLaTeX. I have read that the radicals exist in the  
> Unicode U+2F00-2FDF and in the CJK Radicals Supplement range  
> 2E80-2EFF:
>  http://en.wikipedia.org/wiki/List_of_Kangxi_radicals
>
> Can someone tell me how to encode these characters into a XeLaTeX  
> document (using UTF-8 encoding)?
>
> Is there a command like \utf8{x2F39} to encode the character at U 
> +2F39 in the Unicode code table?

You can simply use TeX's \char primitive, as in \char"2F39, to print  
any Unicode character using the current font.

(Remember that spaces will normally be discarded after the number, so  
you may want to use braces or something to prevent that.)

JK



More information about the XeTeX mailing list