1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
## Unicode database update
Unicode data sources:
* http://www.unicode.org/Public/UCD/latest/
* http://www.unicode.org/Public/UCD/latest/ucd/
* http://www.unicode.org/Public/UCD/latest/ucdxml/
Download and decompress the following files:
* `NormalizationTest.txt` from the `ucd` directory
* `ucd.all.flat.zip` from the `ucdxml` directory
```
wget -P ucd https://www.unicode.org/Public/UCD/latest/ucd/NormalizationTest.txt
wget -P ucdxml http://www.unicode.org/Public/UCD/latest/ucdxml/ucd.all.flat.zip
unzip -d ucdxml ucdxml/ucd.all.flat.zip
```
## Generating Haskell files from Unicode database
To generate the Haskell data structures from UCD build the ucd2haskell
utility and run it like this:
```
ucd2haskell ucdxml/ucd.all.flat.xml ../Data/Unicode/Properties/
```
|