annotate python/ascii.py @ 892:3387af3524dd

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