The Date Handler Classes¶
DateParser¶
Date parsing class. Serves as the base class for any localized date parsing class. The default base class provides parsing for English.
- class gramps.gen.datehandler._dateparser.DateParser(plocale=None)[source]¶
Bases:
objectConvert a text string into a
Dateobject. If the date cannot be converted, the text string is assigned.- bce = ['B.C.E.', 'B.C.E', 'B.C.', 'BCE', 'B.C', 'BC']¶
- calendar_to_int = {'f': 3, 'fr': 3, 'fre': 3, 'fren': 3, 'frenc': 3, 'french': 3, 'french r': 3, 'french re': 3, 'french rep': 3, 'french repu': 3, 'french repub': 3, 'french republ': 3, 'french republi': 3, 'french republic': 3, 'french republica': 3, 'french republican': 3, 'g': 0, 'gr': 0, 'gre': 0, 'greg': 0, 'grego': 0, 'gregor': 0, 'gregori': 0, 'gregoria': 0, 'gregorian': 0, 'h': 2, 'he': 2, 'heb': 2, 'hebr': 2, 'hebre': 2, 'hebrew': 2, 'i': 5, 'is': 5, 'isl': 5, 'isla': 5, 'islam': 5, 'islami': 5, 'islamic': 5, 'j': 1, 'ju': 1, 'jul': 1, 'juli': 1, 'julia': 1, 'julian': 1, 'p': 4, 'pe': 4, 'per': 4, 'pers': 4, 'persi': 4, 'persia': 4, 'persian': 4, 's': 6, 'sw': 6, 'swe': 6, 'swed': 6, 'swedi': 6, 'swedis': 6, 'swedish': 6}¶
- french_to_int = {'brum': 2, 'bruma': 2, 'brumai': 2, 'brumair': 2, 'brumaire': 2, 'comp': 13, 'e': 13, 'ex': 13, 'ext': 13, 'extr': 13, 'extra': 13, 'flor': 8, 'floré': 8, 'floréa': 8, 'floréal': 8, 'frim': 3, 'frima': 3, 'frimai': 3, 'frimair': 3, 'frimaire': 3, 'fruc': 12, 'fruct': 12, 'fructi': 12, 'fructid': 12, 'fructido': 12, 'fructidor': 12, 'germ': 7, 'germi': 7, 'germin': 7, 'germina': 7, 'germinal': 7, 'mess': 10, 'messi': 10, 'messid': 10, 'messido': 10, 'messidor': 10, 'n': 4, 'ni': 4, 'niv': 4, 'nivo': 4, 'nivô': 4, 'nivôs': 4, 'nivôse': 4, 'pluv': 5, 'pluvi': 5, 'pluviô': 5, 'pluviôs': 5, 'pluviôse': 5, 'prai': 9, 'prair': 9, 'prairi': 9, 'prairia': 9, 'prairial': 9, 'ther': 11, 'therm': 11, 'thermi': 11, 'thermid': 11, 'thermido': 11, 'thermidor': 11, 'vend': 1, 'vendé': 1, 'vendém': 1, 'vendémi': 1, 'vendémia': 1, 'vendémiai': 1, 'vendémiair': 1, 'vendémiaire': 1, 'vent': 6, 'ventô': 6, 'ventôs': 6, 'ventôse': 6}¶
- hebrew_to_int = {'a': 6, 'aav': 12, 'ad': 6, 'ada': 6, 'adar': 6, 'adar sheni': 7, 'adari': 6, 'adarii': 7, 'adr': 6, 'ads': 7, 'av': 12, 'cheshvan': 2, 'csh': 5, 'e': 13, 'el': 13, 'ell': 13, 'elu': 13, 'elul': 13, 'h': 2, 'he': 2, 'hes': 2, 'hesh': 2, 'heshv': 2, 'heshva': 2, 'heshvan': 2, 'i': 9, 'iy': 9, 'iyar': 9, 'iyr': 9, 'iyy': 9, 'iyya': 9, 'iyyar': 9, 'k': 3, 'ki': 3, 'kis': 3, 'kisl': 3, 'kisle': 3, 'kislev': 3, 'ksl': 3, 'n': 8, 'ni': 8, 'nis': 8, 'nisa': 8, 'nisan': 8, 'nsn': 8, 's': 5, 'sh': 5, 'she': 5, 'shev': 5, 'sheva': 5, 'shevat': 5, 'shv': 5, 'si': 10, 'siv': 10, 'siva': 10, 'sivan': 10, 'svn': 10, 't': 1, 'ta': 11, 'tam': 11, 'tamm': 11, 'tammu': 11, 'tammuz': 11, 'te': 4, 'tev': 4, 'teve': 4, 'tevet': 4, 'ti': 1, 'tis': 1, 'tish': 1, 'tishr': 1, 'tishri': 1, 'tmz': 11, 'tsh': 1, 'tvt': 4}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- islamic_to_int = {'d': 11, 'dh': 11, 'dhu': 11, 'dhu hijja': 12, 'dhu l': 11, 'dhu l-': 11, 'dhu l-h': 12, 'dhu l-hi': 12, 'dhu l-hij': 12, 'dhu l-hijj': 12, 'dhu l-hijja': 12, 'dhu l-q': 11, 'dhu l-qa': 11, 'dhu l-qa`': 11, 'dhu l-qa`d': 11, 'dhu l-qa`da': 11, 'dhu qadah': 11, 'j': 6, 'ju': 6, 'jum': 6, 'juma': 6, 'jumaada al-thaany': 6, 'jumaada i': 5, 'jumaada ii': 5, 'jumaada-ul-akhir': 6, 'jumaada-ul-awwal': 5, 'jumad': 6, 'jumada': 6, 'jumada l': 5, 'jumada l-': 5, 'jumada l-u': 5, 'jumada l-ul': 5, 'jumada l-ula': 5, 'jumada t': 6, 'jumada t-': 6, 'jumada t-t': 6, 'jumada t-ta': 6, 'jumada t-tan': 6, 'jumada t-tani': 6, 'jumada t-tania': 6, 'm': 1, 'mu': 1, 'muh': 1, 'muha': 1, 'muhar': 1, 'muharr': 1, 'muharra': 1, 'muharram': 1, 'muharram ul haram': 1, 'r': 4, 'ra': 4, 'rab': 4, 'rabi': 4, "rabi' ii": 4, "rabi'l": 3, 'rabi`': 4, 'rabi` al-thaany': 4, 'rabi` ath-thani': 4, 'rabi`a': 4, 'rabi`al': 3, 'rabi`al-': 3, 'rabi`al-a': 3, 'rabi`al-aw': 3, 'rabi`al-aww': 3, 'rabi`al-awwa': 3, 'rabi`al-awwal': 3, 'rabi`al-thaany': 4, 'rabi`at': 4, 'rabi`ath': 4, 'rabi`ath-': 4, 'rabi`ath-t': 4, 'rabi`ath-th': 4, 'rabi`ath-tha': 4, 'rabi`ath-than': 4, 'rabi`ath-thani': 4, 'rabi`ul-akhir': 4, 'raj': 7, 'raja': 7, 'rajab': 7, 'ram': 9, 'rama': 9, 'ramad': 9, 'ramada': 9, 'ramadan': 9, 'ramadhan': 9, 's': 8, 'sa': 2, 'saf': 2, 'safa': 2, 'safar': 2, 'sh': 8, 'sha': 8, 'sha`': 8, 'sha`aban': 8, 'sha`b': 8, 'sha`ba': 8, 'sha`ban': 8, 'shaw': 10, 'shaww': 10, 'shawwa': 10, 'shawwal': 10, 'thw al-hijjah': 12, 'thw al-qi`dah': 11}¶
- match_bce(text)[source]¶
Try matching BCE qualifier.
Return BCE (True/False) and the text with matched part removed.
- match_calendar(text, cal)[source]¶
Try parsing calendar.
Return calendar index and the text with calendar removed.
- match_calendar_newyear(text, cal, newyear)[source]¶
Try parsing calendar and newyear code.
Return newyear index and the text with calendar removed.
- match_modifier(text, cal, ny, qual, bc, date)[source]¶
Try matching date with modifier.
On success, set the date and return 1. On failure return 0.
- match_newyear(text, newyear)[source]¶
Try parsing calendar and newyear code.
Return newyear index and the text with calendar removed.
- match_quality(text, qual)[source]¶
Try matching quality.
Return quality index and the text with quality removed.
- match_range(text, cal, ny, qual, date)[source]¶
Try matching range date.
On success, set the date and return 1. On failure return 0.
- match_span(text, cal, ny, qual, date)[source]¶
Try matching span date.
On success, set the date and return 1. On failure return 0.
- modifier_after_to_int = {}¶
- modifier_to_int = {'about': 3, 'abt': 3, 'abt.': 3, 'aft': 2, 'aft.': 2, 'after': 2, 'around': 3, 'bef': 1, 'bef.': 1, 'before': 1, 'c.': 3, 'circa': 3}¶
- month_to_int = {'-': 0, '10ber': 12, '10bris': 12, '7ber': 9, '7bris': 9, '8ber': 10, '8bris': 10, '9ber': 11, '9bris': 11, 'I': 1, 'II': 2, 'III': 3, 'IV': 4, 'IX': 9, 'V': 5, 'VI': 6, 'VII': 7, 'VIII': 8, 'X': 10, 'XI': 11, 'XII': 12, 'a': 4, 'ap': 4, 'apr': 4, 'apri': 4, 'april': 4, 'aprila': 4, 'aprilis': 4, 'au': 8, 'aug': 8, 'aug.': 8, 'augst': 8, 'augu': 8, 'augus': 8, 'august': 8, 'augusti': 8, 'augustus': 8, 'augusztus': 8, 'avg': 8, 'avgust': 8, 'avgusta': 8, 'bala': 4, 'balan': 4, 'baland': 4, 'balandis': 4, 'beuet': 5, 'birž': 6, 'birže': 6, 'biržel': 6, 'birželis': 6, 'bisemond': 8, 'blumenmond': 5, 'blühmond': 5, 'brachet': 6, 'brachmonat': 6, 'brachmond': 6, 'bärenmonat': 7, 'bāyuè': 8, 'christmonat': 12, 'christmond': 12, 'cze': 6, 'czerwca': 6, 'czerwiec': 6, 'd': 12, 'de': 12, 'dec': 12, 'dec.': 12, 'dece': 12, 'decem': 12, 'decemb': 12, 'decembar': 12, 'decembe': 12, 'december': 12, 'decembra': 12, 'decembris': 12, 'dritter herbstmond': 11, 'dustermond': 12, 'eismonat': 1, 'eismond': 1, 'engelmonat': 9, 'erntemond': 8, 'ernting': 8, 'erster herbstmond': 9, 'f': 2, 'fe': 2, 'feb': 2, 'feb.': 2, 'feber': 2, 'februar': 2, 'februara': 2, 'februari': 2, 'februarii': 2, 'februaris': 2, 'februarius': 2, 'february': 2, 'február': 2, 'frühlingsmonat': 3, 'gegu': 5, 'geguž': 5, 'gegužis': 5, 'gegužė': 5, 'gilbhard': 10, 'gilbhart': 10, 'grasmond': 4, 'gru': 12, 'grudnia': 12, 'grudzien': 12, 'grudzień': 12, 'gruo': 12, 'gruod': 12, 'gruodis': 12, 'hartmonat': 1, 'hartmond': 1, 'hartung': 1, 'heiligenmonat': 12, 'heilmond': 12, 'herbstmonat': 9, 'heuert': 7, 'heuet': 7, 'heumonat': 7, 'heumond': 7, 'hintester': 2, 'holzing': 9, 'holzmond': 9, 'honigmonat': 7, 'honigmond': 7, 'hornung': 2, 'i': 1, 'ianarius': 1, 'ianuary': 1, 'ii': 2, 'iii': 3, 'iulii': 7, 'iulius': 7, 'iuly': 7, 'iunij': 6, 'iunius': 6, 'iuny': 6, 'iv': 4, 'ix': 9, 'ixber': 11, 'ixbris': 11, 'j': 1, 'ja': 1, 'jan': 1, 'jan.': 1, 'januar': 1, 'januara': 1, 'januari': 1, 'januarii': 1, 'januaris': 1, 'januarius': 1, 'january': 1, 'január': 1, 'jenner': 1, 'jiǎ rùn yùe': 13, 'jiǔyuè': 9, 'johannismond': 6, 'ju': 6, 'jul': 7, 'jula': 7, 'juli': 7, 'julii': 7, 'julius': 7, 'julmond': 12, 'july': 7, 'jun': 6, 'juna': 6, 'june': 6, 'juni': 6, 'junii': 6, 'junij': 6, 'junius': 6, 'juny': 6, 'jän': 1, 'jänner': 1, 'júl': 7, 'júl.': 7, 'július': 7, 'jún': 6, 'jún.': 6, 'június': 6, 'kovas': 3, 'kwi': 4, 'kwiecien': 4, 'kwiecień': 4, 'kwietnia': 4, 'lapk': 11, 'lapkr': 11, 'lapkri': 11, 'lapkrit': 11, 'lapkritis': 11, 'lassmonat': 1, 'launing': 4, 'lenzing': 3, 'lenzmonat': 3, 'lenzmond': 3, 'letzter Wintermonat': 2, 'liep': 7, 'liepa': 7, 'lip': 7, 'lipca': 7, 'lipiec': 7, 'lis': 11, 'listopad': 11, 'listopada': 11, 'liùyuè': 6, 'lut': 2, 'lutego': 2, 'luty': 2, 'm': 3, 'ma': 3, 'maa': 3, 'maii': 5, 'maij': 5, 'maius': 5, 'maj': 5, 'maja': 5, 'majus': 5, 'mar': 3, 'marc': 3, 'marca': 3, 'march': 3, 'mars': 3, 'mart': 3, 'marta': 3, 'martii': 3, 'martij': 3, 'martius': 3, 'marty': 3, 'marzec': 3, 'may': 5, 'mensis': 1, 'merz': 3, 'mrt': 3, 'máj': 5, 'máj.': 5, 'május': 5, 'márc': 3, 'márc.': 3, 'március': 3, 'n': 11, 'narrenmond': 2, 'nebelmond': 11, 'nebelung': 11, 'no': 11, 'nov': 11, 'nov.': 11, 'nove': 11, 'novem': 11, 'novemb': 11, 'novembar': 11, 'novembe': 11, 'november': 11, 'novembra': 11, 'novembris': 11, 'o': 10, 'oc': 10, 'oct': 10, 'octo': 10, 'octob': 10, 'octobe': 10, 'october': 10, 'octobris': 10, 'okt': 10, 'okt.': 10, 'okto': 10, 'oktob': 10, 'oktobar': 10, 'oktobe': 10, 'oktober': 10, 'oktobra': 10, 'október': 10, 'ostermonat': 4, 'ostermond': 4, 'paz': 10, 'pazdziernik': 10, 'pazdziernika': 10, 'paź': 10, 'październik': 10, 'października': 10, 'quintilis': 7, 'qīyuè': 7, 'rebmonat': 2, 'rebmond': 2, 'rugp': 8, 'rugpj': 8, 'rugpjū': 8, 'rugpjūt': 8, 'rugpjūtis': 8, 'rugs': 9, 'rugsė': 9, 'rugsėj': 9, 'rugsėjis': 9, 's': 9, 'saus': 1, 'sausis': 1, 'scheiding': 9, 'scheidung': 9, 'schlachtmond': 11, 'schmelzmond': 2, 'se': 9, 'sep': 9, 'sept': 9, 'septe': 9, 'septem': 9, 'septemb': 9, 'septembar': 9, 'septembe': 9, 'september': 9, 'septembra': 9, 'septembris': 9, 'sextilis': 8, "shí'èryuè": 12, 'shíyuè': 10, 'shíyīyuè': 11, 'sie': 8, 'sierpien': 8, 'sierpień': 8, 'sierpnia': 8, 'spal': 10, 'spalis': 10, 'sporkel': 2, 'spörkel': 2, 'sty': 1, 'styczen': 1, 'styczeń': 1, 'stycznia': 1, 'szept': 9, 'szept.': 9, 'szeptember': 9, 'sìyuè': 4, 'sānyuè': 3, 'taumond': 2, 'v': 5, 'vasa': 2, 'vasar': 2, 'vasaris': 2, 'vi': 6, 'vii': 7, 'viiber': 9, 'viibris': 9, 'viii': 8, 'viiiber': 10, 'viiibris': 10, 'weidemaent': 6, 'weidenmonat': 5, 'weinmonat': 10, 'weinmond': 10, 'wendeling': 11, 'windmonat': 11, 'windmond': 11, 'winnemond': 5, 'wintermonat': 1, 'wintermond': 11, 'wolfsmonat': 1, 'wonnemonat': 5, 'wonnemond': 5, 'wrz': 9, 'wrzesien': 9, 'wrzesień': 9, 'wrzesnia': 9, 'września': 9, 'wǔyuè': 5, 'x': 10, 'xber': 12, 'xbris': 12, 'xi': 11, 'xii': 12, 'zhēngyuè': 1, 'zweiter herbstmond': 10, 'ápr': 4, 'ápr.': 4, 'április': 4, 'èryuè': 2, 'авг': 8, 'август': 8, 'августа': 8, 'апр': 4, 'април': 4, 'априла': 4, 'дец': 12, 'децембар': 12, 'децембра': 12, 'мар': 3, 'март': 3, 'марта': 3, 'мај': 5, 'маја': 5, 'нов': 11, 'новембар': 11, 'новембра': 11, 'окт': 10, 'октобар': 10, 'октобра': 10, 'сеп': 9, 'септембар': 9, 'септембра': 9, 'феб': 2, 'фебруар': 2, 'фебруара': 2, 'јан': 1, 'јануар': 1, 'јануара': 1, 'јул': 7, 'јула': 7, 'јун': 6, 'јуна': 6, '一': 1, '七': 7, '三': 3, '九': 9, '二': 2, '五': 5, '假閏': 13, '八': 8, '六': 6, '十': 10, '十一': 11, '十二': 12, '四': 4, '正': 1}¶
- newyear_to_int = {'jan1': 0, 'mar1': 1, 'mar25': 2, 'sep1': 3}¶
- persian_to_int = {'a': 8, 'ab': 8, 'aba': 8, 'aban': 8, 'az': 9, 'aza': 9, 'azar': 9, 'b': 11, 'ba': 11, 'bah': 11, 'bahm': 11, 'bahma': 11, 'bahman': 11, 'd': 10, 'de': 10, 'dey': 10, 'e': 12, 'es': 12, 'esf': 12, 'esfa': 12, 'esfan': 12, 'esfand': 12, 'f': 1, 'fa': 1, 'far': 1, 'farv': 1, 'farva': 1, 'farvar': 1, 'farvard': 1, 'farvardi': 1, 'farvardin': 1, 'k': 3, 'kh': 3, 'kho': 3, 'khor': 3, 'khord': 3, 'khorda': 3, 'khordad': 3, 'm': 5, 'me': 7, 'meh': 7, 'mehr': 7, 'mo': 5, 'mor': 5, 'mord': 5, 'morda': 5, 'mordad': 5, 'o': 2, 'or': 2, 'ord': 2, 'ordi': 2, 'ordib': 2, 'ordibe': 2, 'ordibeh': 2, 'ordibehe': 2, 'ordibehes': 2, 'ordibehesh': 2, 'ordibehesht': 2, 's': 6, 'sh': 6, 'sha': 6, 'shah': 6, 'shahr': 6, 'shahri': 6, 'shahriv': 6, 'shahriva': 6, 'shahrivar': 6, 't': 4, 'ti': 4, 'tir': 4}¶
- quality_to_int = {'calc': 2, 'calc.': 2, 'calculated': 2, 'est': 1, 'est.': 1, 'estimated': 1}¶
- re_longest_first(keys)[source]¶
returns a string for a RE group which contains the given keys sorted so that longest keys match first. Any ‘.’ characters are quoted.
- swedish_to_int = {'-': 0, '10ber': 12, '10bris': 12, '7ber': 9, '7bris': 9, '8ber': 10, '8bris': 10, '9ber': 11, '9bris': 11, 'I': 1, 'II': 2, 'III': 3, 'IV': 4, 'IX': 9, 'V': 5, 'VI': 6, 'VII': 7, 'VIII': 8, 'X': 10, 'XI': 11, 'XII': 12, 'a': 4, 'ap': 4, 'apr': 4, 'apri': 4, 'april': 4, 'aprila': 4, 'aprilis': 4, 'au': 8, 'aug': 8, 'aug.': 8, 'augst': 8, 'augu': 8, 'augus': 8, 'august': 8, 'augusti': 8, 'augustus': 8, 'augusztus': 8, 'avg': 8, 'avgust': 8, 'avgusta': 8, 'bala': 4, 'balan': 4, 'baland': 4, 'balandis': 4, 'beuet': 5, 'birž': 6, 'birže': 6, 'biržel': 6, 'birželis': 6, 'bisemond': 8, 'blumenmond': 5, 'blühmond': 5, 'brachet': 6, 'brachmonat': 6, 'brachmond': 6, 'bärenmonat': 7, 'bāyuè': 8, 'christmonat': 12, 'christmond': 12, 'cze': 6, 'czerwca': 6, 'czerwiec': 6, 'd': 12, 'de': 12, 'dec': 12, 'dec.': 12, 'dece': 12, 'decem': 12, 'decemb': 12, 'decembar': 12, 'decembe': 12, 'december': 12, 'decembra': 12, 'decembris': 12, 'dritter herbstmond': 11, 'dustermond': 12, 'eismonat': 1, 'eismond': 1, 'engelmonat': 9, 'erntemond': 8, 'ernting': 8, 'erster herbstmond': 9, 'f': 2, 'fe': 2, 'feb': 2, 'feb.': 2, 'feber': 2, 'februar': 2, 'februara': 2, 'februari': 2, 'februarii': 2, 'februaris': 2, 'februarius': 2, 'february': 2, 'február': 2, 'frühlingsmonat': 3, 'gegu': 5, 'geguž': 5, 'gegužis': 5, 'gegužė': 5, 'gilbhard': 10, 'gilbhart': 10, 'grasmond': 4, 'gru': 12, 'grudnia': 12, 'grudzien': 12, 'grudzień': 12, 'gruo': 12, 'gruod': 12, 'gruodis': 12, 'hartmonat': 1, 'hartmond': 1, 'hartung': 1, 'heiligenmonat': 12, 'heilmond': 12, 'herbstmonat': 9, 'heuert': 7, 'heuet': 7, 'heumonat': 7, 'heumond': 7, 'hintester': 2, 'holzing': 9, 'holzmond': 9, 'honigmonat': 7, 'honigmond': 7, 'hornung': 2, 'i': 1, 'ianarius': 1, 'ianuary': 1, 'ii': 2, 'iii': 3, 'iulii': 7, 'iulius': 7, 'iuly': 7, 'iunij': 6, 'iunius': 6, 'iuny': 6, 'iv': 4, 'ix': 9, 'ixber': 11, 'ixbris': 11, 'j': 1, 'ja': 1, 'jan': 1, 'jan.': 1, 'januar': 1, 'januara': 1, 'januari': 1, 'januarii': 1, 'januaris': 1, 'januarius': 1, 'january': 1, 'január': 1, 'jenner': 1, 'jiǎ rùn yùe': 13, 'jiǔyuè': 9, 'johannismond': 6, 'ju': 6, 'jul': 7, 'jula': 7, 'juli': 7, 'julii': 7, 'julius': 7, 'julmond': 12, 'july': 7, 'jun': 6, 'juna': 6, 'june': 6, 'juni': 6, 'junii': 6, 'junij': 6, 'junius': 6, 'juny': 6, 'jän': 1, 'jänner': 1, 'júl': 7, 'júl.': 7, 'július': 7, 'jún': 6, 'jún.': 6, 'június': 6, 'kovas': 3, 'kwi': 4, 'kwiecien': 4, 'kwiecień': 4, 'kwietnia': 4, 'lapk': 11, 'lapkr': 11, 'lapkri': 11, 'lapkrit': 11, 'lapkritis': 11, 'lassmonat': 1, 'launing': 4, 'lenzing': 3, 'lenzmonat': 3, 'lenzmond': 3, 'letzter Wintermonat': 2, 'liep': 7, 'liepa': 7, 'lip': 7, 'lipca': 7, 'lipiec': 7, 'lis': 11, 'listopad': 11, 'listopada': 11, 'liùyuè': 6, 'lut': 2, 'lutego': 2, 'luty': 2, 'm': 3, 'ma': 3, 'maa': 3, 'maii': 5, 'maij': 5, 'maius': 5, 'maj': 5, 'maja': 5, 'majus': 5, 'mar': 3, 'marc': 3, 'marca': 3, 'march': 3, 'mars': 3, 'mart': 3, 'marta': 3, 'martii': 3, 'martij': 3, 'martius': 3, 'marty': 3, 'marzec': 3, 'may': 5, 'mensis': 1, 'merz': 3, 'mrt': 3, 'máj': 5, 'máj.': 5, 'május': 5, 'márc': 3, 'márc.': 3, 'március': 3, 'n': 11, 'narrenmond': 2, 'nebelmond': 11, 'nebelung': 11, 'no': 11, 'nov': 11, 'nov.': 11, 'nove': 11, 'novem': 11, 'novemb': 11, 'novembar': 11, 'novembe': 11, 'november': 11, 'novembra': 11, 'novembris': 11, 'o': 10, 'oc': 10, 'oct': 10, 'octo': 10, 'octob': 10, 'octobe': 10, 'october': 10, 'octobris': 10, 'okt': 10, 'okt.': 10, 'okto': 10, 'oktob': 10, 'oktobar': 10, 'oktobe': 10, 'oktober': 10, 'oktobra': 10, 'október': 10, 'ostermonat': 4, 'ostermond': 4, 'paz': 10, 'pazdziernik': 10, 'pazdziernika': 10, 'paź': 10, 'październik': 10, 'października': 10, 'quintilis': 7, 'qīyuè': 7, 'rebmonat': 2, 'rebmond': 2, 'rugp': 8, 'rugpj': 8, 'rugpjū': 8, 'rugpjūt': 8, 'rugpjūtis': 8, 'rugs': 9, 'rugsė': 9, 'rugsėj': 9, 'rugsėjis': 9, 's': 9, 'saus': 1, 'sausis': 1, 'scheiding': 9, 'scheidung': 9, 'schlachtmond': 11, 'schmelzmond': 2, 'se': 9, 'sep': 9, 'sept': 9, 'septe': 9, 'septem': 9, 'septemb': 9, 'septembar': 9, 'septembe': 9, 'september': 9, 'septembra': 9, 'septembris': 9, 'sextilis': 8, "shí'èryuè": 12, 'shíyuè': 10, 'shíyīyuè': 11, 'sie': 8, 'sierpien': 8, 'sierpień': 8, 'sierpnia': 8, 'spal': 10, 'spalis': 10, 'sporkel': 2, 'spörkel': 2, 'sty': 1, 'styczen': 1, 'styczeń': 1, 'stycznia': 1, 'szept': 9, 'szept.': 9, 'szeptember': 9, 'sìyuè': 4, 'sānyuè': 3, 'taumond': 2, 'v': 5, 'vasa': 2, 'vasar': 2, 'vasaris': 2, 'vi': 6, 'vii': 7, 'viiber': 9, 'viibris': 9, 'viii': 8, 'viiiber': 10, 'viiibris': 10, 'weidemaent': 6, 'weidenmonat': 5, 'weinmonat': 10, 'weinmond': 10, 'wendeling': 11, 'windmonat': 11, 'windmond': 11, 'winnemond': 5, 'wintermonat': 1, 'wintermond': 11, 'wolfsmonat': 1, 'wonnemonat': 5, 'wonnemond': 5, 'wrz': 9, 'wrzesien': 9, 'wrzesień': 9, 'wrzesnia': 9, 'września': 9, 'wǔyuè': 5, 'x': 10, 'xber': 12, 'xbris': 12, 'xi': 11, 'xii': 12, 'zhēngyuè': 1, 'zweiter herbstmond': 10, 'ápr': 4, 'ápr.': 4, 'április': 4, 'èryuè': 2, 'авг': 8, 'август': 8, 'августа': 8, 'апр': 4, 'април': 4, 'априла': 4, 'дец': 12, 'децембар': 12, 'децембра': 12, 'мар': 3, 'март': 3, 'марта': 3, 'мај': 5, 'маја': 5, 'нов': 11, 'новембар': 11, 'новембра': 11, 'окт': 10, 'октобар': 10, 'октобра': 10, 'сеп': 9, 'септембар': 9, 'септембра': 9, 'феб': 2, 'фебруар': 2, 'фебруара': 2, 'јан': 1, 'јануар': 1, 'јануара': 1, 'јул': 7, 'јула': 7, 'јун': 6, 'јуна': 6, '一': 1, '七': 7, '三': 3, '九': 9, '二': 2, '五': 5, '假閏': 13, '八': 8, '六': 6, '十': 10, '十一': 11, '十二': 12, '四': 4, '正': 1}¶
Map Gregorian month names and their prefixes, wherever unambiguous, to the relevant integer index (1..12).
- today = ['$T']¶
DateStrings¶
Date strings to translate per each language for display and parsing.
__main__¶
Run this code with the appropriate LANG and LC_DATE set for your target
language, in order to generate the .po snippets initialized with the strings
from your locale (from the deprecated data provided in _grampslocale).
E.g., for French:
LANG=fr_FR.utf8 LC_ALL=fr_FR.utf8 GRAMPS_RESOURCES=$PWD python -m gramps.gen.datehandler._datestrings
Then merge the output into your language’s .po file, and further modify the
strings as needed. Then remove the strings from your language’s
DateParserXX and DateHandlerXX classes.
- class gramps.gen.datehandler._datestrings.DateStrings(locale)[source]¶
Bases:
objectString tables for
DateDisplayandDateParser.
DateDisplay¶
U.S English date display class. Should serve as the base class for all localized tasks.
- class gramps.gen.datehandler._datedisplay.DateDisplay(format=None, blocale=None)[source]¶
Bases:
objectBase date display class.
- dd_dformat01(date_val)[source]¶
numerical
this must agree with DateDisplayEn’s “formats” definition (it may be overridden if a locale-specific date displayer exists)
- dd_dformat02(date_val, inflect, long_months)[source]¶
month_name day, year
this must agree with DateDisplayEn’s “formats” definition (it may be overridden if a locale-specific date displayer exists)
- dd_dformat03(date_val, inflect, short_months)[source]¶
month_abbreviation day, year
this must agree with DateDisplayEn’s “formats” definition (it may be overridden if a locale-specific date displayer exists)
- dd_dformat04(date_val, inflect, long_months)[source]¶
day month_name year
this must agree with DateDisplayEn’s “formats” definition (it may be overridden if a locale-specific date displayer exists)
- dd_dformat05(date_val, inflect, short_months)[source]¶
day month_abbreviation year
this must agree with DateDisplayEn’s “formats” definition (it may be overridden if a locale-specific date displayer exists)
- dd_range(date)[source]¶
Return a text string representing the range date (it may be overridden if a locale-specific date displayer exists)
- dd_span(date)[source]¶
Return a text string representing the span date (it may be overridden if a locale-specific date displayer exists)
- display(date)[source]¶
Return a text string representing the date.
Disregard any format settings and use display_iso for each date.
(Will be overridden if a locale-specific date displayer exists.)
(The usage is “displayer.display(…)” (or a variant, e.g. _dd.display) so any subclass must have a “display” method, somehow, or use this.)
- display_formatted(date)[source]¶
Return a text string representing the date, according to the format.
- formats = ('YYYY-MM-DD (ISO)', 'date format|Numerical', 'Month Day, Year', 'MON DAY, YEAR', 'Day Month Year', 'DAY MON YEAR')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- newyear = ('', 'Mar1', 'Mar25', 'Sep1')¶
- class gramps.gen.datehandler._datedisplay.DateDisplayEn(format=None, blocale=None)[source]¶
Bases:
DateDisplayEnglish language date display class.
- display(date)¶
Return a text string representing the date, according to the format.
DateUtils¶
Class handling language-specific selection for date parser and displayer.
- gramps.gen.datehandler._dateutils.format_time(secs)[source]¶
Format a time in seconds as a date in the preferred date format and a 24 hour time as hh:mm:ss.
- gramps.gen.datehandler._dateutils.get_date(date_base)[source]¶
Return a string representation of the date of the
DateBaseinstance.This representation is based off the default date display format determined by the locale’s
DateDisplayinstance.- Returns:
Returns a string representing the
DateBasedate- Return type:
str
- gramps.gen.datehandler._dateutils.get_date_formats(flocale=<gramps.gen.utils.grampslocale.GrampsLocale object>)[source]¶
Return the list of supported formats for date parsers and displayers. The UI language formats will be used unless another locale is fed in.
- Parameters:
flocale (a
GrampsLocaleinstance) – allow deferred translation of date formats
DateHandler¶
Class handling language-specific selection for date parser and displayer.
- gramps.gen.datehandler._datehandler.register_datehandler(locales, parse_class, display_class)[source]¶
Registers the passed date parser class and date displayer classes with the specified language locales.
Set the parser_class and display_class ._locale attribute to the corresponding
GrampsLocaleobject.- Parameters:
locales (tuple) – tuple of strings containing language codes. The character encoding is not included, so the language should be in the form of fr_FR, not fr_FR.utf8
parse_class (
DateParser) – Class to be associated with parsingdisplay_class (
DateDisplay) – Class to be associated with displaying
Localized Date Handlers¶
DateHandler (Bulgarian)¶
- class gramps.gen.datehandler._date_bg.DateParserBG(plocale=None)[source]¶
Bases:
DateParser- bce = ['преди Христа', 'пр. Хр.', 'пр.Хр.', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
- calendar_to_int = {'г': 0, 'григориански': 0, 'е': 2, 'еврейски': 2, 'и': 5, 'ислямски': 5, 'п': 4, 'персийски': 4, 'р': 3, 'републикански': 3, 'фр.': 3, 'фр.реп.': 3, 'френски': 3, 'френски републикански': 3, 'ю': 1, 'юлиански': 1}¶
- french_to_int = {'брюмер': 2, 'вандемер': 1, 'вантоз': 6, 'допълнителен': 13, 'жерминал': 7, 'месидор': 10, 'нивоз': 4, 'плювиоз': 5, 'прериал': 9, 'термидор': 11, 'флореал': 8, 'фример': 3, 'фрюктидор': 12}¶
- hebrew_to_int = {'eлул': 13, 'ав': 12, 'адар': 6, 'адар бет': 7, 'ияр': 9, 'кислев': 3, 'мархешван': 2, 'нисан': 8, 'сиван': 10, 'тамуз': 11, 'тевет': 4, 'тишрей': 1, 'шват': 5}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- islamic_to_int = {'джумада-с-сания': 6, 'джумадал-уля': 5, 'зу-л-кида': 11, 'зул-л-хиджа': 12, 'мухаррам': 1, 'рабиу-л-ауал': 3, 'рабиу-с-сани': 4, 'раджаб': 7, 'рамадан': 9, 'саффар': 2, 'шаабан': 8, 'шауал': 10}¶
- modifier_to_int = {'ок': 3, 'ок.': 3, 'около': 3, 'пр': 1, 'пр.': 1, 'преди': 1, 'приб': 3, 'приб.': 3, 'прибл': 3, 'прибл.': 3, 'приблизително': 3, 'прим': 3, 'прим.': 3, 'примерно': 3, 'сл': 2, 'сл.': 2, 'след': 2}¶
- persian_to_int = {'абан': 8, 'азар': 9, 'бахман': 11, 'дай': 10, 'исфаидармуз': 12, 'михр': 7, 'мурдад': 5, 'тир': 4, 'урдбихищ': 2, 'фарвардин': 1, 'хурдад': 3, 'шахривар': 6}¶
- quality_to_int = {'изч.': 2, 'изчисл.': 2, 'изчислено': 2, 'прибл.': 1, 'приблизително': 1}¶
- class gramps.gen.datehandler._date_bg.DateDisplayBG(format=None, blocale=None)[source]¶
Bases:
DateDisplayBulgarian language date display class.
- calendar = ('', 'юлиански', 'еврейски', 'републикански', 'персийски', 'ислямски', 'шведски')¶
- formats = ('ГГГГ-ММ-ДД (ISO)', 'Числов', 'Месец Ден, Година', 'Мес. Ден, Година', 'Ден Месец Година', 'Ден Мес. Година')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- french = ('', 'Вандемер', 'Брюмер', 'Фример', 'Нивоз', 'Плювиоз', 'Вантоз', 'Жерминал', 'Флореал', 'Прериал', 'Мессидор', 'Термидор', 'Фрюктидор', 'Допълнителен')¶
- hebrew = ('', 'Тишрей', 'Мархешван', 'Кислев', 'Тевет', 'Шват', 'Адар', 'Адар бет', 'Нисан', 'Ияр', 'Сиван', 'Тамуз', 'Ав', 'Елул')¶
- islamic = ('', 'Мухаррам', 'Саффар', 'Рабиу-л-ауал', 'Рабиу-с-сани', 'Джумадал-уля', 'Джумада-с-сания', 'Раджаб', 'Шаабан', 'Рамадан', 'Шауал', 'Зу-л-кида', 'Зул-л-хиджа')¶
- long_months = ('', 'януари', 'февруари', 'март', 'април', 'май', 'юни', 'юли', 'август', 'септември', 'октомври', 'ноември', 'декември')¶
- persian = ('', 'Фарвардин', 'Урдбихищ', 'Хурдад', 'Тир', 'Мурдад', 'Шахривар', 'Михр', 'Абан', 'Азар', 'Дай', 'Бахман', 'Исфаидармуз')¶
- short_months = ('', 'яну', 'февр', 'март', 'апр', 'май', 'юни', 'юли', 'авг', 'септ', 'окт', 'ное', 'дек')¶
DateHandler (Catalan)¶
- class gramps.gen.datehandler._date_ca.DateParserCA(plocale=None)[source]¶
Bases:
DateParser- calendar_to_int = {'g': 0, 'gregorià': 0, 'h': 2, 'hebreu': 2, 'i': 5, 'islàmic': 5, 'j': 1, 'julià': 1, 'p': 4, 'persa': 4, 'r': 3, 'revolucionari': 3, 's': 6, 'swedish': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'ab.': 1, 'abans': 1, 'abans de': 1, 'al voltant': 3, 'al voltant de': 3, 'aprox': 3, 'aprox.': 3, 'c.': 3, 'ca': 3, 'ca.': 3, 'cap a': 3, 'circa': 3, 'desp': 2, 'desp.': 2, 'després': 2, 'després de': 2}¶
- quality_to_int = {'calc': 2, 'calc.': 2, 'calculat': 2, 'est': 1, 'est.': 1, 'estimat': 1}¶
- class gramps.gen.datehandler._date_ca.DateDisplayCA(format=None, blocale=None)[source]¶
Bases:
DateDisplayCatalan language date display class.
- calendar = ('', 'Julià', 'Hebreu', 'Revolucionari', 'Persa', 'Islàmic', 'Suec')¶
- formats = ('AAAA-MM-DD (ISO)', 'Numèrica', 'Mes Dia, Any', 'MES Dia, Any', 'Dia Mes, Any', 'Dia MES, Any')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- french = ('', 'Vendemiari', 'Brumari', 'Frimari', 'Nivós', 'Pluviós', 'Ventós', 'Germinal', 'Floreal', 'Pradial', 'Messidor', 'Termidor', 'Fructidor', 'Extra')¶
- long_months = ('', 'Gener', 'Febrer', 'Març', 'Abril', 'Maig', 'Juny', 'Juliol', 'Agost', 'Setembre', 'Octubre', 'Novembre', 'Desembre')¶
- short_months = ('', 'Gen', 'Feb', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Oct', 'Nov', 'Des')¶
DateHandler (Czech)¶
- class gramps.gen.datehandler._date_cs.DateParserCZ(plocale=None)[source]¶
Bases:
DateParserConverts a text string into a Date object
- bce = ['před naším letopočtem', 'před Kristem', 'př. n. l.', 'př. Kr.', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
DateHandler (German)¶
- class gramps.gen.datehandler._date_de.DateParserDE(plocale=None)[source]¶
Bases:
DateParser- bce = ['vor unserer Zeitrechnung', 'vor unserer Zeit', 'vor der Zeitrechnung', 'vor der Zeit', 'v. u. Z.', 'v. d. Z.', 'v.u.Z.', 'v.d.Z.', 'vor Christi Geburt', 'vor Christus', 'v. Chr.', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
- calendar_to_int = {'franz.': 3, 'französisch republikanisch': 3, 'greg.': 0, 'gregorianisch': 0, 'hebr.': 2, 'hebräisch': 2, 'isl.': 5, 'islamisch': 5, 'jul.': 1, 'julianisch': 1, 'persisch': 4, 's': 6, 'schwedisch': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'ca.': 3, 'circa': 3, 'etwa': 3, 'gegen': 3, 'nach': 2, 'um': 3, 'vor': 1}¶
- month_to_int = {'-': 0, '10ber': 12, '10bris': 12, '7ber': 9, '7bris': 9, '8ber': 10, '8bris': 10, '9ber': 11, '9bris': 11, 'I': 1, 'II': 2, 'III': 3, 'IV': 4, 'IX': 9, 'V': 5, 'VI': 6, 'VII': 7, 'VIII': 8, 'X': 10, 'XI': 11, 'XII': 12, 'a': 4, 'ap': 4, 'apr': 4, 'apri': 4, 'april': 4, 'aprila': 4, 'aprilis': 4, 'au': 8, 'aug': 8, 'aug.': 8, 'augst': 8, 'augu': 8, 'augus': 8, 'august': 8, 'augusti': 8, 'augustus': 8, 'augusztus': 8, 'avg': 8, 'avgust': 8, 'avgusta': 8, 'bala': 4, 'balan': 4, 'baland': 4, 'balandis': 4, 'beuet': 5, 'birž': 6, 'birže': 6, 'biržel': 6, 'birželis': 6, 'bisemond': 8, 'blumenmond': 5, 'blühmond': 5, 'brachet': 6, 'brachmonat': 6, 'brachmond': 6, 'bärenmonat': 7, 'bāyuè': 8, 'christmonat': 12, 'christmond': 12, 'cze': 6, 'czerwca': 6, 'czerwiec': 6, 'd': 12, 'de': 12, 'dec': 12, 'dec.': 12, 'dece': 12, 'decem': 12, 'decemb': 12, 'decembar': 12, 'decembe': 12, 'december': 12, 'decembra': 12, 'decembris': 12, 'dritter herbstmond': 11, 'dustermond': 12, 'eismonat': 1, 'eismond': 1, 'engelmonat': 9, 'erntemond': 8, 'ernting': 8, 'erster herbstmond': 9, 'f': 2, 'fe': 2, 'feb': 2, 'feb.': 2, 'feber': 2, 'februar': 2, 'februara': 2, 'februari': 2, 'februarii': 2, 'februaris': 2, 'februarius': 2, 'february': 2, 'február': 2, 'frühlingsmonat': 3, 'gegu': 5, 'geguž': 5, 'gegužis': 5, 'gegužė': 5, 'gilbhard': 10, 'gilbhart': 10, 'grasmond': 4, 'gru': 12, 'grudnia': 12, 'grudzien': 12, 'grudzień': 12, 'gruo': 12, 'gruod': 12, 'gruodis': 12, 'hartmonat': 1, 'hartmond': 1, 'hartung': 1, 'heiligenmonat': 12, 'heilmond': 12, 'herbstmonat': 9, 'heuert': 7, 'heuet': 7, 'heumonat': 7, 'heumond': 7, 'hintester': 2, 'holzing': 9, 'holzmond': 9, 'honigmonat': 7, 'honigmond': 7, 'hornung': 2, 'i': 1, 'ianarius': 1, 'ianuary': 1, 'ii': 2, 'iii': 3, 'iulii': 7, 'iulius': 7, 'iuly': 7, 'iunij': 6, 'iunius': 6, 'iuny': 6, 'iv': 4, 'ix': 9, 'ixber': 11, 'ixbris': 11, 'j': 1, 'ja': 1, 'jan': 1, 'jan.': 1, 'januar': 1, 'januara': 1, 'januari': 1, 'januarii': 1, 'januaris': 1, 'januarius': 1, 'january': 1, 'január': 1, 'jenner': 1, 'jiǎ rùn yùe': 13, 'jiǔyuè': 9, 'johannismond': 6, 'ju': 6, 'jul': 7, 'jula': 7, 'juli': 7, 'julii': 7, 'julius': 7, 'julmond': 12, 'july': 7, 'jun': 6, 'juna': 6, 'june': 6, 'juni': 6, 'junii': 6, 'junij': 6, 'junius': 6, 'juny': 6, 'jän': 1, 'jänner': 1, 'júl': 7, 'júl.': 7, 'július': 7, 'jún': 6, 'jún.': 6, 'június': 6, 'kovas': 3, 'kwi': 4, 'kwiecien': 4, 'kwiecień': 4, 'kwietnia': 4, 'lapk': 11, 'lapkr': 11, 'lapkri': 11, 'lapkrit': 11, 'lapkritis': 11, 'lassmonat': 1, 'launing': 4, 'lenzing': 3, 'lenzmonat': 3, 'lenzmond': 3, 'letzter Wintermonat': 2, 'liep': 7, 'liepa': 7, 'lip': 7, 'lipca': 7, 'lipiec': 7, 'lis': 11, 'listopad': 11, 'listopada': 11, 'liùyuè': 6, 'lut': 2, 'lutego': 2, 'luty': 2, 'm': 3, 'ma': 3, 'maa': 3, 'maii': 5, 'maij': 5, 'maius': 5, 'maj': 5, 'maja': 5, 'majus': 5, 'mar': 3, 'marc': 3, 'marca': 3, 'march': 3, 'mars': 3, 'mart': 3, 'marta': 3, 'martii': 3, 'martij': 3, 'martius': 3, 'marty': 3, 'marzec': 3, 'may': 5, 'mensis': 1, 'merz': 3, 'mrt': 3, 'máj': 5, 'máj.': 5, 'május': 5, 'márc': 3, 'márc.': 3, 'március': 3, 'n': 11, 'narrenmond': 2, 'nebelmond': 11, 'nebelung': 11, 'no': 11, 'nov': 11, 'nov.': 11, 'nove': 11, 'novem': 11, 'novemb': 11, 'novembar': 11, 'novembe': 11, 'november': 11, 'novembra': 11, 'novembris': 11, 'o': 10, 'oc': 10, 'oct': 10, 'octo': 10, 'octob': 10, 'octobe': 10, 'october': 10, 'octobris': 10, 'okt': 10, 'okt.': 10, 'okto': 10, 'oktob': 10, 'oktobar': 10, 'oktobe': 10, 'oktober': 10, 'oktobra': 10, 'október': 10, 'ostermonat': 4, 'ostermond': 4, 'paz': 10, 'pazdziernik': 10, 'pazdziernika': 10, 'paź': 10, 'październik': 10, 'października': 10, 'quintilis': 7, 'qīyuè': 7, 'rebmonat': 2, 'rebmond': 2, 'rugp': 8, 'rugpj': 8, 'rugpjū': 8, 'rugpjūt': 8, 'rugpjūtis': 8, 'rugs': 9, 'rugsė': 9, 'rugsėj': 9, 'rugsėjis': 9, 's': 9, 'saus': 1, 'sausis': 1, 'scheiding': 9, 'scheidung': 9, 'schlachtmond': 11, 'schmelzmond': 2, 'se': 9, 'sep': 9, 'sept': 9, 'septe': 9, 'septem': 9, 'septemb': 9, 'septembar': 9, 'septembe': 9, 'september': 9, 'septembra': 9, 'septembris': 9, 'sextilis': 8, "shí'èryuè": 12, 'shíyuè': 10, 'shíyīyuè': 11, 'sie': 8, 'sierpien': 8, 'sierpień': 8, 'sierpnia': 8, 'spal': 10, 'spalis': 10, 'sporkel': 2, 'spörkel': 2, 'sty': 1, 'styczen': 1, 'styczeń': 1, 'stycznia': 1, 'szept': 9, 'szept.': 9, 'szeptember': 9, 'sìyuè': 4, 'sānyuè': 3, 'taumond': 2, 'v': 5, 'vasa': 2, 'vasar': 2, 'vasaris': 2, 'vi': 6, 'vii': 7, 'viiber': 9, 'viibris': 9, 'viii': 8, 'viiiber': 10, 'viiibris': 10, 'weidemaent': 6, 'weidenmonat': 5, 'weinmonat': 10, 'weinmond': 10, 'wendeling': 11, 'windmonat': 11, 'windmond': 11, 'winnemond': 5, 'wintermonat': 1, 'wintermond': 11, 'wolfsmonat': 1, 'wonnemonat': 5, 'wonnemond': 5, 'wrz': 9, 'wrzesien': 9, 'wrzesień': 9, 'wrzesnia': 9, 'września': 9, 'wǔyuè': 5, 'x': 10, 'xber': 12, 'xbris': 12, 'xi': 11, 'xii': 12, 'zhēngyuè': 1, 'zweiter herbstmond': 10, 'ápr': 4, 'ápr.': 4, 'április': 4, 'èryuè': 2, 'авг': 8, 'август': 8, 'августа': 8, 'апр': 4, 'април': 4, 'априла': 4, 'дец': 12, 'децембар': 12, 'децембра': 12, 'мар': 3, 'март': 3, 'марта': 3, 'мај': 5, 'маја': 5, 'нов': 11, 'новембар': 11, 'новембра': 11, 'окт': 10, 'октобар': 10, 'октобра': 10, 'сеп': 9, 'септембар': 9, 'септембра': 9, 'феб': 2, 'фебруар': 2, 'фебруара': 2, 'јан': 1, 'јануар': 1, 'јануара': 1, 'јул': 7, 'јула': 7, 'јун': 6, 'јуна': 6, '一': 1, '七': 7, '三': 3, '九': 9, '二': 2, '五': 5, '假閏': 13, '八': 8, '六': 6, '十': 10, '十一': 11, '十二': 12, '四': 4, '正': 1}¶
- quality_to_int = {'ber.': 2, 'berechnet': 2, 'errechnet': 2, 'gesch.': 1, 'geschätzt': 1}¶
- class gramps.gen.datehandler._date_de.DateDisplayDE(format=None, blocale=None)[source]¶
Bases:
DateDisplayGerman language date display class.
- calendar = ('', 'julianisch', 'hebräisch', 'französisch republikanisch', 'persisch', 'islamisch', 'schwedisch')¶
- formats = ('JJJJ-MM-DD (ISO)', 'Numerisch', 'Monat Tag Jahr', 'MONAT Tag Jahr', 'Tag. Monat Jahr', 'Tag. MONAT Jahr')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- long_months = ('', 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember')¶
- short_months = ('', 'Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez')¶
DateHandler (Spanish)¶
- class gramps.gen.datehandler._date_es.DateParserES(plocale=None)[source]¶
Bases:
DateParser- calendar_to_int = {'g': 0, 'gregoriano': 0, 'h': 2, 'hebreo': 2, 'i': 5, 'islámico': 5, 'j': 1, 'juliano': 1, 'p': 4, 'persa': 4, 'r': 3, 'revolucionario': 3, 's': 6, 'swedish': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'ant': 1, 'ant.': 1, 'antes': 1, 'antes de': 1, 'apr': 3, 'apr.': 3, 'aprox': 3, 'aprox.': 3, 'c.': 3, 'ca': 3, 'ca.': 3, 'circa': 3, 'desp': 2, 'desp.': 2, 'después': 2, 'después de': 2, 'hacia': 3}¶
- quality_to_int = {'calc': 2, 'calc.': 2, 'calculado': 2, 'est': 1, 'est.': 1, 'estimado': 1}¶
- class gramps.gen.datehandler._date_es.DateDisplayES(format=None, blocale=None)[source]¶
Bases:
DateDisplaySpanish language date display class.
- calendar = ('', 'Juliano', 'Hebreo', 'Revolucionario', 'Persa', 'Islámico', 'Swedish')¶
- formats = ('AAAA-MM-DD (ISO)', 'Numérica', 'Mes Día, Año', 'MES Día, Año', 'Día Mes, Año', 'Día MES, Año')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- long_months = ('', 'enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre')¶
- short_months = ('', 'enero', 'feb.', 'marzo', 'abr.', 'mayo', 'jun.', 'jul.', 'agosto', 'set.', 'oct.', 'nov.', 'dic')¶
DateHandler (Finnish)¶
- class gramps.gen.datehandler._date_fi.DateParserFI(plocale=None)[source]¶
Bases:
DateParser- bce = ['ekr.', 'ekr']¶
- calendar_to_int = {'greg.': 0, 'gregoriaaninen': 0, 'hepr.': 2, 'heprealainen': 2, 'isl.': 5, 'islamilainen': 5, 'jul.': 1, 'juliaaninen': 1, 'pers.': 4, 'persialainen': 4, 'ranskan v.': 3, 'ranskan vallankumouksen aikainen': 3, 's': 6, 'svensk': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_after_to_int = {'j.': 2, 'jälkeen': 2}¶
- modifier_to_int = {'e.': 1, 'ennen': 1, 'n.': 3, 'noin': 3}¶
- quality_to_int = {'arv.': 1, 'arviolta': 1, 'lask.': 2, 'laskettuna': 2}¶
- class gramps.gen.datehandler._date_fi.DateDisplayFI(format=None, blocale=None)[source]¶
Bases:
DateDisplayFinnish language date display class.
- display(date)¶
Return a text string representing the date, according to the format.
- formats = ('VVVV-KK-PP (ISO)', 'PP.KK.VVVV', 'Päivä Kuukausi Vuosi')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
DateHandler (French)¶
- class gramps.gen.datehandler._date_fr.DateParserFR(plocale=None)[source]¶
Bases:
DateParserConvert a text string into a Date object. If the date cannot be converted, the text string is assigned.
- bce = ['avant le calendrier', 'avant notre ère', 'avant JC', 'avant J.C', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeteadly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method. See DateParserRU() as an example.
- modifier_to_int = {'ap': 2, 'ap.': 2, 'après': 2, 'av.': 1, 'avant': 1, 'c.': 3, 'ca': 3, 'ca.': 3, 'circa': 3, 'env': 3, 'env.': 3, 'environ': 3, 'vers': 3, '~': 3}¶
- month_to_int = {'-': 0, '10ber': 12, '10bris': 12, '7ber': 9, '7bris': 9, '8ber': 10, '8bris': 10, '9ber': 11, '9bris': 11, 'I': 1, 'II': 2, 'III': 3, 'IV': 4, 'IX': 9, 'V': 5, 'VI': 6, 'VII': 7, 'VIII': 8, 'X': 10, 'XI': 11, 'XII': 12, 'a': 4, 'ap': 4, 'apr': 4, 'apri': 4, 'april': 4, 'aprila': 4, 'aprilis': 4, 'au': 8, 'aug': 8, 'aug.': 8, 'augst': 8, 'augu': 8, 'augus': 8, 'august': 8, 'augusti': 8, 'augustus': 8, 'augusztus': 8, 'avg': 8, 'avgust': 8, 'avgusta': 8, 'bala': 4, 'balan': 4, 'baland': 4, 'balandis': 4, 'beuet': 5, 'birž': 6, 'birže': 6, 'biržel': 6, 'birželis': 6, 'bisemond': 8, 'blumenmond': 5, 'blühmond': 5, 'brachet': 6, 'brachmonat': 6, 'brachmond': 6, 'bärenmonat': 7, 'bāyuè': 8, 'christmonat': 12, 'christmond': 12, 'cze': 6, 'czerwca': 6, 'czerwiec': 6, 'd': 12, 'de': 12, 'dec': 12, 'dec.': 12, 'dece': 12, 'decem': 12, 'decemb': 12, 'decembar': 12, 'decembe': 12, 'december': 12, 'decembra': 12, 'decembris': 12, 'dritter herbstmond': 11, 'dustermond': 12, 'eismonat': 1, 'eismond': 1, 'engelmonat': 9, 'erntemond': 8, 'ernting': 8, 'erster herbstmond': 9, 'f': 2, 'fe': 2, 'feb': 2, 'feb.': 2, 'feber': 2, 'februar': 2, 'februara': 2, 'februari': 2, 'februarii': 2, 'februaris': 2, 'februarius': 2, 'february': 2, 'február': 2, 'frühlingsmonat': 3, 'gegu': 5, 'geguž': 5, 'gegužis': 5, 'gegužė': 5, 'gilbhard': 10, 'gilbhart': 10, 'grasmond': 4, 'gru': 12, 'grudnia': 12, 'grudzien': 12, 'grudzień': 12, 'gruo': 12, 'gruod': 12, 'gruodis': 12, 'hartmonat': 1, 'hartmond': 1, 'hartung': 1, 'heiligenmonat': 12, 'heilmond': 12, 'herbstmonat': 9, 'heuert': 7, 'heuet': 7, 'heumonat': 7, 'heumond': 7, 'hintester': 2, 'holzing': 9, 'holzmond': 9, 'honigmonat': 7, 'honigmond': 7, 'hornung': 2, 'i': 1, 'ianarius': 1, 'ianuary': 1, 'ii': 2, 'iii': 3, 'iulii': 7, 'iulius': 7, 'iuly': 7, 'iunij': 6, 'iunius': 6, 'iuny': 6, 'iv': 4, 'ix': 9, 'ixber': 11, 'ixbris': 11, 'j': 1, 'ja': 1, 'jan': 1, 'jan.': 1, 'januar': 1, 'januara': 1, 'januari': 1, 'januarii': 1, 'januaris': 1, 'januarius': 1, 'january': 1, 'január': 1, 'jenner': 1, 'jiǎ rùn yùe': 13, 'jiǔyuè': 9, 'johannismond': 6, 'ju': 6, 'jul': 7, 'jula': 7, 'juli': 7, 'julii': 7, 'julius': 7, 'julmond': 12, 'july': 7, 'jun': 6, 'juna': 6, 'june': 6, 'juni': 6, 'junii': 6, 'junij': 6, 'junius': 6, 'juny': 6, 'jän': 1, 'jänner': 1, 'júl': 7, 'júl.': 7, 'július': 7, 'jún': 6, 'jún.': 6, 'június': 6, 'kovas': 3, 'kwi': 4, 'kwiecien': 4, 'kwiecień': 4, 'kwietnia': 4, 'lapk': 11, 'lapkr': 11, 'lapkri': 11, 'lapkrit': 11, 'lapkritis': 11, 'lassmonat': 1, 'launing': 4, 'lenzing': 3, 'lenzmonat': 3, 'lenzmond': 3, 'letzter Wintermonat': 2, 'liep': 7, 'liepa': 7, 'lip': 7, 'lipca': 7, 'lipiec': 7, 'lis': 11, 'listopad': 11, 'listopada': 11, 'liùyuè': 6, 'lut': 2, 'lutego': 2, 'luty': 2, 'm': 3, 'ma': 3, 'maa': 3, 'maii': 5, 'maij': 5, 'maius': 5, 'maj': 5, 'maja': 5, 'majus': 5, 'mar': 3, 'marc': 3, 'marca': 3, 'march': 3, 'mars': 3, 'mart': 3, 'marta': 3, 'martii': 3, 'martij': 3, 'martius': 3, 'marty': 3, 'marzec': 3, 'may': 5, 'mensis': 1, 'merz': 3, 'mrt': 3, 'máj': 5, 'máj.': 5, 'május': 5, 'márc': 3, 'márc.': 3, 'március': 3, 'n': 11, 'narrenmond': 2, 'nebelmond': 11, 'nebelung': 11, 'no': 11, 'nov': 11, 'nov.': 11, 'nove': 11, 'novem': 11, 'novemb': 11, 'novembar': 11, 'novembe': 11, 'november': 11, 'novembra': 11, 'novembris': 11, 'o': 10, 'oc': 10, 'oct': 10, 'octo': 10, 'octob': 10, 'octobe': 10, 'october': 10, 'octobris': 10, 'okt': 10, 'okt.': 10, 'okto': 10, 'oktob': 10, 'oktobar': 10, 'oktobe': 10, 'oktober': 10, 'oktobra': 10, 'október': 10, 'ostermonat': 4, 'ostermond': 4, 'paz': 10, 'pazdziernik': 10, 'pazdziernika': 10, 'paź': 10, 'październik': 10, 'października': 10, 'quintilis': 7, 'qīyuè': 7, 'rebmonat': 2, 'rebmond': 2, 'rugp': 8, 'rugpj': 8, 'rugpjū': 8, 'rugpjūt': 8, 'rugpjūtis': 8, 'rugs': 9, 'rugsė': 9, 'rugsėj': 9, 'rugsėjis': 9, 's': 9, 'saus': 1, 'sausis': 1, 'scheiding': 9, 'scheidung': 9, 'schlachtmond': 11, 'schmelzmond': 2, 'se': 9, 'sep': 9, 'sept': 9, 'septe': 9, 'septem': 9, 'septemb': 9, 'septembar': 9, 'septembe': 9, 'september': 9, 'septembra': 9, 'septembris': 9, 'sextilis': 8, "shí'èryuè": 12, 'shíyuè': 10, 'shíyīyuè': 11, 'sie': 8, 'sierpien': 8, 'sierpień': 8, 'sierpnia': 8, 'spal': 10, 'spalis': 10, 'sporkel': 2, 'spörkel': 2, 'sty': 1, 'styczen': 1, 'styczeń': 1, 'stycznia': 1, 'szept': 9, 'szept.': 9, 'szeptember': 9, 'sìyuè': 4, 'sānyuè': 3, 'taumond': 2, 'v': 5, 'vasa': 2, 'vasar': 2, 'vasaris': 2, 'vi': 6, 'vii': 7, 'viiber': 9, 'viibris': 9, 'viii': 8, 'viiiber': 10, 'viiibris': 10, 'weidemaent': 6, 'weidenmonat': 5, 'weinmonat': 10, 'weinmond': 10, 'wendeling': 11, 'windmonat': 11, 'windmond': 11, 'winnemond': 5, 'wintermonat': 1, 'wintermond': 11, 'wolfsmonat': 1, 'wonnemonat': 5, 'wonnemond': 5, 'wrz': 9, 'wrzesien': 9, 'wrzesień': 9, 'wrzesnia': 9, 'września': 9, 'wǔyuè': 5, 'x': 10, 'xber': 12, 'xbris': 12, 'xi': 11, 'xii': 12, 'zhēngyuè': 1, 'zweiter herbstmond': 10, 'ápr': 4, 'ápr.': 4, 'április': 4, 'èryuè': 2, 'авг': 8, 'август': 8, 'августа': 8, 'апр': 4, 'април': 4, 'априла': 4, 'дец': 12, 'децембар': 12, 'децембра': 12, 'мар': 3, 'март': 3, 'марта': 3, 'мај': 5, 'маја': 5, 'нов': 11, 'новембар': 11, 'новембра': 11, 'окт': 10, 'октобар': 10, 'октобра': 10, 'сеп': 9, 'септембар': 9, 'септембра': 9, 'феб': 2, 'фебруар': 2, 'фебруара': 2, 'јан': 1, 'јануар': 1, 'јануара': 1, 'јул': 7, 'јула': 7, 'јун': 6, 'јуна': 6, '一': 1, '七': 7, '三': 3, '九': 9, '二': 2, '五': 5, '假閏': 13, '八': 8, '六': 6, '十': 10, '十一': 11, '十二': 12, '四': 4, '正': 1}¶
- quality_to_int = {'calc': 2, 'calc.': 2, 'calculée': 2, 'compt': 2, 'compt.': 2, 'comptée': 2, 'est': 1, 'est.': 1, 'estimée': 1}¶
DateHandler (Croatian)¶
- class gramps.gen.datehandler._date_hr.DateParserHR(plocale=None)[source]¶
Bases:
DateParser- bce = ['prije nove ere', 'prije Krista', 'p.n.e.', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
- modifier_to_int = {'na. ': 2, 'nakon': 2, 'ok. ': 3, 'oko': 3, 'okolo': 3, 'po. ': 2, 'poslije': 2, 'pr. ': 1, 'prije': 1}¶
- quality_to_int = {'izr.': 2, 'izračunato': 2, 'prb.': 1, 'približno': 1}¶
- class gramps.gen.datehandler._date_hr.DateDisplayHR(format=None, blocale=None)[source]¶
Bases:
DateDisplayCroatian language date display class.
- display(date)¶
Return a text string representing the date, according to the format.
DateHandler (Italian)¶
- class gramps.gen.datehandler._date_it.DateParserIT(plocale=None)[source]¶
Bases:
DateParser- calendar_to_int = {'e': 2, 'ebraico': 2, 'g': 0, 'giuliano': 1, 'gregoriano': 0, 'i': 5, 'islamico': 5, 'j': 1, 'p': 4, 'persiano': 4, 'r': 3, 'rivoluzionario': 3, 's': 6, 'svedese': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'approssimativamente': 3, 'apross': 3, 'apross.': 3, 'c.': 3, 'ca': 3, 'ca.': 3, 'circa': 3, 'circa il': 3, 'dopo': 2, 'dopo del': 2, 'prima': 1, 'prima del': 1}¶
- quality_to_int = {'calc': 2, 'calc.': 2, 'calcolata': 2, 'st': 1, 'st.': 1, 'stimata': 1}¶
- class gramps.gen.datehandler._date_it.DateDisplayIT(format=None, blocale=None)[source]¶
Bases:
DateDisplayItalian language date display class.
- calendar = ('', 'Giuliano', 'Ebraico', 'Rivoluzionario', 'Persiano', 'Islamico', 'Svedese')¶
- formats = ('AAAA-MM-DD (ISO)', 'Numerico', 'Mese Giorno Anno', 'MES Giorno, Anno', 'Giorno Mese Anno', 'Giorno MES Anno')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- french = ('', 'vendemmiaio', 'brumaio', 'frimaio', 'nevoso', 'piovoso', 'ventoso', 'germile', 'fiorile', 'pratile', 'messidoro', 'termidoro', 'fruttidoro', 'extra')¶
- long_months = ('', 'gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre')¶
- short_months = ('', 'gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic')¶
DateHandler (Lituanian)¶
- class gramps.gen.datehandler._date_lt.DateParserLT(plocale=None)[source]¶
Bases:
DateParserConvert a text string into a Date object. If the date cannot be converted, the text string is assigned.
- calendar_to_int = {'g': 0, 'grigaliaus': 0, 'h': 2, 'hebrajų': 2, 'i': 5, 'islamo': 5, 'j': 1, 'julijaus': 1, 'p': 4, 'persų': 4, 'prancūzų respublikos': 3, 'r': 3, 's': 6, 'švedų': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'apie': 3, 'po': 2, 'prieš': 1}¶
- month_to_int = {'-': 0, '10ber': 12, '10bris': 12, '7ber': 9, '7bris': 9, '8ber': 10, '8bris': 10, '9ber': 11, '9bris': 11, 'I': 1, 'II': 2, 'III': 3, 'IV': 4, 'IX': 9, 'V': 5, 'VI': 6, 'VII': 7, 'VIII': 8, 'X': 10, 'XI': 11, 'XII': 12, 'a': 4, 'ap': 4, 'apr': 4, 'apri': 4, 'april': 4, 'aprila': 4, 'aprilis': 4, 'au': 8, 'aug': 8, 'aug.': 8, 'augst': 8, 'augu': 8, 'augus': 8, 'august': 8, 'augusti': 8, 'augustus': 8, 'augusztus': 8, 'avg': 8, 'avgust': 8, 'avgusta': 8, 'bala': 4, 'balan': 4, 'baland': 4, 'balandis': 4, 'beuet': 5, 'birž': 6, 'birže': 6, 'biržel': 6, 'birželis': 6, 'bisemond': 8, 'blumenmond': 5, 'blühmond': 5, 'brachet': 6, 'brachmonat': 6, 'brachmond': 6, 'bärenmonat': 7, 'bāyuè': 8, 'christmonat': 12, 'christmond': 12, 'cze': 6, 'czerwca': 6, 'czerwiec': 6, 'd': 12, 'de': 12, 'dec': 12, 'dec.': 12, 'dece': 12, 'decem': 12, 'decemb': 12, 'decembar': 12, 'decembe': 12, 'december': 12, 'decembra': 12, 'decembris': 12, 'dritter herbstmond': 11, 'dustermond': 12, 'eismonat': 1, 'eismond': 1, 'engelmonat': 9, 'erntemond': 8, 'ernting': 8, 'erster herbstmond': 9, 'f': 2, 'fe': 2, 'feb': 2, 'feb.': 2, 'feber': 2, 'februar': 2, 'februara': 2, 'februari': 2, 'februarii': 2, 'februaris': 2, 'februarius': 2, 'february': 2, 'február': 2, 'frühlingsmonat': 3, 'gegu': 5, 'geguž': 5, 'gegužis': 5, 'gegužė': 5, 'gilbhard': 10, 'gilbhart': 10, 'grasmond': 4, 'gru': 12, 'grudnia': 12, 'grudzien': 12, 'grudzień': 12, 'gruo': 12, 'gruod': 12, 'gruodis': 12, 'hartmonat': 1, 'hartmond': 1, 'hartung': 1, 'heiligenmonat': 12, 'heilmond': 12, 'herbstmonat': 9, 'heuert': 7, 'heuet': 7, 'heumonat': 7, 'heumond': 7, 'hintester': 2, 'holzing': 9, 'holzmond': 9, 'honigmonat': 7, 'honigmond': 7, 'hornung': 2, 'i': 1, 'ianarius': 1, 'ianuary': 1, 'ii': 2, 'iii': 3, 'iulii': 7, 'iulius': 7, 'iuly': 7, 'iunij': 6, 'iunius': 6, 'iuny': 6, 'iv': 4, 'ix': 9, 'ixber': 11, 'ixbris': 11, 'j': 1, 'ja': 1, 'jan': 1, 'jan.': 1, 'januar': 1, 'januara': 1, 'januari': 1, 'januarii': 1, 'januaris': 1, 'januarius': 1, 'january': 1, 'január': 1, 'jenner': 1, 'jiǎ rùn yùe': 13, 'jiǔyuè': 9, 'johannismond': 6, 'ju': 6, 'jul': 7, 'jula': 7, 'juli': 7, 'julii': 7, 'julius': 7, 'julmond': 12, 'july': 7, 'jun': 6, 'juna': 6, 'june': 6, 'juni': 6, 'junii': 6, 'junij': 6, 'junius': 6, 'juny': 6, 'jän': 1, 'jänner': 1, 'júl': 7, 'júl.': 7, 'július': 7, 'jún': 6, 'jún.': 6, 'június': 6, 'kovas': 3, 'kwi': 4, 'kwiecien': 4, 'kwiecień': 4, 'kwietnia': 4, 'lapk': 11, 'lapkr': 11, 'lapkri': 11, 'lapkrit': 11, 'lapkritis': 11, 'lassmonat': 1, 'launing': 4, 'lenzing': 3, 'lenzmonat': 3, 'lenzmond': 3, 'letzter Wintermonat': 2, 'liep': 7, 'liepa': 7, 'lip': 7, 'lipca': 7, 'lipiec': 7, 'lis': 11, 'listopad': 11, 'listopada': 11, 'liùyuè': 6, 'lut': 2, 'lutego': 2, 'luty': 2, 'm': 3, 'ma': 3, 'maa': 3, 'maii': 5, 'maij': 5, 'maius': 5, 'maj': 5, 'maja': 5, 'majus': 5, 'mar': 3, 'marc': 3, 'marca': 3, 'march': 3, 'mars': 3, 'mart': 3, 'marta': 3, 'martii': 3, 'martij': 3, 'martius': 3, 'marty': 3, 'marzec': 3, 'may': 5, 'mensis': 1, 'merz': 3, 'mrt': 3, 'máj': 5, 'máj.': 5, 'május': 5, 'márc': 3, 'márc.': 3, 'március': 3, 'n': 11, 'narrenmond': 2, 'nebelmond': 11, 'nebelung': 11, 'no': 11, 'nov': 11, 'nov.': 11, 'nove': 11, 'novem': 11, 'novemb': 11, 'novembar': 11, 'novembe': 11, 'november': 11, 'novembra': 11, 'novembris': 11, 'o': 10, 'oc': 10, 'oct': 10, 'octo': 10, 'octob': 10, 'octobe': 10, 'october': 10, 'octobris': 10, 'okt': 10, 'okt.': 10, 'okto': 10, 'oktob': 10, 'oktobar': 10, 'oktobe': 10, 'oktober': 10, 'oktobra': 10, 'október': 10, 'ostermonat': 4, 'ostermond': 4, 'paz': 10, 'pazdziernik': 10, 'pazdziernika': 10, 'paź': 10, 'październik': 10, 'października': 10, 'quintilis': 7, 'qīyuè': 7, 'rebmonat': 2, 'rebmond': 2, 'rugp': 8, 'rugpj': 8, 'rugpjū': 8, 'rugpjūt': 8, 'rugpjūtis': 8, 'rugs': 9, 'rugsė': 9, 'rugsėj': 9, 'rugsėjis': 9, 's': 9, 'saus': 1, 'sausis': 1, 'scheiding': 9, 'scheidung': 9, 'schlachtmond': 11, 'schmelzmond': 2, 'se': 9, 'sep': 9, 'sept': 9, 'septe': 9, 'septem': 9, 'septemb': 9, 'septembar': 9, 'septembe': 9, 'september': 9, 'septembra': 9, 'septembris': 9, 'sextilis': 8, "shí'èryuè": 12, 'shíyuè': 10, 'shíyīyuè': 11, 'sie': 8, 'sierpien': 8, 'sierpień': 8, 'sierpnia': 8, 'spal': 10, 'spalis': 10, 'sporkel': 2, 'spörkel': 2, 'sty': 1, 'styczen': 1, 'styczeń': 1, 'stycznia': 1, 'szept': 9, 'szept.': 9, 'szeptember': 9, 'sìyuè': 4, 'sānyuè': 3, 'taumond': 2, 'v': 5, 'vasa': 2, 'vasar': 2, 'vasaris': 2, 'vi': 6, 'vii': 7, 'viiber': 9, 'viibris': 9, 'viii': 8, 'viiiber': 10, 'viiibris': 10, 'weidemaent': 6, 'weidenmonat': 5, 'weinmonat': 10, 'weinmond': 10, 'wendeling': 11, 'windmonat': 11, 'windmond': 11, 'winnemond': 5, 'wintermonat': 1, 'wintermond': 11, 'wolfsmonat': 1, 'wonnemonat': 5, 'wonnemond': 5, 'wrz': 9, 'wrzesien': 9, 'wrzesień': 9, 'wrzesnia': 9, 'września': 9, 'wǔyuè': 5, 'x': 10, 'xber': 12, 'xbris': 12, 'xi': 11, 'xii': 12, 'zhēngyuè': 1, 'zweiter herbstmond': 10, 'ápr': 4, 'ápr.': 4, 'április': 4, 'èryuè': 2, 'авг': 8, 'август': 8, 'августа': 8, 'апр': 4, 'април': 4, 'априла': 4, 'дец': 12, 'децембар': 12, 'децембра': 12, 'мар': 3, 'март': 3, 'марта': 3, 'мај': 5, 'маја': 5, 'нов': 11, 'новембар': 11, 'новембра': 11, 'окт': 10, 'октобар': 10, 'октобра': 10, 'сеп': 9, 'септембар': 9, 'септембра': 9, 'феб': 2, 'фебруар': 2, 'фебруара': 2, 'јан': 1, 'јануар': 1, 'јануара': 1, 'јул': 7, 'јула': 7, 'јун': 6, 'јуна': 6, '一': 1, '七': 7, '三': 3, '九': 9, '二': 2, '五': 5, '假閏': 13, '八': 8, '六': 6, '十': 10, '十一': 11, '十二': 12, '四': 4, '正': 1}¶
- quality_to_int = {'apskaičiuota': 2, 'apytikriai': 1}¶
- class gramps.gen.datehandler._date_lt.DateDisplayLT(format=None, blocale=None)[source]¶
Bases:
DateDisplayLithuanian language date display class.
- calendar = ('', 'julijaus', 'hebrajų', 'prancūzų respublikos', 'persų', 'islamo', 'švedų')¶
- formats = ('mmmm-MM-DD (ISO)', 'mmmm.MM.DD', 'mmmm m. mėnesio diena d.', 'Mėn diena, metai')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- long_months = ('', 'sausio', 'vasario', 'kovo', 'balandžio', 'gegužės', 'birželio', 'liepos', 'rugpjūčio', 'rugsėjo', 'spalio', 'lapkričio', 'gruodžio')¶
- long_months_vardininkas = ('', 'sausis', 'vasaris', 'kovas', 'balandis', 'gegužė', 'birželis', 'liepa', 'rugpjūtis', 'rugsėjis', 'spalis', 'lapkritis', 'gruodis')¶
- short_months = ('', 'Sau', 'Vas', 'Kov', 'Bal', 'Geg', 'Bir', 'Lie', 'Rgp', 'Rgs', 'Spa', 'Lap', 'Grd')¶
DateHandler (Norwegian)¶
- class gramps.gen.datehandler._date_nb.DateParserNb(plocale=None)[source]¶
Bases:
DateParserConvert a text string into a Date object, expecting a date notation in the Norwegian language. If the date cannot be converted, the text string is assigned.
- bce = ['f Kr']¶
- calendar_to_int = {'f': 3, 'fransk': 3, 'fransk republikansk': 3, 'g': 0, 'gregoriansk ': 0, 'h': 2, 'hebraisk': 2, 'i': 5, 'islamisk': 5, 'j': 1, 'juliansk': 1, 'muslimsk': 5, 'p': 4, 'persisk': 4, 's': 6, 'svensk': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'ca': 3, 'etter': 2, 'før': 1, 'innen': 1, 'omkring': 3, 'omtrent': 3}¶
- quality_to_int = {'beregnet': 2, 'estimert': 1}¶
- class gramps.gen.datehandler._date_nb.DateDisplayNb(format=None, blocale=None)[source]¶
Bases:
DateDisplayNorwegian language date display class.
- calendar = ('', 'juliansk', 'hebraisk', 'fransk republikansk', 'persisk', 'islamisk', 'svensk')¶
- formats = ('ÅÅÅÅ-MM-DD (ISO)', 'Numerisk', 'Måned dag, år', 'Mån Dag År', 'Dag måned år', 'Dag Mån År')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- long_months = ('', 'januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember')¶
- short_months = ('', 'jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des')¶
DateHandler (Dutch)¶
- class gramps.gen.datehandler._date_nl.DateParserNL(plocale=None)[source]¶
Bases:
DateParser- bce = ['voor onze tijdrekening', 'voor Christus', 'v. Chr.', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
- calendar_to_int = {'fran.': 3, 'franse republiek': 3, 'greg.': 0, 'gregoriaans': 0, 'hebr.': 2, 'hebreeuws': 2, 'isl.': 5, 'islamitisch': 5, 'jul.': 1, 'juliaans': 1, 'persisch': 4, 'z': 6, 'zweeds': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'ca.': 3, 'circa': 3, 'na': 2, 'om': 3, 'rond': 3, 'tegen': 3, 'voor': 1}¶
- month_to_int = {'-': 0, '10ber': 12, '10bris': 12, '7ber': 9, '7bris': 9, '8ber': 10, '8bris': 10, '9ber': 11, '9bris': 11, 'I': 1, 'II': 2, 'III': 3, 'IV': 4, 'IX': 9, 'V': 5, 'VI': 6, 'VII': 7, 'VIII': 8, 'X': 10, 'XI': 11, 'XII': 12, 'a': 4, 'ap': 4, 'apr': 4, 'apri': 4, 'april': 4, 'aprila': 4, 'aprilis': 4, 'au': 8, 'aug': 8, 'aug.': 8, 'augst': 8, 'augu': 8, 'augus': 8, 'august': 8, 'augusti': 8, 'augustus': 8, 'augusztus': 8, 'avg': 8, 'avgust': 8, 'avgusta': 8, 'bala': 4, 'balan': 4, 'baland': 4, 'balandis': 4, 'beuet': 5, 'birž': 6, 'birže': 6, 'biržel': 6, 'birželis': 6, 'bisemond': 8, 'blumenmond': 5, 'blühmond': 5, 'brachet': 6, 'brachmonat': 6, 'brachmond': 6, 'bärenmonat': 7, 'bāyuè': 8, 'christmonat': 12, 'christmond': 12, 'cze': 6, 'czerwca': 6, 'czerwiec': 6, 'd': 12, 'de': 12, 'dec': 12, 'dec.': 12, 'dece': 12, 'decem': 12, 'decemb': 12, 'decembar': 12, 'decembe': 12, 'december': 12, 'decembra': 12, 'decembris': 12, 'dritter herbstmond': 11, 'dustermond': 12, 'eismonat': 1, 'eismond': 1, 'engelmonat': 9, 'erntemond': 8, 'ernting': 8, 'erster herbstmond': 9, 'f': 2, 'fe': 2, 'feb': 2, 'feb.': 2, 'feber': 2, 'februar': 2, 'februara': 2, 'februari': 2, 'februarii': 2, 'februaris': 2, 'februarius': 2, 'february': 2, 'február': 2, 'frühlingsmonat': 3, 'gegu': 5, 'geguž': 5, 'gegužis': 5, 'gegužė': 5, 'gilbhard': 10, 'gilbhart': 10, 'grasmond': 4, 'gru': 12, 'grudnia': 12, 'grudzien': 12, 'grudzień': 12, 'gruo': 12, 'gruod': 12, 'gruodis': 12, 'hartmonat': 1, 'hartmond': 1, 'hartung': 1, 'heiligenmonat': 12, 'heilmond': 12, 'herbstmonat': 9, 'heuert': 7, 'heuet': 7, 'heumonat': 7, 'heumond': 7, 'hintester': 2, 'holzing': 9, 'holzmond': 9, 'honigmonat': 7, 'honigmond': 7, 'hornung': 2, 'i': 1, 'ianarius': 1, 'ianuary': 1, 'ii': 2, 'iii': 3, 'iulii': 7, 'iulius': 7, 'iuly': 7, 'iunij': 6, 'iunius': 6, 'iuny': 6, 'iv': 4, 'ix': 9, 'ixber': 11, 'ixbris': 11, 'j': 1, 'ja': 1, 'jan': 1, 'jan.': 1, 'januar': 1, 'januara': 1, 'januari': 1, 'januarii': 1, 'januaris': 1, 'januarius': 1, 'january': 1, 'január': 1, 'jenner': 1, 'jiǎ rùn yùe': 13, 'jiǔyuè': 9, 'johannismond': 6, 'ju': 6, 'jul': 7, 'jula': 7, 'juli': 7, 'julii': 7, 'julius': 7, 'julmond': 12, 'july': 7, 'jun': 6, 'juna': 6, 'june': 6, 'juni': 6, 'junii': 6, 'junij': 6, 'junius': 6, 'juny': 6, 'jän': 1, 'jänner': 1, 'júl': 7, 'júl.': 7, 'július': 7, 'jún': 6, 'jún.': 6, 'június': 6, 'kovas': 3, 'kwi': 4, 'kwiecien': 4, 'kwiecień': 4, 'kwietnia': 4, 'lapk': 11, 'lapkr': 11, 'lapkri': 11, 'lapkrit': 11, 'lapkritis': 11, 'lassmonat': 1, 'launing': 4, 'lenzing': 3, 'lenzmonat': 3, 'lenzmond': 3, 'letzter Wintermonat': 2, 'liep': 7, 'liepa': 7, 'lip': 7, 'lipca': 7, 'lipiec': 7, 'lis': 11, 'listopad': 11, 'listopada': 11, 'liùyuè': 6, 'lut': 2, 'lutego': 2, 'luty': 2, 'm': 3, 'ma': 3, 'maa': 3, 'maii': 5, 'maij': 5, 'maius': 5, 'maj': 5, 'maja': 5, 'majus': 5, 'mar': 3, 'marc': 3, 'marca': 3, 'march': 3, 'mars': 3, 'mart': 3, 'marta': 3, 'martii': 3, 'martij': 3, 'martius': 3, 'marty': 3, 'marzec': 3, 'may': 5, 'mensis': 1, 'merz': 3, 'mrt': 3, 'máj': 5, 'máj.': 5, 'május': 5, 'márc': 3, 'márc.': 3, 'március': 3, 'n': 11, 'narrenmond': 2, 'nebelmond': 11, 'nebelung': 11, 'no': 11, 'nov': 11, 'nov.': 11, 'nove': 11, 'novem': 11, 'novemb': 11, 'novembar': 11, 'novembe': 11, 'november': 11, 'novembra': 11, 'novembris': 11, 'o': 10, 'oc': 10, 'oct': 10, 'octo': 10, 'octob': 10, 'octobe': 10, 'october': 10, 'octobris': 10, 'okt': 10, 'okt.': 10, 'okto': 10, 'oktob': 10, 'oktobar': 10, 'oktobe': 10, 'oktober': 10, 'oktobra': 10, 'október': 10, 'ostermonat': 4, 'ostermond': 4, 'paz': 10, 'pazdziernik': 10, 'pazdziernika': 10, 'paź': 10, 'październik': 10, 'października': 10, 'quintilis': 7, 'qīyuè': 7, 'rebmonat': 2, 'rebmond': 2, 'rugp': 8, 'rugpj': 8, 'rugpjū': 8, 'rugpjūt': 8, 'rugpjūtis': 8, 'rugs': 9, 'rugsė': 9, 'rugsėj': 9, 'rugsėjis': 9, 's': 9, 'saus': 1, 'sausis': 1, 'scheiding': 9, 'scheidung': 9, 'schlachtmond': 11, 'schmelzmond': 2, 'se': 9, 'sep': 9, 'sept': 9, 'septe': 9, 'septem': 9, 'septemb': 9, 'septembar': 9, 'septembe': 9, 'september': 9, 'septembra': 9, 'septembris': 9, 'sextilis': 8, "shí'èryuè": 12, 'shíyuè': 10, 'shíyīyuè': 11, 'sie': 8, 'sierpien': 8, 'sierpień': 8, 'sierpnia': 8, 'spal': 10, 'spalis': 10, 'sporkel': 2, 'spörkel': 2, 'sty': 1, 'styczen': 1, 'styczeń': 1, 'stycznia': 1, 'szept': 9, 'szept.': 9, 'szeptember': 9, 'sìyuè': 4, 'sānyuè': 3, 'taumond': 2, 'v': 5, 'vasa': 2, 'vasar': 2, 'vasaris': 2, 'vi': 6, 'vii': 7, 'viiber': 9, 'viibris': 9, 'viii': 8, 'viiiber': 10, 'viiibris': 10, 'weidemaent': 6, 'weidenmonat': 5, 'weinmonat': 10, 'weinmond': 10, 'wendeling': 11, 'windmonat': 11, 'windmond': 11, 'winnemond': 5, 'wintermonat': 1, 'wintermond': 11, 'wolfsmonat': 1, 'wonnemonat': 5, 'wonnemond': 5, 'wrz': 9, 'wrzesien': 9, 'wrzesień': 9, 'wrzesnia': 9, 'września': 9, 'wǔyuè': 5, 'x': 10, 'xber': 12, 'xbris': 12, 'xi': 11, 'xii': 12, 'zhēngyuè': 1, 'zweiter herbstmond': 10, 'ápr': 4, 'ápr.': 4, 'április': 4, 'èryuè': 2, 'авг': 8, 'август': 8, 'августа': 8, 'апр': 4, 'април': 4, 'априла': 4, 'дец': 12, 'децембар': 12, 'децембра': 12, 'мар': 3, 'март': 3, 'марта': 3, 'мај': 5, 'маја': 5, 'нов': 11, 'новембар': 11, 'новембра': 11, 'окт': 10, 'октобар': 10, 'октобра': 10, 'сеп': 9, 'септембар': 9, 'септембра': 9, 'феб': 2, 'фебруар': 2, 'фебруара': 2, 'јан': 1, 'јануар': 1, 'јануара': 1, 'јул': 7, 'јула': 7, 'јун': 6, 'јуна': 6, '一': 1, '七': 7, '三': 3, '九': 9, '二': 2, '五': 5, '假閏': 13, '八': 8, '六': 6, '十': 10, '十一': 11, '十二': 12, '四': 4, '正': 1}¶
- quality_to_int = {'ber.': 2, 'berekend': 2, 'gesch.': 1, 'geschat': 1}¶
- class gramps.gen.datehandler._date_nl.DateDisplayNL(format=None, blocale=None)[source]¶
Bases:
DateDisplayDutch language date display class.
- calendar = ('', 'juliaans', 'hebreeuws', 'franse republiek', 'persisch', 'islamitisch', 'zweeds')¶
- formats = ('JJJJ-MM-DD (ISO)', 'Numerisch DD/MM/JJ', 'Maand Dag, Jaar', 'Mnd. Dag Jaar', 'Dag Maand Jaar', 'Dag Mnd. Jaar')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- long_months = ('', 'januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december')¶
- short_months = ('', 'jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec')¶
DateHandler (Polish)¶
- class gramps.gen.datehandler._date_pl.DateParserPL(plocale=None)[source]¶
Bases:
DateParser- bce = ['przed naszą erą', 'przed Chrystusem', 'p.n.e.', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
- calendar_to_int = {'franc.': 3, 'francuski republikanski': 3, 'francuski republikański': 3, 'greg.': 0, 'gregorianski': 0, 'gregoriański': 0, 'hebr.': 2, 'hebrajski': 2, 'isl.': 5, 'islamski': 5, 'jul.': 1, 'julianski': 1, 'juliański': 1, 'perski': 4, 's': 6, 'szwedzki': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'ca.': 3, 'circa': 3, 'ok': 3, 'ok.': 3, 'okolo': 3, 'około': 3, 'po': 2, 'przed': 1}¶
- month_to_int = {'-': 0, '10ber': 12, '10bris': 12, '7ber': 9, '7bris': 9, '8ber': 10, '8bris': 10, '9ber': 11, '9bris': 11, 'I': 1, 'II': 2, 'III': 3, 'IV': 4, 'IX': 9, 'V': 5, 'VI': 6, 'VII': 7, 'VIII': 8, 'X': 10, 'XI': 11, 'XII': 12, 'a': 4, 'ap': 4, 'apr': 4, 'apri': 4, 'april': 4, 'aprila': 4, 'aprilis': 4, 'au': 8, 'aug': 8, 'aug.': 8, 'augst': 8, 'augu': 8, 'augus': 8, 'august': 8, 'augusti': 8, 'augustus': 8, 'augusztus': 8, 'avg': 8, 'avgust': 8, 'avgusta': 8, 'bala': 4, 'balan': 4, 'baland': 4, 'balandis': 4, 'beuet': 5, 'birž': 6, 'birže': 6, 'biržel': 6, 'birželis': 6, 'bisemond': 8, 'blumenmond': 5, 'blühmond': 5, 'brachet': 6, 'brachmonat': 6, 'brachmond': 6, 'bärenmonat': 7, 'bāyuè': 8, 'christmonat': 12, 'christmond': 12, 'cze': 6, 'czerwca': 6, 'czerwiec': 6, 'd': 12, 'de': 12, 'dec': 12, 'dec.': 12, 'dece': 12, 'decem': 12, 'decemb': 12, 'decembar': 12, 'decembe': 12, 'december': 12, 'decembra': 12, 'decembris': 12, 'dritter herbstmond': 11, 'dustermond': 12, 'eismonat': 1, 'eismond': 1, 'engelmonat': 9, 'erntemond': 8, 'ernting': 8, 'erster herbstmond': 9, 'f': 2, 'fe': 2, 'feb': 2, 'feb.': 2, 'feber': 2, 'februar': 2, 'februara': 2, 'februari': 2, 'februarii': 2, 'februaris': 2, 'februarius': 2, 'february': 2, 'február': 2, 'frühlingsmonat': 3, 'gegu': 5, 'geguž': 5, 'gegužis': 5, 'gegužė': 5, 'gilbhard': 10, 'gilbhart': 10, 'grasmond': 4, 'gru': 12, 'grudnia': 12, 'grudzien': 12, 'grudzień': 12, 'gruo': 12, 'gruod': 12, 'gruodis': 12, 'hartmonat': 1, 'hartmond': 1, 'hartung': 1, 'heiligenmonat': 12, 'heilmond': 12, 'herbstmonat': 9, 'heuert': 7, 'heuet': 7, 'heumonat': 7, 'heumond': 7, 'hintester': 2, 'holzing': 9, 'holzmond': 9, 'honigmonat': 7, 'honigmond': 7, 'hornung': 2, 'i': 1, 'ianarius': 1, 'ianuary': 1, 'ii': 2, 'iii': 3, 'iulii': 7, 'iulius': 7, 'iuly': 7, 'iunij': 6, 'iunius': 6, 'iuny': 6, 'iv': 4, 'ix': 9, 'ixber': 11, 'ixbris': 11, 'j': 1, 'ja': 1, 'jan': 1, 'jan.': 1, 'januar': 1, 'januara': 1, 'januari': 1, 'januarii': 1, 'januaris': 1, 'januarius': 1, 'january': 1, 'január': 1, 'jenner': 1, 'jiǎ rùn yùe': 13, 'jiǔyuè': 9, 'johannismond': 6, 'ju': 6, 'jul': 7, 'jula': 7, 'juli': 7, 'julii': 7, 'julius': 7, 'julmond': 12, 'july': 7, 'jun': 6, 'juna': 6, 'june': 6, 'juni': 6, 'junii': 6, 'junij': 6, 'junius': 6, 'juny': 6, 'jän': 1, 'jänner': 1, 'júl': 7, 'júl.': 7, 'július': 7, 'jún': 6, 'jún.': 6, 'június': 6, 'kovas': 3, 'kwi': 4, 'kwiecien': 4, 'kwiecień': 4, 'kwietnia': 4, 'lapk': 11, 'lapkr': 11, 'lapkri': 11, 'lapkrit': 11, 'lapkritis': 11, 'lassmonat': 1, 'launing': 4, 'lenzing': 3, 'lenzmonat': 3, 'lenzmond': 3, 'letzter Wintermonat': 2, 'liep': 7, 'liepa': 7, 'lip': 7, 'lipca': 7, 'lipiec': 7, 'lis': 11, 'listopad': 11, 'listopada': 11, 'liùyuè': 6, 'lut': 2, 'lutego': 2, 'luty': 2, 'm': 3, 'ma': 3, 'maa': 3, 'maii': 5, 'maij': 5, 'maius': 5, 'maj': 5, 'maja': 5, 'majus': 5, 'mar': 3, 'marc': 3, 'marca': 3, 'march': 3, 'mars': 3, 'mart': 3, 'marta': 3, 'martii': 3, 'martij': 3, 'martius': 3, 'marty': 3, 'marzec': 3, 'may': 5, 'mensis': 1, 'merz': 3, 'mrt': 3, 'máj': 5, 'máj.': 5, 'május': 5, 'márc': 3, 'márc.': 3, 'március': 3, 'n': 11, 'narrenmond': 2, 'nebelmond': 11, 'nebelung': 11, 'no': 11, 'nov': 11, 'nov.': 11, 'nove': 11, 'novem': 11, 'novemb': 11, 'novembar': 11, 'novembe': 11, 'november': 11, 'novembra': 11, 'novembris': 11, 'o': 10, 'oc': 10, 'oct': 10, 'octo': 10, 'octob': 10, 'octobe': 10, 'october': 10, 'octobris': 10, 'okt': 10, 'okt.': 10, 'okto': 10, 'oktob': 10, 'oktobar': 10, 'oktobe': 10, 'oktober': 10, 'oktobra': 10, 'október': 10, 'ostermonat': 4, 'ostermond': 4, 'paz': 10, 'pazdziernik': 10, 'pazdziernika': 10, 'paź': 10, 'październik': 10, 'października': 10, 'quintilis': 7, 'qīyuè': 7, 'rebmonat': 2, 'rebmond': 2, 'rugp': 8, 'rugpj': 8, 'rugpjū': 8, 'rugpjūt': 8, 'rugpjūtis': 8, 'rugs': 9, 'rugsė': 9, 'rugsėj': 9, 'rugsėjis': 9, 's': 9, 'saus': 1, 'sausis': 1, 'scheiding': 9, 'scheidung': 9, 'schlachtmond': 11, 'schmelzmond': 2, 'se': 9, 'sep': 9, 'sept': 9, 'septe': 9, 'septem': 9, 'septemb': 9, 'septembar': 9, 'septembe': 9, 'september': 9, 'septembra': 9, 'septembris': 9, 'sextilis': 8, "shí'èryuè": 12, 'shíyuè': 10, 'shíyīyuè': 11, 'sie': 8, 'sierpien': 8, 'sierpień': 8, 'sierpnia': 8, 'spal': 10, 'spalis': 10, 'sporkel': 2, 'spörkel': 2, 'sty': 1, 'styczen': 1, 'styczeń': 1, 'stycznia': 1, 'szept': 9, 'szept.': 9, 'szeptember': 9, 'sìyuè': 4, 'sānyuè': 3, 'taumond': 2, 'v': 5, 'vasa': 2, 'vasar': 2, 'vasaris': 2, 'vi': 6, 'vii': 7, 'viiber': 9, 'viibris': 9, 'viii': 8, 'viiiber': 10, 'viiibris': 10, 'weidemaent': 6, 'weidenmonat': 5, 'weinmonat': 10, 'weinmond': 10, 'wendeling': 11, 'windmonat': 11, 'windmond': 11, 'winnemond': 5, 'wintermonat': 1, 'wintermond': 11, 'wolfsmonat': 1, 'wonnemonat': 5, 'wonnemond': 5, 'wrz': 9, 'wrzesien': 9, 'wrzesień': 9, 'wrzesnia': 9, 'września': 9, 'wǔyuè': 5, 'x': 10, 'xber': 12, 'xbris': 12, 'xi': 11, 'xii': 12, 'zhēngyuè': 1, 'zweiter herbstmond': 10, 'ápr': 4, 'ápr.': 4, 'április': 4, 'èryuè': 2, 'авг': 8, 'август': 8, 'августа': 8, 'апр': 4, 'април': 4, 'априла': 4, 'дец': 12, 'децембар': 12, 'децембра': 12, 'мар': 3, 'март': 3, 'марта': 3, 'мај': 5, 'маја': 5, 'нов': 11, 'новембар': 11, 'новембра': 11, 'окт': 10, 'октобар': 10, 'октобра': 10, 'сеп': 9, 'септембар': 9, 'септембра': 9, 'феб': 2, 'фебруар': 2, 'фебруара': 2, 'јан': 1, 'јануар': 1, 'јануара': 1, 'јул': 7, 'јула': 7, 'јун': 6, 'јуна': 6, '一': 1, '七': 7, '三': 3, '九': 9, '二': 2, '五': 5, '假閏': 13, '八': 8, '六': 6, '十': 10, '十一': 11, '十二': 12, '四': 4, '正': 1}¶
- quality_to_int = {'obl.': 2, 'obliczony': 2, 'szac.': 1, 'szacowany': 1}¶
- class gramps.gen.datehandler._date_pl.DateDisplayPL(format=None, blocale=None)[source]¶
Bases:
DateDisplayPolish language date display class.
- calendar = ('', 'juliański', 'hebrajski', 'francuski republikański', 'perski', 'islamski', 'swedish')¶
- formats = ('RRRR-MM-DD (ISO)', 'Numeryczny', 'Miesiąc Dzień, Rok', 'Miesiąc.Dzień.Rok', 'Dzień Miesiąc Rok', 'Dzień MieRzym Rok')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- long_months = ('', 'Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień')¶
- roman_months = ('', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII')¶
- short_months = ('', 'Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru')¶
DateHandler (Portuguese)¶
- class gramps.gen.datehandler._date_pt.DateParserPT(plocale=None)[source]¶
Bases:
DateParser- calendar_to_int = {'g': 0, 'gregoriano': 0, 'h': 2, 'hebreu': 2, 'i': 5, 'islâmico': 5, 'j': 1, 'juliano': 1, 'p': 4, 'persa': 4, 'r': 3, 'revolucionário': 3, 's': 6, 'swedish': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'ant': 1, 'ant.': 1, 'antes': 1, 'antes de': 1, 'apr': 3, 'apr.': 3, 'aprox': 3, 'aprox.': 3, 'até': 1, 'c.': 3, 'ca': 3, 'ca.': 3, 'cerca de': 3, 'dep': 2, 'dep.': 2, 'depois': 2, 'depois de': 2, 'por volta': 3, 'por volta de': 3, 'pvd.': 3}¶
- quality_to_int = {'calc': 2, 'calc.': 2, 'calculado': 2, 'est': 1, 'est.': 1, 'estimado': 1}¶
- class gramps.gen.datehandler._date_pt.DateDisplayPT(format=None, blocale=None)[source]¶
Bases:
DateDisplayPortuguese language date display class.
- calendar = ('', 'Juliano', 'Hebreu', 'Revolucionário', 'Persa', 'Islâmico', 'Sueco')¶
- formats = ('AAAA-MM-DD (ISO)', 'Numérica', 'Mês Dia, Ano', 'MÊS Dia, Ano', 'Dia Mês, Ano', 'Dia MÊS, Ano')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- long_months = ('', 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro')¶
- short_months = ('', 'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez')¶
DateHandler (Russian)¶
- class gramps.gen.datehandler._date_ru.DateParserRU(plocale=None)[source]¶
Bases:
DateParser- bce = ['до нашей эры', 'до н. э.', 'до н.э.', 'до н э', 'до нэ', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'до': 1, 'ок': 3, 'ок.': 3, 'около': 3, 'п': 2, 'п.': 2, 'перед': 1, 'по': 1, 'после': 2, 'приб': 3, 'приб.': 3, 'прибл': 3, 'прибл.': 3, 'приблизительно': 3, 'прим': 3, 'прим.': 3, 'примерно': 3, 'с': 2}¶
- quality_to_int = {'выч': 2, 'выч.': 2, 'вычисл': 2, 'вычисл.': 2, 'вычислено': 2, 'оц': 1, 'оц.': 1, 'оцен': 1, 'оцен.': 1, 'оценено': 1}¶
- class gramps.gen.datehandler._date_ru.DateDisplayRU(format=None, blocale=None)[source]¶
Bases:
DateDisplayRussian language date display class.
- dd_dformat05(date_val, inflect, short_months)[source]¶
day month_abbreviation year – for Russian locale
- display(date)¶
Return a text string representing the date, according to the format.
DateHandler (Slovak)¶
- class gramps.gen.datehandler._date_sk.DateParserSK(plocale=None)[source]¶
Bases:
DateParser- calendar_to_int = {'g': 0, 'gregoriánsky': 0, 'h': 2, 'hebrejský': 2, 'i': 5, 'islamský': 5, 'j': 1, 'juliánsky': 1, 'p': 4, 'perzský': 4, 'r': 3, 'republikánsky': 3, 's': 6, 'švédsky': 6}¶
- init_strings()[source]¶
This method compiles regular expression strings for matching dates.
Most of the re’s in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don’t need to be repeatedly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method.
See also
DateParserRUas an example.
- modifier_to_int = {'asi': 3, 'do': 1, 'okolo': 3, 'po': 2, 'pred': 1, 'pribl.': 3}¶
- quality_to_int = {'odh.': 1, 'odhadovaný': 1, 'vyp.': 2, 'vypočítaný': 2}¶
- class gramps.gen.datehandler._date_sk.DateDisplaySK(format=None, blocale=None)[source]¶
Bases:
DateDisplaySlovak language date display class.
- calendar = ('', 'juliánsky', 'hebrejský', 'republikánsky', 'perzský', 'islamský', 'švédsky')¶
- formats = ('RRRR-MM-DD (ISO)', 'numerický', 'Mesiac Deň, Rok', 'MES Deň, Rok', 'Deň, Mesiac, Rok', 'Deň MES Rok')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- long_months = ('', 'január', 'február', 'marec', 'apríl', 'máj', 'jún', 'júl', 'august', 'september', 'október', 'november', 'december')¶
- short_months = ('', 'jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sep', 'okt', 'nov', 'dec')¶
DateHandler (Slovenian)¶
- class gramps.gen.datehandler._date_sl.DateParserSL(plocale=None)[source]¶
Bases:
DateParserConverts a text string into a Date object
- bce = ['pred našim štetjem', 'pred Kristusom', 'p.n.š.', 'p. n. š.', 'pr.Kr.', 'pr. Kr.', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
- modifier_to_int = {'ca.': 3, 'cca': 3, 'cca.': 3, 'circa': 3, 'ok.': 3, 'okoli': 3, 'okr.': 3, 'okrog': 3, 'po': 2, 'pr.': 1, 'pred': 1, 'pribl.': 3, 'približno': 3, '~': 3}¶
- quality_to_int = {'izrač.': 2, 'izračunano': 2, 'oc.': 1, 'ocenjeno': 1, 'po izračunu': 2, 'po oceni': 1}¶
- class gramps.gen.datehandler._date_sl.DateDisplaySL(format=None, blocale=None)[source]¶
Bases:
DateDisplaySlovenian language date display class.
- display(date)¶
Return a text string representing the date, according to the format.
DateHandler (Serbian)¶
- class gramps.gen.datehandler._date_sr.DateParserSR(plocale=None)[source]¶
Bases:
DateParserConverts a text string into a Date object
- bce = ['пре нове ере', 'пре Христа', 'п.н.е.pre nove ere', 'pre Hrista', 'p.n.e.', 'B.C.E.', 'B.C.E', 'BCE', 'B.C.', 'B.C', 'BC']¶
- calendar_to_int = {'franc.': 3, 'francuski republikanski': 3, 'greg.': 0, 'gregorijanski': 0, 'hebr.': 2, 'hebrejski': 2, 'isl.': 5, 'islamski': 5, 'jul.': 1, 'julijanski': 1, 'pers. ': 4, 'persijski': 4, 'šv.': 6, 'švedski': 6, 'грег.': 0, 'грегоријански': 0, 'исл.': 5, 'исламски': 5, 'перс. ': 4, 'персијски': 4, 'франц.': 3, 'француски републикански': 3, 'хебр.': 2, 'хебрејски': 2, 'шв': 6, 'шведски': 6, 'јул.': 1, 'јулијански': 1}¶
- modifier_to_int = {'cca': 3, 'oko': 3, 'posle': 2, 'pre': 1, 'око': 3, 'после': 2, 'пре': 1}¶
- month_to_int = {'-': 0, '10ber': 12, '10bris': 12, '7ber': 9, '7bris': 9, '8ber': 10, '8bris': 10, '9ber': 11, '9bris': 11, 'I': 1, 'II': 2, 'III': 3, 'IV': 4, 'IX': 9, 'V': 5, 'VI': 6, 'VII': 7, 'VIII': 8, 'X': 10, 'XI': 11, 'XII': 12, 'a': 4, 'ap': 4, 'apr': 4, 'apri': 4, 'april': 4, 'aprila': 4, 'aprilis': 4, 'au': 8, 'aug': 8, 'aug.': 8, 'augst': 8, 'augu': 8, 'augus': 8, 'august': 8, 'augusti': 8, 'augustus': 8, 'augusztus': 8, 'avg': 8, 'avgust': 8, 'avgusta': 8, 'bala': 4, 'balan': 4, 'baland': 4, 'balandis': 4, 'beuet': 5, 'birž': 6, 'birže': 6, 'biržel': 6, 'birželis': 6, 'bisemond': 8, 'blumenmond': 5, 'blühmond': 5, 'brachet': 6, 'brachmonat': 6, 'brachmond': 6, 'bärenmonat': 7, 'bāyuè': 8, 'christmonat': 12, 'christmond': 12, 'cze': 6, 'czerwca': 6, 'czerwiec': 6, 'd': 12, 'de': 12, 'dec': 12, 'dec.': 12, 'dece': 12, 'decem': 12, 'decemb': 12, 'decembar': 12, 'decembe': 12, 'december': 12, 'decembra': 12, 'decembris': 12, 'dritter herbstmond': 11, 'dustermond': 12, 'eismonat': 1, 'eismond': 1, 'engelmonat': 9, 'erntemond': 8, 'ernting': 8, 'erster herbstmond': 9, 'f': 2, 'fe': 2, 'feb': 2, 'feb.': 2, 'feber': 2, 'februar': 2, 'februara': 2, 'februari': 2, 'februarii': 2, 'februaris': 2, 'februarius': 2, 'february': 2, 'február': 2, 'frühlingsmonat': 3, 'gegu': 5, 'geguž': 5, 'gegužis': 5, 'gegužė': 5, 'gilbhard': 10, 'gilbhart': 10, 'grasmond': 4, 'gru': 12, 'grudnia': 12, 'grudzien': 12, 'grudzień': 12, 'gruo': 12, 'gruod': 12, 'gruodis': 12, 'hartmonat': 1, 'hartmond': 1, 'hartung': 1, 'heiligenmonat': 12, 'heilmond': 12, 'herbstmonat': 9, 'heuert': 7, 'heuet': 7, 'heumonat': 7, 'heumond': 7, 'hintester': 2, 'holzing': 9, 'holzmond': 9, 'honigmonat': 7, 'honigmond': 7, 'hornung': 2, 'i': 1, 'ianarius': 1, 'ianuary': 1, 'ii': 2, 'iii': 3, 'iulii': 7, 'iulius': 7, 'iuly': 7, 'iunij': 6, 'iunius': 6, 'iuny': 6, 'iv': 4, 'ix': 9, 'ixber': 11, 'ixbris': 11, 'j': 1, 'ja': 1, 'jan': 1, 'jan.': 1, 'januar': 1, 'januara': 1, 'januari': 1, 'januarii': 1, 'januaris': 1, 'januarius': 1, 'january': 1, 'január': 1, 'jenner': 1, 'jiǎ rùn yùe': 13, 'jiǔyuè': 9, 'johannismond': 6, 'ju': 6, 'jul': 7, 'jula': 7, 'juli': 7, 'julii': 7, 'julius': 7, 'julmond': 12, 'july': 7, 'jun': 6, 'juna': 6, 'june': 6, 'juni': 6, 'junii': 6, 'junij': 6, 'junius': 6, 'juny': 6, 'jän': 1, 'jänner': 1, 'júl': 7, 'júl.': 7, 'július': 7, 'jún': 6, 'jún.': 6, 'június': 6, 'kovas': 3, 'kwi': 4, 'kwiecien': 4, 'kwiecień': 4, 'kwietnia': 4, 'lapk': 11, 'lapkr': 11, 'lapkri': 11, 'lapkrit': 11, 'lapkritis': 11, 'lassmonat': 1, 'launing': 4, 'lenzing': 3, 'lenzmonat': 3, 'lenzmond': 3, 'letzter Wintermonat': 2, 'liep': 7, 'liepa': 7, 'lip': 7, 'lipca': 7, 'lipiec': 7, 'lis': 11, 'listopad': 11, 'listopada': 11, 'liùyuè': 6, 'lut': 2, 'lutego': 2, 'luty': 2, 'm': 3, 'ma': 3, 'maa': 3, 'maii': 5, 'maij': 5, 'maius': 5, 'maj': 5, 'maja': 5, 'majus': 5, 'mar': 3, 'marc': 3, 'marca': 3, 'march': 3, 'mars': 3, 'mart': 3, 'marta': 3, 'martii': 3, 'martij': 3, 'martius': 3, 'marty': 3, 'marzec': 3, 'may': 5, 'mensis': 1, 'merz': 3, 'mrt': 3, 'máj': 5, 'máj.': 5, 'május': 5, 'márc': 3, 'márc.': 3, 'március': 3, 'n': 11, 'narrenmond': 2, 'nebelmond': 11, 'nebelung': 11, 'no': 11, 'nov': 11, 'nov.': 11, 'nove': 11, 'novem': 11, 'novemb': 11, 'novembar': 11, 'novembe': 11, 'november': 11, 'novembra': 11, 'novembris': 11, 'o': 10, 'oc': 10, 'oct': 10, 'octo': 10, 'octob': 10, 'octobe': 10, 'october': 10, 'octobris': 10, 'okt': 10, 'okt.': 10, 'okto': 10, 'oktob': 10, 'oktobar': 10, 'oktobe': 10, 'oktober': 10, 'oktobra': 10, 'október': 10, 'ostermonat': 4, 'ostermond': 4, 'paz': 10, 'pazdziernik': 10, 'pazdziernika': 10, 'paź': 10, 'październik': 10, 'października': 10, 'quintilis': 7, 'qīyuè': 7, 'rebmonat': 2, 'rebmond': 2, 'rugp': 8, 'rugpj': 8, 'rugpjū': 8, 'rugpjūt': 8, 'rugpjūtis': 8, 'rugs': 9, 'rugsė': 9, 'rugsėj': 9, 'rugsėjis': 9, 's': 9, 'saus': 1, 'sausis': 1, 'scheiding': 9, 'scheidung': 9, 'schlachtmond': 11, 'schmelzmond': 2, 'se': 9, 'sep': 9, 'sept': 9, 'septe': 9, 'septem': 9, 'septemb': 9, 'septembar': 9, 'septembe': 9, 'september': 9, 'septembra': 9, 'septembris': 9, 'sextilis': 8, "shí'èryuè": 12, 'shíyuè': 10, 'shíyīyuè': 11, 'sie': 8, 'sierpien': 8, 'sierpień': 8, 'sierpnia': 8, 'spal': 10, 'spalis': 10, 'sporkel': 2, 'spörkel': 2, 'sty': 1, 'styczen': 1, 'styczeń': 1, 'stycznia': 1, 'szept': 9, 'szept.': 9, 'szeptember': 9, 'sìyuè': 4, 'sānyuè': 3, 'taumond': 2, 'v': 5, 'vasa': 2, 'vasar': 2, 'vasaris': 2, 'vi': 6, 'vii': 7, 'viiber': 9, 'viibris': 9, 'viii': 8, 'viiiber': 10, 'viiibris': 10, 'weidemaent': 6, 'weidenmonat': 5, 'weinmonat': 10, 'weinmond': 10, 'wendeling': 11, 'windmonat': 11, 'windmond': 11, 'winnemond': 5, 'wintermonat': 1, 'wintermond': 11, 'wolfsmonat': 1, 'wonnemonat': 5, 'wonnemond': 5, 'wrz': 9, 'wrzesien': 9, 'wrzesień': 9, 'wrzesnia': 9, 'września': 9, 'wǔyuè': 5, 'x': 10, 'xber': 12, 'xbris': 12, 'xi': 11, 'xii': 12, 'zhēngyuè': 1, 'zweiter herbstmond': 10, 'ápr': 4, 'ápr.': 4, 'április': 4, 'èryuè': 2, 'авг': 8, 'август': 8, 'августа': 8, 'апр': 4, 'април': 4, 'априла': 4, 'дец': 12, 'децембар': 12, 'децембра': 12, 'мар': 3, 'март': 3, 'марта': 3, 'мај': 5, 'маја': 5, 'нов': 11, 'новембар': 11, 'новембра': 11, 'окт': 10, 'октобар': 10, 'октобра': 10, 'сеп': 9, 'септембар': 9, 'септембра': 9, 'феб': 2, 'фебруар': 2, 'фебруара': 2, 'јан': 1, 'јануар': 1, 'јануара': 1, 'јул': 7, 'јула': 7, 'јун': 6, 'јуна': 6, '一': 1, '七': 7, '三': 3, '九': 9, '二': 2, '五': 5, '假閏': 13, '八': 8, '六': 6, '十': 10, '十一': 11, '十二': 12, '四': 4, '正': 1}¶
- quality_to_int = {'izr.': 2, 'izračunato': 2, 'pro.': 1, 'procenjeno': 1, 'изр.': 2, 'израчунато': 2, 'про.': 1, 'процењено': 1}¶
- class gramps.gen.datehandler._date_sr.DateDisplaySR_Latin(format=None, blocale=None)[source]¶
Bases:
DateDisplaySR_BaseSerbian (Latin) date display class
- calendar = ('', 'julijanski', 'hebrejski', 'francuski republikanski', 'persijski', 'islamski', 'švedski')¶
- formats = ('GGGG-MM-DD (ISO-8601)', 'Numerički (DD.MM.GGGG.)', 'D. MMM GGGG.', 'D. Mesec GGGG.', 'D. Rb GGGG.')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().
- long_months = ('', 'januara', 'februara', 'marta', 'aprila', 'maja', 'juna', 'jula', 'avgusta', 'septembra', 'oktobra', 'novembra', 'decembra')¶
- short_months = ('', 'jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec')¶
DateHandler (Swedish)¶
- class gramps.gen.datehandler._date_sv.DateParserSv(plocale=None)[source]¶
Bases:
DateParserConvert a text string into a Date object, expecting a date notation in the swedish language. If the date cannot be converted, the text string is assigned.
- bce = ['f Kr']¶
- calendar_to_int = {'f': 3, 'fransk': 3, 'fransk republikansk': 3, 'g': 0, 'gregoriansk ': 0, 'h': 2, 'hebreisk': 2, 'i': 5, 'islamisk': 5, 'j': 1, 'juliansk': 1, 'muslimsk': 5, 'p': 4, 'persisk': 4, 's': 6, 'svensk': 6}¶
- modifier_to_int = {'c:a': 3, 'ca': 3, 'efter': 2, 'före': 1, 'innan': 1, 'omkring': 3}¶
- quality_to_int = {'bedömd': 1, 'bedömt': 1, 'beräknad': 2, 'beräknat': 2, 'uppskattad': 1, 'uppskattat': 1}¶
- class gramps.gen.datehandler._date_sv.DateDisplaySv(format=None, blocale=None)[source]¶
Bases:
DateDisplaySwedish language date display class.
- display(date)¶
Return a text string representing the date, according to the format.
- formats = ('ÅÅÅÅ-MM-DD (ISO)', 'År/mån/dag', 'År månad dag', 'År mån dag')¶
Note
Will be overridden if a locale-specific date displayer exists.
If your localized
_display_calendar()/_display_gregorian()are overridden, you should override the whole formats list according to your own formats, and you need not localize the format names here. Thisformatsmust agree with_display_calendar()/_display_gregorian().