mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
bbda228262
A bug in the text dumper caused み to be replaced with a narrow non-breaking space and the actual nbsp character in the unicode private use area to go untranslated. Only affected OR/AS. Fix with a simple text replace on the affected entries. import csv in_ = open("../pokedex/data/csv/pokemon_species_flavor_text.csv", "r") out = open("fixed.csv", "w") r = csv.reader(in_, lineterminator='\n') w = csv.writer(out, lineterminator='\n') for row in r: text = row[3] if row[1] in {'25', '26'}: text = text.replace("\u202f", "\u307f") # nbsp => mi text = text.replace("\ue07f", "\u202f") # e07f => nbsp w.writerow((row[0], row[1], row[2], text)) out.close() Fixes #308 |
||
---|---|---|
.. | ||
cli | ||
data/csv | ||
db | ||
doc | ||
struct | ||
tests | ||
util | ||
__init__.py | ||
__main__.py | ||
compatibility.py | ||
defaults.py | ||
formulae.py | ||
lookup.py | ||
main.py | ||
roomaji.py | ||
search.py |