Commit graph

93 commits

Author SHA1 Message Date
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
a62195590d sigh it's not easy to make this a proper flexible member 2025-05-01 09:26:48 +02:00
9a82b7b8a1 Assert that resizing st.fr won't move
(it does in the presence of #1, contrary to our hopes and dreams)
2025-05-01 09:26:09 +02:00
57a5626028 fix python build under c++2y 2025-04-11 19:35:33 +02:00
c02374b6db bump C++ standards version 2025-04-09 20:10:23 +02:00
d75ffa93b3 remove extra semicolon 2025-04-09 20:09:24 +02:00
2249090a99 fix time reporting & increase search limits of browser based version
these limits seem fine on my recent-ish laptop, taking under 1s even with
fairly absurd inputs.

also make some things conditional and turn them off in the emscripten build
2025-04-09 20:00:17 +02:00
603ccd4fa1 write binary dict as all big-endian uint32s
so it's actually portable

it's still so much bigger than the base word file, which parses in just
~60ms, so binary dictionaries are probably silly. but make it a bit better
anyway.
2025-04-09 16:20:23 +02:00
660fec6d19 now tested with bookworm 2025-04-09 09:40:27 +02:00
168a9a3c23 no wasm.js.mem to package anymore 2025-04-09 09:23:25 +02:00
7aaf2307a5 more files to ignore 2025-04-09 09:22:29 +02:00
650be69855 another file to clean 2025-04-09 09:21:56 +02:00
13fb73635f have to read words late, EMSCRIPTEN_BINDINGS now occur before global constructors! 2025-04-09 09:21:12 +02:00
33c72e10fd
whitespace 2021-11-29 08:51:07 -06:00
2d867ca375
include additional files when publishing 2021-11-29 08:50:13 -06:00
597e7d49c2
Update README.md 2021-11-29 08:49:50 -06:00
ab3ef691ea
ignore additional em++-generated files 2021-11-29 08:42:39 -06:00
7a56665300
better optimize wasm/js version
`-Os` is extremely slow, while `-O3` is pretty speedy.
2021-11-29 08:42:12 -06:00
1fc25071ae
Fix usage message 2021-11-29 07:39:43 -06:00
1ef7783998
Only include ASCII characters 2021-11-29 07:39:40 -06:00
2352ac35f2
Fix an ubsan error 2021-11-29 07:34:34 -06:00
37607891d9
Allow specifying extra flags; make $^ useful 2021-11-29 07:34:18 -06:00
3c4671f4e5
add 'clean' target 2021-11-29 07:34:04 -06:00
99c682a02e
Assume modern compiler with c++11 support 2021-11-29 07:33:54 -06:00
c92eef0e3e
use modern C++ way of not having a standard method 2021-11-28 21:50:45 -06:00
3efa842d39
use python3 2021-11-28 21:50:22 -06:00
8c97ca616f update .gitignore 2021-06-10 18:07:50 -05:00
34f3badb08 update README 2021-06-10 18:07:34 -05:00
e6ee6b0c92 finish conversion to python3 2021-06-10 18:03:53 -05:00
a949273847 start python3 porting 2021-06-10 17:47:24 -05:00
Jeff Epler
fe6874f681 this is not ajax mode 2016-05-15 15:17:13 -05:00
Jeff Epler
100c158c57 preload is better than embed, I guess 2016-05-15 15:12:06 -05:00
Jeff Epler
b5321c7ed3 add emscripten target 2016-05-15 14:59:31 -05:00
Jeff Epler
eea9fcd427 #ifdef -> #if defined 2016-05-15 14:33:13 -05:00
Jeff Epler
d1b6714bb3 manpage: document -L 2016-05-15 12:24:13 -05:00
Jeff Epler
026662501a manpage: fix typo 2016-05-15 12:24:09 -05:00
Jeff Epler
635220aa51 run.cc: Fix handling of single argument 2016-05-15 11:58:56 -05:00
Jeff Epler
85d857a0b0 dictfilt: add coding declaration
.. I obviously never tested this after adding the license notice.
2016-05-15 11:58:15 -05:00
Jeff Epler
e558ddb052 move the server 2013-09-23 10:45:45 -05:00
Jeff Epler
dd9189146d note that jquery is coming from cdn by default 2013-09-21 10:25:30 -05:00
Jeff Epler
2700a6e9f5 a filter to get rid of duplicated words by keeping only the lowercase version 2013-09-21 10:23:53 -05:00
Jeff Epler
f9aabad9ca add copyright notice 2013-09-21 10:22:50 -05:00
Jeff Epler
471511c478 Improve the web app, particularly for mobile
the cheatsheet can now be hidden and will appear above
(instead of to the right) on narrow screens. (no cookies, setting not
remembered)

The viewport is now set to the device's native width instead of the
(possibly unreasonably wide) default
2013-09-21 10:20:39 -05:00
Jeff Epler
b3f161189c Wanting a word of length-n implies an appropriate < or > 2013-09-21 08:53:05 -05:00
Jeff Epler
e1e7290b59 implement 'just candidates' mode 2013-02-28 21:06:50 -06:00
Jeff Epler
a46a063c88 strip bogus trailing chars from query 2013-02-28 21:06:49 -06:00
Jeff Epler
df35b4acaf make it work on ie8 2013-02-28 21:06:49 -06:00
Jeff Epler
dc00ce1f5b make document use standards compliance mode 2013-02-28 21:06:49 -06:00
Jeff Epler
d29a1e61cc fix android 2.2 2013-02-28 21:06:49 -06:00
Jeff Epler
503f3c7477 improvements to web app 2013-02-28 21:06:49 -06:00