lib378 - Embeddable Predictive Text Library
News
- 20070829
JavaScript dictionary compression
Sample dictionary size reduced from ~500K to ~180K
- 20070828
Experimental JavaScript implementation
(mozilla works, konqueror has issues, others let me know)
see demo
Overview
This library provides a simple C API for partial and full string matching, it can provide predictive text functionality like T9(C) and similar. Dictionary is stored in a custom compressed file format (bzip2 comparable performance algorithm) which can optionally be further bzip2 compressed to achieve minimum space requirements.
See this 245239 words comparison:
- Plain ASCII (sorted) download [2.6M]
- Custom file format download [744K] (~3bytes/word, close to bzip2 performance!)
- Bzipped2 custom file format download [200K] (~1byte/word with optional bzip2 over previous one!)
Screenshots
A rather unexciting screenshot of the example.
Download
Anonymous CVS:
Right now, this is the preferred way to get lib378 with all the latest features and fixes.
cvs -d:pserver:anonymous@lib378.cvs.sourceforge.net:/cvsroot/lib378 login
cvs -z3 -d:pserver:anonymous@lib378.cvs.sourceforge.net:/cvsroot/lib378 co -P lib378
Source packages:
If you just hate CVS or like to get some official release.
http://sourceforge.net/project/showfiles.php?group_id=185149
Example
For a sample 9-keys implementation see the examples:
License
GNU Library or Lesser General Public License (LGPL)
Copyright/Author
2007 Massmiliano Galanti, <massiblue@libero.it>
Links