Korin API

V70ToV551

Table of Contents

Classes

Ages
Ages by the 5.5.1 grammar: no space after "<" or ">" ("< 8y" → "<8y"); a PHRASE that is the 5.5.1 age it came from replaces the value ("< 8y" + PHRASE CHILD → CHILD). Every value is one that converts up to the same age and PHRASE again: another PHRASE stays for the structures rule, and an age 5.5.1 cannot write is kept as an extension, _AGE (KL3001): weeks ("2w"), and a PHRASE alone that is no age ("AGE" + PHRASE Zero; "AGE Zero" is not a 5.5.1 age).
Aliases
A record whose extension tag HEAD.SCHMA documents as a standard record (TAG _USER https://gedcom.io/terms/v7/record-SUBM) is that record in 7.0, and gets the standard tag in 5.5.1, which has no SCHMA: _USER → SUBM. HEAD is converted before the records after it, so its SCHMA may be _SCHMA already.
Dates
Dates by the 5.5.1 grammar: calendar names become escapes (JULIAN → @#DJULIAN@, FRENCH_R → @#DFRENCH R@, _ROMAN 24 _IUL 15 → @#DROMAN@ 24 IUL 15), BCE → B.C. A PHRASE joins the date as the 5.5.1 date it came from when converting up: the PHRASE itself when it is that date (DATE 30 JAN 1649 + PHRASE 30 JAN 1648/49 → 30 JAN 1648/49), otherwise "INT date (phrase)", or "(phrase)" without a date (the PHRASE as it is when it has parentheses).
Enumerations
Enumeration values in 5.5.1 case and spelling (BIRTH → birth, PRE_1970 → PRE-1970, DNS_CAN → DNS/CAN); OTHER with a PHRASE → the PHRASE (TYPE OTHER + PHRASE Screen → Screen), and a role description in parentheses where 5.5.1 has one (ROLE OTHER + PHRASE midwife → (midwife)).
Events
The TYPE the conversion to 7.0 gives an EVEN without one, its value again (EVEN Moved to Osaka + TYPE Moved to Osaka), is removed: 5.5.1 does not require it. The value of RESI, which 5.5.1 writes without one, is a NOTE of it (KL3005).
FileHeader
5.5.1 requires HEAD.GEDC.FORM, which 7.0 dropped (a 7.0 file is always lineage-linked): GEDC.FORM LINEAGE-LINKED is added after GEDC.VERS. HEAD.CHAR and GEDC.VERS are set by the converter.
Identifiers
EXID goes back to the 5.5.1 tag its TYPE names, where the record has that tag in 5.5.1 and converting up again gives the same EXID:
Languages
HEAD.LANG and SUBM.LANG, the LANG structures 5.5.1 has, take 5.5.1 language names: uk → Ukrainian, "und" with _PHRASE (a name converting up did not know) → that name. A tag 5.5.1 has no name for (en-GB, the region) is kept as an extension, _LANG (KL3001), so that nothing is lost and converting up gives it back. A LANG beyond the three 5.5.1 allows in a SUBM keeps its tag: the structures rule keeps it as _LANG in its 7.0 form (KL2002).
Media
Media files by the 5.5.1 types:
NoteRecords
The 7.0 shared note SNOTE is the 5.5.1 NOTE record, and the SNOTE that points to it is a NOTE pointer, where 5.5.1 has a NOTE that can be one: an SNOTE under SOUR.DATA.EVEN.PLAC, or of HEAD (whose NOTE is text only), stays for the structures rule, which keeps it as _SNOTE.
Sexes
SEX X ("does not fit the typical definition of only Male or only Female") and 5.5.5 SEX N ("not recorded") have no 5.5.1 value: they become SEX U with the value in _SEX X, or SEX U alone under LossPolicy::DropWithReport (KL3002). Converting up gives SEX X back.
Submissions
HEAD._SUBN, where the conversion to 7.0 keeps a 5.5.1 SUBN record, becomes a SUBN record again (before TRLR, xref @X<n>@) with its substructures, and HEAD.SUBN points to the first one in its place. Needs the prepass: the new xref must not be one the input has.
TextValues
Text values by the 5.5.1 line rules: every "@" of a text is doubled ("with @ inside" → "with @@ inside"), not only a leading one; "@#DJULIAN@" in a 7.0 text is text, so it is "@@#DJULIAN@@". Long lines are split into CONC when the output is written. Rules after this one read values by the 5.5.1 rules (Context::value()).
Times
Times by the 5.5.1 grammar, which has no time zone: a 7.0 time in UTC ("15:43:20Z") is kept as an extension, _TIME (KL3001); converting up gives it back.
Translations
TRAN of a name or place in a language and script 5.5.1 has a variation type for becomes its phonetic or romanized variation, LANG becoming TYPE: ko-Hang → FONE hangul, ja-Kana → FONE kana, ja-Latn → ROMN romaji, zh-Latn-pinyin → ROMN pinyin, zh-Latn-wadegile → ROMN wadegiles; LANG und and und-Latn, which converting up writes for another type, become FONE and ROMN with that type (_TYPE). Any other TRAN is left to the structures rule (_TRAN).
Uids
The 7.0 UID is the vendor tag _UID, which 5.5.1 programs write; its value is kept.
On this page

Search results