# Zebra indexes as referred to from the *.abs-files.
-# $Id: t17.idx,v 1.2 2007-11-07 10:24:28 adam Exp $
+# $Id: t17.idx,v 1.3 2007-11-08 13:35:36 adam Exp $
#
# Traditional word index
position 1
alwaysmatches 1
firstinfield 1
-locale en
# simplechain dummy
icuchain words-icu.xml
-/* $Id: zebramap.c,v 1.69 2007-11-08 09:30:05 adam Exp $
+/* $Id: zebramap.c,v 1.70 2007-11-08 13:35:36 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
} u;
chrmaptab maptab;
const char *maptab_name;
- const char *locale;
zebra_maps_t zebra_maps;
#if YAZ_HAVE_XML2
xmlDocPtr doc;
zm->id = nmem_strdup(zms->nmem, index_type);
zm->maptab_name = 0;
zm->use_chain = 0;
- zm->locale = 0;
zm->maptab = 0;
zm->type = map_type;
zm->completeness = 0;
return -1;
}
}
- else if (!yaz_matchstr(argv[0], "locale"))
- {
- zm->locale = nmem_strdup(zms->nmem, argv[1]);
- }
else if (!yaz_matchstr(argv[0], "simplechain"))
{
zm->use_chain = 1;
else if (!yaz_matchstr(argv[0], "icuchain"))
{
#if YAZ_HAVE_XML2
- if (!zm->locale)
- {
- yaz_log(YLOG_WARN, "%s:%d: locale required before icuchain",
- fname, lineno);
- return -1;
- }
zm->doc = xmlParseFile(argv[1]);
if (!zm->doc)
{
UErrorCode status;
xmlNode *xml_node = xmlDocGetRootElement(zm->doc);
zm->icu_chain =
- icu_chain_xml_config(xml_node, zm->locale,
+ icu_chain_xml_config(xml_node,
/* not sure about sort for this function yet.. */
#if 1
1,