Lines Matching refs:cp
41 for cp in range(0x0080, 0x10000): # Skip ASCII range (0x00-0x7F)
42 char = chr(cp)
56 fallback_map[cp] = ord(ascii_version)
86 for cp in range(0x2596, 0x259F+1):
87 overrides[cp] = ord('#') # ▖ ▗ ▘ ▙ etc. - map to # (unidecode: empty string)
136 …for cp in (0x2204, 0x2209, 0x220C, 0x2224, 0x2226, 0x226E, 0x226F, 0x2280, 0x2281, 0x2284, 0x2285):
137 overrides[cp] = ord('!') # Negated math symbols -> ! (not)
140 for cp in (0x2241, 0x2244, 0x2249, 0x2262, 0x2268, 0x2269, 0x226D, 0x228A, 0x228B):
141 overrides[cp] = ord('#') # Negated equality symbols -> # (not equal)
144 for cp in (0x219A, 0x219B, 0x21AE, 0x21CD, 0x21CE, 0x21CF):
145 overrides[cp] = ord('!') # Negated arrows -> ! (not)
148 for cp in (0x2010, 0x2011, 0x2012, 0x2013, 0x2014, 0x2015, 0x2043, 0x2052):
149 overrides[cp] = ord('-') # Dashes and hyphens -> -
152 for cp in (0x203D, 0x2047, 0x2048):
153 overrides[cp] = ord('?') # Question marks -> ?
156 for cp in (0x203C, 0x2049):
157 overrides[cp] = ord('!') # Exclamation marks -> !
160 for cp in (0x2042, 0x2051, 0x2055):
161 overrides[cp] = ord('*')
179 for cp in (0x2715, 0x2717):
180 overrides[cp] = ord('x') # Regular X marks -> x
181 for cp in (0x2716, 0x2718):
182 overrides[cp] = ord('X') # Heavy X marks -> X
185 for cp in (0x2605, 0x2606, 0x262A, 0x269D, 0x2698):
186 overrides[cp] = ord('*') # All star and asterisk symbols -> *
187 for cp in range(0x2721, 0x2746+1):
188 overrides[cp] = ord('*') # All star and asterisk symbols -> *
189 for cp in range(0x2749, 0x274B+1):
190 overrides[cp] = ord('*') # Last set of asterisk symbols -> *
191 for cp in (0x229B, 0x22C6, 0x235F, 0x2363):
192 overrides[cp] = ord('*') # Star operators -> *
205 for cp in range(0xFF01, 0xFF5E + 1):
206 overrides[cp] = 0 # Double-width ASCII characters
267 def cp_name(cp): argument
270 return unicodedata.name(chr(cp))