• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..08-Nov-2021-

.gitignoreH A D08-Nov-2021148 97

MakefileH A D08-Nov-20211.9 KiB6832

READMEH A D08-Nov-2021949 2920

generate-norm_test_table.plH A D08-Nov-20212.8 KiB10771

generate-unicode_combining_table.plH A D08-Nov-20211.1 KiB5436

generate-unicode_norm_table.plH A D08-Nov-20216.6 KiB235156

generate-unicode_normprops_table.plH A D08-Nov-20211.8 KiB8963

norm_test.cH A D08-Nov-20211.6 KiB8763

README

1This directory contains tools to generate the tables in
2src/include/common/unicode_norm.h, used for Unicode normalization. The
3generated .h file is included in the source tree, so these are normally not
4needed to build PostgreSQL, only if you need to re-generate the .h file
5from the Unicode data files for some reason, e.g. to update to a new version
6of Unicode.
7
8Generating unicode_norm_table.h
9-------------------------------
10
11Run
12
13    make update-unicode
14
15from the top level of the source tree and commit the result.
16
17Tests
18-----
19
20The Unicode consortium publishes a comprehensive test suite for the
21normalization algorithm, in a file called NormalizationTest.txt. This
22directory also contains a perl script and some C code, to run our
23normalization code with all the test strings in NormalizationTest.txt.
24To download NormalizationTest.txt and run the tests:
25
26    make normalization-check
27
28This is also run as part of the update-unicode target.
29