On Thu, Mar 31, 2016 at 02:02:30PM +0200, Peter Czaja wrote:
> Am 31.03.2016 um 09:10 schrieb Hartmut Holzgraefe:
> > Moin,
> > 
> > ich hab mal ein bischen Spielzeug online gestellt:
> ..
> >    http://maposmatic.php-groupies.de/
> 
> Klasse. Vielen Dank für diese Instanz.
> 
> Interessanterweise zerpflückt Mapsomatic name=* und sortiert
> den Paderborner "Neuer Platz" ein unter P als "Platz (Neuer)".
> Hmm, kann man so machen, suchen würde man den dort im Index
> aber eher nicht.

Da gibts noch mehr so Dinger - Ist aber meine ich irgendeine config
Datei die Sprachabhängig ist. Ich hatte mir das auch schonmal angesehen.
Das MapOSMatic zeugs ist auf jedenfall ein guter Grund sowas wie Schulen
und Kindergärten aufzuräumen ;)

Hier das Zeugs. Ich halte die Umstellung für Unsinn - das ist in anderen
Ländern eher üblich. Mal ganz davon abgesehen das das reichlich unvollständig 
ist.

Flo

ocitysmap/i18n.py
 846 class i18n_de_generic(i18n):
 847     #
 848     # German streets are often named after people and include a title.
 849     # The title will be captured as part of the <prefix>
 850         # Covering airport names and "New"/"Old" as prefixes as well
 851     #
 852     APPELLATIONS = [ u"Alte", u"Alter", u"Doktor", u"Dr.",
 853                      u"Flughafen", u"Flugplatz", u"Gen.,", u"General",
 854                      u"Neue", u"Neuer", u"Platz",
 855                      u"Prinz", u"Prinzessin", u"Prof.",
 856                      u"Professor" ]
 857     #
 858     # Surnames in german streets named after people tend to have the 
middle name
 859     # listed after the rest of the surname,
 860     # e.g. "Platz der deutschen Einheit" => "deutschen Einheit (Platz der)"
 861     # Likewise, articles are captured as part of the prefix,
 862     # e.g. "An der Märchenwiese" => "Märchenwiese (An der)"
 863     #
 864     DETERMINANTS = [ u"\s?An den", u"\s?An der", u"\s?Am",
 865                      u"\s?Auf den" , u"\s?Auf der"
 866                      u" an", u" des", u" der", u" von", u" vor"]
 867 
 868     SPACE_REDUCE = re.compile(r"\s+")
 869     PREFIX_REGEXP = re.compile(r"^(?P<prefix>(%s)(%s)?)\s?\b(?P<name>.+)" %
 870                                     ("|".join(APPELLATIONS),
 871                                      "|".join(DETERMINANTS)), re.IGNORECASE
 872                                                                  | 
re.UNICODE)


Flo
-- 
Florian Lohoff                                                 [email protected]
      We need to self-defend - GnuPG/PGP enable your email today!
_______________________________________________
OSM mailing list
[email protected]
http://gt.owl.de/cgi-bin/mailman/listinfo/osm

Antwort per Email an