Ignore:
Timestamp:
2006-12-11T11:22:20+13:00 (17 years ago)
Author:
shaoqun
Message:

added code for accentfolding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mgpp/text/mg_files.h

    r3365 r13477  
    5050#define MAGIC_WGHT_APPROX   GEN_MAGIC('M','G','w', 0 )
    5151#define MAGIC_PARAGRAPH     GEN_MAGIC('M','G','P', 0 )
    52 /* [RPAP - Jan 97: Stem Index Change] */
    53 #define MAGIC_STEM_1            GEN_MAGIC('M','G','s','1')
    54 #define MAGIC_STEM_2            GEN_MAGIC('M','G','s','2')
    55 #define MAGIC_STEM_3            GEN_MAGIC('M','G','s','3')
    56 
     52#define MAGIC_STEM_GEN(x)   GEN_MAGIC('M', 'G', 's', x)
    5753#define IS_MAGIC(a) ((((u_long)(a)) & 0xffff0000) == MAGIC_XXXX)
    5854
     
    219215
    220216/* [RPAP - Jan 97: Stem Index Change] */
     217/* [JFG - Mar 06: Accent folding patch]
     218 * Use the pattern with make_suffix */
    221219/* The casefolded index into the stemmed dictionary */
    222220#ifdef SHORT_SUFFIX
    223 # define INVF_DICT_BLOCKED_1_SUFFIX ".ib1"
    224 #else
    225 # define INVF_DICT_BLOCKED_1_SUFFIX ".invf.dict.blocked.1"
    226 #endif
    227 
    228 /* [RPAP - Jan 97: Stem Index Change] */
    229 /* The stemmed index into the stemmed dictionary */
    230 #ifdef SHORT_SUFFIX
    231 # define INVF_DICT_BLOCKED_2_SUFFIX ".ib2"
    232 #else
    233 # define INVF_DICT_BLOCKED_2_SUFFIX ".invf.dict.blocked.2"
    234 #endif
    235 
    236 /* [RPAP - Jan 97: Stem Index Change] */
    237 /* The casefolded and stemmed  index into the stemmed dictionary */
    238 #ifdef SHORT_SUFFIX
    239 # define INVF_DICT_BLOCKED_3_SUFFIX ".ib3"
    240 #else
    241 # define INVF_DICT_BLOCKED_3_SUFFIX ".invf.dict.blocked.3"
    242 #endif
     221# define INVF_DICT_BLOCKED_SUFFIX_PAT ".ib%d"
     222#else
     223# define INVF_DICT_BLOCKED_SUFFIX_PAT ".invf.dict.blocked.%d"
     224#endif
     225
    243226
    244227/* [RPAP - Feb 97: WIN32 Port] */
     
    264247char *make_name (const char *name, const char *suffix, char *buffer);
    265248
    266 
     249/* [JFG - Mar 06: Accent folding patch] */
     250/* This generates the suffix of a file. It places the name in the buffer
     251   specified or if that is NULL it uses a static buffer. */
     252char *make_suffix (const char *suffix_format, const char suffix_arg, char *buffer);
    267253
    268254
Note: See TracChangeset for help on using the changeset viewer.