Skip to content

Fixes #87. Unicode latest version is the 15.0.0. #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NStack/unicode/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
maketables
maketables.exe
UnicodeData.txt
CaseFolding.txt
17 changes: 17 additions & 0 deletions NStack/unicode/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run make",
"type": "shell",
"command": "make tables",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
18 changes: 12 additions & 6 deletions NStack/unicode/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
Tables.cs: UnicodeData.txt maketables.go CaseFolding.txt Makefile maketables
./maketables --tables=all > Tables.cs
ifeq ($(OS),Windows_NT)
EXEC := maketables --tables=all --url=https://www.unicode.org/Public/15.0.0/ucd/ > Tables.cs
else
EXEC := ./maketables --tables=all --url=https://www.unicode.org/Public/15.0.0/ucd/ > Tables.cs
endif

UnicodeData.txt:
curl -O http://www.unicode.org/Public/14.0.0/ucd/UnicodeData.txt
tables: unicodeData caseFolding maketables
$(EXEC)

CaseFolding.txt:
curl -O http://www.unicode.org/Public/14.0.0/ucd/CaseFolding.txt
unicodeData:
curl -O https://www.unicode.org/Public/15.0.0/ucd/UnicodeData.txt

caseFolding:
curl -O https://www.unicode.org/Public/15.0.0/ucd/CaseFolding.txt

maketables: maketables.go
go build maketables.go
2 changes: 1 addition & 1 deletion NStack/unicode/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
To regenerate the Tables.cs file from the reference unicode files, execute the Makefile
which will dump the updated tables.
with the command `make tables`, which will dump the updated tables:

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