#!/bin/sh topdir=`dirname $0`/.. . $topdir/shared.sh initvariables $0 ( recollq QMapConstIterator recollq Qtextedit Widget Provides Powerful Single-Page recollq '"This is the Mysql reference manual"' # Tests that the charset spec is correctly recognised inside badhtml.html recollq -a 'etonne badhtml' # Tests field extraction/storage and indexing recollq -m -q "testfield:testfieldvalue" | \ egrep 'results|^text/html|^testfield =' # Not specifically HTML. apos.html has text where an apostrophe-like # Unicode character is used in place of ASCII ' . Checks that we # replace the character for proper span processing recollq -q '"'imperfections de l"'"oeil'"' # more unaccenting tests recollq -q 'effaranteUTF8HTML' recollq -q 'effrayanteUTF8HTML' recollq -q 'accentueesUTF8HTML' recollq -q 'accentueesISOHTML' recollq -q html5charsetaccentue # Stripping trade mark and copyright signs recollq -q filename:signs.html Registered Trademark Copyright SoundCopyright # Text in malformed html (before or after body) should be indexed anyway... recollq -q BADHTMLTEXTBEFOREBODY recollq -q BADHTMLTEXTINSECONDBODY recollq -q BADHTMLTEXTAFTERBODY ) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout diff -w ${myname}.txt $mystdout > $mydiffs 2>&1 checkresult