From: Ron V. d. B. <ron...@ka...> - 2011-05-27 19:16:29
|
[Blast, replying with the correct subject line is tricky, sometimes...] Hi, On 27/05/2011 15:54, exi...@li... wrote: > A search on e.g. $qterm="Warheit" (without h) works properly, > kwic:summarize shows the expected behaviour. Yet a search on > $qterm="Wahrheit" (with h, content of @lemma) gets the hit but kwic > fails to highlight the hit. It seems that in searching on attributes no > wrapper of the hit such as<exist:expan> or ||| is provided allowing to > highlight the pertinent chunk of text. What do I do wrong? > The kwic:summarize() function looks for <exist:match> elements that are only injected inside matching text nodes. Currently, attribute highlighting is not quite functioning (see <http://sourceforge.net/tracker/index.php?func=detail&aid=3204156&group_id=17691&atid=117691>), and even if it were, it wouldn't help for the kwic:summarize() function, I believe: the '|||' delimiters wouldn't be recognised. Recently, I proposed an improvement for attribute highlighting (<http://markmail.org/message/tnfeduzdyvaedmdd>). It hasn't been implemented yet (I'm no programmer myself, unfortunately), but I believe it could improve the expansion functionality (kwic:summarize, util:expand()) as well. Kind regards, Ron -- Ron Van den Branden Wetenschappelijk attaché / Senior Researcher Reviews Editor LLC. The Journal of Digital Scholarship in the Humanities Centrum voor Teksteditie en Bronnenstudie - CTB (KANTL) Centre for Scholarly Editing and Document Studies Koninklijke Academie voor Nederlandse Taal- en Letterkunde Royal Academy of Dutch Language and Literature Koningstraat 18 / b-9000 Gent / Belgium tel: +32 9 265 93 51 / fax: +32 9 265 93 49 E-mail : ron...@ka... http://www.kantl.be/ctb |