]> mj.ucw.cz Git - libucw.git/commitdiff
WORD_TYPES_HIDDEN shouldn't be considered META by default.
authorMartin Mares <mj@ucw.cz>
Fri, 12 Jul 2002 02:19:23 +0000 (02:19 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 12 Jul 2002 02:19:23 +0000 (02:19 +0000)
WT_LINK shouldn't be considered accent-less. This might cause sherlockd
to fail to find matches in link texts from non-accented documents to
accented ones, but I think that it's more acceptable than producing
false matches. Unfortunately, we how no ways to describe accentedness
of a part of document text.

lib/custom.h

index 624a366770c395a302790988379dcaeb613bff5b..af49dc8a7e7a11480cb3ca66b84eb4f434d5bf9a 100644 (file)
@@ -54,11 +54,11 @@ enum word_type {
 #define WORD_TYPES_HIDDEN ((1 << WT_URL1) | (1 << WT_URL2) | (1 << WT_FILE))
 
 /* These types are separated out when printing contexts */
-#define WORD_TYPES_META (WORD_TYPES_HIDDEN | (1 << WT_TITLE) | (1 << WT_KEYWORD) | \
+#define WORD_TYPES_META ((1 << WT_TITLE) | (1 << WT_KEYWORD) | \
        (1 << WT_META) | (1 << WT_CAT_TITLE) | (1 << WT_CAT_DESC))
 
 /* 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) | (1 << WT_FILE) | (1 << WT_LINK))
+#define WORD_TYPES_NO_AUTO_ACCENT ((1 << WT_URL1) | (1 << WT_URL2) | (1 << WT_FILE)
 
 /* String types */