mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Fix み,nbsp mixup in OR/AS dex entries
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
This commit is contained in:
parent
0015bcb15c
commit
bbda228262
1 changed files with 970 additions and 970 deletions
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue