From 43c05635a23f2e2ba51cd36ba9f7d52a1fa83e81 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 26 May 2002 13:11:01 +0000 Subject: [PATCH] Added word types for file name keywords and link texts. --- lib/custom.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/custom.h b/lib/custom.h index f4a57115..a0ac16a3 100644 --- a/lib/custom.h +++ b/lib/custom.h @@ -23,13 +23,15 @@ enum word_type { WT_ALT, /* Alternate texts for graphical elements */ WT_URL1, /* Word extracted from document URL (low and high weight) */ WT_URL2, + WT_FILE, /* Part of file name */ + WT_LINK, /* Link text */ WT_MAX }; /* Descriptive names used for user output */ #define WORD_TYPE_USER_NAMES \ "reserved", "text", "emph", "small", "title", "hdr1", "hdr2", "keywd", \ - "meta", "alt", "urlword1", "urlword2", "type12", "type13", "type14", "type15" + "meta", "alt", "urlword1", "urlword2", "nameword", "link", "type14", "type15" /* Keywords for word type names */ #define WORD_TYPE_NAMES \ @@ -44,13 +46,15 @@ enum word_type { T(KEYWD, 1 << WT_KEYWORD) \ T(META, 1 << WT_META) \ T(ALT, 1 << WT_ALT) \ - T(URLWORD, (1 << WT_URL1) | (1 << WT_URL2)) + T(URLWORD, (1 << WT_URL1) | (1 << WT_URL2)) \ + T(FILE, 1 << WT_FILE) \ + T(LINK, 1 << WT_LINK) /* These types are not shown in document contexts */ -#define WORD_TYPES_HIDDEN ((1 << WT_URL1) | (1 << WT_URL2)) +#define WORD_TYPES_HIDDEN ((1 << WT_URL1) | (1 << WT_URL2) | (1 << WT_FILE)) /* 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)) +#define WORD_TYPES_NO_AUTO_ACCENT ((1 << WT_URL1) | (1 << WT_URL2) | (1 << WT_FILE) | (1 << WT_LINK)) /* String types */ -- 2.39.2