/ README.md
README.md
1 # Build instructions: 2 3 make 4 5 # Use instructions: 6 7 ./ana terms... 8 man ./ana.1 ;# for help 9 10 # Binary dictionaries 11 These start a bit faster than reading the system dictionary. 12 13 Build one with 14 15 ./ana -D dict.bin -d /usr/share/dict/words 16 17 then use it with 18 19 ./ana -D dict.bin terms... 20 21 # Python use 22 ``` 23 $ python3 24 >>> import ana 25 >>> d = ana.from_binary("dict.bin") 26 >>> for row in d.run("hello world"): 27 ... print(row) 28 ``` 29 30 # Web Browser Version (WASM/js) 31 32 1. Compile with emscripten (tested with the version in debian bullseye): 33 34 make ana.js 35 36 1. Test it to your satisfaction using a local html server: 37 38 python3 http.server & 39 40 1. Commit it: 41 42 make publish 43 44 1. Push it to github: 45 46 git push origin gh-pages 47 48 # Live web version 49 https://www.unpythonic.net/anagram/