Module gedcom.tags

GEDCOM tags.

Expand source code
# -*- coding: utf-8 -*-

# Python GEDCOM Parser
#
# Copyright (C) 2018 Damon Brodie (damon.brodie at gmail.com)
# Copyright (C) 2018-2019 Nicklas Reincke (contact at reynke.com)
# Copyright (C) 2016 Andreas Oberritter
# Copyright (C) 2012 Madeleine Price Ball
# Copyright (C) 2005 Daniel Zappala (zappala at cs.byu.edu)
# Copyright (C) 2005 Brigham Young University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Further information about the license: http://www.gnu.org/licenses/gpl-2.0.html

"""
GEDCOM tags.
"""

GEDCOM_PROGRAM_DEFINED_TAG_MREL = "_MREL"
"""Value: `_MREL`

Relationship to a mother."""

GEDCOM_PROGRAM_DEFINED_TAG_FREL = "_FREL"
"""Value: `_FREL`

Relationship to a father."""

GEDCOM_TAG_BIRTH = "BIRT"
"""Value: `BIRT`

The event of entering into life."""

GEDCOM_TAG_BURIAL = "BURI"
"""Value: `BURI`

The event of the proper disposing of the mortal remains of a deceased person."""

GEDCOM_TAG_CENSUS = "CENS"
"""Value: `CENS`.

The event of the periodic count of the population for a designated locality, such as a national or state Census."""

GEDCOM_TAG_CHANGE = "CHAN"
"""Value: `CHAN`

Indicates a change, correction, or modification. Typically used in connection
with a `gedcom.tags.GEDCOM_TAG_DATE` to specify when a change in information occurred."""

GEDCOM_TAG_CHILD = "CHIL"
"""Value: `CHIL`

The natural, adopted, or sealed (LDS) child of a father and a mother."""

GEDCOM_TAG_CONCATENATION = "CONC"
"""Value: `CONC`

An indicator that additional data belongs to the superior value. The information from the `CONC` value is to
be connected to the value of the superior preceding line without a space and without a carriage return and/or
new line character. Values that are split for a `CONC` tag must always be split at a non-space. If the value is
split on a space the space will be lost when concatenation takes place. This is because of the treatment that
spaces get as a GEDCOM delimiter, many GEDCOM values are trimmed of trailing spaces and some systems look for
the first non-space starting after the tag to determine the beginning of the value."""

GEDCOM_TAG_CONTINUED = "CONT"
"""Value: `CONT`

An indicator that additional data belongs to the superior value. The information from the `CONT` value is to be
connected to the value of the superior preceding line with a carriage return and/or new line character.
Leading spaces could be important to the formatting of the resultant text. When importing values from `CONT` lines
the reader should assume only one delimiter character following the `CONT` tag. Assume that the rest of the leading
spaces are to be a part of the value."""

GEDCOM_TAG_DATE = "DATE"
"""Value: `DATE`

The time of an event in a calendar format."""

GEDCOM_TAG_DEATH = "DEAT"
"""Value: `DEAT`

The event when mortal life terminates."""

GEDCOM_TAG_FAMILY = "FAM"
"""Value: `FAM`.

Identifies a legal, common law, or other customary relationship of man and woman and their children,
if any, or a family created by virtue of the birth of a child to its biological father and mother."""

GEDCOM_TAG_FAMILY_CHILD = "FAMC"
"""Value: `FAMC`

Identifies the family in which an individual appears as a child."""

GEDCOM_TAG_FAMILY_SPOUSE = "FAMS"
"""Value: `FAMS`

Identifies the family in which an individual appears as a spouse."""

GEDCOM_TAG_FILE = "FILE"
"""Value: `FILE`

An information storage place that is ordered and arranged for preservation and reference."""

GEDCOM_TAG_GIVEN_NAME = "GIVN"
"""Value: `GIVN`

A given or earned name used for official identification of a person."""

GEDCOM_TAG_HUSBAND = "HUSB"
"""Value: `HUSB`

An individual in the family role of a married man or father."""

GEDCOM_TAG_INDIVIDUAL = "INDI"
"""Value: `INDI`

A person."""

GEDCOM_TAG_MARRIAGE = "MARR"
"""Value: `MARR`.

A legal, common-law, or customary event of creating a family unit of a man and a woman as husband and wife."""

GEDCOM_TAG_NAME = "NAME"
"""Value: `NAME`.

A word or combination of words used to help identify an individual, title, or other item.
More than one NAME line should be used for people who were known by multiple names."""

GEDCOM_TAG_OBJECT = "OBJE"
"""Value: `OBJE`

Pertaining to a grouping of attributes used in describing something. Usually referring to the data required
to represent a multimedia object, such an audio recording, a photograph of a person, or an image of a document."""

GEDCOM_TAG_OCCUPATION = "OCCU"
"""Value: `OCCU`

The type of work or profession of an individual."""

GEDCOM_TAG_PLACE = "PLAC"
"""Value: `PLAC`

A jurisdictional name to identify the place or location of an event."""

GEDCOM_TAG_PRIVATE = "PRIV"
"""Value: `PRIV`

Flag for private address or event."""

GEDCOM_TAG_SEX = "SEX"
"""Value: `SEX`

Indicates the sex of an individual--male or female."""

GEDCOM_TAG_SOURCE = "SOUR"
"""Value: `SOUR`

The initial or original material from which information was obtained."""

GEDCOM_TAG_SURNAME = "SURN"
"""Value: `SURN`

A family name passed on or used by members of a family."""

GEDCOM_TAG_WIFE = "WIFE"
"""Value: `WIFE`

An individual in the role as a mother and/or married woman."""

Global variables

var GEDCOM_PROGRAM_DEFINED_TAG_FREL

Value: _FREL

Relationship to a father.

var GEDCOM_PROGRAM_DEFINED_TAG_MREL

Value: _MREL

Relationship to a mother.

var GEDCOM_TAG_BIRTH

Value: BIRT

The event of entering into life.

var GEDCOM_TAG_BURIAL

Value: BURI

The event of the proper disposing of the mortal remains of a deceased person.

var GEDCOM_TAG_CENSUS

Value: CENS.

The event of the periodic count of the population for a designated locality, such as a national or state Census.

var GEDCOM_TAG_CHANGE

Value: CHAN

Indicates a change, correction, or modification. Typically used in connection with a GEDCOM_TAG_DATE to specify when a change in information occurred.

var GEDCOM_TAG_CHILD

Value: CHIL

The natural, adopted, or sealed (LDS) child of a father and a mother.

var GEDCOM_TAG_CONCATENATION

Value: CONC

An indicator that additional data belongs to the superior value. The information from the CONC value is to be connected to the value of the superior preceding line without a space and without a carriage return and/or new line character. Values that are split for a CONC tag must always be split at a non-space. If the value is split on a space the space will be lost when concatenation takes place. This is because of the treatment that spaces get as a GEDCOM delimiter, many GEDCOM values are trimmed of trailing spaces and some systems look for the first non-space starting after the tag to determine the beginning of the value.

var GEDCOM_TAG_CONTINUED

Value: CONT

An indicator that additional data belongs to the superior value. The information from the CONT value is to be connected to the value of the superior preceding line with a carriage return and/or new line character. Leading spaces could be important to the formatting of the resultant text. When importing values from CONT lines the reader should assume only one delimiter character following the CONT tag. Assume that the rest of the leading spaces are to be a part of the value.

var GEDCOM_TAG_DATE

Value: DATE

The time of an event in a calendar format.

var GEDCOM_TAG_DEATH

Value: DEAT

The event when mortal life terminates.

var GEDCOM_TAG_FAMILY

Value: FAM.

Identifies a legal, common law, or other customary relationship of man and woman and their children, if any, or a family created by virtue of the birth of a child to its biological father and mother.

var GEDCOM_TAG_FAMILY_CHILD

Value: FAMC

Identifies the family in which an individual appears as a child.

var GEDCOM_TAG_FAMILY_SPOUSE

Value: FAMS

Identifies the family in which an individual appears as a spouse.

var GEDCOM_TAG_FILE

Value: FILE

An information storage place that is ordered and arranged for preservation and reference.

var GEDCOM_TAG_GIVEN_NAME

Value: GIVN

A given or earned name used for official identification of a person.

var GEDCOM_TAG_HUSBAND

Value: HUSB

An individual in the family role of a married man or father.

var GEDCOM_TAG_INDIVIDUAL

Value: INDI

A person.

var GEDCOM_TAG_MARRIAGE

Value: MARR.

A legal, common-law, or customary event of creating a family unit of a man and a woman as husband and wife.

var GEDCOM_TAG_NAME

Value: NAME.

A word or combination of words used to help identify an individual, title, or other item. More than one NAME line should be used for people who were known by multiple names.

var GEDCOM_TAG_OBJECT

Value: OBJE

Pertaining to a grouping of attributes used in describing something. Usually referring to the data required to represent a multimedia object, such an audio recording, a photograph of a person, or an image of a document.

var GEDCOM_TAG_OCCUPATION

Value: OCCU

The type of work or profession of an individual.

var GEDCOM_TAG_PLACE

Value: PLAC

A jurisdictional name to identify the place or location of an event.

var GEDCOM_TAG_PRIVATE

Value: PRIV

Flag for private address or event.

var GEDCOM_TAG_SEX

Value: SEX

Indicates the sex of an individual–male or female.

var GEDCOM_TAG_SOURCE

Value: SOUR

The initial or original material from which information was obtained.

var GEDCOM_TAG_SURNAME

Value: SURN

A family name passed on or used by members of a family.

var GEDCOM_TAG_WIFE

Value: WIFE

An individual in the role as a mother and/or married woman.