Thanks for the bug report! More below...
> I am trying to get a stentura protege to work with Plover. I saw on
> the blog and another thread that I can press the 2nd and 3rd buttons
> on the machine to put it into "bolt" mode.
I haven't actually tested Plover with machines put into TX Bolt mode in
this way, so I'm not surprised there's a bug somewhere in there.
<snip>
> key_set: 3 | key_set * 6: 18 | i: 5 | KEY_CHART length: 23
<snip>
> IndexError: tuple index out of range
Yep, that looks like an out of range error. Not sure why exactly that's
happening, though. What keys are you pressing to cause this error?
> Do you know what modifications might be needed to get this working on
> the protege? I assume that STENO_KEY_CHART needs something added, but
> I am not sure what to add.
Mirabai can probably speak better to this point. Mirabai?
> I am also curious why SIGINT is not trapped to clean the lockfile. Is
> this for Windows compatibility? If not, would you like a patch?
I remember thinking about this, but I don't remember why it didn't happen.
I'm pretty sure it was because the first thing I tried didn't work, or I
didn't try anything at all, neither of which are particularly good
reasons. Either way, a patch would be great!
> I might have a misunderstanding of what the 2nd and 3rd buttons are. I
> assume they are the 2nd and 3rd from the left above the actual steno
> keys. The STENO_KEY_CHART appears to only include the actual keys.
> Pressing the buttons causes the machine to beep, but does not change
> any display on the LCD screen. Attempting to type on the keyboard does
> not log anything in the plogger.log file.
I've never used one of these machines. Again, Mirabai might be able to
better explain.
> I would really like to get this working and am willing to do some work
> myself if I can get pointed in the right direction.
We'd certainly appreciate the help! I think the first step is verifying
that your machine is in the right mode, as you allude to above.
> Also, I have already written a python script to convert a csv
> dictionary dump (this one came from Digital CAT student edition) to
> JSON. I would be happy to offer this as contribution under the GPLv2
> (to match the license of the rest of the code).
This would be great. I was tempted to remove Digital CAT dictionary
support from Plover 2.2.0 because I don't know anyone that uses it and I'm
fairly certain that it's broken after having languished for so long. If
you send me the original dictionary file, your conversion script, and the
output of your conversion script, I'll see what I can do to make sure the
Digital CAT dictionary format is maintained, or can at least be converted
into the Eclipse format that has received more development attention in
Plover.
Thanks again,
Josh
Yes, this is very much needed. Automated testing is long overdue as well.
> Alternatively, I have some documentation for the actual stentura protocol
> but I haven't had a chance to implement it yet. I plan to get to it soon
> but if anybody wants to take a crack at it sooner I'll forward on the
> documentation.
I'm not sure if I'll get to it any sooner than you, but it would be great
to see the documentation.
Cheers,
Josh
Yes, that was the reason.
> I will clean up the script and add some input validation before I send
> it over.
I'm looking forward to it.
Thanks for pushing on both these fronts.
Cheers,
Josh
I just realize I did effectively remove support for Digital CAT by
removing the dictionary format configuration option. However, this
shouldn't affect you since it looks like your are using Eclipse format in
the conversion anyway. As for why some are translating and some are not,
Plover needs to be restarted after any changes to the dictionary in order
for those changes to take effect. Are you making without restarting
Plover?
I restarted the program after making the change. I am off work
tomorrow, so I will have time to do more testing and hopefully
get some debugging output that would be useful (possibly a patch).
Thanks,
--
Jordan Metzmeier
Hello,
Part of the reason I started mucking with the serial settings was
because it was not working on the initial attempt. My background of
working with old enterprise networking hardware (without
documentation) is what prompted me to mess with the settings until it
worked. I don't think that most users will be as comfortable changing
serial device settings.
Regards,
--
Jordan Metzmeier
On Thu, 19 Jan 2012, Jordan Metzmeier wrote:
> On Thu, Jan 19, 2012 at 11:29 AM, Hesky Fisher <hesky....@gmail.com> wrote:
>> This kind of experience reinforces my opinion that the serial port settings
>> (at least the defaults) should be determined by the protocol rather than
>> being entered by the user.
>>
> Hello,
>
> Part of the reason I started mucking with the serial settings was
> because it was not working on the initial attempt. My background of
> working with old enterprise networking hardware (without
> documentation) is what prompted me to mess with the settings until it
> worked. I don't think that most users will be as comfortable changing
> serial device settings.
Yes, probably true. On the other hand it can only help the user experience
to add reasonable default settings depending on the machine. I have in
mind what I think should be a relatively clean solution to this problem.
For now, I've registered a blueprint:
https://blueprints.launchpad.net/plover/+spec/per-machine-default-serial-settings
Josh