Skip to content

Commit

Permalink
updates 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cormullion committed Oct 29, 2024
1 parent df2920b commit 6f13b29
Show file tree
Hide file tree
Showing 7 changed files with 5,288 additions and 78 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
julia-version:
- "1.6"
- "1.10"
- "nightly"
os:
- ubuntu-latest
Expand All @@ -27,12 +27,12 @@ jobs:
julia-arch: x86

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: actions/cache@v1
- uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
Expand All @@ -45,6 +45,8 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}

4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name = "Glyphy"
uuid = "e3b492bb-b251-48f2-9293-5b5772365208"
authors = ["cormullion <[email protected]>"]
version = "1.4.0"
version = "1.5.0"

[deps]
SQLite = "0aa819cd-b072-5ff4-a722-6bc24af294d9"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[compat]
SQLite = "1.6.1"
Tables = "1.10, 1.11"
Tables = "1.10, 1.11, 1.12"
julia = "1.6"

[extras]
Expand Down
91 changes: 52 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,53 @@

# Glyphy

Glyphy is a small utility package that searches through the names of glyphs in the Unicode
glyph list and returns a list of the glyph names that match the search term.
Glyphy is a small utility package that searches
through the names of glyphs in the Unicode glyph
list and returns a list of the glyph names that
match the search term, and REPL shortcuts if
available.

```julia-term
using Glyphy
julia> glyphy("peacock")
1f99a 🦚 peacock
1f99a 🦚 peacock ⌨ \:peacock:
found one glyph matching "peacock"
```
```

There might be a few:

```julia-term
julia> glyphy("smiling")
0263a ☺ ✓ white smiling face
0263b ☻ ✓ black smiling face
1f601 😁 grinning face with smiling eyes
1f603 😃 smiling face with open mouth
1f604 😄 smiling face with open mouth and smiling eyes
1f605 😅 smiling face with open mouth and cold sweat
1f606 😆 smiling face with open mouth and tightly-closed eyes
1f607 😇 smiling face with halo
1f608 😈 smiling face with horns
1f60a 😊 smiling face with smiling eyes
1f60d 😍 smiling face with heart-shaped eyes
1f60e 😎 smiling face with sunglasses
1f619 😙 kissing face with smiling eyes
1f638 😸 grinning cat face with smiling eyes
1f63a 😺 smiling cat face with open mouth
1f63b 😻 smiling cat face with heart-shaped eyes
1f642 🙂 slightly smiling face
1f92d 🤭 smiling face with smiling eyes and hand covering mouth
1f970 🥰 smiling face with smiling eyes and three hearts
1f972 🥲 smiling face with tear
found 20 glyphs matching "smiling"
0263a ☺ ✓ white smiling face ⌨ \:relaxed:
0263b ☻ ✓ black smiling face ⌨ \blacksmiley
1ccaa 𜲪 ✓ lower left quadrant smiling face
1ccab 𜲫 ✓ lower right quadrant smiling face
1f601 😁 grinning face with smiling eyes ⌨ \:grin:
1f603 😃 smiling face with open mouth ⌨ \:smiley:
1f604 😄 smiling face with open mouth and smiling eyes ⌨ \:smile:
1f605 😅 smiling face with open mouth and cold sweat ⌨ \:sweat_smile:
1f606 😆 smiling face with open mouth and tightly-closed eyes ⌨ \:laughing:
1f607 😇 smiling face with halo ⌨ \:innocent:
1f608 😈 smiling face with horns ⌨ \:smiling_imp:
1f60a 😊 smiling face with smiling eyes ⌨ \:blush:
1f60d 😍 smiling face with heart-shaped eyes ⌨ \:heart_eyes:
1f60e 😎 smiling face with sunglasses ⌨ \:sunglasses:
1f619 😙 kissing face with smiling eyes ⌨ \:kissing_smiling_eyes:
1f638 😸 grinning cat face with smiling eyes ⌨ \:smile_cat:
1f63a 😺 smiling cat face with open mouth ⌨ \:smiley_cat:
1f63b 😻 smiling cat face with heart-shaped eyes ⌨ \:heart_eyes_cat:
1f642 🙂 slightly smiling face ⌨ \:slightly_smiling_face:
1f92d 🤭 smiling face with smiling eyes and hand covering mouth ⌨ \:face_with_hand_over_mouth:
1f970 🥰 smiling face with smiling eyes and three hearts ⌨ \:smiling_face_with_3_hearts:
1f972 🥲 smiling face with tear ⌨ \:smiling_face_with_tear:
found 22 glyphs matching "smiling"
```

Here, the check mark indicates that the glyph is defined in
the current release of the JuliaMono font (it doesn't know
Here, the check marks indicate that the glyph is available in
the latest release of the JuliaMono font (it doesn't know
which font you're currently using in your terminal).

Glyphy can also look for the glyph with a specific integer
Expand All @@ -54,14 +60,13 @@ so `0x2055`, `0x1f638`, etc.
```julia-term
julia> glyphy(0x1f638)
1f638 😸 grinning cat face with smiling eyes
You can enter this glyph by typing \:smile_cat: TAB
1f638 😸 grinning cat face with smiling eyes ⌨ \:smile_cat:
```

You can look for ranges and arrays of values:

```julia-term
julia-1.9> glyphy(0x32:0x7f)
julia> glyphy(0x32:0x7f)
00032 2 ✓ digit two
00033 3 ✓ digit three
Expand All @@ -73,28 +78,34 @@ julia-1.9> glyphy(0x32:0x7f)
00039 9 ✓ digit nine
...
0007b { ✓ left curly bracket
0007c | ✓ vertical line
0007c ✓ vertical line
0007d } ✓ right curly bracket
0007e ~ ✓ tilde
```

```julia-term
julia-1.9> glyphy([0x63, 0x2020, 0x2640])
julia> glyphy([0x63, 0x2020, 0x2640])
00063 c ✓ latin small letter c
02020 † ✓ dagger
02640 ♀ ✓ female sign
02020 † ✓ dagger ⌨ \dagger
02640 ♀ ✓ female sign ⌨ \female
```

```julia-term
julia-1.9> glyphy("^z.*")
julia> glyphy("^z.*")
0200b ​ zero width space
0200c ‌ zero width non-joiner
0200d ‍ zero width joiner
022ff ⋿ ✓ z notation bag membership
022ff ⋿ ✓ z notation bag membership ⌨ \bagmember
02981 ⦁ ✓ z notation spot
02982 ⦂ ✓ z notation type colon
02987 ⦇ ✓ z notation left image bracket
02988 ⦈ ✓ z notation right image bracket
02989 ⦉ ✓ z notation left binding bracket
0298a ⦊ ✓ z notation right binding bracket
02a1f ⨟ ✓ z notation schema composition ⌨ \bbsemi
02a20 ⨠ ✓ z notation schema piping
...
```

Expand All @@ -103,11 +114,13 @@ might take a few milliseconds...

### Sources

The current version of Unicode is 15.0, released in 2022.
The current version of Unicode is 16.0, released in 2024.
The glyph list used by Glyphy is the file `UnicodeData.txt` from
[here](http://www.unicode.org/Public/UNIDATA/), dated 2022-08-03 17:00.
[here](http://www.unicode.org/Public/UNIDATA/), dated 2024-08-25 18:05.

JuliaMono font (https://github.com/cormullion/juliamono) is at version v0.058, 2024-10-19.

JuliaMono font is at version v0.052, 2023-11-30.
REPL shortcuts are as found in Julia 1.11.

Glyphy is also available as a web service, at [glyphy.info](https://glyphy.info):

Expand Down
Binary file modified data/JuliaMono-Light.ttf
Binary file not shown.
Binary file modified data/glyphs.db
Binary file not shown.
Loading

0 comments on commit 6f13b29

Please sign in to comment.