diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2009-06-06 15:47:13 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2009-06-06 15:47:13 +0000 |
commit | f8d4d9017cefd1e852971cd17c934530703b89ab (patch) | |
tree | 4fe66a40ea17acf2dc7771da0497c66c01a63208 /Build/source/texk/web2c/xetexdir/xetex.h | |
parent | d0f4ada6f6525fc56363a30f313994a09a718bf7 (diff) |
updated to xetex 0.9994.0
git-svn-id: svn://tug.org/texlive/trunk@13644 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/xetex.h')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/xetex.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/xetexdir/xetex.h b/Build/source/texk/web2c/xetexdir/xetex.h index a7282d07881..37a089933ec 100644 --- a/Build/source/texk/web2c/xetexdir/xetex.h +++ b/Build/source/texk/web2c/xetexdir/xetex.h @@ -36,6 +36,11 @@ authorization from SIL International. #define getnativechar(p,i) native_node_text(p)[i] #define setnativechar(p,i,v) native_node_text(p)[i] = v +#define getnativeusv(p,i) \ + ((native_node_text(p)[i] >= 0xd800 && native_node_text(p)[i] < 0xdc00) ? \ + 0x10000 + (native_node_text(p)[i] - 0xd800) * 0x400 + native_node_text(p)[(i)+1] - 0xdc00 : \ + native_node_text(p)[i]) + /* p is native_word node; g is XeTeX_use_glyph_metrics flag */ #define setnativemetrics(p,g) measure_native_node(&(mem[p]), g) |