Pick suggestion from multiple dictionaries #1319
Replies: 3 comments
-
I've mostly done understanding how Spectra Lexer works. Making a program to find possible matching words for an outline is probably not that hard. As far as I can see Spectra Lexer doesn't support this.
|
Beta Was this translation helpful? Give feedback.
-
So I wrote a script to do the task mentioned above... As a side effect, it can also find suspicious strokes in a dictionary. Even though I used Di's dictionary (which have much less misstrokes), there are still many. |
Beta Was this translation helpful? Give feedback.
-
Published at repository . So for example, if you write KOPL PUL SO REU, it will suggest...
Or, KEU TPHES THET EUBG =>
There are some known issues (see the repository's issues list) Of course this is only useful if you're not very familiar with the Plover theory. The best way would be to generate a dictionary programmatically (I know there has been several attempts) |
Beta Was this translation helpful? Give feedback.
-
For a beginner, a common problem (especially for Plover theory users / at least for me) is not knowing how to stroke a word.
So I have the idea to use some pattern-matching (perhaps use the existing rule set of Spectra Lexer) to guess what word the user want to write, and show them (plus the Plover theory's canonical stroke + some diff against user's guess) in some kind of suggestion window.
This will be left for later. For now, since I happen to have a bunch of dictionaries of different theories, I made a small script to display all the lookup result of different dictionaries in a window.
How useful is it?
I can't judge this too well, but it might not be that good because usually there are only the "shortest" or "most correct according to the theory".
The script
Install
plover-python-dictionary
andplover-textarea
plugin, then add this file as a Python dictionary.Should be an extension plugin instead, but this is easier.
Currently plover-textarea doesn't support all the strokes. You can still run Plover in a console and replace
get_instance().write(window_name,
withprint
to print on Plover's console. (if Plover runs in console, that is. I think it requires running from source?)Beta Was this translation helpful? Give feedback.
All reactions