Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.25 KB

DEVEL.md

File metadata and controls

44 lines (27 loc) · 1.25 KB

New Unicode release

The file src/uunf_data.ml contains generated data. This file needs to be regenerated on new Unicode releases, as well as the opam file.

In order to do so you need to install an updated version of the uucd OCaml package which is capable of reading the latest XML Unicode character database.

You can then bump the Unicode release number at the top of the B0.ml file. Verify that everything is as expected with:

b0 -- unicode-version

You should then download a copy of the XML Unicode character database to the support/ucd.xml file which is ignored by git. If you have curl and unzip in your PATH you can simply issue:

b0 -- download-ucdxml

You can now proceed to generate the src/uunf_data.ml and update the opam file file by issuing:

b0 -- generate-data
b0 -- .opam file > opam 

Reference tests

To test the package on the reference normalization tests of you must download a copy of the tests to the test/NormalizationTest.txt file which is ignored by git.

If you have curl in your PATH you can simply issue:

b0 -- download-tests

this downloads the tests for the unicode version mentioned in B0.ml.

You can then check them with:

b0 -- test