Re: Highlighting text, adding notes to PDFs in the FoxTrot preview [message #1442 is a reply to message #1439] |
Wed, 11 May 2022 14:59 |
FoxTrot Engineering
Messages: 406 Registered: April 2020
|
Senior Member |
|
|
You pretty precisely describe how excerpts are currently implemented: FoxTrot chooses the excerpt of 21 consecutive words that have the highest weight; rare words (relative to the whole index, not to the document) having more weight than frequent words.
Thus typically, if wordone is far less common than wordtwo, the excerpt should contain at least one occurrence of wordone. Except maybe if an excerpt can be found with 3 or more occurrences of wordtwo, but none of wordone.
However, maybe your column layout is not wide enough to display the excerpt entirely, and you only see its beginning which does not necessarily contain wordone?
We could maybe add a preference to change the length (number of words) of excerpts, or compute an arbitrary length based on the width of the excerpt column, instead of always showing excerpts of 21 words (but this wont guaranty that the excerpt won't be truncated).
Jérôme - FoxTrot Engineering
|
|
|