]> mj.ucw.cz Git - libucw.git/commitdiff
Relax the accent match rules of "auto" accent mode: if some _outer_ word
authorMartin Mares <mj@ucw.cz>
Tue, 10 Apr 2001 20:51:59 +0000 (20:51 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 10 Apr 2001 20:51:59 +0000 (20:51 +0000)
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.

lib/index.h

index 89d90aaf97af61878e12dc30125d832a1e00f11e..733995a1cf2b98ccae9ca738668ea54ad2c2ba42 100644 (file)
@@ -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 {