Skip to content

Commit 52f89bd

Browse files
committed
🏗️ Reorganize module; add demo
Resolves #2
1 parent ec7fc9b commit 52f89bd

19 files changed

Lines changed: 87577 additions & 89 deletions

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ Cmdlets to search, lookup, and get details about Unicode characters.
1616
- [Get-CharacterDetails](https://github.com/brianary/Unicodery/wiki/Get-CharacterDetails): Returns filterable categorical information about characters in the Unicode Basic Multilingual Plane.
1717
- [Get-Unicode](https://github.com/brianary/Unicodery/wiki/Get-Unicode): Returns the (UTF-16) .NET string for a given Unicode codepoint, which may be a surrogate pair.
1818
- [Get-UnicodeByName](https://github.com/brianary/Unicodery/wiki/Get-UnicodeByName): Returns characters based on Unicode code point name, GitHub short code, or HTML entity.
19-
- [Get-UnicodeData](https://github.com/brianary/Unicodery/wiki/Get-UnicodeData): Returns the current (cached) Unicode character data.
2019
- [Get-UnicodeName](https://github.com/brianary/Unicodery/wiki/Get-UnicodeName): Returns the name of a Unicode code point.
2120
- [Import-CharConstants](https://github.com/brianary/Unicodery/wiki/Import-CharConstants): Imports characters by name as constants into the current scope.

images/demo.gif

706 KB
Loading

images/demo.tape

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,27 @@ Enter
77
Type "Clear-Host"
88
Enter
99
Show
10-
Type "#TODO"
10+
Type "Get-UnicodeByName CAT"
1111
Enter
12-
Sleep 9s
12+
Sleep 1s
13+
Type "Get-UnicodeByName :star:"
14+
Enter
15+
Sleep 1s
16+
Type "Get-UnicodeByName '…'"
17+
Enter
18+
Sleep 1s
19+
Type "Get-UnicodeName ~"
20+
Enter
21+
Sleep 1s
22+
Type "Get-UnicodeName 0x2615"
23+
Enter
24+
Sleep 1s
25+
Type "Get-Unicode 0x1F6DE |Format-Hex"
26+
Enter
27+
Sleep 1s
28+
Type "Get-CharacterDetails -CodePoint 0x2620 |Select-Object Is* |Format-List"
29+
Enter
30+
Sleep 2s
31+
Type "Get-CharacterDetails -CodePoint 0x2620 |Select-Object -ExcludeProperty Is* |Format-List"
32+
Enter
33+
Sleep 5s

scripts/Build-Module.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Export-ModuleMember -Function $($public.BaseName -join ',')
3939
Push-Location "$PSScriptRoot/../src"
4040
New-Item .publish -Type Directory -ErrorAction Ignore |Out-Null
4141
Copy-Item *.psd1 .publish
42+
Copy-Item data .publish -Recurse -Force
4243
}
4344
Process
4445
{

src/Unicodery.psd1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ FunctionsToExport = @('*') # '*'
1515
CmdletsToExport = @() # '*'
1616
VariablesToExport = @() # '*'
1717
# AliasesToExport = @()
18-
FileList = @('Unicodery.psd1','Unicodery.psm1')
18+
FileList = @('Unicodery.psd1','Unicodery.psm1','data/UnicodeByName.cc.txt','data/UnicodeByName.github.txt',
19+
'data/UnicodeByName.html.json','data/UnicodeByName.txt','data/UnicodeName.cc.txt','data/UnicodeName.txt')
1920
PrivateData = @{
2021
PSData = @{
21-
Tags = @('Unicode', 'Character')
22+
Tags = @('Unicode', 'Character', 'CodePoint', 'Glyph', 'Rune')
2223
LicenseUri = 'https://github.com/brianary/Unicodery/blob/master/LICENSE'
2324
ProjectUri = 'https://github.com/brianary/Unicodery/'
2425
IconUri = 'http://webcoder.info/images/Unicodery.svg'

src/data/UnicodeByName.cc.txt

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# https://en.wikipedia.org/wiki/C0_and_C1_control_codes
2+
NUL=0000
3+
Null=0000
4+
SOH=0001
5+
Start of Heading=0001
6+
STX=0002
7+
Start of Text=0002
8+
ETX=0003
9+
End of Text=0003
10+
EOT=0004
11+
End of Transmission=0004
12+
ENQ=0005
13+
Enquiry=0005
14+
ACK=0006
15+
Acknowledge=0006
16+
BEL=0007
17+
Bell=0007
18+
Alert=0007
19+
BS=0008
20+
Backspace=0008
21+
HT=0009
22+
Horizontal Tabulation=0009
23+
LF=000A
24+
Line Feed=000A
25+
VT=000B
26+
Vertical Tabulation=000B
27+
FF=000C
28+
Form Feed=000C
29+
CR=000D
30+
Carriage Return=000D
31+
SO=000E
32+
Shift Out=000E
33+
SI=000F
34+
Shift In=000F
35+
DLE=0010
36+
Data Link Escape=0010
37+
DC1=0011
38+
XON=0011
39+
Device Control One=0011
40+
DC2=0012
41+
Device Control Two=0012
42+
DC3=0013
43+
XOFF=0013
44+
Device Control Three=0013
45+
DC4=0014
46+
Device Control Four=0014
47+
NAK=0015
48+
Negative Acknowledge=0015
49+
SYN=0016
50+
Synchronous Idle=0016
51+
ETB=0017
52+
End of Transmission Block=0017
53+
CAN=0018
54+
Cancel=0018
55+
EM=0019
56+
End of medium=0019
57+
SUB=001A
58+
Substitute=001A
59+
ESC=001B
60+
Escape=001B
61+
FS=001C
62+
File Separator=001C
63+
GS=001D
64+
Group Separator=001D
65+
RS=001E
66+
Record Separator=001E
67+
US=001F
68+
Unit Separator=001F
69+
DEL=007F
70+
Delete=007F
71+
PAD=0080
72+
Padding Character=0080
73+
HOP=0081
74+
High Octet Preset=0081
75+
BPH=0082
76+
Break Permitted Here=0082
77+
NBH=0083
78+
No Break Here=0083
79+
IND=0084
80+
Index=0084
81+
NEL=0085
82+
Next Line=0085
83+
SSA=0086
84+
Start of Selected Area=0086
85+
ESA=0087
86+
End of Selected Area=0087
87+
HTS=0088
88+
Horizontal Tabulation Set=0088
89+
HTJ=0089
90+
Horizontal Tabulation With Justification=0089
91+
VTS=008A
92+
Vertical Tabulation Set=008A
93+
PLD=008B
94+
Partial Line Down=008B
95+
PLU=008C
96+
Partial Line Up=008C
97+
RI=008D
98+
Reverse Index=008D
99+
SS2=008E
100+
Single-Shift 2=008E
101+
SS1=008F
102+
Single-Shift 3=008F
103+
DCS=0090
104+
Device Control String=0090
105+
PU1=0091
106+
Private Use 1=0091
107+
PU2=0092
108+
Private Use 2=0092
109+
STS=0093
110+
Set Transmit State=0093
111+
CCH=0094
112+
Cancel character=0094
113+
MW=0095
114+
Message Waiting=0095
115+
SPA=0096
116+
Start of Protected Area=0096
117+
EPA=0097
118+
End of Protected Area=0097
119+
SOS=0098
120+
Start of String=0098
121+
SGC=0099
122+
SGCI=0099
123+
Single Graphic Character Introducer=0099
124+
SCI=009A
125+
Single Character Introducer=009A
126+
CSI=009B
127+
Control Sequence Introducer=009B
128+
ST=009C
129+
String Terminator=009C
130+
OSC=009D
131+
Operating System Command=009D
132+
PM=009E
133+
Privacy Message=009E
134+
APC=009F
135+
Application Program Command=009F

0 commit comments

Comments
 (0)