KWIC format is mostly used for showing what&#39;s next to the searched pattern ; its purpose is to print in a convenient way the words that enclose the queried pattern.<div>Usually using a fixed size font, colouring or spacing the targeted word more than normal, X glyphs before and X glyphs after (glyphs or words, no matter). </div>
<div>(For a real one : <a href="http://www.someya-net.com/concordancer/index.html">http://www.someya-net.com/concordancer/index.html</a>)</div><div><br></div><div>This is a visualisation tool and a search program, not as generic as Oliver mentioned in his post (<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(34, 34, 34); ">How hard would it be to define the extent of the extract not in paragraphs or lines but in words?)</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(34, 34, 34); ">I permit to ask in case you would create a new word excerpt unit ; then, would it be possible as an option to show and style the result in a kwic format (i.e. the pattern highlighted –that&#39;s already done– and centred, idealy with fixed size font) ?</span></div>
<div><font class="Apple-style-span" color="#222222"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" color="#222222"><span class="Apple-style-span" style="border-collapse: collapse;">Nothing more than a suggestion,</span></font></div>
<div><font class="Apple-style-span" color="#222222"><span class="Apple-style-span" style="border-collapse: collapse;">Gilles.</span></font></div><div><font class="Apple-style-span" color="#222222"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" color="#222222"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" color="#222222"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><br></div><div><br><div><br><br><div class="gmail_quote">2009/9/9 Hans <span dir="ltr">&lt;<a href="mailto:design5@softflow.co.uk">design5@softflow.co.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Wednesday, September 9, 2009, 2:43:49 PM, ABClf wrote:<br>
<br>
&gt; One word to say that what would be nice too (for my own point of<br>
&gt; view), is to get a KWIC format ; then one can use textextract to<br>
&gt; produce lexical analysis inside pmwiki.<br>
<br>
</div>i am not familiar with KWIC.<br>
Is that the same than to add a wordcount boundary around each found<br>
term? Like &quot;show term within 25 words before and after&quot;.<br>
The number of words could be specified by the option parameter.<br>
<br>
And should such boundaries go beyond paragraphs, or stop at<br>
paragraph divisions. i think it would look better if they stop,<br>
otherwise a result may show just a few words from the preceding<br>
paragraph, which may make no sense at all. If we specify unit=para<br>
and say words=20 we would stay automatically within pargraphs,<br>
just restrict the output a bit more.<br>
<br>
And what about sentence boundaries? It would be extremely hard to<br>
determine any of those. I don&#39;t think I&#39;d like to go that way.<br>
<font color="#888888"><br>
<br>
  ~Hans<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------<br>| A | de la langue française<br>| B | <a href="http://www.languefrancaise.net/">http://www.languefrancaise.net/</a><br>| C | <a href="mailto:languefrancaise@gmail.com">languefrancaise@gmail.com</a><br>
---------------------------------------<br>
</div></div>