Glyphy.jl

I will look for you. I will find you. And I will print you. (If you're a Unicode glyph...)
Popularity
53 Stars
Updated Last
4 Months Ago
Started In
June 2022

glyphy splash image

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.

using Glyphy
julia> glyphy("peacock")

1f99a   ๐Ÿฆš       peacock
 found one glyph matching "peacock"

There might be a few:

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"

Here, the check mark indicates that the glyph is defined in the current 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 code point. It's usual to type them as hexadecimal integers, so 0x2055, 0x1f638, etc.

julia> glyphy(0x1f638)

1f638   ๐Ÿ˜ธ        grinning cat face with smiling eyes
 You can enter this glyph by typing \:smile_cat: TAB

You can look for ranges and arrays of values:

julia-1.9> glyphy(0x32:0x7f)

00032   2   โœ“    digit two
00033   3   โœ“    digit three
00034   4   โœ“    digit four
00035   5   โœ“    digit five
00036   6   โœ“    digit six
00037   7   โœ“    digit seven
00038   8   โœ“    digit eight
00039   9   โœ“    digit nine
...
0007b   {   โœ“    left curly bracket
0007c   |   โœ“    vertical line
0007d   }   โœ“    right curly bracket
0007e   ~   โœ“    tilde
julia-1.9> glyphy([0x63, 0x2020, 0x2640])

00063   c   โœ“    latin small letter c
02020   โ€    โœ“    dagger
02640   โ™€   โœ“    female sign
julia-1.9> glyphy("^z.*")

0200b   โ€‹         zero width space
0200c   โ€Œ         zero width non-joiner
0200d   โ€         zero width joiner
022ff   โ‹ฟ   โœ“    z notation bag membership
02981   โฆ   โœ“    z notation spot
02982   โฆ‚   โœ“    z notation type colon
...

There are over 30,000 characters to search, so searches might take a few milliseconds...

Sources

The current version of Unicode is 15.0, released in 2022. The glyph list used by Glyphy is the file UnicodeData.txt from here, dated 2022-08-03 17:00.

JuliaMono font is at version v0.052, 2023-11-30.

Glyphy is also available as a web service, at glyphy.info:

glyphy.info

Used By Packages

No packages found.