Skip to content

Commit d05ed9e

Browse files
committed
update for Unicode 16.0.0
1 parent 3de4596 commit d05ed9e

File tree

6 files changed

+14
-68
lines changed

6 files changed

+14
-68
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ endif()
6565
if(UTF8PROC_ENABLE_TESTING)
6666
enable_testing()
6767
file(MAKE_DIRECTORY data)
68-
set(UNICODE_VERSION 15.1.0)
68+
set(UNICODE_VERSION 16.0.0)
6969
file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/NormalizationTest.txt ${CMAKE_BINARY_DIR}/data/NormalizationTest.txt SHOW_PROGRESS)
7070
file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/auxiliary/GraphemeBreakTest.txt ${CMAKE_BINARY_DIR}/data/GraphemeBreakTest.txt SHOW_PROGRESS)
7171
add_executable(case test/tests.h test/tests.c utf8proc.h test/case.c)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The C library is found in this directory after successful compilation
5959
and is named `libutf8proc.a` (for the static library) and
6060
`libutf8proc.so` (for the dynamic library).
6161

62-
The Unicode version supported is 15.1.0.
62+
The Unicode version supported is 16.0.0.
6363

6464
For Unicode normalizations, the following options are used:
6565

data/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ utf8proc_data.c.new: data_generator.jl $(RAWDATA)
2121
$(JULIA) --project=. data_generator.jl > $@
2222

2323
# Unicode data version (must also update utf8proc_unicode_version function)
24-
UNICODE_VERSION=15.1.0
24+
UNICODE_VERSION=16.0.0
2525

2626
UnicodeData.txt:
2727
$(CURL) $(CURLFLAGS) -o $@ https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt

data/Manifest.toml

Lines changed: 7 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,16 @@
11
# This file is machine-generated - editing it directly is not advised
22

3-
julia_version = "1.9.3"
3+
julia_version = "1.10.5"
44
manifest_format = "2.0"
55
project_hash = "bc0740aa2247b17bd49ba693fb87f41bbbddead6"
66

7-
[[deps.Adapt]]
8-
deps = ["LinearAlgebra", "Requires"]
9-
git-tree-sha1 = "cde29ddf7e5726c9fb511f340244ea3481267608"
10-
uuid = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
11-
version = "3.7.2"
12-
13-
[deps.Adapt.extensions]
14-
AdaptStaticArraysExt = "StaticArrays"
15-
16-
[deps.Adapt.weakdeps]
17-
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
18-
19-
[[deps.Artifacts]]
20-
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
21-
22-
[[deps.CompilerSupportLibraries_jll]]
23-
deps = ["Artifacts", "Libdl"]
24-
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
25-
version = "1.0.5+0"
26-
27-
[[deps.Libdl]]
28-
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
29-
30-
[[deps.LinearAlgebra]]
31-
deps = ["Libdl", "OpenBLAS_jll", "libblastrampoline_jll"]
32-
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
33-
347
[[deps.OffsetArrays]]
35-
deps = ["Adapt"]
36-
git-tree-sha1 = "2ac17d29c523ce1cd38e27785a7d23024853a4bb"
8+
git-tree-sha1 = "1a27764e945a152f7ca7efa04de513d473e9542e"
379
uuid = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
38-
version = "1.12.10"
39-
40-
[[deps.OpenBLAS_jll]]
41-
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
42-
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
43-
version = "0.3.21+4"
44-
45-
[[deps.Random]]
46-
deps = ["SHA", "Serialization"]
47-
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
48-
49-
[[deps.Requires]]
50-
deps = ["UUIDs"]
51-
git-tree-sha1 = "838a3a4188e2ded87a4f9f184b4b0d78a1e91cb7"
52-
uuid = "ae029012-a4dd-5104-9daa-d747884805df"
53-
version = "1.3.0"
54-
55-
[[deps.SHA]]
56-
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
57-
version = "0.7.0"
58-
59-
[[deps.Serialization]]
60-
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
10+
version = "1.14.1"
6111

62-
[[deps.UUIDs]]
63-
deps = ["Random", "SHA"]
64-
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
12+
[deps.OffsetArrays.extensions]
13+
OffsetArraysAdaptExt = "Adapt"
6514

66-
[[deps.libblastrampoline_jll]]
67-
deps = ["Artifacts", "Libdl"]
68-
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
69-
version = "5.8.0+0"
15+
[deps.OffsetArrays.weakdeps]
16+
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

data/data_generator.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ let ea_widths = read_east_asian_widths("EastAsianWidth.txt")
236236
width = 1
237237
elseif code == 0x2028 || code == 0x2029
238238
#By definition, should have zero width (on the same line)
239-
#0x002028 '' category: Zl name: LINE SEPARATOR/
240-
#0x002029 '' category: Zp name: PARAGRAPH SEPARATOR/
239+
#0x002028 '\u2028' category: Zl name: LINE SEPARATOR/
240+
#0x002029 '\u2029' category: Zp name: PARAGRAPH SEPARATOR/
241241
width = 0
242242
end
243243

@@ -310,7 +310,7 @@ let
310310
end
311311
offset += 1
312312
if dm1 in comb2nd_indices_nonbasic
313-
offset += 1
313+
offset += 1
314314
end
315315
end
316316
comb1st_indices_firstoffsets[index] = first
@@ -550,4 +550,3 @@ if !isinteractive()
550550
comb1st_indices_firstoffsets, comb1st_indices_lastoffsets,
551551
comb2nd_indices_sorted_keys, comb_array, comb2nd_indices_nonbasic)
552552
end
553-

utf8proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ UTF8PROC_DLLEXPORT const char *utf8proc_version(void) {
101101
}
102102

103103
UTF8PROC_DLLEXPORT const char *utf8proc_unicode_version(void) {
104-
return "15.1.0";
104+
return "16.0.0";
105105
}
106106

107107
UTF8PROC_DLLEXPORT const char *utf8proc_errmsg(utf8proc_ssize_t errcode) {

0 commit comments

Comments
 (0)