Holy Scratch, my account is still active! And my projects are still up!
It's been, like what, two years now? That's a long time!
Anyway, here's a Python version of Scratch Dictionary. I consider it a version 0.1alpha, and it's >9000 times faster* than the actual Scratch Dictionary (remember those loading times that rival those of Sonic for PS3?)
Features: Contains the same entries as the last Scratch version! Is only accessible by console!
Features to come: Will have GUI (at some point, hopefully...)! Definition adding from script will be implemented!
A note on database format: Each line is an entry, in the format:
word||definition
If you want to look at how it works: The main file is dictionary.py, which contains the Dictionary class, which handles all the dictionary-related stuff. Due to that reason, it's over 50% comments and doc entries, to make everything clear for y'all.
Except this bit:
x.append(a[1][:len(a[1])-1])
It has to look like that, because if not, then the definitions would contain line termination (\n) characters, thus adding another line break (or breaks) to the output, which is not exactly a good thing. So by this bunch of brackets, I tell Python to take the string of characters which is the 2nd** element of a list 'a', and get a substring which contains everything except the last character (which is the newline code), then append that substring to a list 'x'.
Hopefully I will continue this project.
_____________
* No actual measurements were made, but compared to ScrDict, PyScrDict is pretty much instantaneous.
** a[1]? Second?! It says 1! Actually, it's because Python lists' indexes start with 0, so a[0] would be the 1st element, a[1] the 2nd, and so on.
Offline