2 * Sherlock: Custom Parts of Configuration
4 * (c) 2001 Martin Mares <mj@ucw.cz>
7 /* Name of this customization (version suffix) */
13 #define SHERLOCK_CONFIG_LARGE_DB /* Support for DB files >4GB */
14 #define SHERLOCK_CONFIG_LFS /* Large files on 32-bit systems */
15 #define SHERLOCK_CONFIG_LFS_LIBC /* LFS supported directly by libc */
20 WT_RESERVED, /* Reserved word type */
21 WT_TEXT, /* Ordinary text */
22 WT_EMPH, /* Emphasized text */
23 WT_SMALL, /* Small font */
24 WT_TITLE, /* Document title */
25 WT_SMALL_HEADING, /* Heading */
26 WT_BIG_HEADING, /* Larger heading */
27 WT_KEYWORD, /* Explicitly marked keyword */
28 WT_META, /* Various meta-information */
29 WT_ALT, /* Alternate texts for graphical elements */
30 WT_URL1, /* Word extracted from document URL (low and high weight) */
35 /* Descriptive names used for user output */
36 #define WORD_TYPE_USER_NAMES \
37 "reserved", "text", "emph", "small", "title", "hdr1", "hdr2", "keywd", \
38 "meta", "alt", "urlword1", "urlword2", "type12", "type13", "type14", "type15"
40 /* Keywords for word type names */
41 #define WORD_TYPE_NAMES \
43 T(TEXT, 1 << WT_TEXT) \
44 T(EMPH, 1 << WT_EMPH) \
45 T(SMALL, 1 << WT_SMALL) \
46 T(TITLE, 1 << WT_TITLE) \
47 T(HDR, (1 << WT_SMALL_HEADING) | (1 << WT_BIG_HEADING)) \
48 T(HDR1, 1 << WT_SMALL_HEADING) \
49 T(HDR2, 1 << WT_BIG_HEADING) \
50 T(KEYWD, 1 << WT_KEYWORD) \
51 T(META, 1 << WT_META) \
53 T(URLWORD, (1 << WT_URL1) | (1 << WT_URL2))
55 /* These types are not shown in document contexts */
56 #define WORD_TYPES_HIDDEN ((1 << WT_URL1) | (1 << WT_URL2))
58 /* These types are always matched without accents if accent mode is set to "auto" */
59 #define WORD_TYPES_NO_AUTO_ACCENT ((1 << WT_URL1) | (1 << WT_URL2))
64 ST_RESERVED, /* Reserved string type */
65 ST_URL, /* URL of the document */
66 ST_HOST, /* Host name */
67 ST_DOMAIN, /* Domain name */
68 ST_REF, /* URL reference */
69 ST_BACKREF, /* Back-reference (frame or redirect source) */
73 #define STRING_TYPE_USER_NAMES \
74 "URL", "host", "domain", "ref", "backref", "type5", "type6", "type7", \
75 "type8", "type9", "type10", "type11", "type12", "type13", "type14", "type15"
77 #define STRING_TYPE_NAMES \
79 T(HOST, 1 << ST_HOST) \
80 T(DOMAIN, 1 << ST_DOMAIN) \
82 T(BACKREF, 1 << ST_BACKREF)
84 #define STRING_TYPES_URL ((1 << ST_URL) | (1 << ST_REF) | (1 << ST_BACKREF))
85 /* These must be indexed in lowercase form */
86 #define STRING_TYPES_CASE_INSENSITIVE ((1 << ST_HOST) | (1 << ST_DOMAIN))