No description
Find a file
Jeff Epler ffe196d6aa Fix "must contain" with too many of a letter
If the "must contain" (rs) set had too many uses of a character,
the initial letter counts (ww) could be nonsense.

Now, if you do a bogus search like `munmunii -- iii` (commandline)
or `munmun =iii` (web), you'll get 0 results. (it'll somewhat
confusingly report that it reached a max of 0 searches, but so
be it)

Closes #1
2025-05-01 09:47:43 +02:00
.gitignore more files to ignore 2025-04-09 09:22:29 +02:00
ana.1 manpage: document -L 2016-05-15 12:24:13 -05:00
ana.html remove extra semicolon 2025-04-09 20:09:24 +02:00
anagram.js add copyright notice 2013-09-21 10:22:50 -05:00
dictfilt.py dictfilt: add coding declaration 2016-05-15 11:58:15 -05:00
import add emscripten target 2016-05-15 14:59:31 -05:00
LICENSE license and readme... 2013-02-19 14:18:13 -06:00
Makefile bump C++ standards version 2025-04-09 20:10:23 +02:00
README.md now tested with bookworm 2025-04-09 09:40:27 +02:00
run.cc Fix "must contain" with too many of a letter 2025-05-01 09:47:43 +02:00
webapp.py Improve the web app, particularly for mobile 2013-09-21 10:20:39 -05:00

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 Browser Version (WASM/js)

  1. Compile with emscripten (tested with the version in debian bookworm):

    make ana.js
    
  2. Test it to your satisfaction using a local html server:

    python3 http.server &
    
  3. Commit it:

    make publish
    
  4. Push it to github:

    git push origin gh-pages
    

Live web version

https://www.unpythonic.net/anagram/