From 069779750461140e89ada28cd8d6a934b703a229 Mon Sep 17 00:00:00 2001 From: Leonhaeuser Date: Thu, 5 Oct 2017 21:29:19 +0200 Subject: [PATCH] updated German date handler: added missing Latin month names and some old German month names --- gramps/gen/datehandler/_date_de.py | 75 +++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/gramps/gen/datehandler/_date_de.py b/gramps/gen/datehandler/_date_de.py index 5efc4a9ff..3ba9993fa 100644 --- a/gramps/gen/datehandler/_date_de.py +++ b/gramps/gen/datehandler/_date_de.py @@ -58,30 +58,60 @@ class DateParserDE(DateParser): # Add other common latin, month_to_int["januaris"] = 1 + month_to_int["ianarius"] = 1 month_to_int["januarii"] = 1 month_to_int["januarius"] = 1 + month_to_int["january"] = 1 + month_to_int["ianuary"] = 1 + month_to_int["mensis"] = 1 month_to_int["februaris"] = 2 month_to_int["februarii"] = 2 month_to_int["februarius"] = 2 + month_to_int["february"] = 2 month_to_int["martii"] = 3 month_to_int["martius"] = 3 + month_to_int["martij"] = 3 + month_to_int["marty"] = 3 month_to_int["aprilis"] = 4 month_to_int["maius"] = 5 + month_to_int["majus"] = 5 month_to_int["maii"] = 5 + month_to_int["maij"] = 5 + month_to_int["may"] = 5 month_to_int["junius"] = 6 + month_to_int["iunius"] = 6 month_to_int["junii"] = 6 + month_to_int["iunius"] = 6 + month_to_int["junij"] = 6 + month_to_int["iunij"] = 6 + month_to_int["juny"] = 6 + month_to_int["iuny"] = 6 month_to_int["julius"] = 7 + month_to_int["iulius"] = 7 month_to_int["julii"] = 7 + month_to_int["iulii"] = 7 + month_to_int["july"] = 7 + month_to_int["iuly"] = 7 + month_to_int["quintilis"] = 7 month_to_int["augustus"] = 8 month_to_int["augusti"] = 8 + month_to_int["sextilis"] = 8 month_to_int["septembris"] = 9 + month_to_int["7ber"] = 9 month_to_int["7bris"] = 9 + month_to_int["viiber"] = 9 + month_to_int["viibris"] = 9 month_to_int["september"] = 9 month_to_int["october"] = 10 month_to_int["octobris"] = 10 month_to_int["8bris"] = 10 + month_to_int["viiiber"] = 10 + month_to_int["viiibris"] = 10 month_to_int["novembris"] = 11 + month_to_int["9ber"] = 11 month_to_int["9bris"] = 11 + month_to_int["ixber"] = 11 + month_to_int["ixbris"] = 11 month_to_int["november"] = 11 month_to_int["decembris"] = 12 month_to_int["10bris"] = 12 @@ -103,38 +133,79 @@ class DateParserDE(DateParser): # old german names month_to_int["hartung"] = 1 + month_to_int["hartmonat"] = 1 + month_to_int["hartmond"] = 1 month_to_int["eismond"] = 1 + month_to_int["eismonat"] = 1 + month_to_int["lassmonat"] = 1 + month_to_int["wolfsmonat"] = 1 + month_to_int["wintermonat"] = 1 month_to_int["hornung"] = 2 + month_to_int["hintester"] = 2 + month_to_int["sporkel"] = 2 + month_to_int["spörkel"] = 2 + month_to_int["rebmonat"] = 2 month_to_int["schmelzmond"] = 2 month_to_int["taumond"] = 2 month_to_int["narrenmond"] = 2 month_to_int["rebmond"] = 2 - month_to_int["hintester"] = 2 + month_to_int["letzter Wintermonat"] = 2 month_to_int["lenzing"] = 3 month_to_int["lenzmond"] = 3 + month_to_int["lenzmonat"] = 3 + month_to_int["frühlingsmonat"] = 3 month_to_int["launing"] = 4 + month_to_int["grasmond"] = 4 month_to_int["ostermond"] = 4 + month_to_int["ostermonat"] = 4 + month_to_int["beuet"] = 5 + month_to_int["blühmond"] = 5 month_to_int["winnemond"] = 5 + month_to_int["wonnemond"] = 5 + month_to_int["wonnemonat"] = 5 month_to_int["weidenmonat"] = 5 month_to_int["blumenmond"] = 5 month_to_int["brachet"] = 6 month_to_int["brachmond"] = 6 + month_to_int["brachmonat"] = 6 + month_to_int["johannismond"] = 6 + month_to_int["weidemaent"] = 6 + month_to_int["heuet"] = 7 month_to_int["heuert"] = 7 month_to_int["heumond"] = 7 + month_to_int["heumonat"] = 7 + month_to_int["bärenmonat"] = 7 + month_to_int["honigmond"] = 7 + month_to_int["honigmonat"] = 7 month_to_int["ernting"] = 8 month_to_int["erntemond"] = 8 month_to_int["bisemond"] = 8 + month_to_int["holzing"] = 9 + month_to_int["holzmond"] = 9 month_to_int["scheiding"] = 9 - month_to_int["herbstmond"] = 9 + month_to_int["scheidung"] = 9 + month_to_int["erster herbstmond"] = 9 + month_to_int["herbstmonat"] = 9 + month_to_int["engelmonat"] = 9 month_to_int["gilbhard"] = 10 month_to_int["gilbhart"] = 10 + month_to_int["weinmond"] = 10 + month_to_int["weinmonat"] = 10 + month_to_int["zweiter herbstmond"] = 10 month_to_int["windmond"] = 11 + month_to_int["windmonat"] = 11 month_to_int["nebelung"] = 11 + month_to_int["nebelmond"] = 11 + month_to_int["schlachtmond"] = 11 month_to_int["wintermond"] = 11 + month_to_int["dritter herbstmond"] = 11 month_to_int["julmond"] = 12 month_to_int["heilmond"] = 12 month_to_int["christmond"] = 12 + month_to_int["christmonat"] = 12 month_to_int["dustermond"] = 12 + month_to_int["heiligenmonat"] = 12 + month_to_int["wendeling"] = 11 modifier_to_int = { 'vor' : Date.MOD_BEFORE,