[osm] adding hyphenation/de-hyphenation to OSM admin components
This commit is contained in:
@@ -861,7 +861,8 @@ class AddressComponents(object):
|
|||||||
val = state_abbreviations.get_abbreviation(country, language, val, default=val)
|
val = state_abbreviations.get_abbreviation(country, language, val, default=val)
|
||||||
elif random.random() < abbreviate_toponym_prob:
|
elif random.random() < abbreviate_toponym_prob:
|
||||||
val = abbreviate(toponym_abbreviations_gazetteer, val, language, abbreviate_prob=abbreviate_toponym_prob)
|
val = abbreviate(toponym_abbreviations_gazetteer, val, language, abbreviate_prob=abbreviate_toponym_prob)
|
||||||
|
else:
|
||||||
|
val = self.name_hyphens(val)
|
||||||
address_components[component] = val
|
address_components[component] = val
|
||||||
|
|
||||||
def quattroshapes_city(self, address_components,
|
def quattroshapes_city(self, address_components,
|
||||||
|
|||||||
Reference in New Issue
Block a user