fixes in textsplit

This commit is contained in:
dockes
2005-02-08 09:34:47 +00:00
parent 2a020407da
commit 4c54a8478f
7 changed files with 135 additions and 62 deletions
+4 -2
View File
@@ -23,11 +23,13 @@ unix {
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
LIBS += ../lib/librcl.a -L/usr/local/lib -lxapian -liconv
LIBS += ../lib/librcl.a -L/usr/local/lib -lxapian -liconv \
-lfontconfig -lfreetype -lexpat -lz
INCLUDEPATH += ../common ../index ../query ../unac ../utils
#QMAKE_LFLAGS_SHAPP += -static
}
UNAME = $$system(uname -s)
contains( UNAME, [lL]inux ) {
LIBS -= -liconv
}
}
+5 -6
View File
@@ -80,15 +80,14 @@ class myTextSplitCB : public TextSplitCB {
static string plaintorich(const string &in, const list<string>& terms,
list<pair<int, int> >&termoffsets)
{
#if 0
{string t;
for (list<string>::const_iterator it = terms.begin();it != terms.end();it++)
t += "'" + *it + "' ";
LOGDEB(("plaintorich: term: %s\n", t.c_str()));
for (list<string>::const_iterator it = terms.begin();
it != terms.end();it++) t += "'" + *it + "' ";
LOGDEB(("plaintorich: terms: %s\n", t.c_str()));
}
#endif
myTextSplitCB cb(terms);
TextSplit splitter(&cb);
TextSplit splitter(&cb, true);
splitter.text_to_words(in);
string out1;
if (cb.tboffs.empty()) {