Skip to content
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
22 changes: 4 additions & 18 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,27 @@
---
kind: pipeline
name: linux - arm64 - Julia 1.5

platform:
os: linux
arch: arm64

steps:
- name: build
image: julia:1.5
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 - arm - Julia 1.6
name: linux - arm - Julia 1.10

platform:
os: linux
arch: arm

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.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)'"
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
7 changes: 4 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ keywords = ["Entities", "Emoji"]
license = "MIT"
name = "Emoji_Entities"
uuid = "fd8f23de-bd2f-5c75-921c-0c9ab51355f5"
version = "1.1.0"
version = "1.2.0"

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

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

[compat]
julia = "1"
RelocatableFolders = "1"
StrTables = "1"
julia = "1.10"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ Emoji_Entities.jl
This builds tables for looking up Emoji names and returning the Unicode character(s),
looking up a character or pair of characters and finding Emoji names that return it/them,
and finding all of the Emoji name completions for a particular string, if any.

Version 1.2 supports Unicode v16.0
Binary file modified data/emoji.dat
Binary file not shown.
10 changes: 6 additions & 4 deletions src/Emoji_Entities.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__precompile__()
# License is MIT: https://github.com/JuliaString/Emoji_Entities/LICENSE.md

"""
# Public API (nothing is exported)

Expand All @@ -10,7 +11,7 @@ __precompile__()
"""
module Emoji_Entities

using StrTables
using StrTables, RelocatableFolders

VER = UInt32(1)

Expand All @@ -31,9 +32,10 @@ struct Emoji_Table{T} <: AbstractEntityTable
max2c::UInt32
end

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

function __init__()
global default =
Emoji_Table(StrTables.load(joinpath(@__DIR__, "../data", "emoji.dat"))...)
global default = Emoji_Table(StrTables.load(DATA_PATH)...)
nothing
end

Expand Down
45 changes: 44 additions & 1 deletion src/manual_emoji.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,47 @@
# the automatic entries
# It is a vector of Pair{String,String}

const manual = []
# Additions from Unicode 16.0 to 15.1 not yet in emoji_pretty.json
const manual = [
"face_with_bags_under_eyes" => "🫩",
"fingerprint" => "🫆",
"leafless_tree" => "🪾",
"root_vegetable" => "🫜",
"harp" => "🪉",
"shovel" => "🪏",
"splatter" => "🫟"
]

#=
# Additions from Unicode 15.0 to 15.1 not yet in emoji_pretty.json
const manual = [
"phoenix" => "🐦‍🔥",
"lime" => "🍋‍🟩",
"brown_mushroom" => "🍄‍🟫",
"broken_chain" => "⛓️‍💥",
"head_shaking_horizontally" => "🙂‍↔️",
"head_shaking_vertically" => "🙂‍↕️",
"adult_child" => "🧑‍🧒",
"adult_child_child" => "🧑‍🧒‍🧒",
"adult_adult_child" => "🧑‍🧑‍🧒",
"adult_adult_child_child" => "🧑‍🧑‍🧒‍🧒",
"person_walking_facing_right" => "🚶‍➡️",
"person_running_facing_right" => "🏃‍➡️",
"person_kneeling_facing_right" => "🧎‍➡️",
"person_with_white_cane_facing_right" => "🧑‍🦯‍➡️",
"person_in_manual_wheelchair_facing_right" => "🧑‍🦽‍➡️",
"person_in_motorized_wheelchair_facing_right" => "🧑‍🦼‍➡️",
"man_walking_facing_right" => "🚶‍♂️‍➡️",
"man_running_facing_right" => "🏃‍♂️‍➡️",
"man_kneeling_facing_right" => "🧎‍♂️‍➡️",
"man_with_white_cane_facing_right" => "👨‍🦯‍➡️",
"man_in_manual_wheelchair_facing_right" => "👨‍🦽‍➡️",
"man_in_motorized_wheelchair_facing_right" => "👨‍🦼‍➡️",
"woman_walking_facing_right" => "🚶‍♀️‍➡️",
"woman_running_facing_right" => "🏃‍♀️‍➡️",
"woman_kneeling_facing_right" => "🧎‍♀️‍➡️",
"woman_with_white_cane_facing_right" => "👩‍🦯‍➡️",
"woman_in_manual_wheelchair_facing_right" => "👩‍🦽‍➡️",
"woman_in_motorized_wheelchair_facing_right" => "👩‍🦼‍➡️",
]
=#
Loading