Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge remote-tracking branch 'remotes/monkz/master'

  • Loading branch information...
commit 0f70d482b530bfd6d7a914bddad9d9cb5de2ccb6 2 parents 5b8a312 + ed63bca
@Gnonthgol Gnonthgol authored
Showing with 14 additions and 0 deletions.
  1. +9 −0 abbreviations.rb
  2. +5 −0 test_abbrev.rb
View
9 abbreviations.rb
@@ -155,6 +155,15 @@ module Abbrev
"посёлок" => ["поселок", "пос"],
"деревня" => ["дер", "д"],
"квартал" => ["кв-л", "кв"],
+
+ # German abbreviations
+ "Bürgermeister" => ["Bgm"],
+ "straße" => ["str."],
+ "platz" => ["pl."],
+ "gasse" => ["g."],
+ "weg" => ["wg."],
+ # Swiss German
+ "strasse" => ["str."],
}
# of course, this is horribly english-specific...
View
5 test_abbrev.rb
@@ -23,6 +23,11 @@ def test_abbrev
check_abbrev_equality("N.E. Foobar Crescent", "North East Foobar Cr")
check_abbrev_equality("NE Foobar Crescent", "Northeast Foobar Cr")
check_abbrev_equality("бул. Космонавтов", "бульвар Космонавтов")
+ check_abbrev_equality("Hauptstr.", "Hauptstraße")
+ check_abbrev_equality("Hauptstrasse", "Hauptstr.")
+ check_abbrev_equality("Hubertus-Platz", "Hubertus-Pl.")
+ check_abbrev_equality("Herreng.", "Herrengasse")
+ check_abbrev_equality("Musterwg.", "Musterweg")
end
private

0 comments on commit 0f70d48

Please sign in to comment.
Something went wrong with that request. Please try again.