You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+62-5Lines changed: 62 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## About
6
6
7
-
`uni` is an application that displays Unicode code points for glyphs that are either included as arguments on the command line or piped through the standard input stream to the `uni` executable.
7
+
`uni` is a command line application that performs glyph based searches for Unicode v9.0.0 defined code points and Unicode code point based searches for glyphs.
By default, `uni` performs a search for Unicode code points with glyph arguments. You can reverse this search behavior to identify glyphs with Unicode code point search strings by including the `-g` / `--glyph` option in your command.
62
+
63
+
### Options
64
+
65
+
```
66
+
-g, --glyph Search for glyph(s) with Unicode code point(s)
67
+
-h, --help Application help
68
+
--usage Application usage
69
+
-v, --version Application version
70
+
```
71
+
72
+
### Search for Unicode Code Points with Glyphs
73
+
74
+
#### Glyphs as arguments to `uni`
60
75
61
76
`uni` takes glyph arguments and displays the associated Unicode code points. You can include the glyphs in a single string or separate them with spaces. Use quotes around special shell characters.
62
77
63
78
```
64
79
$ uni [glyph 1]...[glyph n]
65
80
```
66
81
67
-
#### Example
82
+
#####Example
68
83
69
84
```
70
85
$ uni Aa1Ø€βф▀र༩↵√ナ
@@ -83,10 +98,14 @@ U+221A '√'
83
98
U+30CA 'ナ'
84
99
```
85
100
86
-
### Glyphs piped through standard input stream
101
+
####Glyphs piped through standard input stream
87
102
88
103
You can also pipe text data to `uni` through the standard input stream. `uni` will process every glyph that it receives in the stdin stream and print the associated Unicode code point to standard output.
89
104
105
+
```
106
+
$ [application command] | uni
107
+
```
108
+
90
109
#### Example
91
110
92
111
```
@@ -106,13 +125,51 @@ U+221A '√'
106
125
U+30CA 'ナ'
107
126
```
108
127
128
+
### Search for Glyphs with Unicode Code Points
129
+
130
+
Unicode code point searches are performed with the hexadecimal value. Remove all prefix data from the string before you pass the request to uni. Include spaces between the Unicode code point arguments.
131
+
132
+
**Acceptable Format**: `0041`
133
+
134
+
**Unacceptable Format**: `U+0041``u+0041``\u0041`
135
+
136
+
#### Unicode code points as arguments to `uni`
137
+
138
+
```
139
+
$ uni [Unicode code point 1]...[Unicode code point n]
140
+
```
141
+
142
+
```
143
+
$ uni -g 0041 0031 03B2 2580 30CA
144
+
U+0041 'A'
145
+
U+0031 '1'
146
+
U+03B2 'β'
147
+
U+2580 '▀'
148
+
U+30CA 'ナ'
149
+
```
150
+
151
+
#### Unicode code points piped through standard input stream
152
+
153
+
```
154
+
$ [application command] | uni -g
155
+
```
156
+
157
+
```
158
+
$ echo -n "0041 0031 03B2 2580 30CA" | uni
159
+
U+0041 'A'
160
+
U+0031 '1'
161
+
U+03B2 'β'
162
+
U+2580 '▀'
163
+
U+30CA 'ナ'
164
+
```
165
+
109
166
## Issues
110
167
111
168
Please [file an issue report](https://github.com/source-foundry/uni/issues/new) on the repository for any problems that arise with use.
112
169
113
170
## Contributing
114
171
115
-
Contributions to the project are encouraged and welcomed.
172
+
Contributions to the project are encouraged and welcomed. Please base your work on the `dev` branch and submit pull requests with source changes.
0 commit comments