ecl/contrib/unicode/update-ucd.sh
Marius Gerbershagen 8350f07100 contrib/unicode: improve ucd table generating code
Provide some comments on what the code is doing.

Increase size of integers used in encoding pairs of consecutive words
(needed to encode the current ucd).

Introduce additional bidirectional classes.

Provide new ucd.h header with enums for general-category and
bidirectional class.

Add update-ucd.sh script to automate the updating process.
2021-05-07 21:09:08 +02:00

8 lines
507 B
Bash
Executable file

#!/bin/bash
set -e
curl https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt -o UnicodeData.txt
curl https://www.unicode.org/Public/UCD/latest/ucd/Jamo.txt -o Jamo.txt
ecl --norc --load ucd.lisp --eval "(slurp-ucd)" --eval "(output-c)" --eval "(output-c t)" --eval "(ext:quit)"
ecl --norc --compile load-names.lisp --compile names-pairs.lisp --load load-names.fas --load names-pairs.fas --load names-pairs-sort.lisp --eval "(ext:quit)"
rm load-names.fas names-pairs.fas
rm UnicodeData.txt Jamo.txt