Automated edits/Latvia-bot/Tags
Jump to navigation
Jump to search
Operating principles
For all elements except the ones intersecting state border (according to OSM data):
- Trim values. Community approval.
- Remove semicolons at the end of values. Community approval.
- Trim and sort multiple semicolon separated values in
alt_name=*
andold_name=*
keys. Community approval. - If missing, add
name=*
equal toname:lv=*
if it's already present.name:lv=*
might be deleted in later steps. The same goes foralt_name=*
andold_name=*
keys. Community approval. - Remove multilingual names if all match default
name=*
. In Latgale, for keyplace=*
for nodes and keysplace=*
,natural=*
andwaterway=*
for ways and relations keepname:lv=*
andname:ltg=*
keys as in some cases Latgalian might be used as name and otherwise it might be impossible to distinguish which language is used. The same goes foralt_name=*
andold_name=*
keys. Community approval. - From history, restore multilingual names all matching default
name=*
if multilingual names that differ from the default name have been added. In case of multiple values for the same key in history, retrieve the latest. Community approval. - Remove
alt_name=*
if it matchesname:ltg=*
. Community approval. - For isolated dwellings, remove multilingual names. In Latgale, keep only
name:lv=*
andname:ltg=*
. Community approval. - If missing, add
name:lv=*
that equals defaultname=*
if multilingual names that differ from the default name exist. In Latgale, don't addname:lv=*
ifname=*
matchesname:ltg=*
as some names use Latgalian as default name. Community approval.
Border of Latgale taken from the borders of historical lands published on the Latvia's Open Data Portal.