]> mj.ucw.cz Git - libucw.git/commitdiff
URL words split to two categories with different weights.
authorMartin Mares <mj@ucw.cz>
Tue, 10 Apr 2001 20:34:00 +0000 (20:34 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 10 Apr 2001 20:34:00 +0000 (20:34 +0000)
lib/index.h

index 912925102cff78a1f7f731d06be1dbdcc7ff2742..89d90aaf97af61878e12dc30125d832a1e00f11e 100644 (file)
@@ -21,14 +21,15 @@ enum word_type {
   WT_KEYWORD,                          /* Explicitly marked keyword */
   WT_META,                             /* Various meta-information */
   WT_ALT,                              /* Alternate texts for graphical elements */
-  WT_URL,                              /* Word extracted from document URL */
+  WT_URL1,                             /* Word extracted from document URL (low and high weight) */
+  WT_URL2,
   WT_MAX
 };
 
 /* Descriptive names used for user output */
 #define WORD_TYPE_USER_NAMES                                                   \
    "reserved", "text", "emph", "small", "title", "hdr1", "hdr2", "keywd",      \
-   "meta", "alt", "urlword", "type11", "type12", "type13", "type14", "type15"
+   "meta", "alt", "urlword1", "urlword2", "type12", "type13", "type14", "type15"
 
 /* Keywords for word type names */
 #define WORD_TYPE_NAMES                                \
@@ -43,10 +44,10 @@ enum word_type {
        T(KEYWD, 1 << WT_KEYWORD)               \
        T(META, 1 << WT_META)                   \
        T(ALT, 1 << WT_ALT)                     \
-       T(URLWORD, 1 << WT_URL)
+       T(URLWORD, (1 << WT_URL1) | (1 << WT_URL2))
 
 /* These types are not shown in document contexts */
-#define WORD_TYPES_HIDDEN (1 << WT_URL)
+#define WORD_TYPES_HIDDEN ((1 << WT_URL1) | (1 << WT_URL2))
 
 /* String types */