comparison src/composite.c @ 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 3dc2ea167caf
children 6588c6259dfb
comparison
equal deleted inserted replaced
90617:2763aeb751dc 90618:b7ce72709298
364 { 364 {
365 /* Rule-base composition. */ 365 /* Rule-base composition. */
366 float leftmost = 0.0, rightmost; 366 float leftmost = 0.0, rightmost;
367 367
368 ch = XINT (key_contents[0]); 368 ch = XINT (key_contents[0]);
369 rightmost = CHAR_WIDTH (ch); 369 rightmost = ch != '\t' ? CHAR_WIDTH (ch) : 1;
370 370
371 for (i = 1; i < glyph_len; i += 2) 371 for (i = 1; i < glyph_len; i += 2)
372 { 372 {
373 int rule, gref, nref, xoff, yoff; 373 int rule, gref, nref, xoff, yoff;
374 int this_width; 374 int this_width;
375 float this_left; 375 float this_left;
376 376
377 rule = XINT (key_contents[i]); 377 rule = XINT (key_contents[i]);
378 ch = XINT (key_contents[i + 1]); 378 ch = XINT (key_contents[i + 1]);
379 this_width = CHAR_WIDTH (ch); 379 this_width = ch != '\t' ? CHAR_WIDTH (ch) : 1;
380 380
381 /* A composition rule is specified by an integer value 381 /* A composition rule is specified by an integer value
382 that encodes global and new reference points (GREF and 382 that encodes global and new reference points (GREF and
383 NREF). GREF and NREF are specified by numbers as 383 NREF). GREF and NREF are specified by numbers as
384 below: 384 below: