Skip to content

Commit 8fe3716

Browse files
committed
scripts: update docs for 'generate-unicode-tables'
The docs are now updated to work with Unicode 14. (In particular, emoji-data.txt no longer needs to be downloaded separately.) We also include a note about adding a new case for "age" in regex-syntax.
1 parent 6ff285e commit 8fe3716

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/generate-unicode-tables

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
#
88
# $ mkdir ucd
99
# $ cd ucd
10-
# $ curl -LO https://www.unicode.org/Public/zipped/12.1.0/UCD.zip
10+
# $ curl -LO https://www.unicode.org/Public/zipped/14.0.0/UCD.zip
1111
# $ unzip UCD.zip
12-
# $ curl -LO https://unicode.org/Public/emoji/12.0/emoji-data.txt
1312
#
1413
# And then run this script from the root of this repository by pointing it at
1514
# the data directory downloaded above:
1615
#
1716
# $ ./scripts/generate-unicode-tables path/to/ucd
17+
#
18+
# Once complete, if you are upgrading to a new version of Unicode,
19+
# you'll need to add a new "age" value to the 'ages' routine in
20+
# regex-syntax/src/unicode.rs.
1821

1922
if [ $# != 1 ]; then
2023
echo "Usage: $(basename "$0") <ucd-data-directory>" >&2

0 commit comments

Comments
 (0)