From 8c7736e4898fb0c177f97b396bbc782a8daa409a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 11 Feb 2024 19:54:47 +0100 Subject: [PATCH] Fulfil the obligations of the Unicode license. * lib/gen-uni-tables.c: Prepend the Unicode license when copying NameAliases.txt, UnicodeData.txt, NormalizationTest.txt, GraphemeBreakTest.txt, WordBreakTest.txt. * tests/unigbrk/GraphemeBreakTest.txt: Prepend the Unicode license. * tests/uniname/NameAliases.txt: Likewise. * tests/uniname/UnicodeData.txt: Likewise. * tests/uninorm/NormalizationTest.txt: Likewise. * tests/uniwbrk/WordBreakTest.txt: Likewise. * tests/uniname/HangulSyllableNames.txt: Add public-domain notice. --- ChangeLog | 13 +++++++++ lib/gen-uni-tables.c | 25 +++++++++++++---- tests/unigbrk/GraphemeBreakTest.txt | 40 +++++++++++++++++++++++++++ tests/uniname/HangulSyllableNames.txt | 4 ++- tests/uniname/NameAliases.txt | 40 +++++++++++++++++++++++++++ tests/uniname/UnicodeData.txt | 40 +++++++++++++++++++++++++++ tests/uninorm/NormalizationTest.txt | 40 +++++++++++++++++++++++++++ tests/uniwbrk/WordBreakTest.txt | 40 +++++++++++++++++++++++++++ 8 files changed, 236 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index a25e9f8706..e15f678e49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2024-02-11 Bruno Haible + + Fulfil the obligations of the Unicode license. + * lib/gen-uni-tables.c: Prepend the Unicode license when copying + NameAliases.txt, UnicodeData.txt, NormalizationTest.txt, + GraphemeBreakTest.txt, WordBreakTest.txt. + * tests/unigbrk/GraphemeBreakTest.txt: Prepend the Unicode license. + * tests/uniname/NameAliases.txt: Likewise. + * tests/uniname/UnicodeData.txt: Likewise. + * tests/uninorm/NormalizationTest.txt: Likewise. + * tests/uniwbrk/WordBreakTest.txt: Likewise. + * tests/uniname/HangulSyllableNames.txt: Add public-domain notice. + 2024-02-11 Bruno Haible time_r: Add tests. diff --git a/lib/gen-uni-tables.c b/lib/gen-uni-tables.c index b948489fbf..11b1a46a0f 100644 --- a/lib/gen-uni-tables.c +++ b/lib/gen-uni-tables.c @@ -11901,10 +11901,25 @@ main (int argc, char * argv[]) * /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/UnicodeData.txt \\ * uniname/uninames.h \\ * /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/NameAliases.txt \\ - * && cp /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/NameAliases.txt ../tests/uniname/NameAliases.txt \\ - * && cp /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/UnicodeData.txt ../tests/uniname/UnicodeData.txt \\ - * && cp /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/NormalizationTest.txt ../tests/uninorm/NormalizationTest.txt \\ - * && cp /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/auxiliary/GraphemeBreakTest.txt ../tests/unigbrk/GraphemeBreakTest.txt \\ - * && cp /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/auxiliary/WordBreakTest.txt ../tests/uniwbrk/WordBreakTest.txt" + * && { sed -e 's/^/# /' -e 's/ $//' < /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/license.txt; \\ + * echo; \\ + * cat /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/NameAliases.txt; } \\ + * > ../tests/uniname/NameAliases.txt \\ + * && { sed -e 's/^/# /' -e 's/ $//' < /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/license.txt; \\ + * echo; \\ + * cat /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/UnicodeData.txt; } \\ + * > ../tests/uniname/UnicodeData.txt \\ + * && { sed -e 's/^/# /' -e 's/ $//' < /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/license.txt; \\ + * echo; \\ + * cat /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/NormalizationTest.txt; } \\ + * > ../tests/uninorm/NormalizationTest.txt \\ + * && { sed -e 's/^/# /' -e 's/ $//' < /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/license.txt; \\ + * echo; \\ + * cat /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/auxiliary/GraphemeBreakTest.txt; } \\ + * > ../tests/unigbrk/GraphemeBreakTest.txt \\ + * && { sed -e 's/^/# /' -e 's/ $//' < /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/license.txt; \\ + * echo; \\ + * cat /media/nas/bruno/www-archive/software/i18n/unicode/ftp.unicode.org/ArchiveVersions/15.1.0/ucd/auxiliary/WordBreakTest.txt; } \\ + * > ../tests/uniwbrk/WordBreakTest.txt" * End: */ diff --git a/tests/unigbrk/GraphemeBreakTest.txt b/tests/unigbrk/GraphemeBreakTest.txt index 4c1ed512e4..d9c7b0665c 100644 --- a/tests/unigbrk/GraphemeBreakTest.txt +++ b/tests/unigbrk/GraphemeBreakTest.txt @@ -1,3 +1,43 @@ +# UNICODE LICENSE V3 +# +# COPYRIGHT AND PERMISSION NOTICE +# +# Copyright © 1991-2024 Unicode, Inc. +# +# NOTICE TO USER: Carefully read the following legal agreement. BY +# DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +# SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +# TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +# DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of data files and any associated documentation (the "Data Files") or +# software and any associated documentation (the "Software") to deal in the +# Data Files or Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, and/or sell +# copies of the Data Files or Software, and to permit persons to whom the +# Data Files or Software are furnished to do so, provided that either (a) +# this copyright and permission notice appear with all copies of the Data +# Files or Software, or (b) this copyright and permission notice appear in +# associated Documentation. +# +# THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +# THIRD PARTY RIGHTS. +# +# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +# BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +# FILES OR SOFTWARE. +# +# Except as contained in this notice, the name of a copyright holder shall +# not be used in advertising or otherwise to promote the sale, use or other +# dealings in these Data Files or Software without prior written +# authorization of the copyright holder. + # GraphemeBreakTest-15.1.0.txt # Date: 2023-08-07, 15:52:55 GMT # © 2023 Unicode®, Inc. diff --git a/tests/uniname/HangulSyllableNames.txt b/tests/uniname/HangulSyllableNames.txt index 341c178d9a..5491f66168 100644 --- a/tests/uniname/HangulSyllableNames.txt +++ b/tests/uniname/HangulSyllableNames.txt @@ -1,5 +1,7 @@ # Auxiliary tables for Hangul syllable names, see the Unicode 3.0 book, -# sections 3.11 and 4.4. +# sections 3.11 and 4.4. This table was automatically generated. + +# This file is in the public domain. AC00;HANGUL SYLLABLE GA;Lo;0;L;;;;;N;;;;; AC01;HANGUL SYLLABLE GAG;Lo;0;L;;;;;N;;;;; diff --git a/tests/uniname/NameAliases.txt b/tests/uniname/NameAliases.txt index 1e6f50243f..487cdb8c14 100644 --- a/tests/uniname/NameAliases.txt +++ b/tests/uniname/NameAliases.txt @@ -1,3 +1,43 @@ +# UNICODE LICENSE V3 +# +# COPYRIGHT AND PERMISSION NOTICE +# +# Copyright © 1991-2024 Unicode, Inc. +# +# NOTICE TO USER: Carefully read the following legal agreement. BY +# DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +# SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +# TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +# DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of data files and any associated documentation (the "Data Files") or +# software and any associated documentation (the "Software") to deal in the +# Data Files or Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, and/or sell +# copies of the Data Files or Software, and to permit persons to whom the +# Data Files or Software are furnished to do so, provided that either (a) +# this copyright and permission notice appear with all copies of the Data +# Files or Software, or (b) this copyright and permission notice appear in +# associated Documentation. +# +# THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +# THIRD PARTY RIGHTS. +# +# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +# BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +# FILES OR SOFTWARE. +# +# Except as contained in this notice, the name of a copyright holder shall +# not be used in advertising or otherwise to promote the sale, use or other +# dealings in these Data Files or Software without prior written +# authorization of the copyright holder. + # NameAliases-15.1.0.txt # Date: 2023-01-05 # © 2023 Unicode®, Inc. diff --git a/tests/uniname/UnicodeData.txt b/tests/uniname/UnicodeData.txt index bdcc41850d..152ebe664e 100644 --- a/tests/uniname/UnicodeData.txt +++ b/tests/uniname/UnicodeData.txt @@ -1,3 +1,43 @@ +# UNICODE LICENSE V3 +# +# COPYRIGHT AND PERMISSION NOTICE +# +# Copyright © 1991-2024 Unicode, Inc. +# +# NOTICE TO USER: Carefully read the following legal agreement. BY +# DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +# SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +# TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +# DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of data files and any associated documentation (the "Data Files") or +# software and any associated documentation (the "Software") to deal in the +# Data Files or Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, and/or sell +# copies of the Data Files or Software, and to permit persons to whom the +# Data Files or Software are furnished to do so, provided that either (a) +# this copyright and permission notice appear with all copies of the Data +# Files or Software, or (b) this copyright and permission notice appear in +# associated Documentation. +# +# THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +# THIRD PARTY RIGHTS. +# +# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +# BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +# FILES OR SOFTWARE. +# +# Except as contained in this notice, the name of a copyright holder shall +# not be used in advertising or otherwise to promote the sale, use or other +# dealings in these Data Files or Software without prior written +# authorization of the copyright holder. + 0000;;Cc;0;BN;;;;;N;NULL;;;; 0001;;Cc;0;BN;;;;;N;START OF HEADING;;;; 0002;;Cc;0;BN;;;;;N;START OF TEXT;;;; diff --git a/tests/uninorm/NormalizationTest.txt b/tests/uninorm/NormalizationTest.txt index 2e88574243..e1644a6132 100644 --- a/tests/uninorm/NormalizationTest.txt +++ b/tests/uninorm/NormalizationTest.txt @@ -1,3 +1,43 @@ +# UNICODE LICENSE V3 +# +# COPYRIGHT AND PERMISSION NOTICE +# +# Copyright © 1991-2024 Unicode, Inc. +# +# NOTICE TO USER: Carefully read the following legal agreement. BY +# DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +# SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +# TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +# DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of data files and any associated documentation (the "Data Files") or +# software and any associated documentation (the "Software") to deal in the +# Data Files or Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, and/or sell +# copies of the Data Files or Software, and to permit persons to whom the +# Data Files or Software are furnished to do so, provided that either (a) +# this copyright and permission notice appear with all copies of the Data +# Files or Software, or (b) this copyright and permission notice appear in +# associated Documentation. +# +# THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +# THIRD PARTY RIGHTS. +# +# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +# BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +# FILES OR SOFTWARE. +# +# Except as contained in this notice, the name of a copyright holder shall +# not be used in advertising or otherwise to promote the sale, use or other +# dealings in these Data Files or Software without prior written +# authorization of the copyright holder. + # NormalizationTest-15.1.0.txt # Date: 2023-01-05, 20:34:44 GMT # © 2023 Unicode®, Inc. diff --git a/tests/uniwbrk/WordBreakTest.txt b/tests/uniwbrk/WordBreakTest.txt index 10a111a97c..e4a41120c5 100644 --- a/tests/uniwbrk/WordBreakTest.txt +++ b/tests/uniwbrk/WordBreakTest.txt @@ -1,3 +1,43 @@ +# UNICODE LICENSE V3 +# +# COPYRIGHT AND PERMISSION NOTICE +# +# Copyright © 1991-2024 Unicode, Inc. +# +# NOTICE TO USER: Carefully read the following legal agreement. BY +# DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +# SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +# TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +# DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of data files and any associated documentation (the "Data Files") or +# software and any associated documentation (the "Software") to deal in the +# Data Files or Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, and/or sell +# copies of the Data Files or Software, and to permit persons to whom the +# Data Files or Software are furnished to do so, provided that either (a) +# this copyright and permission notice appear with all copies of the Data +# Files or Software, or (b) this copyright and permission notice appear in +# associated Documentation. +# +# THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +# THIRD PARTY RIGHTS. +# +# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +# BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +# FILES OR SOFTWARE. +# +# Except as contained in this notice, the name of a copyright holder shall +# not be used in advertising or otherwise to promote the sale, use or other +# dealings in these Data Files or Software without prior written +# authorization of the copyright holder. + # WordBreakTest-15.1.0.txt # Date: 2023-03-31, 14:30:32 GMT # © 2023 Unicode®, Inc. -- 2.39.5