Debian Codegraph @

tools/README.md

raw
1 # idna-data
2
3 The IDNA and UTS #46 functionality in this library relies upon
4 pre-calculated lookup tables for performance. These tables are derived
5 from computing against eligibility criteria in the respective standards
6 using the command-line script `idna-data` in this directory.
7
8 This tool will fetch relevant codepoint data from the Unicode repository
9 and perform the required calculations to identify eligibility. There are
10 three main modes:
11
12 * `idna-data make-libdata`. Generates `idnadata.py` and
13 `uts46data.py`, the pre-calculated lookup tables used for IDNA and
14 UTS #46 conversions. Implementers who wish to track this library against
15 a different Unicode version may use this tool to manually generate a
16 different version of the `idnadata.py` and `uts46data.py` files.
17
18 * `idna-data make-table`. Generate a table of the IDNA disposition
19 (e.g. PVALID, CONTEXTJ, CONTEXTO) in the format found in Appendix
20 B.1 of RFC 5892 and the pre-computed tables published by [IANA](https://www.iana.org/).
21
22 * `idna-data U+0061`. Prints debugging output on the various
23 properties associated with an individual Unicode codepoint (in this
24 case, U+0061), that are used to assess the IDNA and UTS #46 status of a
25 codepoint. This is helpful in debugging or analysis.
26
27 The tool accepts a number of arguments, described using `idna-data -h`.
28 Most notably, the `--version` argument allows the specification
29 of the version of Unicode to be used in computing the table data. For
30 example, `idna-data --version 9.0.0 make-libdata` will generate
31 library data against Unicode 9.0.0.
32
33 ## Supplemental Information
34
35 While this package does not include data files and/or software from
36 the Unicode standard, in operating the `idna-data` tool it will retrieve
37 data files to process that are governed by
38 [these terms](https://www.unicode.org/license.txt).