Skip to content

Commit b1deb5e

Browse files
authored
Merge pull request #25 from JuliaString/spj/uni16
Update for Unicode 16, use RelocatableFolders
2 parents 8f9804a + 4bcbadc commit b1deb5e

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
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)'"

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
version:
13-
- '1.6'
14-
- '1.9'
13+
- '1.10'
1514
- 'nightly'
1615
os:
1716
- ubuntu-latest
@@ -29,7 +28,7 @@ jobs:
2928
with:
3029
version: ${{ matrix.version }}
3130
arch: ${{ matrix.arch }}
32-
- uses: actions/cache@v1
31+
- uses: actions/cache@v4
3332
env:
3433
cache-name: cache-artifacts
3534
with:

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

20.9 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)