Thursday, April 29, 2010

Bug fixes

For any of you that are using DigitalCAT-formatted dictionaries (e.g. the one that comes with Stenomaster), I've fixed a major bug and I've also consolidated the files, so you don't need to use dccattest.py or dcatwinder.py anymore. Just download stenowinder.py and tktest.py at the GitHub, then open stenowinder.py in any text editor. The first few lines of the file look like this:

from ploverbd import exportDic
import unittest
import sys
# choose either 'dCAT' or 'Eclipse'
dictType = 'dCAT'

If it already says dCAT and you have a DigitalCAT-formatted dictionary, you're set. If it says Eclipse, change it to dCAT. Unless you have an Eclipse-formatted dictionary, in which case change it from dCAT to Eclipse. You get the idea. The default distributed dictionary, ploverbd.py, is in Eclipse format. Also, it's apparently grown too big to be directly accessed by Github's html parser and has to be downloaded by right click/save as (wait a while for it to muster its strength) or by getting the whole package by clicking the "download source" button.

New and exciting features, like functional file output and maybe even punctuation formatting, will with luck be added on Monday, (and sometime after that, I hope to add TX and Stentura protocol options into the program; I got the protocol specs today, but I can't make any sense of them, and they're second in priority to figuring out this file output thing.) If you guys find any more bugs, though, drop me a line and I'll try to patch them up as they come in.

3 comments:

Abby Bayne said...

Hi - I've tried this but it's not working and I can't use the dcattest file either. I think I need some more instruction...

Mirabai Knight said...

First: Do you have Python 3.1 installed? If not, install it. You can download it at http://python.org/download/. Make a copy of your dictionary file, then rename that copy "ploverbd.py". Download stenowinder.py and tktest.py and put them in the same directory. Open stenowinder.py in a text editor like Notepad and in the first few lines, where it says "Eclipse", change it to "dCAT". Make sure it's one lowercase letter and three capitals, just like it's written there. Then save and close it. Double click tktext.py and hopefully that should run the program. Good luck! Let me know if it still doesn't work.

Abby Bayne said...

Thanks Mirabai, I've got it working now. I think I missed a step before.