From b8cb14428147d6bc9dc3915e1c1ccb6ad9c3fdb2 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 12 Jul 2002 02:19:23 +0000 Subject: [PATCH] WORD_TYPES_HIDDEN shouldn't be considered META by default. 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/custom.h b/lib/custom.h index 624a3667..af49dc8a 100644 --- a/lib/custom.h +++ b/lib/custom.h @@ -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 */ -- 2.39.2