User:SafwatHalaby/scripts/russianImportFix

From OpenStreetMap Wiki
Jump to navigation Jump to search

Years ago, Russian names were bulk-imported to Israel, but some values have Latin, rather than Cyrillic letters. This script will fix this, as well as some other minor issues with Russian names.

Script pages:

This script is part of my scripting project. (Click for contact details, opt-out, other scripts, overview, etc.).

Overview

The goal

With courtesy of @SafwatHalaby I prepare data for countrywide fix of Russian street names translated in bulk edit some years ago. That translation use Latin letters in Cyrillic names and have other small problems. I going to:

- replace Latin letters to Cyrillic ones where needed (usually Xa prefix) and some untranslated name parts

- Glue Xa part with rest of the word

- clean up minor other glitches

- (in the next batches) fix wrong translations

The algorithm

For each POI:

  • if name:ru exactly matches one of the names in the table, change it to its new value.

Each changeset uses a different table to replace matches. The table is shown in the changeset comment.

Changesets

History

  • #50182253 - 10/07/2017 - 53 changes: Russian import name fixes, part 3.
  • #49673764 - 19/06/2017 - 411 changes: Russian import name fixes, part 2.
  • #49295375 - 06/06/2017 - 1098 changes: Russian import name fixes.

Changeset tags

bot=yes

description=https://wiki.openstreetmap.org/wiki/User:SafwatHalaby/scripts/russianImportFix

used_script=russianImportFix