Skip to content

Commit 45fbeb0

Browse files
authored
Merge pull request #23 from JuliaString/spj/v16_0
Support Unicode v16.0, use RelocatableFolders
2 parents 991d107 + 9213bbb commit 45fbeb0

File tree

7 files changed

+62
-29
lines changed

7 files changed

+62
-29
lines changed

β€Ž.drone.ymlβ€Ž

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,27 @@
11
---
22
kind: pipeline
3-
name: linux - arm64 - Julia 1.5
4-
5-
platform:
6-
os: linux
7-
arch: arm64
8-
9-
steps:
10-
- name: build
11-
image: julia:1.5
12-
commands:
13-
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
14-
15-
---
16-
kind: pipeline
17-
name: linux - arm - Julia 1.6
3+
name: linux - arm - Julia 1.10
184

195
platform:
206
os: linux
217
arch: arm
228

239
steps:
2410
- name: build
25-
image: julia:1.6
11+
image: julia:1.10
2612
commands:
2713
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
2814

2915
---
3016
kind: pipeline
31-
name: linux - arm64 - Julia 1.6
17+
name: linux - arm64 - Julia 1.10
3218

3319
platform:
3420
os: linux
3521
arch: arm64
3622

3723
steps:
3824
- name: build
39-
image: julia:1.6
25+
image: julia:1.10
4026
commands:
4127
- "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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ keywords = ["Entities", "Emoji"]
44
license = "MIT"
55
name = "Emoji_Entities"
66
uuid = "fd8f23de-bd2f-5c75-921c-0c9ab51355f5"
7-
version = "1.1.0"
7+
version = "1.2.0"
88

99
[deps]
10+
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00"
1011
StrTables = "9700d1a9-a7c8-5760-9816-a99fda30bb8f"
11-
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1212

1313
[extras]
1414
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
@@ -17,5 +17,6 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1717
test = ["Test"]
1818

1919
[compat]
20-
julia = "1"
20+
RelocatableFolders = "1"
2121
StrTables = "1"
22+
julia = "1.10"

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ Emoji_Entities.jl
3636
This builds tables for looking up Emoji names and returning the Unicode character(s),
3737
looking up a character or pair of characters and finding Emoji names that return it/them,
3838
and finding all of the Emoji name completions for a particular string, if any.
39+
40+
Version 1.2 supports Unicode v16.0

β€Ždata/emoji.datβ€Ž

1.56 KB
Binary file not shown.

β€Žsrc/Emoji_Entities.jlβ€Ž

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
__precompile__()
1+
# License is MIT: https://github.com/JuliaString/Emoji_Entities/LICENSE.md
2+
23
"""
34
# Public API (nothing is exported)
45
@@ -10,7 +11,7 @@ __precompile__()
1011
"""
1112
module Emoji_Entities
1213

13-
using StrTables
14+
using StrTables, RelocatableFolders
1415

1516
VER = UInt32(1)
1617

@@ -31,9 +32,10 @@ struct Emoji_Table{T} <: AbstractEntityTable
3132
max2c::UInt32
3233
end
3334

35+
const DATA_PATH = @path joinpath(@__DIR__, "../data", "emoji.dat")
36+
3437
function __init__()
35-
global default =
36-
Emoji_Table(StrTables.load(joinpath(@__DIR__, "../data", "emoji.dat"))...)
38+
global default = Emoji_Table(StrTables.load(DATA_PATH)...)
3739
nothing
3840
end
3941

β€Žsrc/manual_emoji.jlβ€Ž

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,47 @@
22
# the automatic entries
33
# It is a vector of Pair{String,String}
44

5-
const manual = []
5+
# Additions from Unicode 16.0 to 15.1 not yet in emoji_pretty.json
6+
const manual = [
7+
"face_with_bags_under_eyes" => "🫩",
8+
"fingerprint" => "πŸ«†",
9+
"leafless_tree" => "πŸͺΎ",
10+
"root_vegetable" => "🫜",
11+
"harp" => "πŸͺ‰",
12+
"shovel" => "πŸͺ",
13+
"splatter" => "🫟"
14+
]
15+
16+
#=
17+
# Additions from Unicode 15.0 to 15.1 not yet in emoji_pretty.json
18+
const manual = [
19+
"phoenix" => "πŸ¦β€πŸ”₯",
20+
"lime" => "πŸ‹β€πŸŸ©",
21+
"brown_mushroom" => "πŸ„β€πŸŸ«",
22+
"broken_chain" => "⛓️‍πŸ’₯",
23+
"head_shaking_horizontally" => "πŸ™‚β€β†”οΈ",
24+
"head_shaking_vertically" => "πŸ™‚β€β†•οΈ",
25+
"adult_child" => "πŸ§‘β€πŸ§’",
26+
"adult_child_child" => "πŸ§‘β€πŸ§’β€πŸ§’",
27+
"adult_adult_child" => "πŸ§‘β€πŸ§‘β€πŸ§’",
28+
"adult_adult_child_child" => "πŸ§‘β€πŸ§‘β€πŸ§’β€πŸ§’",
29+
"person_walking_facing_right" => "πŸšΆβ€βž‘οΈ",
30+
"person_running_facing_right" => "πŸƒβ€βž‘οΈ",
31+
"person_kneeling_facing_right" => "πŸ§Žβ€βž‘οΈ",
32+
"person_with_white_cane_facing_right" => "πŸ§‘β€πŸ¦―β€βž‘οΈ",
33+
"person_in_manual_wheelchair_facing_right" => "πŸ§‘β€πŸ¦½β€βž‘οΈ",
34+
"person_in_motorized_wheelchair_facing_right" => "πŸ§‘β€πŸ¦Όβ€βž‘οΈ",
35+
"man_walking_facing_right" => "πŸšΆβ€β™‚οΈβ€βž‘οΈ",
36+
"man_running_facing_right" => "πŸƒβ€β™‚οΈβ€βž‘οΈ",
37+
"man_kneeling_facing_right" => "πŸ§Žβ€β™‚οΈβ€βž‘οΈ",
38+
"man_with_white_cane_facing_right" => "πŸ‘¨β€πŸ¦―β€βž‘οΈ",
39+
"man_in_manual_wheelchair_facing_right" => "πŸ‘¨β€πŸ¦½β€βž‘οΈ",
40+
"man_in_motorized_wheelchair_facing_right" => "πŸ‘¨β€πŸ¦Όβ€βž‘οΈ",
41+
"woman_walking_facing_right" => "πŸšΆβ€β™€οΈβ€βž‘οΈ",
42+
"woman_running_facing_right" => "πŸƒβ€β™€οΈβ€βž‘οΈ",
43+
"woman_kneeling_facing_right" => "πŸ§Žβ€β™€οΈβ€βž‘οΈ",
44+
"woman_with_white_cane_facing_right" => "πŸ‘©β€πŸ¦―β€βž‘οΈ",
45+
"woman_in_manual_wheelchair_facing_right" => "πŸ‘©β€πŸ¦½β€βž‘οΈ",
46+
"woman_in_motorized_wheelchair_facing_right" => "πŸ‘©β€πŸ¦Όβ€βž‘οΈ",
47+
]
48+
=#

0 commit comments

Comments
Β (0)