Homec4science

BibFormat: full-text snippet selection improved

Authored by Jan Iwaszkiewicz <jan.iwaszkiewicz@cern.ch> on Oct 15 2010, 16:39.

Description

BibFormat: full-text snippet selection improved

  • grep only for exact matches or in case of absense of those, match words beginning with the stem of a pattern
  • avoid highlighting substrings which are parts of non-pattern words
  • while cutting out the snippet, use re for matching patterns insread of the previous method
  • ',' or '-' are properly recognized as word boundary
  • "disappearing snippets" problem is fixed (it occured for multi-word search patterns) (see #272)
  • in the input strings, the parenthesis are removed except in case there is no space between them, e.g. U(1)
  • the highlight method is now also using the new highlight_matches method and "escapes" search terms

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Oct 17 2010, 12:38
Parents
R3600:4f63bfe58dc9: refextract: improvements to author recognition
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:6b78cdbf46ab: BibFormat: full-text snippet selection improved (authored by Jan Iwaszkiewicz <jan.iwaszkiewicz@cern.ch>).Oct 17 2010, 12:38