Skip to content

Commit 216ace2

Browse files
authored
Merge pull request #88 from BDisp/unicode-latest-version-87
Fixes #87. Unicode latest version is the 15.0.0.
2 parents fa4fcc5 + 7ad40c6 commit 216ace2

File tree

6 files changed

+215
-87
lines changed

6 files changed

+215
-87
lines changed

NStack/unicode/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
maketables
2+
maketables.exe
23
UnicodeData.txt
34
CaseFolding.txt

NStack/unicode/.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Run make",
8+
"type": "shell",
9+
"command": "make tables",
10+
"problemMatcher": [],
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
}
15+
}
16+
]
17+
}

NStack/unicode/Makefile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
Tables.cs: UnicodeData.txt maketables.go CaseFolding.txt Makefile maketables
2-
./maketables --tables=all > Tables.cs
1+
ifeq ($(OS),Windows_NT)
2+
EXEC := maketables --tables=all --url=https://www.unicode.org/Public/15.0.0/ucd/ > Tables.cs
3+
else
4+
EXEC := ./maketables --tables=all --url=https://www.unicode.org/Public/15.0.0/ucd/ > Tables.cs
5+
endif
36

4-
UnicodeData.txt:
5-
curl -O http://www.unicode.org/Public/14.0.0/ucd/UnicodeData.txt
7+
tables: unicodeData caseFolding maketables
8+
$(EXEC)
69

7-
CaseFolding.txt:
8-
curl -O http://www.unicode.org/Public/14.0.0/ucd/CaseFolding.txt
10+
unicodeData:
11+
curl -O https://www.unicode.org/Public/15.0.0/ucd/UnicodeData.txt
12+
13+
caseFolding:
14+
curl -O https://www.unicode.org/Public/15.0.0/ucd/CaseFolding.txt
915

1016
maketables: maketables.go
1117
go build maketables.go

NStack/unicode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
To regenerate the Tables.cs file from the reference unicode files, execute the Makefile
2-
which will dump the updated tables.
2+
with the command `make tables`, which will dump the updated tables:
33

44
There is some work to be done to dump the tables as a binary blob,
55
without going through the various data structures that we have now, it would

0 commit comments

Comments
 (0)