Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

symbols chart

Jun
113
7
Here is a batch/btm file I wrote to remind myself of special symbols, and where they are available. Hope someone finds it useful.

If you find any errors or notable omissions, please let me know.

Code:
@echo off
TEXT
Symbols in OEM (code pg 437), ANSI (Windows-1252), HTML, and UTF-8
                     OEM/hex   ANSI/hex  HTMLentity  UTF-8 Unicode (hex)
en dash               no        150/96    –     U+2013
em dash               196/C4    151/97    —     U+2014
nonbreaking hyphen    n/a       n/a       n/a     (only in MS Word, not UTF-8)
optional hyphen       no        173/AD    ­       U+00AD (discretionary hy)

en space              no        no               U+2002
em space              no        no               U+2003
nonbreaking space     255/FF    160/A0           U+00A0

copyright             no        169/A9    ©      U+00A9
registered            no        174/AE    ®       U+00AE
trademark             no        153/99    ™     U+2122
degree                248/F8    176/B0    °       U+00B0

ellipsis              no        133/85    …    U+2026
dagger                no        134/86    †    U+2020
double-dagger         no        135/87    ‡    U+2021
bullet                249/F9    149/95    •      U+2022
middle-dot            250/FA    183/B7    ·    U+00B7
paragraph mark*       020/14    182/B6    ¶      U+00B6
section mark*         021/15    167/A7    §      U+00A7
*TIP: Always follow paragraph or section marks with a nonbreaking space!

left single quote     no        145/91    ‘     U+2018
right single quote    no        146/92    ’     U+2019
left double quote     no        147/93    “     U+201C
right double quote    no        148/94    ”     U+201D
left angle quote      no        139/8B    ‹    U+2039
right angle quote     no        155/9B    ›    U+203A
open guillemet        174/AE    171/AB    «     U+00AB
close guillemet       175/AF    187/BB    »     U+00BB

infinity              236/EC    no        ∞     U+221E
not-equal-to          no        no        ≠        U+2260
triple-equal          240/F0    no        ≡     U+2261
plus-or-minus         241/F1    177/B1    ±    U+00B1
greater-or-equal      242/F2    no        ≥        U+2265
less-than-or-equal    243/F3    no        ≤        U+2264
times multiply        no        215/D7    ×     U+00D7
division              246/F6    247/F7    ÷    U+00F7
apprx (2 vert tilde)  247/F7    no        ≈    U+2248

Also: http://xahlee.info/comp/unicode_matching_brackets.html
General: http://xahlee.info/comp/unicode_index.html?q=
ENDTEXT
 
I made something similar to make them easier to use.

Code:
v:\> ch2 bullet
●   bullet   0x25cf   %@char[0x25cf]

v:\> ch2
↑   up       0x2191   %@char[0x2191]
↓   dn       0x2193   %@char[0x2193]
←   lft      0x2190   %@char[0x2190]
→   rt       0x2192   %@char[0x2192]
█   block    0x2588   %@char[0x2588]
●   bullet   0x25cf   %@char[0x25cf]
␊   cr       0x240a   %@char[0x240a]
␍   lf       0x240d   %@char[0x240d]
␛   esc      0x241b   %@char[0x241b]
…   ellip    0x2026   %@char[0x2026]
±   p/m      0x00b1   %@char[0x00b1]

Code:
setlocal

set nChars=11   &   setarray ch[%nChars,2]  & set lasti=%@dec[%nChars]

set  ch[0,0]=0x2191 & set  ch[0,1]=up
set  ch[1,0]=0x2193 & set  ch[1,1]=dn
set  ch[2,0]=0x2190 & set  ch[2,1]=lft
set  ch[3,0]=0x2192 & set  ch[3,1]=rt
set  ch[4,0]=0x2588 & set  ch[4,1]=block
set  ch[5,0]=0x25cf & set  ch[5,1]=bullet
set  ch[7,0]=0x240d & set  ch[6,1]=cr
set  ch[6,0]=0x240a & set  ch[7,1]=lf
set  ch[8,0]=0x241b & set  ch[8,1]=esc
set  ch[9,0]=0x2026 & set  ch[9,1]=ellip
set ch[10,0]=0x00b1 & set ch[10,1]=p/m

set char=`%@char[%ch[%i,0]]`    &   set name=`%@format[-6,%ch[%i,1]]`
set code=`%ch[%i,0]`            &   set func=`%%@char[%ch[%i,0]]`
set infoline=`%char   %name   %code   %func`

iff "%1" NE "" then
    do i=0 to %lasti
        iff "%1" == "%ch[%i,1]" then
            echo %infoline
            echos %char >:u clip:
            leave
        endiff
    enddo
else
    do i=0 to %lasti
        echo %infoline
    enddo
endiff

unsetarray ch
 
Back
Top