changeset 90618:b7ce72709298

(get_composition_id): Pay attention to TAB component.
author Kenichi Handa <handa@m17n.org>
date Mon, 16 Oct 2006 07:53:52 +0000
parents 2763aeb751dc
children f0097c798466
files src/composite.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/composite.c	Mon Oct 16 07:53:16 2006 +0000
+++ b/src/composite.c	Mon Oct 16 07:53:52 2006 +0000
@@ -366,7 +366,7 @@
       float leftmost = 0.0, rightmost;
 
       ch = XINT (key_contents[0]);
-      rightmost = CHAR_WIDTH (ch);
+      rightmost = ch != '\t' ? CHAR_WIDTH (ch) : 1;
 
       for (i = 1; i < glyph_len; i += 2)
 	{
@@ -376,7 +376,7 @@
 
 	  rule = XINT (key_contents[i]);
 	  ch = XINT (key_contents[i + 1]);
-	  this_width = CHAR_WIDTH (ch);
+	  this_width = ch != '\t' ? CHAR_WIDTH (ch) : 1;
 
 	  /* A composition rule is specified by an integer value
 	     that encodes global and new reference points (GREF and