openstenoproject / plover

Open source stenotype engine
http://opensteno.org/plover
GNU General Public License v2.0
2.35k stars 279 forks source link

Should lookup be case-insensitive? #950

Open mulka opened 6 years ago

mulka commented 6 years ago

Summary

When you type 'return' (all lowercase) into the lookup tool, I feel like it should come up with {#Return}, but it doesn't.

Reproducing

Open the lookup tool. Type 'return' in all lowercase. Notice how {#Return} doesn't show up. Now, type 'Return' with the capital letter. Notice how {#Return} does show up.

Plover Version

Plover 4.0.0.dev8+8.ge062cda

System

Mac OSX El Capitan 10.11.6

DanLanglois commented 6 years ago

a note:

plover/plover/suggestions.py

45 strokes_list = self.dictionary.reverse_lookup(modded_translation)

perhaps would work like this:

[ 45 strokes_list = self.dictionary.casereverse_lookup(modded_translation.lower()) ]

There is a plover/test/test_steno_dictionary.py here, but maybe doesn't need to be touched.. I need to test somehow but have to come back..