No description
| .gitignore | ||
| ana.1 | ||
| ana.html | ||
| anagram.js | ||
| dictfilt.py | ||
| import | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| run.cc | ||
| webapp.py | ||
Build instructions:
make
Use instructions:
./ana terms...
man ./ana.1 ;# for help
Binary dictionaries
These start a bit faster than reading the system dictionary.
Build one with
./ana -D dict.bin -d /usr/share/dict/words
then use it with
./ana -D dict.bin terms...
Python use
$ python3
>>> import ana
>>> d = ana.from_binary("dict.bin")
>>> for row in d.run("hello world"):
... print(row)
Web app installation instructions
Most likely this is heavily bitrotted, the cgi script has not been updated for python3.
-
build a binary dictionary:
./ana -D dict.bin -d /usr/share/dict/words
-
Copy anamodule.so, the binary dictionary, anagram.js and webapp.py to your webspace (or put anamodule.so on your PYTHONPATH)
-
Optionally, edit webapp.py to use your own copy of jquery instead of the one from the code.jquery.com cdn
-
Set up .htaccess, e.g.,
AddHandler fcgid-script .fcgi Options +ExecCgi DirectoryIndex index.fcgi Order allow,deny Allow from all