comparison python/ascii.py @ 118:13055811fd0b

add an ascii chart
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 21 Dec 2010 09:27:27 -0800
parents
children
comparison
equal deleted inserted replaced
117:c7edd15d7f8b 118:13055811fd0b
1 #!/usr/bin/env python
2 # extended ascii chart
3 # 2010 openuniverse
4 #
5 # license: cc0 http://creativecommons.org/publicdomain/zero/1.0/
6
7 print " " , "0 1 2 3 4 5 6 7 8 9 a b c d e f"
8 print "0" , " " , u"\u263a", u"\u263b", u"\u2665",
9 print u"\u2666", u"\u2663", u"\u2660", u"\u2022",
10 print u"\u25d8", u"\u25cb", u"\u25d9", u"\u2642",
11 print u"\u2640", u"\u266a", u"\u266b", u"\u263c"
12
13 print "1" , u"\u25ba", u"\u25c4", u"\u2195", u"\u203c",
14 print u"\u00b6", u"\u00a7", u"\u25ac", u"\u21a8",
15 print u"\u2191", u"\u2193", u"\u2192", u"\u2190",
16 print u"\u221f", u"\u2194", u"\u25b2", u"\u25bc"
17
18 x = 1
19 y = 2
20 print "2" ,
21 for p in range(32, 127):
22 print chr(p),
23 x += 1
24 if x > 16: print ; x = 1 ; y += 1 ; print y,
25
26 print u"\u2302"
27
28 print "8" , u"\u00c7", u"\u00fc", u"\u00e9", u"\u00e2",
29 print u"\u00e4", u"\u00e0", u"\u00e5", u"\u00e7",
30 print u"\u00ea", u"\u00eb", u"\u00e8", u"\u00ef",
31 print u"\u00ee", u"\u00ec", u"\u00c4", u"\u00c5"
32
33 print "9" , u"\u00c9", u"\u00e6", u"\u00c6", u"\u00f4",
34 print u"\u00f6", u"\u00f2", u"\u00fb", u"\u00f9",
35 print u"\u00ff", u"\u00d6", u"\u00dc", u"\u00a2",
36 print u"\u00a3", u"\u00a5", u"\u20a7", u"\u0192"
37
38 print "a" , u"\u00e1", u"\u00ed", u"\u00f3", u"\u00fa",
39 print u"\u00f1", u"\u00d1", u"\u00aa", u"\u00ba",
40 print u"\u00bf", u"\u2310", u"\u00ac", u"\u00bd",
41 print u"\u00bc", u"\u00a1", u"\u00ab", u"\u00bb"
42
43 print "b" , u"\u2591", u"\u2592", u"\u2593", u"\u2502",
44 print u"\u2524", u"\u2561", u"\u2562", u"\u2556",
45 print u"\u2555", u"\u2563", u"\u2551", u"\u2557",
46 print u"\u255d", u"\u255c", u"\u255b", u"\u2510"
47
48 print "c" , u"\u2514", u"\u2534", u"\u252c", u"\u251c",
49 print u"\u2500", u"\u253c", u"\u255e", u"\u255f",
50 print u"\u255a", u"\u2554", u"\u2569", u"\u2566",
51 print u"\u2560", u"\u2550", u"\u256c", u"\u2567"
52
53 print "d" , u"\u2568", u"\u2564", u"\u2565", u"\u2559",
54 print u"\u2558", u"\u2552", u"\u2553", u"\u256b",
55 print u"\u256a", u"\u2518", u"\u250c", u"\u2588",
56 print u"\u2584", u"\u258c", u"\u2590", u"\u2580"
57
58 print "e", u"\u03b1", u"\u00df", u"\u0393", u"\u03c0",
59 print u"\u03a3", u"\u03c3", u"\u03bc", u"\u03c4",
60 print u"\u03a6", u"\u0398", u"\u03a9", u"\u03b4",
61 print u"\u221e", u"\u03c6", u"\u03b5", u"\u2229"
62
63 print "f" , u"\u2261", u"\u00b1", u"\u2265", u"\u2264",
64 print u"\u2320", u"\u2321", u"\u00f7", u"\u2248",
65 print u"\u00b0", u"\u2219", u"\u00b7", u"\u221a",
66 print u"\u207f", u"\u00b2", u"\u25a0"