From: handa Date: Thu, 3 Dec 2009 07:51:46 +0000 (+0000) Subject: (run_stages): Reset category code if category-table X-Git-Tag: merge-to-XML~23 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=20d55f400914607461cdce4f53da388c1772dde2;p=m17n%2Fm17n-lib.git (run_stages): Reset category code if category-table is changed. (mflt_run): Don't set category code here. (decode_packed_otf_tag): If no feature is applied, re-calculate category code. (run_command): On copy, don't re-calculate a category code. --- diff --git a/src/m17n-flt.c b/src/m17n-flt.c index 9f6eeb6..0e54af1 100644 --- a/src/m17n-flt.c +++ b/src/m17n-flt.c @@ -1872,7 +1872,7 @@ decode_packed_otf_tag (FontLayoutContext *ctx, MFLTGlyphString *gstring, } } else - enc = GET_COMBINED (g) ? '\0' : GET_CATEGORY_CODE (g); + enc = '\0'; if (! enc) enc = g->c > 0 ? (int) mchartable_lookup (category->table, g->c) : 1; SET_CATEGORY_CODE (g, enc); @@ -2138,6 +2138,7 @@ run_command (int depth, int id, int from, int to, FontLayoutContext *ctx) g = GREF (ctx->out, ctx->out->used - 1); if (ctx->combining_code) SET_COMBINING_CODE (g, ctx, ctx->combining_code); +#if 0 else if (! GET_COMBINED (g) && ctx->category) { MCharTable *table = ctx->category->table; @@ -2149,6 +2150,7 @@ run_command (int depth, int id, int from, int to, FontLayoutContext *ctx) : ' '); SET_CATEGORY_CODE (g, enc); } +#endif if (ctx->left_padding) SET_LEFT_PADDING (g, ctx, LeftPaddingMask); if (ctx->cluster_begin_idx >= 0)