Skip to content

Commit 213debb

Browse files
committed
regen IdnaTestV2.txt from the latest mapping table
1 parent 4bcf4ae commit 213debb

File tree

2 files changed

+468
-434
lines changed

2 files changed

+468
-434
lines changed

docs/idna.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,28 @@
88
2. Run GenerateIdna.java
99
* It will generate
1010
{Generated}/idna/{version}/**IdnaMappingTable.txt**
11-
* ~~The data for the last 4 columns (h, i, j, k) of Table 4 IDNA
12-
Comparisons for the UTR are listed at the bottom of the console
13-
output.~~
14-
* ~~Fix Table 4 (h, i, j, k) with that data, and check into the repo.~~
15-
* ~~Diff with the previous version, and make sure everything is
16-
understood, then check into the repo.~~
17-
* :construction: **TODO(markusicu)**: Obsolete?\
18-
The results will be in
19-
https://www.unicode.org/draft/Public/idna/{version}/ **IdnaMappingTable.txt**
11+
* Before [UTS #46 table 4](https://www.unicode.org/reports/tr46/#Table_IDNA_Comparisons)
12+
was fixed at Unicode 11:
13+
* The data for the last 4 columns (h, i, j, k) of Table 4 IDNA
14+
Comparisons for the UTR are listed at the bottom of the console output.
15+
* Fix Table 4 (h, i, j, k) with that data, and check into the repo.
16+
* Diff with the previous version, and make sure everything is understood,
17+
then copy back into the dev folder.
18+
```
19+
Generated$ meld ../src/unicodetools/data/idna/dev/IdnaMappingTable.txt idna/15.1.0/IdnaMappingTable.txt
20+
Generated$ cp idna/15.1.0/IdnaMappingTable.txt ../src/unicodetools/data/idna/dev/IdnaMappingTable.txt
21+
```
22+
* *Important:* The mapping table file must be copied into the dev folder
23+
before running GenerateIdnaTest.java!
24+
Otherwise that tool will see the old version of the data.
2025
3. Now run GenerateIdnaTest.java, in order to generate the test file.
2126
1. It will generate {Generated}/idna/{version}/**IdnaTestV2.txt**
2227
2. Diff with the previous version, and make sure everything is understood,
23-
then check into the repo.
24-
3. :construction: **TODO(markusicu)**: Obsolete?\
25-
The results will be in
26-
https://www.unicode.org/draft/Public/idna/{version}/ **IdnaTestV2.txt**
28+
then copy back into the dev folder.
29+
```
30+
Generated$ meld ../src/unicodetools/data/idna/dev/IdnaTestV2.txt idna/15.1.0/IdnaTestV2.txt
31+
Generated$ cp idna/15.1.0/IdnaTestV2.txt ../src/unicodetools/data/idna/dev/IdnaTestV2.txt
32+
```
2733
4. Edit the ReadMe.txt if necessary.
2834
1. Fix the copyright date
2935
2. Add or remove "draft" in front of "data files", according to the status

0 commit comments

Comments
 (0)