Projects
Most of the source for the apps can be found in the files directory. psPIM is dead. It's been rotting on my hard driver for a long time, actually.
libdictionary and minipredict
Libdictionary is a library for word completion and dictionary storage. It's used by minipredict for suggesting words completetions. Doesn't have compression at runtime at the moment, but it will be added by using the trie tree.
Minipredict is a app that sits above the dock, e.g. mbdock, and suggests words for completion. It reads all KeyPress events sent in X, and sends the remainging keystrokes if a word is selected. It's in the familiar unstable feed, so please try.
Dictionaries for libdictionary/minipredict
The default dictionary that comes with libdictionary is the /usr/share/dict/words from my laptop (from rh7.3). If you want to make a dictionary for your own language (libdictionary supports all ISO-8859-1 locales, i.e. uses extended ASCII), follow these simple steps:
- Create the dictionary: either do it the hard, hard way and do it yourself by writing down all the words you now, or convert the dictionary from ispell/aspell/openoffice.org/another app. The dictionary file should be a sorted ASCII file, with one word on each line. The name of the file should be the locale, e.g. en_GB, pt_PT etc. plus any extention added by the compression mentioned below. You could name it donald_duck, but using locales is a bit more informative. Could have optional suffix, if there exist several dictionaries for your locale, e.g. en_GB-large, en_GB-enhanced etc.
- Compress the dictionary (optional, but highly recommended): To save space, compression is recommended. Either use gzip on your dictionary file, or dict_comp from the libdictionary tarball. The latter gives you best compression.
- Install the dictionary: Copy the dictionary file to /usr/share/dictionary, or anywhere you like, as long as one of the following symlinks are set:
- /usr/share/dictionary/dictionary (points to the systemwide dictionary)
- ~/.minipredict_dictionary (to specify another dictionary for minipredict)
The systemwide shold always be set for the system.
To convert openoffice.org dictionaries, the following perl snippet will do the trick:
perl -ne ' s,/.*,,; next if ( /[.1-9]/ || /^.{0,1}$/ ); print;' dictionary_name.dic | sort > dictionary_name
and then run gzip or dict_comp on that file as mentioned.
 |
| Minipredict above mbdock |
psCalc
Update 2003/3/31: Ported psCalc to gtk2! ;) ipkg install pscalc2, everbody
As the lack of a good calculator for familiar, I did a semi-advanced desktop calculator. It supports multiline input and RPM. As for psPIM, it's a gtk1.2 app, and should be ported to gtk2 as well. Maybe add a graph drawer.
psCalc (gtk1 version) is in the familiar unstable feed, so do an ipkg install pscalc and try it out ;)
 |  | |
| The icon for psCalc2 | psCalc2 | |
|  |  |
| Normal window | RPM mode | Landscape mode. Usefull for RPN |
Petter, paxanima@handhelds.org