GitXplorerGitXplorer
b

shrtnms

public
5 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
dbfa560d39c46be407ee08f3aad8018c9294e321

Peruvian street name prefixes and titles.

bbalrog-kun committed 10 years ago
Unverified
5da6aa3fe8dd2060b924541bc92c72b3e54cb410

Simplify the logic that removes consecutive whitespace.

bbalrog-kun committed 10 years ago
Unverified
28bc738d719dd0551b7093f9e196679735345f9c

Avoid leading whitespace when first word is removed.

bbalrog-kun committed 10 years ago
Unverified
3770ecf290b141cc773b8fc6081af8f71efcf50d

Handle digraphs when abbreviating names.

bbalrog-kun committed 10 years ago
Unverified
4fa471765d2c78d3b55d39c34999aa08d6574324

More Polish first names and honorific titles.

bbalrog-kun committed 12 years ago
Unverified
3cf90b1d482cfd877dceab79356e337105dc56b2

More Polish titles and given names (+input from Yarl, gsapijaszko)

bbalrog-kun committed 12 years ago

README

The README file for this repository.

Automatically abbreviating names of all the different things that are displayed on a map is much easier with names spelt out in full in the input data, than expanding those names if they were provided in an abbreviated form. This is basically why OpenStreetMap raw data contains mostly full names even if they're rarely / never written that way, and only pronounced that way. Expansion may be ambiguous so there's no good way of automating it, especially taking l10n into account.

However when rendering graphical maps it may be useful to still show abbreviated names, particularly in places and scales where the map is crowded with labels. So the code to do that abbreviation automatically needs to be part of the rendering toolchain. That code may still be useful in other projects, so it is abstracted out here as small set of C functions that can hopefully be re-used.

It focuses on the type of names that are seen in cartography and trying to expand it to cover other common abbreviations may make it either much more complex, or more false-positives prone. So perhaps it's better for it to stay focused on this one task, which it turns out isn't completely trivial.