PowerToys/Wox.Infrastructure
Jeremy Wu 07310c7714 Fix pinyin fuzzysearch (#131)
* fix typo

* make function obsolete 

it is not used in the code

* rewrite the function that converts chinese chars to pinyin

1. Only difference in this rewrite is instead of returning 2D array, return as a combined single string of all the possible pinyin combination. Since fuzzy search does character matching, this shouldn't be a problem.

2. Added a function that returns a custom language converter. In this case Pinyin converter. New converters can be added.

* Use new language converter param + strip out ScoreForPinyin method

* update

* Change parameter name

* fix failing tests

* WIP

* Remove todo

There should be some distinction between score after precision filter and actual raw score derived from FuzzySearch. Although so far RawScore is used in testing, but it seems to describe the structure. Originally it was to avoid assigning score directly as it would be hard to reason about that output of FuzzySearch score is.

* Add constructors, remove default to enforce required properties

* remove setting rawscore in SearchPrecision

* Change method name to reflect intention

* Change parameter name + update comment

* update

* Remove params comment

Co-authored-by: theClueless <14300910+theClueless@users.noreply.github.com>
2020-01-20 01:06:16 +02:00
..
Exception remove custom exception 2017-01-30 00:26:11 +00:00
Hotkey comment fix 2016-01-22 20:47:00 +08:00
Http initial work, added github to setting, 2020-01-07 02:34:46 +02:00
Image oops 2020-01-09 01:10:13 +02:00
Logger Merge pull request #119 from theClueless/deploymentUpdates 2020-01-15 09:08:45 +11:00
Properties Add executable directory path 2016-01-06 22:18:27 +00:00
Storage updated top most record 2019-12-03 23:02:24 +02:00
UserSettings Fix pinyin fuzzysearch (#131) 2020-01-20 01:06:16 +02:00
Alphabet.cs Fix pinyin fuzzysearch (#131) 2020-01-20 01:06:16 +02:00
FuzzyMatcher.cs Fix pinyin fuzzysearch (#131) 2020-01-20 01:06:16 +02:00
Helper.cs Add universal pretty print method 2017-02-26 20:44:35 +00:00
Stopwatch.cs Rewrite all log message format 2017-01-24 01:02:32 +00:00
StringMatcher.cs Fix pinyin fuzzysearch (#131) 2020-01-20 01:06:16 +02:00
Wox.cs initial work, added github to setting, 2020-01-07 02:34:46 +02:00
Wox.Infrastructure.csproj fix pre build event 2020-01-17 14:56:26 +02:00