|
5 | 5 | # Glyphy
|
6 | 6 |
|
7 | 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 |
9 |
| -the search term. |
| 8 | +glyph list and returns a list of the glyph names that match the search term. |
10 | 9 |
|
11 | 10 | ```julia-term
|
12 | 11 | using Glyphy
|
@@ -59,9 +58,51 @@ julia> glyphy(0x1f638)
|
59 | 58 | You can enter this glyph by typing \:smile_cat: TAB
|
60 | 59 | ```
|
61 | 60 |
|
| 61 | +You can look for ranges and arrays of values: |
| 62 | + |
| 63 | +```julia-term |
| 64 | +julia-1.9> glyphy(0x32:0x7f) |
| 65 | +
|
| 66 | +00032 2 ✓ digit two |
| 67 | +00033 3 ✓ digit three |
| 68 | +00034 4 ✓ digit four |
| 69 | +00035 5 ✓ digit five |
| 70 | +00036 6 ✓ digit six |
| 71 | +00037 7 ✓ digit seven |
| 72 | +00038 8 ✓ digit eight |
| 73 | +00039 9 ✓ digit nine |
| 74 | +... |
| 75 | +0007b { ✓ left curly bracket |
| 76 | +0007c | ✓ vertical line |
| 77 | +0007d } ✓ right curly bracket |
| 78 | +0007e ~ ✓ tilde |
| 79 | +``` |
| 80 | + |
| 81 | +```julia-term |
| 82 | +julia-1.9> glyphy([0x63, 0x2020, 0x2640]) |
| 83 | +
|
| 84 | +00063 c ✓ latin small letter c |
| 85 | +02020 † ✓ dagger |
| 86 | +02640 ♀ ✓ female sign |
| 87 | +``` |
| 88 | + |
| 89 | +```julia-term |
| 90 | +julia-1.9> glyphy("^z.*") |
| 91 | +
|
| 92 | +0200b zero width space |
| 93 | +0200c zero width non-joiner |
| 94 | +0200d zero width joiner |
| 95 | +022ff ⋿ ✓ z notation bag membership |
| 96 | +02981 ⦁ ✓ z notation spot |
| 97 | +02982 ⦂ ✓ z notation type colon |
| 98 | +... |
| 99 | +``` |
| 100 | + |
62 | 101 | There are over 30,000 characters to search, so searches
|
63 | 102 | might take a few milliseconds...
|
64 | 103 |
|
| 104 | +### Sources |
| 105 | + |
65 | 106 | The current version of Unicode is 15.0, released in 2022.
|
66 | 107 | The glyph list used by Glyphy is the file `UnicodeData.txt` from
|
67 | 108 | [here](http://www.unicode.org/Public/UNIDATA/), dated 2022-08-03 17:00.
|
|
0 commit comments