diff --git a/dawg/Hex/Makefile b/dawg/Hex/Makefile index cf710fa59..96d54ff1b 100644 --- a/dawg/Hex/Makefile +++ b/dawg/Hex/Makefile @@ -1,4 +1,6 @@ -# Copyright 2002 by Eric House (xwords@eehouse.org). All rights reserved. +# -*- mode: makefile; -*- +# Copyright 2002-2009 by Eric House (xwords@eehouse.org). All rights +# reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -16,6 +18,7 @@ XWLANG = Hex LANGCODE = hex +ENC = UTF-8 TARGET_TYPE = WINCE @@ -24,14 +27,15 @@ include ../Makefile.2to8 include ../Makefile.langcommon # Pass in your own dict here by setting DICT -DICT ?= $(XWDICTPATH)/English/SOWPODS_official.txt.gz +DICT ?= $(XWDICTPATH)/English/CSW.dict.gz -# Feel free to base this on whatever dictionary you have at hand. I'm -# using CollegeEng for no particular reason. +# tr 'AE' 'ÄË' doesn't work, so use sed. $(XWLANG)Main.dict.gz: $(DICT) @echo "building $@ from $<" zcat $< | tr [a-f] [A-F] | grep -e '^[A-F]\{2,8\}$$' | \ echo CAFEBABE DEADBEEF $$(cat -) | \ + sed 's/A/Ä/g' | \ + sed 's/E/Ë/g' | \ tr ' ' '\n' | sort | gzip > $@ # Everything but creating of the Main.dict file is inherited from the diff --git a/dawg/Hex/info.txt b/dawg/Hex/info.txt index fcd4f6baf..526041cf1 100755 --- a/dawg/Hex/info.txt +++ b/dawg/Hex/info.txt @@ -1,4 +1,6 @@ -# Copyright 2002 by Eric House (xwords@eehouse.org). All rights reserved. +# -*- mode: conf; -*- +# Copyright 2002-2009 by Eric House (xwords@eehouse.org). All rights +# reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -16,14 +18,14 @@ LANGCODE:HEX - - # uppercase all LANGFILTER: tr [a-f] [A-F] LANGFILTER: | grep '^[A-F]*$' +LANGFILTER: | sed 's/A/Ä/' +LANGFILTER: | sed 's/E/Ë/' LANGFILTER: | sort -u -D2DARGS: -nosort -term 10 +D2DARGS: -term 10 LANGINFO:

The hex "language" is something of a programmers' joke. LANGINFO: Hex is short for hexadecimal, a 16-base number system whose @@ -41,8 +43,6 @@ LANGINFO: tiles and games play quickly. That's also why the Hex LANGINFO: tile set has four blanks; that's the largest number LANGINFO: Crosswords supports and I needed to test at the limit.

- - # High bit means "official". Next 7 bits are an enum where Hex==127 # (I just made that up; not sure what it was originally.) Low byte is # padding @@ -51,11 +51,11 @@ XLOC_HEADER:0xFF00 4 0 {"_"} -9 1 'A' +9 1 'Ä' 2 3 'B' 2 3 'C' 4 2 'D' -12 1 'E' +12 1 'Ë' 2 4 'F' # should ignore all after the above