From: Martin Mares Date: Tue, 10 Apr 2001 20:51:59 +0000 (+0000) Subject: Relax the accent match rules of "auto" accent mode: if some _outer_ word X-Git-Tag: holmes-import~1484 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=69191ef580483146f13f9beccc118e4a24c4e607;p=libucw.git Relax the accent match rules of "auto" accent mode: if some _outer_ word matches only without accents in an accented document and the match is in URL keywords, accept it (we know it will be real match as the word is outer). Bleeeech, it's ugly. --- diff --git a/lib/index.h b/lib/index.h index 89d90aaf..733995a1 100644 --- a/lib/index.h +++ b/lib/index.h @@ -49,6 +49,9 @@ enum word_type { /* These types are not shown in document contexts */ #define WORD_TYPES_HIDDEN ((1 << WT_URL1) | (1 << WT_URL2)) +/* These types are always matched without accents if accent mode is set to "auto" */ +#define WORD_TYPES_NO_AUTO_ACCENT ((1 << WT_URL1) | (1 << WT_URL2)) + /* String types */ enum string_type {