Skip to content

Commit 87f35a0

Browse files
committed
Update for Unicode 16, use RelocatableFiles
1 parent 3d80e28 commit 87f35a0

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

.drone.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
22
kind: pipeline
3-
name: linux - arm64 - Julia 1.6
3+
name: linux - arm64 - Julia 1.10
44

55
platform:
66
os: linux
77
arch: arm64
88

99
steps:
1010
- name: build
11-
image: julia:1.6
11+
image: julia:1.10
1212
commands:
1313
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
1414

1515
---
1616
kind: pipeline
17-
name: linux - arm64 - Julia 1.9
17+
name: linux - arm64 - Julia 1.11
1818

1919
platform:
2020
os: linux
2121
arch: arm64
2222

2323
steps:
2424
- name: build
25-
image: julia:1.9
25+
image: julia:1.11
2626
commands:
2727
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ keywords = ["Entities", "Unicode"]
44
license = "MIT"
55
name = "Unicode_Entities"
66
uuid = "a8aa15d3-c567-5e9f-b6cc-4b0f97f09cf7"
7-
version = "1.3.0"
7+
version = "1.4.0"
88

99
[deps]
10+
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00"
1011
StrTables = "9700d1a9-a7c8-5760-9816-a99fda30bb8f"
1112

1213
[extras]
@@ -16,5 +17,6 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1617
test = ["Test"]
1718

1819
[compat]
19-
julia = "1"
20+
RelocatableFolders = "1"
2021
StrTables = "1"
22+
julia = "1.10"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ and finding all of the Unicode name completions for a particular string, if any.
3737
Version 1.1.x is based on Unicode version 13.0.0
3838
Version 1.2.x is based on Unicode version 14.0.0
3939
Version 1.3.x is based on Unicode version 15.1.0
40+
Version 1.4.x is based on Unicode version 16.0.0

data/unicode.dat

-516 KB
Binary file not shown.

src/Unicode_Entities.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ __precompile__()
1313
"""
1414
module Unicode_Entities
1515

16-
using StrTables
16+
using StrTables, RelocatableFolders
1717

1818
VER = UInt32(1)
1919

@@ -40,9 +40,10 @@ struct Unicode_Table{T} <: AbstractEntityTable
4040
ind32::Vector{UInt16}
4141
end
4242

43+
const DATA_PATH = @path joinpath(@__DIR__, "../data", "unicode.dat")
44+
4345
function __init__()
44-
(ver, tim, inf, base32, nam, ind, wrd1, wrd2, val16, ind16, val32, ind32) =
45-
StrTables.load(joinpath(@__DIR__, "../data/unicode.dat"))
46+
(ver, tim, inf, base32, nam, ind, wrd1, wrd2, val16, ind16, val32, ind32) = StrTables.load(DATA_PATH)
4647
global default = Unicode_Table(ver, tim, inf, base32,
4748
PackedNames(nam.offsetvec, nam.namtab, wrd1, wrd2),
4849
ind, val16, ind16, val32, ind32)

0 commit comments

Comments
 (0)