Functions/Public/Write-PSHTMLSymbol.ps1
function Write-PSHTMLSymbol { param ( [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)] [ValidateSet('COPYRIGHT SIGN', 'REGISTERED SIGN', 'EURO SIGN', 'TRADEMARK', 'LEFTWARDS ARROW', 'UPWARDS ARROW', 'RIGHTWARDS ARROW', 'DOWNWARDS ARROW', 'BLACK SPADE SUIT', 'BLACK CLUB SUIT', 'BLACK HEART SUIT', 'BLACK DIAMOND SUIT', 'FOR ALL', 'PARTIAL DIFFERENTIAL', 'THERE EXISTS', 'EMPTY SETS', 'NABLA', 'ELEMENT OF', 'NOT AN ELEMENT OF', 'CONTAINS AS MEMBER', 'N-ARY PRODUCT', 'N-ARY SUMMATION', 'GREEK CAPITAL LETTER ALPHA', 'GREEK CAPITAL LETTER BETA', 'GREEK CAPITAL LETTER GAMMA', 'GREEK CAPITAL LETTER DELTA', 'GREEK CAPITAL LETTER EPSILON', 'GREEK CAPITAL LETTER ZETA' )] [string[]] $Name ) process { switch ($Name) { "COPYRIGHT SIGN" { "©" } "REGISTERED SIGN" { "®" } "EURO SIGN" { "€" } "TRADEMARK" { "™" } "LEFTWARDS ARROW" { "←" } "UPWARDS ARROW" { "↑" } "RIGHTWARDS ARROW" { "→" } "DOWNWARDS ARROW" { "↓" } "BLACK SPADE SUIT" { "♠" } "BLACK CLUB SUIT" { "♣" } "BLACK HEART SUIT" { "♥" } "BLACK DIAMOND SUIT" { "♦" } "FOR ALL" { "∀" } "PARTIAL DIFFERENTIAL" { "∂" } "THERE EXISTS" { "∃" } "EMPTY SETS" { "∅" } "NABLA" { "∇" } "ELEMENT OF" { "∈" } "NOT AN ELEMENT OF" { "∉" } "CONTAINS AS MEMBER" { "∋" } "N-ARY PRODUCT" { "∏" } "N-ARY SUMMATION" { "∑" } "GREEK CAPITAL LETTER ALPHA" { "Α" } "GREEK CAPITAL LETTER BETA" { "Β" } "GREEK CAPITAL LETTER GAMMA" { "Γ" } "GREEK CAPITAL LETTER DELTA" { "Δ" } "GREEK CAPITAL LETTER EPSILON" { "Ε" } "GREEK CAPITAL LETTER ZETA" { "Ζ" } } } } |