1 --- src/constants.h.orig Thu May 22 13:32:43 2003 2 +++ src/constants.h Thu Aug 23 22:47:07 2007 3 @@ -39,6 +39,8 @@ 4 */ 5 #include <limits.h> 6 7 +#define _UTF8_ 8 + 9 #define DESCRIPTION "out of place" 10 11 /* Reported matches are those fingerprints with a score less than best 12 @@ -59,14 +61,21 @@ 13 /* Maximum number of n-grams in a fingerprint */ 14 #define MAXNGRAMS 400 15 16 -/* Maximum size of an n-gram? */ 17 -#define MAXNGRAMSIZE 5 18 +/* Maximum number of character of an n-gram? */ 19 +#define MAXNGRAMSYMBOL 5 20 + 21 +/* Maximum size of the string representing an n-gram (must be greater than number of symbol) */ 22 +#ifdef _UTF8_ 23 +#define MAXNGRAMSIZE 20 24 +#else 25 +#define MAXNGRAMSIZE MAXNGRAMSYMBOL 26 +#endif 27 28 /* Which characters are not acceptable in n-grams? */ 29 #define INVALID(c) (isspace((int)c) || isdigit((int)c)) 30 31 /* Minimum size (in characters) for accepting a document */ 32 -#define MINDOCSIZE 25 33 +#define MINDOCSIZE 6 34 35 /* Maximum penalty for missing an n-gram in fingerprint */ 36 #define MAXOUTOFPLACE 400 37 @@ -75,5 +84,8 @@ 38 #define TABLEPOW 13 39 40 #define MAXSCORE INT_MAX 41 + 42 +/* where the fingerprints files are stored */ 43 +#define DEFAULT_FINGERPRINTS_PATH "" 44 45 #endif 46