4
4
5
5
# Glyphy
6
6
7
- Glyphy is a small utility package that searches through the names of glyphs in the Unicode
8
- glyph list and returns a list of the glyph names that match the search term.
7
+ Glyphy is a small utility package that searches
8
+ through the names of glyphs in the Unicode glyph
9
+ list and returns a list of the glyph names that
10
+ match the search term, and REPL shortcuts if
11
+ available.
9
12
10
13
``` julia-term
11
14
using Glyphy
15
+
12
16
julia> glyphy("peacock")
13
17
14
- 1f99a 🦚 peacock
18
+ 1f99a 🦚 peacock ⌨ \:peacock:
15
19
found one glyph matching "peacock"
16
- ```
20
+ ```
17
21
18
22
There might be a few:
19
23
20
24
``` julia-term
21
25
julia> glyphy("smiling")
22
26
23
- 0263a ☺ ✓ white smiling face
24
- 0263b ☻ ✓ black smiling face
25
- 1f601 😁 grinning face with smiling eyes
26
- 1f603 😃 smiling face with open mouth
27
- 1f604 😄 smiling face with open mouth and smiling eyes
28
- 1f605 😅 smiling face with open mouth and cold sweat
29
- 1f606 😆 smiling face with open mouth and tightly-closed eyes
30
- 1f607 😇 smiling face with halo
31
- 1f608 😈 smiling face with horns
32
- 1f60a 😊 smiling face with smiling eyes
33
- 1f60d 😍 smiling face with heart-shaped eyes
34
- 1f60e 😎 smiling face with sunglasses
35
- 1f619 😙 kissing face with smiling eyes
36
- 1f638 😸 grinning cat face with smiling eyes
37
- 1f63a 😺 smiling cat face with open mouth
38
- 1f63b 😻 smiling cat face with heart-shaped eyes
39
- 1f642 🙂 slightly smiling face
40
- 1f92d 🤭 smiling face with smiling eyes and hand covering mouth
41
- 1f970 🥰 smiling face with smiling eyes and three hearts
42
- 1f972 🥲 smiling face with tear
43
- found 20 glyphs matching "smiling"
27
+ 0263a ☺ ✓ white smiling face ⌨ \:relaxed:
28
+ 0263b ☻ ✓ black smiling face ⌨ \blacksmiley
29
+ 1ccaa ✓ lower left quadrant smiling face
30
+ 1ccab ✓ lower right quadrant smiling face
31
+ 1f601 😁 grinning face with smiling eyes ⌨ \:grin:
32
+ 1f603 😃 smiling face with open mouth ⌨ \:smiley:
33
+ 1f604 😄 smiling face with open mouth and smiling eyes ⌨ \:smile:
34
+ 1f605 😅 smiling face with open mouth and cold sweat ⌨ \:sweat_smile:
35
+ 1f606 😆 smiling face with open mouth and tightly-closed eyes ⌨ \:laughing:
36
+ 1f607 😇 smiling face with halo ⌨ \:innocent:
37
+ 1f608 😈 smiling face with horns ⌨ \:smiling_imp:
38
+ 1f60a 😊 smiling face with smiling eyes ⌨ \:blush:
39
+ 1f60d 😍 smiling face with heart-shaped eyes ⌨ \:heart_eyes:
40
+ 1f60e 😎 smiling face with sunglasses ⌨ \:sunglasses:
41
+ 1f619 😙 kissing face with smiling eyes ⌨ \:kissing_smiling_eyes:
42
+ 1f638 😸 grinning cat face with smiling eyes ⌨ \:smile_cat:
43
+ 1f63a 😺 smiling cat face with open mouth ⌨ \:smiley_cat:
44
+ 1f63b 😻 smiling cat face with heart-shaped eyes ⌨ \:heart_eyes_cat:
45
+ 1f642 🙂 slightly smiling face ⌨ \:slightly_smiling_face:
46
+ 1f92d 🤭 smiling face with smiling eyes and hand covering mouth ⌨ \:face_with_hand_over_mouth:
47
+ 1f970 🥰 smiling face with smiling eyes and three hearts ⌨ \:smiling_face_with_3_hearts:
48
+ 1f972 🥲 smiling face with tear ⌨ \:smiling_face_with_tear:
49
+ found 22 glyphs matching "smiling"
44
50
```
45
51
46
- Here, the check mark indicates that the glyph is defined in
47
- the current release of the JuliaMono font (it doesn't know
52
+ Here, the check marks indicate that the glyph is available in
53
+ the latest release of the JuliaMono font (it doesn't know
48
54
which font you're currently using in your terminal).
49
55
50
56
Glyphy can also look for the glyph with a specific integer
@@ -54,14 +60,13 @@ so `0x2055`, `0x1f638`, etc.
54
60
``` julia-term
55
61
julia> glyphy(0x1f638)
56
62
57
- 1f638 😸 grinning cat face with smiling eyes
58
- You can enter this glyph by typing \:smile_cat: TAB
63
+ 1f638 😸 grinning cat face with smiling eyes ⌨ \:smile_cat:
59
64
```
60
65
61
66
You can look for ranges and arrays of values:
62
67
63
68
``` julia-term
64
- julia-1.9 > glyphy(0x32:0x7f)
69
+ julia> glyphy(0x32:0x7f)
65
70
66
71
00032 2 ✓ digit two
67
72
00033 3 ✓ digit three
@@ -73,28 +78,34 @@ julia-1.9> glyphy(0x32:0x7f)
73
78
00039 9 ✓ digit nine
74
79
...
75
80
0007b { ✓ left curly bracket
76
- 0007c | ✓ vertical line
81
+ 0007c ✓ vertical line
77
82
0007d } ✓ right curly bracket
78
83
0007e ~ ✓ tilde
79
84
```
80
85
81
86
``` julia-term
82
- julia-1.9 > glyphy([0x63, 0x2020, 0x2640])
87
+ julia> glyphy([0x63, 0x2020, 0x2640])
83
88
84
89
00063 c ✓ latin small letter c
85
- 02020 † ✓ dagger
86
- 02640 ♀ ✓ female sign
90
+ 02020 † ✓ dagger ⌨ \dagger
91
+ 02640 ♀ ✓ female sign ⌨ \female
87
92
```
88
93
89
94
``` julia-term
90
- julia-1.9 > glyphy("^z.*")
95
+ julia> glyphy("^z.*")
91
96
92
97
0200b zero width space
93
98
0200c zero width non-joiner
94
99
0200d zero width joiner
95
- 022ff ⋿ ✓ z notation bag membership
100
+ 022ff ⋿ ✓ z notation bag membership ⌨ \bagmember
96
101
02981 ⦁ ✓ z notation spot
97
102
02982 ⦂ ✓ z notation type colon
103
+ 02987 ⦇ ✓ z notation left image bracket
104
+ 02988 ⦈ ✓ z notation right image bracket
105
+ 02989 ⦉ ✓ z notation left binding bracket
106
+ 0298a ⦊ ✓ z notation right binding bracket
107
+ 02a1f ⨟ ✓ z notation schema composition ⌨ \bbsemi
108
+ 02a20 ⨠ ✓ z notation schema piping
98
109
...
99
110
```
100
111
@@ -103,11 +114,13 @@ might take a few milliseconds...
103
114
104
115
### Sources
105
116
106
- The current version of Unicode is 15 .0, released in 2022 .
117
+ The current version of Unicode is 16 .0, released in 2024 .
107
118
The glyph list used by Glyphy is the file ` UnicodeData.txt ` from
108
- [ here] ( http://www.unicode.org/Public/UNIDATA/ ) , dated 2022-08-03 17:00.
119
+ [ here] ( http://www.unicode.org/Public/UNIDATA/ ) , dated 2024-08-25 18:05.
120
+
121
+ JuliaMono font (https://github.com/cormullion/juliamono ) is at version v0.058, 2024-10-19.
109
122
110
- JuliaMono font is at version v0.052, 2023-11-30 .
123
+ REPL shortcuts are as found in Julia 1.11 .
111
124
112
125
Glyphy is also available as a web service, at [ glyphy.info] ( https://glyphy.info ) :
113
126
0 commit comments