ehouse
eb3d97a334
First changes for building dictionaries (with tile faces in UTF-8).
...
Test cases are English and Polish, and with these changes English
seems to build ok and decode via dawg2dict.pl while Polish does too
but a lot of words are missing. Building using Makefiles only so far,
not BYOD.
2009-03-18 04:16:26 +00:00
ehouse
121b8253cf
accept ISO-8859-2; remove unused param; add assert that EOF/EOL aren't
...
part of a multibyte char
2009-03-14 19:22:15 +00:00
ehouse
d46152b5f6
if setlocale doesn't work, try again with en_US -- works around
...
problem on my ISP.
2009-01-28 03:32:21 +00:00
ehouse
74c5f79338
Set locale based on params passed in, only on ENV if not specified.
2009-01-25 20:13:36 +00:00
ehouse
b45fc82771
Allow language Makefile to specify encoding. Pass to perl and c++
...
dict builders, using it to open files and to determine whether to do
multi-to-wide conversion.
2009-01-13 13:32:07 +00:00
ehouse
a719d6fc50
Add type Letter to represent what are Tiles in Crosswords:
...
lang-independent indices into the set of letters in use. Should be no
change in functionality or code generated.
2009-01-07 05:13:45 +00:00
ehouse
0ba80fa89f
Fix compiler warnings. Should be no change in generated code.
2009-01-07 05:03:13 +00:00
ehouse
5d7a82a73f
Don't choke when words are longer than 15 letters.
2008-10-08 04:37:44 +00:00
ehouse
78c5574bce
Fix to compile with newer g++; increase size of buffer to handle largest Spanish wordlist.
2008-09-18 03:44:43 +00:00
ehouse
15a2154720
Compile dict2dawg by default since dict2dawg.pl has problems; fix warnings.
2008-03-15 14:52:23 +00:00
ehouse
b527110379
replace all __FUNCTION__ with __func__
2007-12-02 19:13:25 +00:00
ehouse
3bb2fb018f
Add support for Russian. So that Russian text can be processed on systems without setting LANG=ru_RU.CP1251, modify dict2dawg to skip duplicates and words outside of specified lengths. Modify all info.txt files for the new scheme (which includes change to byod.cgi not kept on sourceforge.)
2007-02-17 17:06:05 +00:00
ehouse
326ecb00f4
increment internal tile values by one so strings can be null-terminated
2007-02-14 15:17:00 +00:00
ehouse
c0a5ce4401
check for remaining memory being < 0, not just <=, since we allocate exactly as much as we need. Fixes failure due to being out of memory at same time as having finished parsing stdin.
2006-07-22 16:03:14 +00:00
ehouse
34a1f737e0
don't cast size to a char!
2006-06-28 14:11:46 +00:00
ehouse
1df75c20a0
add poolsize and fsize args to better warn users when dict is too big.
...
Later need to modify the build process to specify the size needed.
2006-05-02 13:28:07 +00:00
ehouse
d0af23855d
Improve out-of-memory message; don't double-count words.
2006-05-01 14:00:06 +00:00
ehouse
8ba01c1979
check that this version number stuff works
2006-04-29 16:47:01 +00:00
ehouse
8ca7d1644a
attempt to print subversion revision number with -v option
2006-04-29 16:40:48 +00:00
ehouse
588514a6f9
exit if can't open table file; include assert for compile on sarge
2006-04-14 08:23:28 +00:00
ehouse
936fdc0a6c
For already-sorted case, read words from file on as-needed basis rather
...
than build a vector to hold them.
2006-04-14 05:23:30 +00:00
ehouse
c270729bbb
A final bit of cleanup. All the perl is gone.
2006-04-13 04:04:03 +00:00
ehouse
52b19880ee
Cleanup: remove dead code.
2006-04-13 03:58:54 +00:00
ehouse
a028918a3b
Use a single huge buffer for all strings rather than calling malloc
...
for each. Makes a measureable speed difference.
2006-04-13 03:52:48 +00:00
ehouse
1325f83659
debug: works now! Also ifdef out debug/verbose code.
2006-04-13 03:49:41 +00:00
ehouse
271662a45f
Tons of changes continuing port from perl. Doesn't quite work yet, but close.
2006-04-13 02:57:43 +00:00
ehouse
cfba77ff01
Starting work on cpp version of dict2dawg.pl. This is nowhere near complete.
2006-04-12 04:39:49 +00:00