Skip to content

Update for Unicode 16, use RelocatableFolders #25

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
Jul 18, 2025
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
8 changes: 4 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
---
kind: pipeline
name: linux - arm64 - Julia 1.6
name: linux - arm64 - Julia 1.10

platform:
os: linux
arch: arm64

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

---
kind: pipeline
name: linux - arm64 - Julia 1.9
name: linux - arm64 - Julia 1.11

platform:
os: linux
arch: arm64

steps:
- name: build
image: julia:1.9
image: julia:1.11
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6'
- '1.9'
- '1.10'
- 'nightly'
os:
- ubuntu-latest
Expand All @@ -29,7 +28,7 @@ jobs:
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
Expand Down
6 changes: 4 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ keywords = ["Entities", "Unicode"]
license = "MIT"
name = "Unicode_Entities"
uuid = "a8aa15d3-c567-5e9f-b6cc-4b0f97f09cf7"
version = "1.3.0"
version = "1.4.0"

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

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

[compat]
julia = "1"
RelocatableFolders = "1"
StrTables = "1"
julia = "1.10"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ and finding all of the Unicode name completions for a particular string, if any.
Version 1.1.x is based on Unicode version 13.0.0
Version 1.2.x is based on Unicode version 14.0.0
Version 1.3.x is based on Unicode version 15.1.0
Version 1.4.x is based on Unicode version 16.0.0
Binary file modified data/unicode.dat
Binary file not shown.
7 changes: 4 additions & 3 deletions src/Unicode_Entities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __precompile__()
"""
module Unicode_Entities

using StrTables
using StrTables, RelocatableFolders

VER = UInt32(1)

Expand All @@ -40,9 +40,10 @@ struct Unicode_Table{T} <: AbstractEntityTable
ind32::Vector{UInt16}
end

const DATA_PATH = @path joinpath(@__DIR__, "../data", "unicode.dat")

function __init__()
(ver, tim, inf, base32, nam, ind, wrd1, wrd2, val16, ind16, val32, ind32) =
StrTables.load(joinpath(@__DIR__, "../data/unicode.dat"))
(ver, tim, inf, base32, nam, ind, wrd1, wrd2, val16, ind16, val32, ind32) = StrTables.load(DATA_PATH)
global default = Unicode_Table(ver, tim, inf, base32,
PackedNames(nam.offsetvec, nam.namtab, wrd1, wrd2),
ind, val16, ind16, val32, ind32)
Expand Down
Loading