~desrt/indicator-appmenu/no-zero-indicator-penalty

  • Committer: Ryan Lortie
  • Date: 2012-04-11 13:43:30 UTC
  • Revision ID: desrt@desrt.ca-20120411134330-l0esd53ff2pkc1oh
hud: never allow perfect match for indicators

The old scoring algorithm would assign a penalty of one for searching
for "item" and finding "Item" (due to the case).  The new algorithm
ignores case.

This caused an unintended problem: the fact that we would never get
perfect matches (due to the fact that nobody ever properly capitalised
their search strings) was a good thing.  The indicator penalty is
expressed as a percentage by which to increase whatever the distance
already was, and that doesn't work well with the now-common case of a
perfect match (since 0 + 50% is still 0).

We tweak this situation by never allowing a match from an indicator have
a perfect score.  If the indicator penalty is requested, then the
distance must be at least 1.
Filename Latest Rev Last Changed Committer Comment Size
..
data 135.1.2 12 years ago Ted Gould Add in the data directory Diff
docs 133.3.1 12 years ago Ted Gould Merging the HUD into indicator-appmenu Diff
m4 133.1.1 12 years ago Allan LeSage Added coverage reporting via gcov config and targe Diff
po 133.3.1 12 years ago Ted Gould Merging the HUD into indicator-appmenu Diff
scripts 2.2.12 13 years ago Ted Gould Adding a scripts directory Diff
service 133.3.1 12 years ago Ted Gould Merging the HUD into indicator-appmenu Diff
src 2 14 years ago Ted Gould Indicator now builds Diff
tests 133.3.1 12 years ago Ted Gould Merging the HUD into indicator-appmenu Diff
tools 16.1.13 13 years ago Ted Gould Making a quick little shell script for getting the Diff
tools-vala 186.2.1 12 years ago Ted Gould Moving the hud-gtk tool into it's own vala specifi Diff
.bzrignore 166.3.11 12 years ago Ted Gould Renaming the file to make a bit more sense 4.9 KB Diff Download File
AUTHORS 72 13 years ago Ted Gould Generating AUTHORS and Changelog at dist 24 bytes Diff Download File
File autogen.sh 172 12 years ago Ted Gould Run autogen instead of sourcing it 211 bytes Diff Download File
ChangeLog 72 13 years ago Ted Gould Generating AUTHORS and Changelog at dist 24 bytes Diff Download File
configure.ac 202 12 years ago Charles Kerr 0.3.97 7.3 KB Diff Download File
COPYING 2.3.1 13 years ago Ted Gould Grabbing our very own version of the GPLv3 34.2 KB Diff Download File
Makefile.am 192.2.1 12 years ago Allan LeSage Removed gcovr dependency, cleaned up *.gcno files. 1.2 KB Diff Download File
Makefile.am.coverage 192.2.2 12 years ago Allan LeSage Pedantic name change for gcovr xml coverage result 1.3 KB Diff Download File
Makefile.am.marshal 2.1.20 14 years ago Ted Gould Bootstrapping in marshalling 1.1 KB Diff Download File
NEWS 1 14 years ago Ted Gould Boot strap Empty Diff Download File
README 1 14 years ago Ted Gould Boot strap Empty Diff Download File