Debian Codegraph @

src/ucd-tools/README.md

raw symbols SCIP
1 # Unicode Character Database Tools
2
3 - [Build Dependencies](#build-dependencies)
4 - [Debian](#debian)
5 - [Building](#building)
6 - [Updating the UCD Data](#updating-the-ucd-data)
7 - [Bugs](#bugs)
8 - [License Information](#license-information)
9
10 ----------
11
12 The Unicode Character Database (UCD) Tools is a set of Python tools and a
13 [C library](src/include/ucd/ucd.h) with a C++ API binding. The Python tools
14 are designed to support extracting and processing data from the text-based
15 UCD source files, while the C library is designed to provide easy access to
16 this information within a C or C++ program.
17
18 The project uses and supports the following sources of Unicode codepoint data:
19
20 * [Unicode Character Database](http://www.unicode.org/Public/11.0.0/ucd/) 11.0.0
21 * [Unicode Emoji](http://www.unicode.org/Public/emoji/11.0/) 11.0 (UTR #51)
22 * [ConScript Unicode Registry](http://www.evertype.com/standards/csur/)
23
24 ## Build Dependencies
25
26 In order to build ucd-tools, you need:
27
28 1. a functional autotools system (`make`, `autoconf`, `automake` and `libtool`);
29 2. a functional C and C++ compiler.
30
31 __NOTE__: The C++ compiler is used to build the test for the C++ API.
32
33 To build the documentation, you need:
34
35 1. the doxygen program to build the api documentation;
36 2. the dot program from the graphviz library to generate graphs in the api documentation.
37
38 ### Debian
39
40 Core Dependencies:
41
42 | Dependency | Install |
43 |------------------|-------------------------------------------------------|
44 | autotools | `sudo apt-get install make autoconf automake libtool` |
45 | C++ compiler | `sudo apt-get install gcc g++` |
46
47 Documentation Dependencies:
48
49 | Dependency | Install |
50 |------------|---------------------------------|
51 | doxygen | `sudo apt-get install doxygen` |
52 | graphviz | `sudo apt-get install graphviz` |
53
54 ## Building
55
56 UCD Tools supports the standard GNU autotools build system. The source code
57 does not contain the generated `configure` files, so to build it you need to
58 run:
59
60 ./autogen.sh
61 ./configure --prefix=/usr
62 make
63
64 The tests can be run by using:
65
66 make check
67
68 The program can be installed using:
69
70 sudo make install
71
72 The documentation can be built using:
73
74 make html
75
76 ## Updating the UCD Data
77
78 To re-generate the source files from the UCD data when a new version of
79 unicode is released, you need to run:
80
81 ./configure --prefix=/usr --with-unicode-version=VERSION
82 make ucd-update
83
84 where `VERSION` is the Unicode version (e.g. `6.3.0`).
85
86 Additionally, you can use the `UCD_FLAGS` option to control how the data is
87 generated. The following flags are supported:
88
89 | Flag | Description |
90 |-------------|-------------|
91 | --with-csur | Add ConScript Unicode Registry data. |
92
93 ## Bugs
94
95 Report bugs to the [ucd-tools issues](https://github.com/rhdunn/ucd-tools/issues)
96 page on GitHub.
97
98 ## License Information
99
100 UCD Tools is released under the GPL version 3 or later license.
101
102 The UCD data files in `data/ucd` are downloaded from the UCD website and are
103 licensed under the [Unicode Terms of Use](COPYING.UCD). These data files are
104 used in their unmodified form. They have the following Copyright notice:
105
106 Copyright © 1991-2014 Unicode, Inc. All rights reserved.
107
108 The files in `data/csur` are based on the information from the ConScript
109 Unicode Registry maintained by John Cowan and Michael Everson.