GEDCOM/CONT-Tag

From GenWiki

Jump to: navigation, search

Contents


This page is an English extract of the German page GEDCOM/CONT-Tag [1], for full details see the German page.

Name and Meaning

Tag

CONT

Meaning

CONTINUED

Usage

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.

Formal Description of Permissible Values

Base: GEDCOM Standard Draft 5.5.1

CONT {CONTINUED}:=

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 lines are limited to 255 characters. However, the CONCatenation or CONTinuation tags can be used to expand a field beyond this limit. CONT line implies that a new line should appear to preserve formatting. CONC implies concatenation to the previous line without a new line. This is used so that a text note or description can be processed (word wrapped) in a text window without fixed carriage returns. The CONT and CONC tags are being used to extend specified textual values.

Statement of Grammar Rules

Long values can be broken into shorter GEDCOM lines by using a subordinate CONC or CONT tag. The CONC tag assumes that the accompanying subordinate value is concatenated to the previous line value without saving the carriage return prior to the line terminator. If a concatenated line is broken at a space, then the space must be carried over to the next line. The CONT assumes that the subordinate line value is concatenated to the previous line, after inserting a carriage return.

Example from the GEDCOM standard:

...
1 NOTE This is a NOTE field that is
2 CONT continued on the next line
...

Agreements for CONT

The agreements for CONT are derived from the discussion on the Gedcom-L. They were decided by a vote of the program authors of the list.

Export of CONT

E1 Export of Line Feeds

A data content must be wrapped only by the tab CONT to a continuation line where the data content has a line feed. This applies in particular also at the beginning of the data content. Therefor, for example, the output

N NOTE
N+1 CONT TEXT

is only permitted if the data content begins with a line feed and the following text. The parts of the data content, separated by line feed, may also be wrapped using the tag CONC in compliance with the agreements for CONC.

E2 Treatment of Blank Lines at the End of a Data Content

The agreement E1 also applies to the end of the data content. If there are trailing line feeds, a corresponding number of CONT lines without line value will be outputted.

E3 Optional Setting of Export

As a selectable option by the user, leading and/or trailing line feeds may be removed during export.

Import of CONT

I1 Conversion of CONT in Line Feeds

During import all the tags CONT must be converted to a line feed.


I2 Optional Setting of Import

As a selectable option by the user, leading and/or trailing empty lines may be removed during export.

Personal tools
GenWiki-internal
In other languages