Skip to content

Commit 0fb0b84

Browse files
committed
script for beta, idna2008 readme
1 parent 15d0d61 commit 0fb0b84

File tree

3 files changed

+83
-4
lines changed

3 files changed

+83
-4
lines changed

docs/data-workflow.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ script from an up-to-date repo workspace.
102102
The script copies the set of the .../dev/ data files for an alpha snapshot
103103
from a unicodetools workspace to a target folder with the layout of https://www.unicode.org/Public/draft/ .
104104

105-
Go into the “draft” target folder and zip its contents. Send the zip file to Rick for posting.
105+
Send the resulting zip file to Rick for posting to https://www.unicode.org/Public/draft/ .
106106
Ask Rick to add other files that are not tracked in the unicodetools repo:
107107
* Unihan.zip to .../draft/UCD/ucd
108108
* alpha charts to .../draft/UCD/charts
@@ -112,9 +112,17 @@ We simply use the “draft” folder and the file-internal time stamps for versi
112112

113113
### Publish a beta snapshot
114114

115-
TODO: Write a script like /pub/copy-beta-to-draft.sh that will be run on the unicode.org server
116-
and copy the set of the .../dev/ data files for a beta snapshot
117-
from a unicodetools workspace to the location behind https://www.unicode.org/Public/draft/ .
115+
For the beta review, publish all of the data files, and the charts.
116+
117+
Run the [pub/copy-beta-to-draft.sh](https://github.com/unicode-org/unicodetools/blob/main/pub/copy-beta-to-draft.sh)
118+
script from an up-to-date repo workspace.
119+
The script copies the set of the .../dev/ data files for a beta snapshot
120+
from a unicodetools workspace to a target folder with the layout of https://www.unicode.org/Public/draft/ .
121+
122+
Send the resulting zip file to Rick for posting to https://www.unicode.org/Public/draft/ .
123+
Ask Rick to add other files that are not tracked in the unicodetools repo:
124+
* Unihan.zip to .../draft/UCD/ucd
125+
* beta charts to .../draft/UCD/charts
118126

119127
### Publish a release
120128

pub/copy-beta-to-draft.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Script for
2+
# https://github.com/unicode-org/unicodetools/blob/main/docs/data-workflow.md#publish-a-beta-snapshot
3+
#
4+
# Invoke like this:
5+
#
6+
# pub/copy-beta-to-draft.sh ~/unitools/mine/src /tmp/unicode/Public/draft
7+
8+
UNICODETOOLS=$1
9+
DRAFT=$2
10+
11+
UNITOOLS_DATA=$UNICODETOOLS/unicodetools/data
12+
13+
mkdir -p $DRAFT/UCD/ucd
14+
cp -r $UNITOOLS_DATA/ucd/dev/* $DRAFT/UCD/ucd
15+
rm -r $DRAFT/UCD/ucd/Unihan
16+
mv $DRAFT/UCD/ucd/version-ReadMe.txt $DRAFT/UCD/ReadMe.txt
17+
rm $DRAFT/UCD/ucd/zipped-ReadMe.txt
18+
19+
mkdir -p $DRAFT/UCA
20+
cp -r $UNITOOLS_DATA/uca/dev/* $DRAFT/UCA
21+
22+
mkdir -p $DRAFT/emoji
23+
cp $UNITOOLS_DATA/emoji/dev/* $DRAFT/emoji
24+
25+
mkdir -p $DRAFT/idna
26+
cp $UNITOOLS_DATA/idna/dev/* $DRAFT/idna
27+
28+
mkdir -p $DRAFT/idna2008derived
29+
cp $UNITOOLS_DATA/idna/idna2008derived/* $DRAFT/idna2008derived
30+
31+
mkdir -p $DRAFT/security
32+
cp $UNITOOLS_DATA/security/dev/* $DRAFT/security
33+
34+
# Fix permissions. Everyone can read, and search directories.
35+
chmod a+rX -R $DRAFT
36+
37+
# Zip files for some types of data, after fixing permissions
38+
rm $DRAFT/UCA/CollationTest.zip
39+
(cd $DRAFT/UCA; zip -r CollationTest.zip CollationTest && rm -r CollationTest)
40+
41+
rm $DRAFT/security/*.zip
42+
(cd $DRAFT/security; zip -r uts39-data-15.1.0.zip *)
43+
44+
# Fix permissions again to catch the zip files
45+
chmod a+rX -R $DRAFT
46+
47+
# Zip file to deliver the whole set of beta data files
48+
rm $DRAFT/beta.zip
49+
(cd $DRAFT; zip -r beta.zip *)
50+
51+
echo "--------------------"
52+
echo "Copy files from elsewhere:"
53+
echo "- Unihan.zip to $DRAFT/UCD/ucd"
54+
echo "- beta charts to $DRAFT/UCD/charts"
55+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# IDNA2008_Category Property
2+
# Date: 2023-05-16
3+
# © 2023 Unicode®, Inc.
4+
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
5+
# For terms of use, see https://www.unicode.org/terms_of_use.html
6+
7+
This directory contains data files listing the
8+
IDNA2008_Category Property for all versions of
9+
the Unicode Standard extending back to Version 6.1.0.
10+
11+
The listing matches the "IDNA Derived Property" as
12+
defined in RFC 5892.
13+
14+
For more information, see:
15+
16+
https://www.unicode.org/reports/tr46/

0 commit comments

Comments
 (0)