xref: /webtrees/app/Gedcom.php (revision d64c51bcd0ec66ee1005f4de452919828d34733d)
1<?php
2
3/**
4 * webtrees: online genealogy
5 * Copyright (C) 2022 webtrees development team
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18declare(strict_types=1);
19
20namespace Fisharebest\Webtrees;
21
22use Fisharebest\Webtrees\Contracts\ElementFactoryInterface;
23use Fisharebest\Webtrees\Contracts\ElementInterface;
24use Fisharebest\Webtrees\Elements\AddressCity;
25use Fisharebest\Webtrees\Elements\AddressCountry;
26use Fisharebest\Webtrees\Elements\AddressEmail;
27use Fisharebest\Webtrees\Elements\AddressFax;
28use Fisharebest\Webtrees\Elements\AddressLine;
29use Fisharebest\Webtrees\Elements\AddressLine1;
30use Fisharebest\Webtrees\Elements\AddressLine2;
31use Fisharebest\Webtrees\Elements\AddressLine3;
32use Fisharebest\Webtrees\Elements\AddressPostalCode;
33use Fisharebest\Webtrees\Elements\AddressState;
34use Fisharebest\Webtrees\Elements\AddressWebPage;
35use Fisharebest\Webtrees\Elements\AdoptedByWhichParent;
36use Fisharebest\Webtrees\Elements\Adoption;
37use Fisharebest\Webtrees\Elements\AdultChristening;
38use Fisharebest\Webtrees\Elements\AgeAtEvent;
39use Fisharebest\Webtrees\Elements\AncestralFileNumber;
40use Fisharebest\Webtrees\Elements\Annulment;
41use Fisharebest\Webtrees\Elements\ApprovedSystemId;
42use Fisharebest\Webtrees\Elements\AutomatedRecordId;
43use Fisharebest\Webtrees\Elements\Baptism;
44use Fisharebest\Webtrees\Elements\BarMitzvah;
45use Fisharebest\Webtrees\Elements\BasMitzvah;
46use Fisharebest\Webtrees\Elements\Birth;
47use Fisharebest\Webtrees\Elements\Blessing;
48use Fisharebest\Webtrees\Elements\Burial;
49use Fisharebest\Webtrees\Elements\CasteName;
50use Fisharebest\Webtrees\Elements\CauseOfEvent;
51use Fisharebest\Webtrees\Elements\Census;
52use Fisharebest\Webtrees\Elements\CertaintyAssessment;
53use Fisharebest\Webtrees\Elements\Change;
54use Fisharebest\Webtrees\Elements\ChangeDate;
55use Fisharebest\Webtrees\Elements\CharacterSet;
56use Fisharebest\Webtrees\Elements\ChildLinkageStatus;
57use Fisharebest\Webtrees\Elements\Christening;
58use Fisharebest\Webtrees\Elements\Confirmation;
59use Fisharebest\Webtrees\Elements\ContentDescription;
60use Fisharebest\Webtrees\Elements\Coordinates;
61use Fisharebest\Webtrees\Elements\CopyrightFile;
62use Fisharebest\Webtrees\Elements\CopyrightSourceData;
63use Fisharebest\Webtrees\Elements\CountOfChildren;
64use Fisharebest\Webtrees\Elements\CountOfMarriages;
65use Fisharebest\Webtrees\Elements\Creation;
66use Fisharebest\Webtrees\Elements\Cremation;
67use Fisharebest\Webtrees\Elements\CustomElement;
68use Fisharebest\Webtrees\Elements\CustomEvent;
69use Fisharebest\Webtrees\Elements\CustomFact;
70use Fisharebest\Webtrees\Elements\CustomFamilyEvent;
71use Fisharebest\Webtrees\Elements\CustomIndividualEvent;
72use Fisharebest\Webtrees\Elements\DateLdsOrd;
73use Fisharebest\Webtrees\Elements\DateValue;
74use Fisharebest\Webtrees\Elements\Death;
75use Fisharebest\Webtrees\Elements\DescriptiveTitle;
76use Fisharebest\Webtrees\Elements\Divorce;
77use Fisharebest\Webtrees\Elements\DivorceFiled;
78use Fisharebest\Webtrees\Elements\Emigration;
79use Fisharebest\Webtrees\Elements\EmptyElement;
80use Fisharebest\Webtrees\Elements\Engagement;
81use Fisharebest\Webtrees\Elements\EventAttributeType;
82use Fisharebest\Webtrees\Elements\EventOrFactClassification;
83use Fisharebest\Webtrees\Elements\EventsRecorded;
84use Fisharebest\Webtrees\Elements\EventTypeCitedFrom;
85use Fisharebest\Webtrees\Elements\ExternalIdentifier;
86use Fisharebest\Webtrees\Elements\ExternalIdentifierType;
87use Fisharebest\Webtrees\Elements\FamilyCensus;
88use Fisharebest\Webtrees\Elements\FamilyEvent;
89use Fisharebest\Webtrees\Elements\FamilyFact;
90use Fisharebest\Webtrees\Elements\FamilyRecord;
91use Fisharebest\Webtrees\Elements\FamilyResidence;
92use Fisharebest\Webtrees\Elements\FamilySearchFamilyTreeId;
93use Fisharebest\Webtrees\Elements\FamilyStatusText;
94use Fisharebest\Webtrees\Elements\FileName;
95use Fisharebest\Webtrees\Elements\FirstCommunion;
96use Fisharebest\Webtrees\Elements\Form;
97use Fisharebest\Webtrees\Elements\GedcomElement;
98use Fisharebest\Webtrees\Elements\GenerationsOfAncestors;
99use Fisharebest\Webtrees\Elements\GenerationsOfDescendants;
100use Fisharebest\Webtrees\Elements\GovIdentifier;
101use Fisharebest\Webtrees\Elements\Graduation;
102use Fisharebest\Webtrees\Elements\HeaderRecord;
103use Fisharebest\Webtrees\Elements\HierarchicalRelationship;
104use Fisharebest\Webtrees\Elements\Immigration;
105use Fisharebest\Webtrees\Elements\IndividualEvent;
106use Fisharebest\Webtrees\Elements\IndividualFact;
107use Fisharebest\Webtrees\Elements\IndividualRecord;
108use Fisharebest\Webtrees\Elements\LanguageId;
109use Fisharebest\Webtrees\Elements\LdsBaptism;
110use Fisharebest\Webtrees\Elements\LdsBaptismDateStatus;
111use Fisharebest\Webtrees\Elements\LdsChildSealing;
112use Fisharebest\Webtrees\Elements\LdsChildSealingDateStatus;
113use Fisharebest\Webtrees\Elements\LdsConfirmation;
114use Fisharebest\Webtrees\Elements\LdsEndowment;
115use Fisharebest\Webtrees\Elements\LdsEndowmentDateStatus;
116use Fisharebest\Webtrees\Elements\LdsInitiatory;
117use Fisharebest\Webtrees\Elements\LdsOrdinanceStatus;
118use Fisharebest\Webtrees\Elements\LdsSpouseSealing;
119use Fisharebest\Webtrees\Elements\LdsSpouseSealingDateStatus;
120use Fisharebest\Webtrees\Elements\LocationRecord;
121use Fisharebest\Webtrees\Elements\MaidenheadLocator;
122use Fisharebest\Webtrees\Elements\Marriage;
123use Fisharebest\Webtrees\Elements\MarriageBanns;
124use Fisharebest\Webtrees\Elements\MarriageContract;
125use Fisharebest\Webtrees\Elements\MarriageLicence;
126use Fisharebest\Webtrees\Elements\MarriageSettlement;
127use Fisharebest\Webtrees\Elements\MarriageType;
128use Fisharebest\Webtrees\Elements\MediaRecord;
129use Fisharebest\Webtrees\Elements\MultimediaFileReference;
130use Fisharebest\Webtrees\Elements\MultimediaFormat;
131use Fisharebest\Webtrees\Elements\NameOfBusiness;
132use Fisharebest\Webtrees\Elements\NameOfFamilyFile;
133use Fisharebest\Webtrees\Elements\NameOfProduct;
134use Fisharebest\Webtrees\Elements\NameOfRepository;
135use Fisharebest\Webtrees\Elements\NameOfSourceData;
136use Fisharebest\Webtrees\Elements\NamePersonal;
137use Fisharebest\Webtrees\Elements\NamePhoneticVariation;
138use Fisharebest\Webtrees\Elements\NamePieceGiven;
139use Fisharebest\Webtrees\Elements\NamePieceNickname;
140use Fisharebest\Webtrees\Elements\NamePiecePrefix;
141use Fisharebest\Webtrees\Elements\NamePieceSuffix;
142use Fisharebest\Webtrees\Elements\NamePieceSurname;
143use Fisharebest\Webtrees\Elements\NamePieceSurnamePrefix;
144use Fisharebest\Webtrees\Elements\NameRomanizedVariation;
145use Fisharebest\Webtrees\Elements\NameType;
146use Fisharebest\Webtrees\Elements\NationalIdNumber;
147use Fisharebest\Webtrees\Elements\NationalOrTribalOrigin;
148use Fisharebest\Webtrees\Elements\Naturalization;
149use Fisharebest\Webtrees\Elements\NobilityTypeTitle;
150use Fisharebest\Webtrees\Elements\NonEvent;
151use Fisharebest\Webtrees\Elements\NoteRecord;
152use Fisharebest\Webtrees\Elements\NoteStructure;
153use Fisharebest\Webtrees\Elements\Occupation;
154use Fisharebest\Webtrees\Elements\OrdinanceProcessFlag;
155use Fisharebest\Webtrees\Elements\Ordination;
156use Fisharebest\Webtrees\Elements\PafUid;
157use Fisharebest\Webtrees\Elements\PedigreeLinkageType;
158use Fisharebest\Webtrees\Elements\PermanentRecordFileNumber;
159use Fisharebest\Webtrees\Elements\PhoneNumber;
160use Fisharebest\Webtrees\Elements\PhoneticType;
161use Fisharebest\Webtrees\Elements\PhysicalDescription;
162use Fisharebest\Webtrees\Elements\PlaceHierarchy;
163use Fisharebest\Webtrees\Elements\PlaceLatitude;
164use Fisharebest\Webtrees\Elements\PlaceLivingOrdinance;
165use Fisharebest\Webtrees\Elements\PlaceLongtitude;
166use Fisharebest\Webtrees\Elements\PlaceName;
167use Fisharebest\Webtrees\Elements\PlacePhoneticVariation;
168use Fisharebest\Webtrees\Elements\PlaceRomanizedVariation;
169use Fisharebest\Webtrees\Elements\Possessions;
170use Fisharebest\Webtrees\Elements\Probate;
171use Fisharebest\Webtrees\Elements\PublicationDate;
172use Fisharebest\Webtrees\Elements\ReceivingSystemName;
173use Fisharebest\Webtrees\Elements\RelationIsDescriptor;
174use Fisharebest\Webtrees\Elements\ReligiousAffiliation;
175use Fisharebest\Webtrees\Elements\RepositoryRecord;
176use Fisharebest\Webtrees\Elements\ResearchTask;
177use Fisharebest\Webtrees\Elements\ResearchTaskPriority;
178use Fisharebest\Webtrees\Elements\ResearchTaskStatus;
179use Fisharebest\Webtrees\Elements\ResearchTaskType;
180use Fisharebest\Webtrees\Elements\Residence;
181use Fisharebest\Webtrees\Elements\ResponsibleAgency;
182use Fisharebest\Webtrees\Elements\RestrictionNotice;
183use Fisharebest\Webtrees\Elements\Retirement;
184use Fisharebest\Webtrees\Elements\RoleInEvent;
185use Fisharebest\Webtrees\Elements\RomanizedType;
186use Fisharebest\Webtrees\Elements\ScholasticAchievement;
187use Fisharebest\Webtrees\Elements\SexValue;
188use Fisharebest\Webtrees\Elements\SexXValue;
189use Fisharebest\Webtrees\Elements\SocialSecurityNumber;
190use Fisharebest\Webtrees\Elements\SourceCallNumber;
191use Fisharebest\Webtrees\Elements\SourceData;
192use Fisharebest\Webtrees\Elements\SourceFiledByEntry;
193use Fisharebest\Webtrees\Elements\SourceJurisdictionPlace;
194use Fisharebest\Webtrees\Elements\SourceMediaType;
195use Fisharebest\Webtrees\Elements\SourceOriginator;
196use Fisharebest\Webtrees\Elements\SourcePublicationFacts;
197use Fisharebest\Webtrees\Elements\SourceRecord;
198use Fisharebest\Webtrees\Elements\SubmissionRecord;
199use Fisharebest\Webtrees\Elements\SubmitterName;
200use Fisharebest\Webtrees\Elements\SubmitterRecord;
201use Fisharebest\Webtrees\Elements\SubmitterRegisteredRfn;
202use Fisharebest\Webtrees\Elements\SubmitterText;
203use Fisharebest\Webtrees\Elements\TempleCode;
204use Fisharebest\Webtrees\Elements\TextFromSource;
205use Fisharebest\Webtrees\Elements\TimeValue;
206use Fisharebest\Webtrees\Elements\TransmissionDate;
207use Fisharebest\Webtrees\Elements\Uid;
208use Fisharebest\Webtrees\Elements\UserReferenceNumber;
209use Fisharebest\Webtrees\Elements\UserReferenceType;
210use Fisharebest\Webtrees\Elements\VersionNumber;
211use Fisharebest\Webtrees\Elements\WebtreesUser;
212use Fisharebest\Webtrees\Elements\WhereWithinSource;
213use Fisharebest\Webtrees\Elements\Will;
214use Fisharebest\Webtrees\Elements\XrefAssociate;
215use Fisharebest\Webtrees\Elements\XrefFamily;
216use Fisharebest\Webtrees\Elements\XrefIndividual;
217use Fisharebest\Webtrees\Elements\XrefLocation;
218use Fisharebest\Webtrees\Elements\XrefMedia;
219use Fisharebest\Webtrees\Elements\XrefRepository;
220use Fisharebest\Webtrees\Elements\XrefSharedNote;
221use Fisharebest\Webtrees\Elements\XrefSource;
222use Fisharebest\Webtrees\Elements\XrefSubmission;
223use Fisharebest\Webtrees\Elements\XrefSubmitter;
224
225/**
226 * GEDCOM 5.5.1 specification
227 */
228class Gedcom
229{
230    // 255 less the EOL character.
231    public const LINE_LENGTH = 253;
232
233    // Gedcom tags which indicate the start of life.
234    public const BIRTH_EVENTS = ['BIRT', 'CHR', 'BAPM'];
235
236    // Gedcom tags which indicate the end of life.
237    public const DEATH_EVENTS = ['DEAT', 'BURI', 'CREM'];
238
239    // Gedcom tags which indicate the start of a relationship.
240    public const MARRIAGE_EVENTS = ['MARR', '_NMR'];
241
242    // Gedcom tags which indicate the end of a relationship.
243    public const DIVORCE_EVENTS = ['DIV', 'ANUL', '_SEPR'];
244
245    // Regular expression to match a GEDCOM tag.
246    public const REGEX_TAG = '[_A-Z][_A-Z0-9]*';
247
248    // Regular expression to match a GEDCOM XREF.
249    public const REGEX_XREF = '[A-Za-z0-9:_.-]{1,20}';
250
251    // Regular expression to match a GEDCOM fact/event for editing raw GEDCOM.
252    private const REGEX_VALUE   = '( .+)?';
253    private const REGEX_LEVEL_9 = '\n9 ' . self::REGEX_TAG . self::REGEX_VALUE;
254    private const REGEX_LEVEL_8 = '\n8 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_9 . ')*';
255    private const REGEX_LEVEL_7 = '\n7 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_8 . ')*';
256    private const REGEX_LEVEL_6 = '\n6 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_7 . ')*';
257    private const REGEX_LEVEL_5 = '\n5 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_6 . ')*';
258    private const REGEX_LEVEL_4 = '\n4 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_5 . ')*';
259    private const REGEX_LEVEL_3 = '\n3 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_4 . ')*';
260    private const REGEX_LEVEL_2 = '\n2 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_3 . ')*';
261    public const REGEX_FACT     = '1 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_2 . ')*\n?';
262
263    // Separates the parts of a place name.
264    public const PLACE_SEPARATOR = ', ';
265
266    // Regex to match a (badly formed) GEDCOM place separator.
267    public const PLACE_SEPARATOR_REGEX = '/ *,[, ]*/';
268
269    // LATI and LONG tags
270    public const LATITUDE_NORTH = 'N';
271    public const LATITUDE_SOUTH = 'S';
272    public const LONGITUDE_EAST = 'E';
273    public const LONGITUDE_WEST = 'W';
274
275    // Not all record types allow a CHAN event.
276    public const RECORDS_WITH_CHAN = [
277        Family::RECORD_TYPE,
278        Individual::RECORD_TYPE,
279        Media::RECORD_TYPE,
280        Note::RECORD_TYPE,
281        Repository::RECORD_TYPE,
282        Source::RECORD_TYPE,
283        Submitter::RECORD_TYPE,
284    ];
285
286    // These preferences control multiple tag definitions
287    public const HIDDEN_TAGS = [
288        // Individual names
289        'NAME_NPFX'  => ['INDI:NAME:NPFX', 'INDI:NAME:FONE:NPFX', 'INDI:NAME:ROMN:NPFX'],
290        'NAME_SPFX'  => ['INDI:NAME:SPFX', 'INDI:NAME:FONE:SPFX', 'INDI:NAME:ROMN:SPFX'],
291        'NAME_NSFX'  => ['INDI:NAME:NSFX', 'INDI:NAME:FONE:NSFX', 'INDI:NAME:ROMN:NSFX'],
292        'NAME_NICK'  => ['INDI:NAME:NICK', 'INDI:NAME:FONE:NICK', 'INDI:NAME:ROMN:NICK'],
293        'NAME_FONE'  => ['INDI:NAME:FONE'],
294        'NAME_ROMN'  => ['INDI:NAME:ROMN'],
295        'NAME_NOTE'  => ['INDI:NAME:NOTE', 'INDI:NAME:FONE:NOTE', 'INDI:NAME:ROMN:NOTE'],
296        'NAME_SOUR'  => ['INDI:NAME:SOUR', 'INDI:NAME:FONE:SOUR', 'INDI:NAME:ROMN:SOUR'],
297        // Places
298        'PLAC_MAP'   => [':PLAC:MAP'],
299        'PLAC_FONE'  => [':PLAC:FONE'],
300        'PLAC_ROMN'  => [':PLAC:ROMN'],
301        'PLAC_FORM'  => [':PLAC:FORM', 'HEAD:PLAC'],
302        'PLAC_NOTE'  => [':PLAC:NOTE'],
303        // Addresses
304        'ADDR_EMAIL' => [':EMAIL'],
305        'ADDR_PHON'  => [':PHON'],
306        'ADDR_WWW'   => [':WWW'],
307        // Source citations
308        'SOUR_EVEN'  => [':SOUR:EVEN'],
309        'SOUR_DATE'  => [':SOUR:DATA:DATE'],
310        'SOUR_NOTE'  => [':SOUR:NOTE'],
311        'SOUR_QUAY'  => [':SOUR:QUAY'],
312        // Sources
313        'SOUR_DATA'  => ['SOUR:DATA:EVEN', 'SOUR:DATA:AGNC', 'SOUR:DATA:NOTE'],
314        // Individuals
315        'BIRT_FAMC'  => ['INDI:BIRT:FAMC'],
316        'RELI'       => ['INDI:RELI'],
317        'BAPM'       => ['INDI:BAPM'],
318        'CHR'        => ['INDI:CHR', 'INDI:CHRA'],
319        'FCOM'       => ['INDI:FCOM', 'INDI:CONF'],
320        'ORDN'       => ['INDI:ORDN'],
321        'BARM'       => ['INDI:BARM', 'INDI:BASM'],
322        'ALIA'       => ['INDI:ALIA'],
323        'ASSO'       => ['INDI:ASSO'],
324        // Families
325        'ENGA'       => ['FAM:ENGA'],
326        'MARB'       => ['FAM:MARB'],
327        'MARC'       => ['FAM:MARC'],
328        'MARL'       => ['FAM:MARL'],
329        'MARS'       => ['FAM:MARS'],
330        'ANUL'       => ['FAM:ANUL'],
331        'DIVF'       => ['FAM:DIVF'],
332        'FAM_RESI'   => ['FAM:RESI'],
333        'FAM_CENS'   => ['FAM:CENS'],
334        // LDS church
335        'LDS'        => ['INDI:BAPL', 'INDI:CONL', 'INDI:ENDL', 'INDI:SLGC', 'FAM:SLGS', 'HEAD:SUBN'],
336        // Identifiers
337        'AFN'        => ['INDI:AFN'],
338        'IDNO'       => ['INDI:IDNO'],
339        'SSN'        => ['INDI:SSN'],
340        'RFN'        => [':RFN'],
341        'REFN'       => [':REFN'],
342        'RIN'        => [':RIN'],
343        // Submitters
344        'SUBM'       => ['INDI:SUBM', 'FAM:SUBM'],
345        'ANCI'       => ['INDI:ANCI', 'INDI:DESI'],
346    ];
347
348    // Custom GEDCOM tags that can be created in webtrees.
349    public const CUSTOM_FAMILY_TAGS = [
350        'FACT',
351        '_COML',
352        '_MARI',
353        '_MBON',
354        '_NMR',
355        '_SEPR',
356    ];
357
358    public const CUSTOM_INDIVIDUAL_TAGS = [
359        '_BRTM',
360        '_CIRC',
361        '_DEG',
362        '_DNA',
363        '_EXCM',
364        '_EYEC',
365        '_FNRL',
366        '_FSFTID',
367        '_HAIR',
368        '_HEIG',
369        '_INTE',
370        '_MDCL',
371        '_MEDC',
372        '_MILI',
373        '_MILT',
374        '_NAMS',
375        '_NMAR',
376        '_PRMN',
377        '_WEIG',
378        '_YART',
379    ];
380
381    // Some applications create GEDCOM files containing records without XREFS.
382    // We cannot process these.
383    public const CUSTOM_RECORDS_WITHOUT_XREFS = [
384        'EMOTIONALRELATIONSHIP', // GenoPro
385        'GENOMAP', // GenoPro
386        'GLOBAL', // GenoPro
387        'LABEL', // GenoPro
388        'PEDIGREELINK', // GenoPro
389        'SOCIALRELATIONSHIP', // GenoPro
390        '_EVDEF', // RootsMagic
391        '_EVENT_DEFN', // PAF and Legacy
392        '_HASHTAG_DEFN', // Legacy
393        '_PUBLISH', // MyHeritage
394        '_TASK', // Ages
395        '_TODO', // Legacy
396    ];
397
398    /**
399     * Definitions for GEDCOM 5.5.1.
400     *
401     * @return array<string,ElementInterface>
402     */
403    private function gedcom551Tags(): array
404    {
405        return [
406            'FAM'                        => new FamilyRecord(I18N::translate('Family')),
407            'FAM:*:ADDR'                 => new AddressLine(I18N::translate('Address')),
408            'FAM:*:ADDR:ADR1'            => new AddressLine1(I18N::translate('Address line 1')),
409            'FAM:*:ADDR:ADR2'            => new AddressLine2(I18N::translate('Address line 2')),
410            'FAM:*:ADDR:ADR3'            => new AddressLine3(I18N::translate('Address line 3')),
411            'FAM:*:ADDR:CITY'            => new AddressCity(I18N::translate('City')),
412            'FAM:*:ADDR:CTRY'            => new AddressCountry(I18N::translate('Country')),
413            'FAM:*:ADDR:POST'            => new AddressPostalCode(I18N::translate('Postal code')),
414            'FAM:*:ADDR:STAE'            => new AddressState(I18N::translate('State')),
415            'FAM:*:AGNC'                 => new ResponsibleAgency(I18N::translate('Agency')),
416            'FAM:*:CAUS'                 => new CauseOfEvent(I18N::translate('Cause')),
417            'FAM:*:DATE'                 => new DateValue(I18N::translate('Date')),
418            'FAM:*:EMAIL'                => new AddressEmail(I18N::translate('Email address')),
419            'FAM:*:FAX'                  => new AddressFax(I18N::translate('Fax')),
420            'FAM:*:HUSB'                 => new EmptyElement(I18N::translate('Husband'), ['AGE' => '0:1']),
421            'FAM:*:HUSB:AGE'             => new AgeAtEvent(I18N::translate('Husband’s age')),
422            'FAM:*:NOTE'                 => new NoteStructure(I18N::translate('Note')),
423            'FAM:*:OBJE'                 => new XrefMedia(I18N::translate('Media object')),
424            'FAM:*:PHON'                 => new PhoneNumber(I18N::translate('Phone')),
425            'FAM:*:PLAC'                 => new PlaceName(I18N::translate('Place')),
426            'FAM:*:PLAC:FONE'            => new PlacePhoneticVariation(I18N::translate('Phonetic place')),
427            'FAM:*:PLAC:FONE:TYPE'       => new PhoneticType(I18N::translate('Type')),
428            'FAM:*:PLAC:FORM'            => new PlaceHierarchy(I18N::translate('Format')),
429            'FAM:*:PLAC:MAP'             => new Coordinates(I18N::translate('Coordinates')),
430            'FAM:*:PLAC:MAP:LATI'        => new PlaceLatitude(I18N::translate('Latitude')),
431            'FAM:*:PLAC:MAP:LONG'        => new PlaceLongtitude(I18N::translate('Longitude')),
432            'FAM:*:PLAC:NOTE'            => new NoteStructure(I18N::translate('Note on place')),
433            'FAM:*:PLAC:ROMN'            => new PlaceRomanizedVariation(I18N::translate('Romanized place')),
434            'FAM:*:PLAC:ROMN:TYPE'       => new RomanizedType(I18N::translate('Type')),
435            'FAM:*:RELI'                 => new ReligiousAffiliation(I18N::translate('Religion'), []),
436            'FAM:*:RESN'                 => new RestrictionNotice(I18N::translate('Restriction')),
437            'FAM:*:SOUR'                 => new XrefSource(I18N::translate('Source citation')),
438            'FAM:*:SOUR:DATA'            => new SourceData(I18N::translate('Data')),
439            'FAM:*:SOUR:DATA:DATE'       => new DateValue(I18N::translate('Date of entry in original source')),
440            'FAM:*:SOUR:DATA:TEXT'       => new TextFromSource(I18N::translate('Text')),
441            'FAM:*:SOUR:EVEN'            => new EventTypeCitedFrom(I18N::translate('Event')),
442            'FAM:*:SOUR:EVEN:ROLE'       => new RoleInEvent(I18N::translate('Role')),
443            'FAM:*:SOUR:NOTE'            => new NoteStructure(I18N::translate('Note on source citation')),
444            'FAM:*:SOUR:OBJE'            => new XrefMedia(I18N::translate('Media object')),
445            'FAM:*:SOUR:PAGE'            => new WhereWithinSource(I18N::translate('Citation details')),
446            'FAM:*:SOUR:QUAY'            => new CertaintyAssessment(I18N::translate('Quality of data')),
447            'FAM:*:TYPE'                 => new EventOrFactClassification(I18N::translate('Type')),
448            'FAM:*:WIFE'                 => new EmptyElement(I18N::translate('Wife'), ['AGE' => '0:1']),
449            'FAM:*:WIFE:AGE'             => new AgeAtEvent(I18N::translate('Wife’s age')),
450            'FAM:*:WWW'                  => new AddressWebPage(I18N::translate('URL')),
451            'FAM:ANUL'                   => new Annulment(I18N::translate('Annulment')),
452            'FAM:CENS'                   => new FamilyCensus(I18N::translate('Family census')),
453            'FAM:CHAN'                   => new Change(I18N::translate('Last change')),
454            'FAM:CHAN:DATE'              => new ChangeDate(I18N::translate('Date of last change')),
455            'FAM:CHAN:DATE:TIME'         => new TimeValue(I18N::translate('Time of last change')),
456            'FAM:CHAN:NOTE'              => new NoteStructure(I18N::translate('Note on last change')),
457            'FAM:CHIL'                   => new XrefIndividual(I18N::translate('Child')),
458            'FAM:DIV'                    => new Divorce(I18N::translate('Divorce')),
459            'FAM:DIV:DATE'               => new DateValue(I18N::translate('Date of divorce')),
460            'FAM:DIVF'                   => new DivorceFiled(I18N::translate('Divorce filed')),
461            'FAM:ENGA'                   => new Engagement(I18N::translate('Engagement')),
462            'FAM:ENGA:DATE'              => new DateValue(I18N::translate('Date of engagement')),
463            'FAM:ENGA:PLAC'              => new PlaceName(I18N::translate('Place of engagement')),
464            'FAM:EVEN'                   => new FamilyEvent(I18N::translate('Event')),
465            'FAM:EVEN:TYPE'              => new EventOrFactClassification(I18N::translate('Type of event')),
466            'FAM:HUSB'                   => new XrefIndividual(I18N::translate('Husband')),
467            'FAM:MARB'                   => new MarriageBanns(I18N::translate('Marriage banns')),
468            'FAM:MARB:DATE'              => new DateValue(I18N::translate('Date of marriage banns')),
469            'FAM:MARB:PLAC'              => new PlaceName(I18N::translate('Place of marriage banns')),
470            'FAM:MARC'                   => new MarriageContract(I18N::translate('Marriage contract')),
471            'FAM:MARL'                   => new MarriageLicence(I18N::translate('Marriage license')),
472            'FAM:MARR'                   => new Marriage(I18N::translate('Marriage')),
473            'FAM:MARR:DATE'              => new DateValue(I18N::translate('Date of marriage')),
474            'FAM:MARR:PLAC'              => new PlaceName(I18N::translate('Place of marriage')),
475            'FAM:MARR:TYPE'              => new MarriageType(I18N::translate('Type of marriage')),
476            'FAM:MARS'                   => new MarriageSettlement(I18N::translate('Marriage settlement')),
477            'FAM:NCHI'                   => new CountOfChildren(I18N::translate('Number of children')),
478            'FAM:NOTE'                   => new NoteStructure(I18N::translate('Note')),
479            'FAM:OBJE'                   => new XrefMedia(I18N::translate('Media object')),
480            'FAM:REFN'                   => new UserReferenceNumber(I18N::translate('Reference number')),
481            'FAM:REFN:TYPE'              => new UserReferenceType(I18N::translate('Type of reference number')),
482            'FAM:RESI'                   => new FamilyResidence(I18N::translate('Family residence')),
483            'FAM:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
484            'FAM:RIN'                    => new AutomatedRecordId(I18N::translate('Record ID number')),
485            'FAM:SLGS'                   => new LdsSpouseSealing(I18N::translate('LDS spouse sealing')),
486            'FAM:SLGS:DATE'              => new DateLdsOrd(I18N::translate('Date of LDS spouse sealing')),
487            'FAM:SLGS:PLAC'              => new PlaceLivingOrdinance(I18N::translate('Place of LDS spouse sealing')),
488            'FAM:SLGS:STAT'              => new LdsSpouseSealingDateStatus(I18N::translate('Status')),
489            'FAM:SLGS:STAT:DATE'         => new ChangeDate(I18N::translate('Status change date')),
490            'FAM:SLGS:TEMP'              => new TempleCode(I18N::translate('Temple')),
491            'FAM:SOUR'                   => new XrefSource(I18N::translate('Source citation')),
492            'FAM:SOUR:DATA'              => new SourceData(I18N::translate('Data')),
493            'FAM:SOUR:DATA:DATE'         => new DateValue(I18N::translate('Date of entry in original source')),
494            'FAM:SOUR:DATA:TEXT'         => new TextFromSource(I18N::translate('Text')),
495            'FAM:SOUR:EVEN'              => new EventTypeCitedFrom(I18N::translate('Event')),
496            'FAM:SOUR:EVEN:ROLE'         => new RoleInEvent(I18N::translate('Role')),
497            'FAM:SOUR:NOTE'              => new NoteStructure(I18N::translate('Note on source citation')),
498            'FAM:SOUR:OBJE'              => new XrefMedia(I18N::translate('Media object')),
499            'FAM:SOUR:PAGE'              => new WhereWithinSource(I18N::translate('Citation details')),
500            'FAM:SOUR:QUAY'              => new CertaintyAssessment(I18N::translate('Quality of data')),
501            'FAM:SUBM'                   => new XrefSubmitter(I18N::translate('Submitter')),
502            'FAM:WIFE'                   => new XrefIndividual(I18N::translate('Wife')),
503            'HEAD'                       => new HeaderRecord(I18N::translate('Header')),
504            'HEAD:CHAR'                  => new CharacterSet(I18N::translate('Character set')),
505            'HEAD:CHAR:VERS'             => new VersionNumber(I18N::translate('Version')),
506            'HEAD:COPR'                  => new CopyrightFile(I18N::translate('Copyright')),
507            'HEAD:DATE'                  => new TransmissionDate(I18N::translate('Date')),
508            'HEAD:DATE:TIME'             => new TimeValue(I18N::translate('Time')),
509            'HEAD:DEST'                  => new ReceivingSystemName(I18N::translate('Destination')),
510            'HEAD:FILE'                  => new FileName(I18N::translate('Filename')),
511            'HEAD:GEDC'                  => new GedcomElement(I18N::translate('GEDCOM')),
512            'HEAD:GEDC:FORM'             => new Form(I18N::translate('Format')),
513            'HEAD:GEDC:VERS'             => new VersionNumber(I18N::translate('Version')),
514            'HEAD:LANG'                  => new LanguageId(I18N::translate('Language')),
515            'HEAD:NOTE'                  => new ContentDescription(I18N::translate('Note')),
516            'HEAD:PLAC'                  => new EmptyElement(I18N::translate('Place hierarchy'), ['FORM' => '1:1']),
517            'HEAD:PLAC:FORM'             => new PlaceHierarchy(I18N::translate('Format')),
518            'HEAD:SOUR'                  => new ApprovedSystemId(I18N::translate('Application ID')),
519            'HEAD:SOUR:CORP'             => new NameOfBusiness(I18N::translate('Corporation')),
520            'HEAD:SOUR:CORP:ADDR'        => new AddressLine(I18N::translate('Address')),
521            'HEAD:SOUR:CORP:ADDR:ADR1'   => new AddressLine1(I18N::translate('Address line 1')),
522            'HEAD:SOUR:CORP:ADDR:ADR2'   => new AddressLine2(I18N::translate('Address line 2')),
523            'HEAD:SOUR:CORP:ADDR:ADR3'   => new AddressLine3(I18N::translate('Address line 3')),
524            'HEAD:SOUR:CORP:ADDR:CITY'   => new AddressCity(I18N::translate('City')),
525            'HEAD:SOUR:CORP:ADDR:CTRY'   => new AddressCountry(I18N::translate('Country')),
526            'HEAD:SOUR:CORP:ADDR:POST'   => new AddressPostalCode(I18N::translate('Postal code')),
527            'HEAD:SOUR:CORP:ADDR:STAE'   => new AddressState(I18N::translate('State')),
528            'HEAD:SOUR:CORP:EMAIL'       => new AddressEmail(I18N::translate('Email address')),
529            'HEAD:SOUR:CORP:FAX'         => new AddressFax(I18N::translate('Fax')),
530            'HEAD:SOUR:CORP:PHON'        => new PhoneNumber(I18N::translate('Phone')),
531            'HEAD:SOUR:CORP:WWW'         => new AddressWebPage(I18N::translate('URL')),
532            'HEAD:SOUR:DATA'             => new NameOfSourceData(I18N::translate('Data')),
533            'HEAD:SOUR:DATA:COPR'        => new CopyrightSourceData(I18N::translate('Copyright')),
534            'HEAD:SOUR:DATA:DATE'        => new PublicationDate(I18N::translate('Date')),
535            'HEAD:SOUR:NAME'             => new NameOfProduct(I18N::translate('Application name')),
536            'HEAD:SOUR:VERS'             => new VersionNumber(I18N::translate('Version')),
537            'HEAD:SUBM'                  => new XrefSubmitter(I18N::translate('Submitter')),
538            'HEAD:SUBN'                  => new XrefSubmission(I18N::translate('Submission')),
539            'INDI'                       => new IndividualRecord(I18N::translate('Individual')),
540            'INDI:*:ADDR'                => new AddressLine(I18N::translate('Address')),
541            'INDI:*:ADDR:ADR1'           => new AddressLine1(I18N::translate('Address line 1')),
542            'INDI:*:ADDR:ADR2'           => new AddressLine2(I18N::translate('Address line 2')),
543            'INDI:*:ADDR:ADR3'           => new AddressLine3(I18N::translate('Address line 3')),
544            'INDI:*:ADDR:CITY'           => new AddressCity(I18N::translate('City')),
545            'INDI:*:ADDR:CTRY'           => new AddressCountry(I18N::translate('Country')),
546            'INDI:*:ADDR:POST'           => new AddressPostalCode(I18N::translate('Postal code')),
547            'INDI:*:ADDR:STAE'           => new AddressState(I18N::translate('State')),
548            'INDI:*:AGE'                 => new AgeAtEvent(I18N::translate('Age')),
549            'INDI:*:AGNC'                => new ResponsibleAgency(I18N::translate('Agency')),
550            'INDI:*:CAUS'                => new CauseOfEvent(I18N::translate('Cause')),
551            'INDI:*:DATE'                => new DateValue(I18N::translate('Date')),
552            'INDI:*:EMAIL'               => new AddressEmail(I18N::translate('Email address')),
553            'INDI:*:FAX'                 => new AddressFax(I18N::translate('Fax')),
554            'INDI:*:NOTE'                => new NoteStructure(I18N::translate('Note')),
555            'INDI:*:OBJE'                => new XrefMedia(I18N::translate('Media object')),
556            'INDI:*:PHON'                => new PhoneNumber(I18N::translate('Phone')),
557            'INDI:*:PLAC'                => new PlaceName(I18N::translate('Place')),
558            'INDI:*:PLAC:FONE'           => new PlacePhoneticVariation(I18N::translate('Phonetic place')),
559            'INDI:*:PLAC:FONE:TYPE'      => new PhoneticType(I18N::translate('Type')),
560            'INDI:*:PLAC:FORM'           => new PlaceHierarchy(I18N::translate('Format')),
561            'INDI:*:PLAC:MAP'            => new Coordinates(I18N::translate('Coordinates')),
562            'INDI:*:PLAC:MAP:LATI'       => new PlaceLatitude(I18N::translate('Latitude')),
563            'INDI:*:PLAC:MAP:LONG'       => new PlaceLongtitude(I18N::translate('Longitude')),
564            'INDI:*:PLAC:NOTE'           => new NoteStructure(I18N::translate('Note on place')),
565            'INDI:*:PLAC:ROMN'           => new PlaceRomanizedVariation(I18N::translate('Romanized place')),
566            'INDI:*:PLAC:ROMN:TYPE'      => new RomanizedType(I18N::translate('Type')),
567            'INDI:*:RELI'                => new ReligiousAffiliation(I18N::translate('Religion'), []),
568            'INDI:*:RESN'                => new RestrictionNotice(I18N::translate('Restriction')),
569            'INDI:*:SOUR'                => new XrefSource(I18N::translate('Source citation')),
570            'INDI:*:SOUR:DATA'           => new SourceData(I18N::translate('Data')),
571            'INDI:*:SOUR:DATA:DATE'      => new DateValue(I18N::translate('Date of entry in original source')),
572            'INDI:*:SOUR:DATA:TEXT'      => new TextFromSource(I18N::translate('Text')),
573            'INDI:*:SOUR:EVEN'           => new EventTypeCitedFrom(I18N::translate('Event')),
574            'INDI:*:SOUR:EVEN:ROLE'      => new RoleInEvent(I18N::translate('Role')),
575            'INDI:*:SOUR:NOTE'           => new NoteStructure(I18N::translate('Note on source citation')),
576            'INDI:*:SOUR:OBJE'           => new XrefMedia(I18N::translate('Media object')),
577            'INDI:*:SOUR:PAGE'           => new WhereWithinSource(I18N::translate('Citation details')),
578            'INDI:*:SOUR:QUAY'           => new CertaintyAssessment(I18N::translate('Quality of data')),
579            'INDI:*:TYPE'                => new EventOrFactClassification(I18N::translate('Type')),
580            'INDI:*:WWW'                 => new AddressWebPage(I18N::translate('URL')),
581            'INDI:ADOP'                  => new Adoption(I18N::translate('Adoption')),
582            'INDI:ADOP:DATE'             => new DateValue(I18N::translate('Date of adoption')),
583            'INDI:ADOP:FAMC'             => new XrefFamily(I18N::translate('Adoptive parents')),
584            'INDI:ADOP:FAMC:ADOP'        => new AdoptedByWhichParent(I18N::translate('Adoption')),
585            'INDI:ADOP:PLAC'             => new PlaceName(I18N::translate('Place of adoption')),
586            'INDI:AFN'                   => new AncestralFileNumber(I18N::translate('Ancestral file number')),
587            'INDI:ALIA'                  => new XrefIndividual(I18N::translate('Alias')),
588            'INDI:ANCI'                  => new XrefSubmitter(I18N::translate('Ancestors interest')),
589            'INDI:ASSO'                  => new XrefAssociate(I18N::translate('Associate')),
590            'INDI:ASSO:RELA'             => new RelationIsDescriptor(I18N::translate('Relationship')),
591            'INDI:BAPL'                  => new LdsBaptism(I18N::translate('LDS baptism')),
592            'INDI:BAPL:DATE'             => new DateLdsOrd(I18N::translate('Date of LDS baptism')),
593            'INDI:BAPL:PLAC'             => new PlaceLivingOrdinance(I18N::translate('Place of LDS baptism')),
594            'INDI:BAPL:STAT'             => new LdsBaptismDateStatus(I18N::translate('Status')),
595            'INDI:BAPL:STAT:DATE'        => new ChangeDate(I18N::translate('Status change date')),
596            'INDI:BAPL:TEMP'             => new TempleCode(I18N::translate('Temple')),
597            'INDI:BAPM'                  => new Baptism(I18N::translate('Baptism')),
598            'INDI:BAPM:DATE'             => new DateValue(I18N::translate('Date of baptism')),
599            'INDI:BAPM:PLAC'             => new PlaceName(I18N::translate('Place of baptism')),
600            'INDI:BARM'                  => new BarMitzvah(I18N::translate('Bar mitzvah')),
601            'INDI:BARM:DATE'             => new DateValue(I18N::translate('Date of bar mitzvah')),
602            'INDI:BARM:PLAC'             => new PlaceName(I18N::translate('Place of bar mitzvah')),
603            'INDI:BASM'                  => new BasMitzvah(I18N::translate('Bat mitzvah')),
604            'INDI:BASM:DATE'             => new BasMitzvah(I18N::translate('Date of bat mitzvah')),
605            'INDI:BASM:PLAC'             => new DateValue(I18N::translate('Place of bat mitzvah')),
606            'INDI:BIRT'                  => new Birth(I18N::translate('Birth')),
607            'INDI:BIRT:DATE'             => new DateValue(I18N::translate('Date of birth')),
608            'INDI:BIRT:FAMC'             => new XrefFamily(I18N::translate('Birth parents')),
609            'INDI:BIRT:PLAC'             => new PlaceName(I18N::translate('Place of birth')),
610            'INDI:BLES'                  => new Blessing(I18N::translate('Blessing')),
611            'INDI:BLES:DATE'             => new DateValue(I18N::translate('Date of blessing')),
612            'INDI:BLES:PLAC'             => new PlaceName(I18N::translate('Place of blessing')),
613            'INDI:BURI'                  => new Burial(I18N::translate('Burial')),
614            'INDI:BURI:DATE'             => new DateValue(I18N::translate('Date of burial')),
615            'INDI:BURI:PLAC'             => new PlaceName(I18N::translate('Place of burial')),
616            'INDI:CAST'                  => new CasteName(I18N::translate('Caste')),
617            'INDI:CENS'                  => new Census(I18N::translate('Census')),
618            'INDI:CENS:DATE'             => new DateValue(I18N::translate('Census date')),
619            'INDI:CENS:PLAC'             => new PlaceName(I18N::translate('Census place')),
620            'INDI:CHAN'                  => new Change(I18N::translate('Last change')),
621            'INDI:CHAN:DATE'             => new ChangeDate(I18N::translate('Date of last change')),
622            'INDI:CHAN:DATE:TIME'        => new TimeValue(I18N::translate('Time of last change')),
623            'INDI:CHAN:NOTE'             => new NoteStructure(I18N::translate('Note on last change')),
624            'INDI:CHR'                   => new Christening(I18N::translate('Christening')),
625            'INDI:CHR:DATE'              => new DateValue(I18N::translate('Date of christening')),
626            'INDI:CHR:FAMC'              => new XrefFamily(I18N::translate('Godparents')),
627            'INDI:CHR:PLAC'              => new PlaceName(I18N::translate('Place of christening')),
628            'INDI:CHRA'                  => new AdultChristening(I18N::translate('Adult christening')),
629            'INDI:CHRA:PLAC'             => new PlaceName(I18N::translate('Place of christening')),
630            'INDI:CONF'                  => new Confirmation(I18N::translate('Confirmation')),
631            'INDI:CONF:DATE'             => new DateValue(I18N::translate('Date of confirmation')),
632            'INDI:CONF:PLAC'             => new PlaceName(I18N::translate('Place of confirmation')),
633            'INDI:CONL'                  => new LdsConfirmation(I18N::translate('LDS confirmation')),
634            'INDI:CONL:DATE'             => new DateLdsOrd(I18N::translate('Date of LDS confirmation')),
635            'INDI:CONL:PLAC'             => new PlaceLivingOrdinance(I18N::translate('Place of LDS confirmation')),
636            'INDI:CONL:STAT'             => new LdsBaptismDateStatus(I18N::translate('Status')),
637            'INDI:CONL:STAT:DATE'        => new ChangeDate(I18N::translate('Status change date')),
638            'INDI:CONL:TEMP'             => new TempleCode(I18N::translate('Temple')),
639            'INDI:CREM'                  => new Cremation(I18N::translate('Cremation')),
640            'INDI:CREM:DATE'             => new DateValue(I18N::translate('Date of cremation')),
641            'INDI:CREM:PLAC'             => new PlaceName(I18N::translate('Place of cremation')),
642            'INDI:DEAT'                  => new Death(I18N::translate('Death')),
643            'INDI:DEAT:CAUS'             => new CauseOfEvent(I18N::translate('Cause of death')),
644            'INDI:DEAT:DATE'             => new DateValue(I18N::translate('Date of death')),
645            'INDI:DEAT:PLAC'             => new PlaceName(I18N::translate('Place of death')),
646            'INDI:DESI'                  => new XrefSubmitter(I18N::translate('Descendants interest')),
647            'INDI:DSCR'                  => new PhysicalDescription(I18N::translate('Description')),
648            'INDI:EDUC'                  => new ScholasticAchievement(I18N::translate('Education')),
649            'INDI:EDUC:AGNC'             => new ResponsibleAgency(I18N::translate('School or college')),
650            'INDI:EMIG'                  => new Emigration(I18N::translate('Emigration')),
651            'INDI:EMIG:DATE'             => new DateValue(I18N::translate('Date of emigration')),
652            'INDI:EMIG:PLAC'             => new PlaceName(I18N::translate('Place of emigration')),
653            'INDI:ENDL'                  => new LdsEndowment(I18N::translate('LDS endowment')),
654            'INDI:ENDL:DATE'             => new DateLdsOrd(I18N::translate('Date of LDS endowment')),
655            'INDI:ENDL:PLAC'             => new PlaceLivingOrdinance(I18N::translate('Place of LDS endowment')),
656            'INDI:ENDL:STAT'             => new LdsEndowmentDateStatus(I18N::translate('Status')),
657            'INDI:ENDL:STAT:DATE'        => new ChangeDate(I18N::translate('Status change date')),
658            'INDI:ENDL:TEMP'             => new TempleCode(I18N::translate('Temple')),
659            'INDI:EVEN'                  => new IndividualEvent(I18N::translate('Event')),
660            'INDI:EVEN:DATE'             => new DateValue(I18N::translate('Date of event')),
661            'INDI:EVEN:PLAC'             => new PlaceName(I18N::translate('Place of event')),
662            'INDI:EVEN:TYPE'             => new EventOrFactClassification(I18N::translate('Type of event')),
663            'INDI:FACT'                  => new IndividualFact(I18N::translate('Fact')),
664            'INDI:FACT:TYPE'             => new EventOrFactClassification(I18N::translate('Type of fact')),
665            'INDI:FAMC'                  => new XrefFamily(I18N::translate('Family as a child'), ['NOTE' => '0:1', 'PEDI' => '0:1', 'STAT' => '0:1']),
666            'INDI:FAMC:PEDI'             => new PedigreeLinkageType(I18N::translate('Relationship to parents')),
667            'INDI:FAMC:STAT'             => new ChildLinkageStatus(I18N::translate('Status')),
668            'INDI:FAMS'                  => new XrefFamily(I18N::translate('Family as a spouse')),
669            'INDI:FCOM'                  => new FirstCommunion(I18N::translate('First communion')),
670            'INDI:FCOM:DATE'             => new DateValue(I18N::translate('Date of first communion')),
671            'INDI:FCOM:PLAC'             => new PlaceName(I18N::translate('Place of first communion')),
672            'INDI:GRAD'                  => new Graduation(I18N::translate('Graduation')),
673            'INDI:GRAD:AGNC'             => new ResponsibleAgency(I18N::translate('School or college')),
674            'INDI:IDNO'                  => new NationalIdNumber(I18N::translate('Identification number')),
675            'INDI:IDNO:TYPE'             => new EventOrFactClassification(I18N::translate('Type of identification number')),
676            'INDI:IMMI'                  => new Immigration(I18N::translate('Immigration')),
677            'INDI:IMMI:DATE'             => new DateValue(I18N::translate('Date of immigration')),
678            'INDI:IMMI:PLAC'             => new PlaceName(I18N::translate('Place of immigration')),
679            'INDI:NAME'                  => new NamePersonal(I18N::translate('Name')),
680            'INDI:NAME:*:SOUR'           => new XrefSource(I18N::translate('Source citation')),
681            'INDI:NAME:*:SOUR:DATA'      => new SourceData(I18N::translate('Data')),
682            'INDI:NAME:*:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')),
683            'INDI:NAME:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')),
684            'INDI:NAME:*:SOUR:EVEN'      => new EventTypeCitedFrom(I18N::translate('Event')),
685            'INDI:NAME:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')),
686            'INDI:NAME:*:SOUR:NOTE'      => new NoteStructure(I18N::translate('Note on source citation')),
687            'INDI:NAME:*:SOUR:OBJE'      => new XrefMedia(I18N::translate('Media object')),
688            'INDI:NAME:*:SOUR:PAGE'      => new WhereWithinSource(I18N::translate('Citation details')),
689            'INDI:NAME:*:SOUR:QUAY'      => new CertaintyAssessment(I18N::translate('Quality of data')),
690            'INDI:NAME:FONE'             => new NamePhoneticVariation(I18N::translate('Phonetic name')),
691            'INDI:NAME:FONE:GIVN'        => new NamePieceGiven(I18N::translate('Given names')),
692            'INDI:NAME:FONE:NICK'        => new NamePieceNickname(I18N::translate('Nickname')),
693            'INDI:NAME:FONE:NOTE'        => new NoteStructure(I18N::translate('Note on phonetic name')),
694            'INDI:NAME:FONE:NPFX'        => new NamePiecePrefix(I18N::translate('Name prefix')),
695            'INDI:NAME:FONE:NSFX'        => new NamePieceSuffix(I18N::translate('Name suffix')),
696            'INDI:NAME:FONE:SOUR'        => new XrefSource(I18N::translate('Source citation')),
697            'INDI:NAME:FONE:SPFX'        => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')),
698            'INDI:NAME:FONE:SURN'        => new NamePieceSurname(I18N::translate('Surname')),
699            'INDI:NAME:FONE:TYPE'        => new PhoneticType(I18N::translate('Phonetic type')),
700            'INDI:NAME:GIVN'             => new NamePieceGiven(I18N::translate('Given names')),
701            'INDI:NAME:NICK'             => new NamePieceNickname(I18N::translate('Nickname')),
702            'INDI:NAME:NPFX'             => new NamePiecePrefix(I18N::translate('Name prefix')),
703            'INDI:NAME:NSFX'             => new NamePieceSuffix(I18N::translate('Name suffix')),
704            'INDI:NAME:ROMN'             => new NameRomanizedVariation(I18N::translate('Romanized name')),
705            'INDI:NAME:ROMN:GIVN'        => new NamePieceGiven(I18N::translate('Given names')),
706            'INDI:NAME:ROMN:NICK'        => new NamePieceNickname(I18N::translate('Nickname')),
707            'INDI:NAME:ROMN:NOTE'        => new NoteStructure(I18N::translate('Note on romanized name')),
708            'INDI:NAME:ROMN:NPFX'        => new NamePiecePrefix(I18N::translate('Name prefix')),
709            'INDI:NAME:ROMN:NSFX'        => new NamePieceSuffix(I18N::translate('Name suffix')),
710            'INDI:NAME:ROMN:SOUR'        => new XrefSource(I18N::translate('Source citation')),
711            'INDI:NAME:ROMN:SPFX'        => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')),
712            'INDI:NAME:ROMN:SURN'        => new NamePieceSurname(I18N::translate('Surname')),
713            'INDI:NAME:ROMN:TYPE'        => new RomanizedType(I18N::translate('Romanized type')),
714            'INDI:NAME:SPFX'             => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')),
715            'INDI:NAME:SURN'             => new NamePieceSurname(I18N::translate('Surname')),
716            'INDI:NAME:TYPE'             => new NameType(I18N::translate('Type of name')),
717            'INDI:NATI'                  => new NationalOrTribalOrigin(I18N::translate('Nationality')),
718            'INDI:NATU'                  => new Naturalization(I18N::translate('Naturalization')),
719            'INDI:NATU:DATE'             => new DateValue(I18N::translate('Date of naturalization')),
720            'INDI:NATU:PLAC'             => new PlaceName(I18N::translate('Place of naturalization')),
721            'INDI:NCHI'                  => new CountOfChildren(I18N::translate('Number of children')),
722            'INDI:NMR'                   => new CountOfMarriages(I18N::translate('Number of marriages')),
723            'INDI:NOTE'                  => new NoteStructure(I18N::translate('Note')),
724            'INDI:OBJE'                  => new XrefMedia(I18N::translate('Media object')),
725            'INDI:OCCU'                  => new Occupation(I18N::translate('Occupation')),
726            'INDI:OCCU:AGNC'             => new ResponsibleAgency(I18N::translate('Employer')),
727            'INDI:ORDN'                  => new Ordination(I18N::translate('Ordination')),
728            'INDI:ORDN:AGNC'             => new Ordination(I18N::translate('Religious institution')),
729            'INDI:ORDN:DATE'             => new Ordination(I18N::translate('Date of ordination')),
730            'INDI:ORDN:PLAC'             => new Ordination(I18N::translate('Place of ordination')),
731            'INDI:PROB'                  => new Probate(I18N::translate('Probate')),
732            'INDI:PROP'                  => new Possessions(I18N::translate('Property')),
733            'INDI:REFN'                  => new UserReferenceNumber(I18N::translate('Reference number')),
734            'INDI:REFN:TYPE'             => new UserReferenceType(I18N::translate('Type of reference number')),
735            'INDI:RELI'                  => new ReligiousAffiliation(I18N::translate('Religion')),
736            'INDI:RESI'                  => new Residence(I18N::translate('Residence')),
737            'INDI:RESI:DATE'             => new DateValue(I18N::translate('Date of residence')),
738            'INDI:RESI:PLAC'             => new PlaceName(I18N::translate('Place of residence')),
739            'INDI:RESN'                  => new RestrictionNotice(I18N::translate('Restriction')),
740            'INDI:RETI'                  => new Retirement(I18N::translate('Retirement')),
741            'INDI:RETI:AGNC'             => new ResponsibleAgency(I18N::translate('Employer')),
742            'INDI:RFN'                   => new PermanentRecordFileNumber(I18N::translate('Record file number')),
743            'INDI:RIN'                   => new AutomatedRecordId(I18N::translate('Record ID number')),
744            'INDI:SEX'                   => new SexValue(I18N::translate('Gender')),
745            'INDI:SLGC'                  => new LdsChildSealing(I18N::translate('LDS child sealing')),
746            'INDI:SLGC:DATE'             => new DateLdsOrd(I18N::translate('Date of LDS child sealing')),
747            'INDI:SLGC:FAMC'             => new XrefFamily(I18N::translate('Parents')),
748            'INDI:SLGC:PLAC'             => new PlaceLivingOrdinance(I18N::translate('Place of LDS child sealing')),
749            'INDI:SLGC:STAT'             => new LdsChildSealingDateStatus(I18N::translate('Status')),
750            'INDI:SLGC:STAT:DATE'        => new ChangeDate(I18N::translate('Status change date')),
751            'INDI:SLGC:TEMP'             => new TempleCode(I18N::translate('Temple')),
752            'INDI:SOUR'                  => new XrefSource(I18N::translate('Source citation')),
753            'INDI:SOUR:DATA'             => new SourceData(I18N::translate('Data')),
754            'INDI:SOUR:DATA:DATE'        => new DateValue(I18N::translate('Date of entry in original source')),
755            'INDI:SOUR:DATA:TEXT'        => new TextFromSource(I18N::translate('Text')),
756            'INDI:SOUR:EVEN'             => new EventTypeCitedFrom(I18N::translate('Event')),
757            'INDI:SOUR:EVEN:ROLE'        => new RoleInEvent(I18N::translate('Role')),
758            'INDI:SOUR:NOTE'             => new NoteStructure(I18N::translate('Note on source citation')),
759            'INDI:SOUR:OBJE'             => new XrefMedia(I18N::translate('Media object')),
760            'INDI:SOUR:PAGE'             => new WhereWithinSource(I18N::translate('Citation details')),
761            'INDI:SOUR:QUAY'             => new CertaintyAssessment(I18N::translate('Quality of data')),
762            'INDI:SSN'                   => new SocialSecurityNumber(I18N::translate('Social security number')),
763            'INDI:SUBM'                  => new XrefSubmitter(I18N::translate('Submitter')),
764            'INDI:TITL'                  => new NobilityTypeTitle(I18N::translate('Title')),
765            'INDI:WILL'                  => new Will(I18N::translate('Will')),
766            'NOTE'                       => new NoteRecord(I18N::translate('Shared note')),
767            'NOTE:CHAN'                  => new Change(I18N::translate('Last change')),
768            'NOTE:CHAN:DATE'             => new ChangeDate(I18N::translate('Date of last change')),
769            'NOTE:CHAN:DATE:TIME'        => new TimeValue(I18N::translate('Time of last change')),
770            'NOTE:CHAN:NOTE'             => new NoteStructure(I18N::translate('Note on last change')),
771            'NOTE:CONC'                  => new SubmitterText(I18N::translate('Note')),
772            'NOTE:CONT'                  => new SubmitterText(I18N::translate('Continuation')),
773            'NOTE:REFN'                  => new UserReferenceNumber(I18N::translate('Reference number')),
774            'NOTE:REFN:TYPE'             => new UserReferenceType(I18N::translate('Type of reference number')),
775            'NOTE:RIN'                   => new AutomatedRecordId(I18N::translate('Record ID number')),
776            'NOTE:SOUR'                  => new XrefSource(I18N::translate('Source citation')),
777            'NOTE:SOUR:DATA'             => new SourceData(I18N::translate('Data')),
778            'NOTE:SOUR:DATA:DATE'        => new DateValue(I18N::translate('Date of entry in original source')),
779            'NOTE:SOUR:DATA:TEXT'        => new TextFromSource(I18N::translate('Text')),
780            'NOTE:SOUR:EVEN'             => new EventTypeCitedFrom(I18N::translate('Event')),
781            'NOTE:SOUR:EVEN:ROLE'        => new RoleInEvent(I18N::translate('Role')),
782            'NOTE:SOUR:NOTE'             => new NoteStructure(I18N::translate('Note on source citation')),
783            'NOTE:SOUR:OBJE'             => new XrefMedia(I18N::translate('Media object')),
784            'NOTE:SOUR:PAGE'             => new WhereWithinSource(I18N::translate('Citation details')),
785            'NOTE:SOUR:QUAY'             => new CertaintyAssessment(I18N::translate('Quality of data')),
786            'OBJE'                       => new MediaRecord(I18N::translate('Media object')),
787            'OBJE:BLOB'                  => new CustomElement(I18N::translate('Binary data object')),
788            'OBJE:CHAN'                  => new Change(I18N::translate('Last change')),
789            'OBJE:CHAN:DATE'             => new ChangeDate(I18N::translate('Date of last change')),
790            'OBJE:CHAN:DATE:TIME'        => new TimeValue(I18N::translate('Time of last change')),
791            'OBJE:CHAN:NOTE'             => new NoteStructure(I18N::translate('Note on last change')),
792            'OBJE:FILE'                  => new MultimediaFileReference(I18N::translate('Filename')),
793            'OBJE:FILE:FORM'             => new MultimediaFormat(I18N::translate('Format')),
794            'OBJE:FILE:FORM:TYPE'        => new SourceMediaType(I18N::translate('Media type')),
795            'OBJE:FILE:TITL'             => new DescriptiveTitle(I18N::translate('Title')),
796            'OBJE:NOTE'                  => new NoteStructure(I18N::translate('Note')),
797            'OBJE:REFN'                  => new UserReferenceNumber(I18N::translate('Reference number')),
798            'OBJE:REFN:TYPE'             => new UserReferenceType(I18N::translate('Type of reference number')),
799            'OBJE:RIN'                   => new AutomatedRecordId(I18N::translate('Record ID number')),
800            'OBJE:SOUR'                  => new XrefSource(I18N::translate('Source citation')),
801            'OBJE:SOUR:DATA'             => new SourceData(I18N::translate('Data')),
802            'OBJE:SOUR:DATA:DATE'        => new DateValue(I18N::translate('Date of entry in original source')),
803            'OBJE:SOUR:DATA:TEXT'        => new TextFromSource(I18N::translate('Text')),
804            'OBJE:SOUR:EVEN'             => new EventTypeCitedFrom(I18N::translate('Event')),
805            'OBJE:SOUR:EVEN:ROLE'        => new RoleInEvent(I18N::translate('Role')),
806            'OBJE:SOUR:NOTE'             => new NoteStructure(I18N::translate('Note on source citation')),
807            'OBJE:SOUR:OBJE'             => new XrefMedia(I18N::translate('Media object')),
808            'OBJE:SOUR:PAGE'             => new WhereWithinSource(I18N::translate('Citation details')),
809            'OBJE:SOUR:QUAY'             => new CertaintyAssessment(I18N::translate('Quality of data')),
810            'REPO'                       => new RepositoryRecord(I18N::translate('Repository')),
811            'REPO:ADDR'                  => new AddressLine(I18N::translate('Address')),
812            'REPO:ADDR:ADR1'             => new AddressLine1(I18N::translate('Address line 1')),
813            'REPO:ADDR:ADR2'             => new AddressLine2(I18N::translate('Address line 2')),
814            'REPO:ADDR:ADR3'             => new AddressLine3(I18N::translate('Address line 3')),
815            'REPO:ADDR:CITY'             => new AddressCity(I18N::translate('City')),
816            'REPO:ADDR:CTRY'             => new AddressCountry(I18N::translate('Country')),
817            'REPO:ADDR:POST'             => new AddressPostalCode(I18N::translate('Postal code')),
818            'REPO:ADDR:STAE'             => new AddressState(I18N::translate('State')),
819            'REPO:CHAN'                  => new Change(I18N::translate('Last change')),
820            'REPO:CHAN:DATE'             => new ChangeDate(I18N::translate('Date of last change')),
821            'REPO:CHAN:DATE:TIME'        => new TimeValue(I18N::translate('Time of last change')),
822            'REPO:CHAN:NOTE'             => new NoteStructure(I18N::translate('Note on last change')),
823            'REPO:EMAIL'                 => new AddressEmail(I18N::translate('Email address')),
824            'REPO:FAX'                   => new AddressFax(I18N::translate('Fax')),
825            'REPO:NAME'                  => new NameOfRepository(I18N::translateContext('Repository', 'Name')),
826            'REPO:NOTE'                  => new NoteStructure(I18N::translate('Note')),
827            'REPO:PHON'                  => new PhoneNumber(I18N::translate('Phone')),
828            'REPO:REFN'                  => new UserReferenceNumber(I18N::translate('Reference number')),
829            'REPO:REFN:TYPE'             => new UserReferenceType(I18N::translate('Type of reference number')),
830            'REPO:RIN'                   => new AutomatedRecordId(I18N::translate('Record ID number')),
831            'REPO:WWW'                   => new AddressWebPage(I18N::translate('URL')),
832            'SOUR'                       => new SourceRecord(I18N::translate('Source')),
833            'SOUR:ABBR'                  => new SourceFiledByEntry(I18N::translate('Abbreviation')),
834            'SOUR:AUTH'                  => new SourceOriginator(I18N::translate('Author')),
835            'SOUR:CHAN'                  => new Change(I18N::translate('Last change')),
836            'SOUR:CHAN:DATE'             => new ChangeDate(I18N::translate('Date of last change')),
837            'SOUR:CHAN:DATE:TIME'        => new TimeValue(I18N::translate('Time of last change')),
838            'SOUR:CHAN:NOTE'             => new NoteStructure(I18N::translate('Note on last change')),
839            'SOUR:DATA'                  => new EmptyElement(I18N::translate('Data'), ['EVEN' => '0:M', 'AGNC' => '0:1', 'NOTE' => '0:M']),
840            'SOUR:DATA:AGNC'             => new ResponsibleAgency(I18N::translate('Agency')),
841            'SOUR:DATA:EVEN'             => new EventsRecorded(I18N::translate('Events')),
842            'SOUR:DATA:EVEN:DATE'        => new DateValue(I18N::translate('Date range')),
843            'SOUR:DATA:EVEN:PLAC'        => new SourceJurisdictionPlace(I18N::translate('Place'), []),
844            'SOUR:DATA:NOTE'             => new NoteStructure(I18N::translate('Note on source data')),
845            'SOUR:NOTE'                  => new NoteStructure(I18N::translate('Note on source')),
846            'SOUR:OBJE'                  => new XrefMedia(I18N::translate('Media object')),
847            'SOUR:PUBL'                  => new SourcePublicationFacts(I18N::translate('Publication')),
848            'SOUR:REFN'                  => new UserReferenceNumber(I18N::translate('Reference number')),
849            'SOUR:REFN:TYPE'             => new UserReferenceType(I18N::translate('Type of reference number')),
850            'SOUR:REPO'                  => new XrefRepository(I18N::translate('Repository')),
851            'SOUR:REPO:CALN'             => new SourceCallNumber(I18N::translate('Call number')),
852            'SOUR:REPO:CALN:MEDI'        => new SourceMediaType(I18N::translate('Media type')),
853            'SOUR:REPO:NOTE'             => new NoteStructure(I18N::translate('Note on repository reference')),
854            'SOUR:RIN'                   => new AutomatedRecordId(I18N::translate('Record ID number')),
855            'SOUR:TEXT'                  => new TextFromSource(I18N::translate('Text')),
856            'SOUR:TITL'                  => new DescriptiveTitle(I18N::translate('Title')),
857            'SUBM'                       => new SubmitterRecord(I18N::translate('Submitter')),
858            'SUBM:ADDR'                  => new AddressLine(I18N::translate('Address')),
859            'SUBM:ADDR:ADR1'             => new AddressLine1(I18N::translate('Address line 1')),
860            'SUBM:ADDR:ADR2'             => new AddressLine2(I18N::translate('Address line 2')),
861            'SUBM:ADDR:ADR3'             => new AddressLine3(I18N::translate('Address line 3')),
862            'SUBM:ADDR:CITY'             => new AddressCity(I18N::translate('City')),
863            'SUBM:ADDR:CTRY'             => new AddressCountry(I18N::translate('Country')),
864            'SUBM:ADDR:POST'             => new AddressPostalCode(I18N::translate('Postal code')),
865            'SUBM:ADDR:STAE'             => new AddressState(I18N::translate('State')),
866            'SUBM:CHAN'                  => new Change(I18N::translate('Last change')),
867            'SUBM:CHAN:DATE'             => new ChangeDate(I18N::translate('Date of last change')),
868            'SUBM:CHAN:DATE:TIME'        => new TimeValue(I18N::translate('Time of last change')),
869            'SUBM:CHAN:NOTE'             => new NoteStructure(I18N::translate('Note on last change')),
870            'SUBM:EMAIL'                 => new AddressEmail(I18N::translate('Email address')),
871            'SUBM:FAX'                   => new AddressFax(I18N::translate('Fax')),
872            'SUBM:LANG'                  => new LanguageId(I18N::translate('Language')),
873            'SUBM:NAME'                  => new SubmitterName(I18N::translate('Name')),
874            'SUBM:NOTE'                  => new NoteStructure(I18N::translate('Note')),
875            'SUBM:OBJE'                  => new XrefMedia(I18N::translate('Media object')),
876            'SUBM:PHON'                  => new PhoneNumber(I18N::translate('Phone')),
877            'SUBM:RFN'                   => new SubmitterRegisteredRfn(I18N::translate('Record file number')),
878            'SUBM:RIN'                   => new AutomatedRecordId(I18N::translate('Record ID number')),
879            'SUBM:WWW'                   => new AddressWebPage(I18N::translate('URL')),
880            'SUBN'                       => new SubmissionRecord(I18N::translate('Submission')),
881            'SUBN:ANCE'                  => new GenerationsOfAncestors(I18N::translate('Generations of ancestors')),
882            'SUBN:CHAN'                  => new Change(I18N::translate('Last change')),
883            'SUBN:CHAN:DATE'             => new ChangeDate(I18N::translate('Date of last change')),
884            'SUBN:CHAN:DATE:TIME'        => new TimeValue(I18N::translate('Time of last change')),
885            'SUBN:CHAN:NOTE'             => new NoteStructure(I18N::translate('Note on last change')),
886            'SUBN:DESC'                  => new GenerationsOfDescendants(I18N::translate('Generations of descendants')),
887            'SUBN:FAMF'                  => new NameOfFamilyFile(I18N::translate('Family file')),
888            'SUBN:NOTE'                  => new NoteStructure(I18N::translate('Note')),
889            'SUBN:ORDI'                  => new OrdinanceProcessFlag(I18N::translate('Ordinance')),
890            'SUBN:RIN'                   => new AutomatedRecordId(I18N::translate('Record ID number')),
891            'SUBN:SUBM'                  => new XrefSubmitter(I18N::translate('Submitter')),
892            'SUBN:TEMP'                  => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')),
893            'TRLR'                       => new EmptyElement(I18N::translate('Trailer')),
894        ];
895    }
896
897    /**
898     * Definitions for GEDCOM 7.
899     *
900     * @return array<string,ElementInterface>
901     */
902    private function gedcom7Tags(): array
903    {
904        return [
905            'FAM:NO' => new NonEvent('Event did not happen'),
906            'INDI:NO' => new NonEvent('Event did not happen'),
907            'FAM:*:ASSO'                 => new XrefAssociate(I18N::translate('Associate')),
908            'FAM:*:ASSO:PHRASE'          => new CustomElement(I18N::translate('Phrase')),
909            'FAM:*:ASSO:ROLE'            => new RoleInEvent(I18N::translate('Role')),
910            'FAM:*:ASSO:ROLE:PHRASE'     => new CustomElement(I18N::translate('Phrase')),
911            'FAM:*:DATE:TIME'            => new TimeValue(I18N::translate('Time')),
912            'FAM:*:PLAC:EXID'            => new ExternalIdentifier(I18N::translate('External identifier')),
913            'FAM:*:PLAC:EXID:TYPE'       => new ExternalIdentifierType(I18N::translate('Type')),
914            'FAM:*:SDATE'                => new CustomElement(I18N::translate('Sort date')),
915            'FAM:*:SDATE:PHRASE'         => new CustomElement(I18N::translate('Phrase')),
916            'FAM:*:SDATE:TIME'           => new CustomElement(I18N::translate('Sort time')),
917            'FAM:*:SNOTE'                => new XrefSharedNote(I18N::translate('Shared note')),
918            'FAM:*:UID'                  => new Uid(I18N::translate('Unique identifier')),
919            'FAM:ASSO'                   => new XrefAssociate(I18N::translate('Associate')),
920            'FAM:ASSO:PHRASE'            => new CustomElement(I18N::translate('Phrase')),
921            'FAM:ASSO:ROLE'              => new RoleInEvent(I18N::translate('Role')),
922            'FAM:ASSO:ROLE:PHRASE'       => new CustomElement(I18N::translate('Phrase')),
923            'FAM:CREA'                   => new Creation(I18N::translate('Created at')),
924            'FAM:CREA:DATE'              => new DateValue(I18N::translate('Creation date')),
925            'FAM:CREA:DATE:TIME'         => new TimeValue(I18N::translate('Creation time')),
926            'FAM:EXID'                   => new ExternalIdentifier(I18N::translate('External identifier')),
927            'FAM:EXID:TYPE'              => new ExternalIdentifierType(I18N::translate('Type')),
928            'FAM:FACT'                   => new FamilyFact(I18N::translate('Fact')),
929            'FAM:REFN'                   => new UserReferenceNumber(I18N::translate('Reference number')),
930            'FAM:REFN:TYPE'              => new UserReferenceType(I18N::translate('Type')),
931            'FAM:SNOTE'                  => new XrefSharedNote(I18N::translate('Shared note')),
932            'FAM:UID'                    => new Uid(I18N::translate('Unique identifier')),
933            'INDI:*:ASSO'                => new XrefAssociate(I18N::translate('Associate')),
934            'INDI:*:ASSO:PHRASE'         => new CustomElement(I18N::translate('Phrase')),
935            'INDI:*:ASSO:ROLE'           => new RoleInEvent(I18N::translate('Role')),
936            'INDI:*:ASSO:ROLE:PHRASE'    => new CustomElement(I18N::translate('Phrase')),
937            'INDI:*:DATE:TIME'           => new TimeValue(I18N::translate('Time')),
938            'INDI:*:PLAC:EXID'           => new ExternalIdentifier(I18N::translate('External identifier')),
939            'INDI:*:PLAC:EXID:TYPE'      => new ExternalIdentifierType(I18N::translate('Type')),
940            'INDI:*:SDATE'               => new CustomElement(I18N::translate('Sort date')),
941            'INDI:*:SDATE:PHRASE'        => new CustomElement(I18N::translate('Phrase')),
942            'INDI:*:SDATE:TIME'          => new CustomElement(I18N::translate('Sort time')),
943            'INDI:*:SNOTE'               => new XrefSharedNote(I18N::translate('Shared note')),
944            'INDI:*:UID'                 => new Uid(I18N::translate('Unique identifier')),
945            'INDI:ADOP:FAMC:ADOP:PHRASE' => new CustomElement(I18N::translate('Phrase')),
946            'INDI:ALIA:PHRASE'           => new CustomElement(I18N::translate('Phrase')),
947            'INDI:ASSO'                  => new XrefAssociate(I18N::translate('Associate')),
948            'INDI:ASSO:PHRASE'           => new CustomElement(I18N::translate('Phrase')),
949            'INDI:ASSO:ROLE'             => new RoleInEvent(I18N::translate('Role')),
950            'INDI:ASSO:ROLE:PHRASE'      => new CustomElement(I18N::translate('Phrase')),
951            'INDI:BIRT:DATE:TIME'        => new TimeValue(I18N::translate('Time of birth')),
952            'INDI:CREA'                  => new Creation(I18N::translate('Created at')),
953            'INDI:CREA:DATE'             => new DateValue(I18N::translate('Creation date')),
954            'INDI:CREA:DATE:TIME'        => new TimeValue(I18N::translate('Creation time')),
955            'INDI:DEAT:DATE:TIME'        => new TimeValue(I18N::translate('Time of death')),
956            'INDI:EXID'                  => new ExternalIdentifier(I18N::translate('External identifier')),
957            'INDI:EXID:TYPE'             => new ExternalIdentifierType(I18N::translate('Type')),
958            'INDI:INIL'                  => /* I18N: GEDCOM tag INIL - an LDS ceremony */ new LdsInitiatory(I18N::translate('LDS initiatory')),
959            'INDI:INIL:STAT'             => new LdsOrdinanceStatus(I18N::translate('Status')),
960            'INDI:INIL:STAT:DATE'        => new ChangeDate(I18N::translate('Date of status change')),
961            'INDI:INIL:STAT:DATE:TIME'   => new TimeValue(I18N::translate('Time of status change')),
962            'INDI:INIL:TEMP'             => new TempleCode(I18N::translate('Temple')),
963            'INDI:REFN'                  => new UserReferenceNumber(I18N::translate('Reference number')),
964            'INDI:REFN:TYPE'             => new UserReferenceType(I18N::translate('Type')),
965            'INDI:SNOTE'                 => new XrefSharedNote(I18N::translate('Shared note')),
966            'INDI:UID'                   => new Uid(I18N::translate('Unique identifier')),
967            'OBJE:CREA'                  => new Creation(I18N::translate('Created at')),
968            'OBJE:CREA:DATE'             => new DateValue(I18N::translate('Creation date')),
969            'OBJE:CREA:DATE:TIME'        => new TimeValue(I18N::translate('Creation time')),
970            'OBJE:SNOTE'                 => new XrefSharedNote(I18N::translate('Shared note')),
971            'REPO:CREA'                  => new Creation(I18N::translate('Created at')),
972            'REPO:CREA:DATE'             => new DateValue(I18N::translate('Creation date')),
973            'REPO:CREA:DATE:TIME'        => new TimeValue(I18N::translate('Creation time')),
974            'REPO:EXID'                  => new ExternalIdentifier(I18N::translate('External identifier')),
975            'REPO:EXID:TYPE'             => new ExternalIdentifierType(I18N::translate('Type')),
976            'REPO:REFN'                  => new UserReferenceNumber(I18N::translate('Reference number')),
977            'REPO:REFN:TYPE'             => new UserReferenceType(I18N::translate('Type')),
978            'REPO:SNOTE'                 => new XrefSharedNote(I18N::translate('Shared note')),
979            'REPO:UID'                   => new Uid(I18N::translate('Unique identifier')),
980            'SNOTE:CREA'                 => new Creation(I18N::translate('Created at')),
981            'SNOTE:CREA:DATE'            => new DateValue(I18N::translate('Creation date')),
982            'SNOTE:CREA:DATE:TIME'       => new TimeValue(I18N::translate('Creation time')),
983            'SNOTE:EXID'                 => new ExternalIdentifier(I18N::translate('External identifier')),
984            'SNOTE:EXID:TYPE'            => new ExternalIdentifierType(I18N::translate('Type')),
985            'SNOTE:REFN'                 => new UserReferenceNumber(I18N::translate('Reference number')),
986            'SNOTE:REFN:TYPE'            => new UserReferenceType(I18N::translate('Type')),
987            'SNOTE:UID'                  => new Uid(I18N::translate('Unique identifier')),
988            'SOUR:CREA'                  => new Creation(I18N::translate('Created at')),
989            'SOUR:CREA:DATE'             => new DateValue(I18N::translate('Creation date')),
990            'SOUR:CREA:DATE:TIME'        => new TimeValue(I18N::translate('Creation time')),
991            'SOUR:EXID'                  => new ExternalIdentifier(I18N::translate('External identifier')),
992            'SOUR:EXID:TYPE'             => new ExternalIdentifierType(I18N::translate('Type')),
993            'SOUR:REFN'                  => new UserReferenceNumber(I18N::translate('Reference number')),
994            'SOUR:REFN:TYPE'             => new UserReferenceType(I18N::translate('Type')),
995            'SOUR:SNOTE'                 => new XrefSharedNote(I18N::translate('Shared note')),
996            'SOUR:UID'                   => new Uid(I18N::translate('Unique identifier')),
997            'SUBM:CREA'                  => new Creation(I18N::translate('Created at')),
998            'SUBM:CREA:DATE'             => new DateValue(I18N::translate('Creation date')),
999            'SUBM:CREA:DATE:TIME'        => new TimeValue(I18N::translate('Creation time')),
1000            'SUBM:EXID'                  => new ExternalIdentifier(I18N::translate('External identifier')),
1001            'SUBM:EXID:TYPE'             => new ExternalIdentifierType(I18N::translate('Type')),
1002            'SUBM:REFN'                  => new UserReferenceNumber(I18N::translate('Reference number')),
1003            'SUBM:REFN:TYPE'             => new UserReferenceType(I18N::translate('Type')),
1004            'SUBM:SNOTE'                 => new XrefSharedNote(I18N::translate('Shared note')),
1005            'SUBM:UID'                   => new Uid(I18N::translate('Unique identifier')),
1006        ];
1007    }
1008
1009    /**
1010     * Aldfaer also uses: _BOLD, _ITALIC, _UNDERLINE, _COLOR
1011     *
1012     * @return array<string,ElementInterface>
1013     */
1014    private function aldfaerTags(): array
1015    {
1016        return [
1017            'FAM:MARR_CIVIL'           => new Marriage(I18N::translate('Civil marriage')),
1018            'FAM:MARR_PARTNERS'        => new Marriage(I18N::translate('Registered partnership')),
1019            'FAM:MARR_RELIGIOUS'       => new Marriage(I18N::translate('Religious marriage')),
1020            'FAM:MARR_UNKNOWN'         => new Marriage(I18N::translate('Marriage')),
1021            'FAM:_ALDFAER_NOREL'       => new EmptyElement('No relation'), // What is this?
1022            'HEAD:SUBM:ADDR'           => new AddressLine(I18N::translate('Address')),
1023            'HEAD:SUBM:PHON'           => new PhoneNumber(I18N::translate('Phone')),
1024            'HEAD:SUBM:_EMAI'          => new AddressEmail(I18N::translate('Email')),
1025            'HEAD:SUBM:_FAX'           => new AddressFax(I18N::translate('Fax')),
1026            'HEAD:SUBM:_WWW'           => new AddressWebPage(I18N::translate('URL')),
1027            'INDI:BIRT:_ALDFAER_TIME'  => new TimeValue(I18N::translate('Time of birth')),
1028            'INDI:BIRT:_LENGTH'        => new CustomElement(I18N::translate('Length')),
1029            'INDI:BIRT:_WEIGHT'        => new CustomElement(I18N::translate('Weight')),
1030            'INDI:DEAT:_ALDFAER_TIME'  => new TimeValue(I18N::translate('Time of death')),
1031            'INDI:_REFERENCE'          => new CustomElement(''),
1032            'INDI:_PRIVACY'            => new CustomElement(''),
1033            'INDI:_PRIVACY:_OBJECTION' => new CustomElement(''),
1034            'INDI:_PRIVACY:_PUBLISH'   => new CustomElement(''),
1035            'INDI:NAME:_SURNAS'        => new CustomElement(I18N::translate('Alternative spelling of surname')),
1036            'INDI:DEAT:_DATE'          => new DateValue(I18N::translate('Date')),
1037            'INDI:_INQUBIRT'           => new CustomElement(''),
1038            'INDI:_INQUCHIL'           => new CustomElement(''),
1039            'INDI:_INQURELA'           => new CustomElement(''),
1040            'INDI:_INQUDEAT'           => new CustomElement(''),
1041            'INDI:_INQUVAR1'           => new CustomElement(''),
1042            'INDI:_INQUVAR1CAT'        => new CustomElement(''),
1043            'INDI:_INQUVAR2'           => new CustomElement(''),
1044            'INDI:_INQUVAR2CAT'        => new CustomElement(''),
1045            'INDI:_INQUVAR3'           => new CustomElement(''),
1046            'INDI:_INQUVAR3CAT'        => new CustomElement(''),
1047            'INDI:_NOPARTNER'          => new CustomElement(''),
1048            'INDI:_NEW'                => new CustomElement(''),
1049        ];
1050    }
1051
1052    /**
1053     * @return array<string,ElementInterface>
1054     *
1055     * @see https://www.webtrees.net/index.php/en/forum/help-for-release-2-1-x/36664-2-1-beta-support-for-indi-even-sour-data-note-and-the-like
1056     */
1057    private function ancestryTags(): array
1058    {
1059        return [
1060            'HEAD:SOUR:_TREE'       => new CustomElement(I18N::translate('Family tree')),
1061            'HEAD:SOUR:_TREE:NOTE'  => new SubmitterText(I18N::translate('Note')),
1062            'HEAD:SOUR:_TREE:RIN'   => new AutomatedRecordId(I18N::translate('Record ID number')),
1063            'INDI:*:SOUR:_APID'     => /* I18N: GEDCOM tag _APID */ new CustomElement(I18N::translate('Ancestry PID')),
1064            'INDI:*:SOUR:DATA:NOTE' => new SubmitterText(I18N::translate('Note')),
1065            'INDI:_EMPLOY'          => new CustomFact(I18N::translate('Occupation')),
1066            'INDI:_FUN'             => new CustomEvent(I18N::translate('Funeral')),
1067            'INDI:_INIT'            => new LdsInitiatory(I18N::translate('LDS initiatory')),
1068            'INDI:_ORDI'            => new CustomEvent(I18N::translate('Ordination')),
1069            'INDI:_ORIG'            => new CustomFact(I18N::translate('Origin')),
1070            'INDI:_DEST'            => new CustomFact(I18N::translate('Destination')),
1071            'OBJE:DATE'             => new DateValue(I18N::translate('Date')),
1072            'OBJE:PLAC'             => new PlaceName(I18N::translate('Place')),
1073            'OBJE:_CREA'            => /* I18N: GEDCOM tag _CREA */ new CustomElement(I18N::translate('Created at')),
1074            'OBJE:_ORIG'            => /* I18N: GEDCOM tag _ORIG */ new CustomElement(I18N::translate('Original text')),
1075            'OBJE:_ORIG:_URL'       => new AddressWebPage(I18N::translate('URL')),
1076        ];
1077    }
1078
1079    /**
1080     * @return array<string,ElementInterface>
1081     *
1082     * @see https://wiki-de.genealogy.net/GEDCOM/_Nutzerdef-Tag
1083     */
1084    private function brothersKeeperTags(): array
1085    {
1086        return [
1087            'FAM:*:_EVN'       => new CustomElement('Event number'),
1088            'FAM:CHIL:_FREL'   => new CustomElement(I18N::translate('Relationship to father')),
1089            'FAM:CHIL:_MREL'   => new CustomElement(I18N::translate('Relationship to mother')),
1090            'FAM:_COML'        => new CustomFamilyEvent(I18N::translate('Common law marriage')),
1091            'FAM:_MARI'        => new CustomFamilyEvent(I18N::translate('Marriage intention')),
1092            'FAM:_MBON'        => new CustomFamilyEvent(I18N::translate('Marriage bond')),
1093            'FAM:_NMR'         => new CustomFamilyEvent(I18N::translate('Not married'), ['NOTE' => '0:M', 'SOUR' => '0:M']),
1094            'FAM:_PRMN'        => new CustomElement(I18N::translate('Permanent number')),
1095            'FAM:_SEPR'        => new CustomFamilyEvent(I18N::translate('Separated')),
1096            'FAM:_TODO'        => new CustomElement(I18N::translate('Research task')),
1097            'INDI:*:_EVN'      => new CustomElement('Event number'),
1098            'INDI:NAME:_ADPN'  => new NamePersonal(I18N::translate('Adopted name'), []),
1099            'INDI:NAME:_AKAN'  => new NamePersonal(I18N::translate('Also known as'), []),
1100            'INDI:NAME:_BIRN'  => new NamePersonal(I18N::translate('Birth name'), []),
1101            'INDI:NAME:_CALL'  => new NamePersonal('Called name', []),
1102            'INDI:NAME:_CENN'  => new NamePersonal('Census name', []),
1103            'INDI:NAME:_CURN'  => new NamePersonal('Current name', []),
1104            'INDI:NAME:_FARN'  => new NamePersonal(I18N::translate('Estate name'), []),
1105            'INDI:NAME:_FKAN'  => new NamePersonal('Formal name', []),
1106            'INDI:NAME:_FRKA'  => new NamePersonal('Formerly known as', []),
1107            'INDI:NAME:_GERN'  => new NamePersonal('German name', []),
1108            'INDI:NAME:_HEBN'  => new NamePersonal(I18N::translate('Hebrew name'), []),
1109            'INDI:NAME:_HNM'   => new NamePersonal(I18N::translate('Hebrew name'), []),
1110            'INDI:NAME:_INDG'  => new NamePersonal('Indigenous name', []),
1111            'INDI:NAME:_INDN'  => new NamePersonal('Indian name', []),
1112            'INDI:NAME:_LNCH'  => new NamePersonal('Legal name change', []),
1113            'INDI:NAME:_MARN'  => new NamePersonal('Married name', []),
1114            'INDI:NAME:_MARNM' => new NamePersonal('Married name', []),
1115            'INDI:NAME:_OTHN'  => new NamePersonal('Other name', []),
1116            'INDI:NAME:_RELN'  => new NamePersonal('Religious name', []),
1117            'INDI:NAME:_SHON'  => new NamePersonal('Short name', []),
1118            'INDI:NAME:_SLDN'  => new NamePersonal('Soldier name', []),
1119            'INDI:_ADPF'       => new CustomElement(I18N::translate('Adopted by father')),
1120            'INDI:_ADPM'       => new CustomElement(I18N::translate('Adopted by mother')),
1121            'INDI:_BRTM'       => new CustomIndividualEvent(I18N::translate('Brit milah')),
1122            'INDI:_BRTM:DATE'  => new DateValue(I18N::translate('Date of brit milah')),
1123            'INDI:_BRTM:PLAC'  => new PlaceName(I18N::translate('Place of brit milah')),
1124            'INDI:_EMAIL'      => new AddressEmail(I18N::translate('Email address')),
1125            'INDI:_EYEC'       => new CustomFact(I18N::translate('Eye color')),
1126            'INDI:_FNRL'       => new CustomElement(I18N::translate('Funeral')),
1127            'INDI:_HAIR'       => new CustomFact(I18N::translate('Hair color')),
1128            'INDI:_HEIG'       => new CustomFact(I18N::translate('Height')),
1129            'INDI:_INTE'       => new CustomElement(I18N::translate('Interment')),
1130            'INDI:_MEDC'       => new CustomFact(I18N::translate('Medical')),
1131            'INDI:_MILT'       => new CustomElement(I18N::translate('Military service')),
1132            'INDI:_NLIV'       => new CustomFact(I18N::translate('Not living')),
1133            'INDI:_NMAR'       => new CustomEvent(I18N::translate('Never married'), ['NOTE' => '0:M', 'SOUR' => '0:M']),
1134            'INDI:_PRMN'       => new CustomElement(I18N::translate('Permanent number')),
1135            'INDI:_TODO'       => new CustomElement(I18N::translate('Research task')),
1136            'INDI:_WEIG'       => new CustomFact(I18N::translate('Weight')),
1137            'INDI:_YART'       => new CustomIndividualEvent(I18N::translate('Yahrzeit')),
1138            // 1 XXXX
1139            // 2 _EVN ##
1140            // 1 ASSO @Xnnn@
1141            // 2 RELA Witness at event _EVN ##
1142        ];
1143    }
1144
1145    /**
1146     * @return array<string,ElementInterface>
1147     */
1148    private function familySearchTags(): array
1149    {
1150        return [
1151            'INDI:_FSFTID' => /* I18N: familysearch.org */ new FamilySearchFamilyTreeId(I18N::translate('FamilySearch ID')),
1152        ];
1153    }
1154
1155    /**
1156     * @return array<string,ElementInterface>
1157     */
1158    private function familyTreeBuilderTags(): array
1159    {
1160        return [
1161            '*:_UPD'              => /* I18N: GEDCOM tag _UPD */ new CustomElement(I18N::translate('Updated at')), // e.g. "1 _UPD 14 APR 2012 00:14:10 GMT-5"
1162            'INDI:NAME:_AKA'      => new NamePersonal(I18N::translate('Also known as'), []),
1163            'OBJE:_ALBUM'         => new CustomElement(I18N::translate('Album')), // XREF to an album
1164            'OBJE:_DATE'          => new DateValue(I18N::translate('Date')),
1165            'OBJE:_FILESIZE'      => new CustomElement(I18N::translate('File size')),
1166            'OBJE:_PHOTO_RIN'     => new CustomElement(I18N::translate('Record ID number')),
1167            'OBJE:_PLACE'         => new PlaceName(I18N::translate('Place')),
1168            '_ALBUM:_PHOTO'       => new CustomElement(I18N::translate('Photo')),
1169            '_ALBUM:_PHOTO:_PRIN' => new CustomElement(I18N::translate('Highlighted image')),
1170        ];
1171    }
1172
1173    /**
1174     * @return array<string,ElementInterface>
1175     *
1176     * @see https://wiki-de.genealogy.net/GEDCOM/_Nutzerdef-Tag
1177     */
1178    private function familyTreeMakerTags(): array
1179    {
1180        return [
1181            'FAM:CHIL:_FREL'              => new CustomElement(I18N::translate('Relationship to father')),
1182            'FAM:CHIL:_MREL'              => new CustomElement(I18N::translate('Relationship to mother')),
1183            'FAM:_DETS'                   => new CustomElement(I18N::translate('Death of one spouse')),
1184            'FAM:_FA1'                    => new CustomElement(I18N::translate('Fact 1')),
1185            'FAM:_FA10'                   => new CustomElement(I18N::translate('Fact 10')),
1186            'FAM:_FA11'                   => new CustomElement(I18N::translate('Fact 11')),
1187            'FAM:_FA12'                   => new CustomElement(I18N::translate('Fact 12')),
1188            'FAM:_FA13'                   => new CustomElement(I18N::translate('Fact 13')),
1189            'FAM:_FA2'                    => new CustomElement(I18N::translate('Fact 2')),
1190            'FAM:_FA3'                    => new CustomElement(I18N::translate('Fact 3')),
1191            'FAM:_FA4'                    => new CustomElement(I18N::translate('Fact 4')),
1192            'FAM:_FA5'                    => new CustomElement(I18N::translate('Fact 5')),
1193            'FAM:_FA6'                    => new CustomElement(I18N::translate('Fact 6')),
1194            'FAM:_FA7'                    => new CustomElement(I18N::translate('Fact 7')),
1195            'FAM:_FA8'                    => new CustomElement(I18N::translate('Fact 8')),
1196            'FAM:_FA9'                    => new CustomElement(I18N::translate('Fact 9')),
1197            'FAM:_MEND'                   => new CustomElement(I18N::translate('Marriage ending status')),
1198            'FAM:_MSTAT'                  => new CustomElement(I18N::translate('Marriage beginning status')),
1199            'FAM:_SEPR'                   => new CustomElement(I18N::translate('Separation')),
1200            'HEAD:_SCHEMA'                => new CustomElement(I18N::translate('Schema')),
1201            'HEAD:_SCHEMA:FAM'            => new CustomElement(I18N::translate('Family')),
1202            'HEAD:_SCHEMA:FAM:_FA*:LABL'  => new CustomElement(I18N::translate('Label')),
1203            'HEAD:_SCHEMA:FAM:_FA1'       => new CustomElement(I18N::translate('Fact 1')),
1204            'HEAD:_SCHEMA:FAM:_FA10'      => new CustomElement(I18N::translate('Fact 10')),
1205            'HEAD:_SCHEMA:FAM:_FA11'      => new CustomElement(I18N::translate('Fact 11')),
1206            'HEAD:_SCHEMA:FAM:_FA12'      => new CustomElement(I18N::translate('Fact 12')),
1207            'HEAD:_SCHEMA:FAM:_FA13'      => new CustomElement(I18N::translate('Fact 13')),
1208            'HEAD:_SCHEMA:FAM:_FA2'       => new CustomElement(I18N::translate('Fact 2')),
1209            'HEAD:_SCHEMA:FAM:_FA3'       => new CustomElement(I18N::translate('Fact 3')),
1210            'HEAD:_SCHEMA:FAM:_FA4'       => new CustomElement(I18N::translate('Fact 4')),
1211            'HEAD:_SCHEMA:FAM:_FA5'       => new CustomElement(I18N::translate('Fact 5')),
1212            'HEAD:_SCHEMA:FAM:_FA6'       => new CustomElement(I18N::translate('Fact 6')),
1213            'HEAD:_SCHEMA:FAM:_FA7'       => new CustomElement(I18N::translate('Fact 7')),
1214            'HEAD:_SCHEMA:FAM:_FA8'       => new CustomElement(I18N::translate('Fact 8')),
1215            'HEAD:_SCHEMA:FAM:_FA9'       => new CustomElement(I18N::translate('Fact 9')),
1216            'HEAD:_SCHEMA:FAM:_M*:LABL'   => new CustomElement(I18N::translate('Label')),
1217            'HEAD:_SCHEMA:FAM:_MEND'      => new CustomElement(I18N::translate('Marriage ending status')),
1218            'HEAD:_SCHEMA:FAM:_MSTAT'     => new CustomElement(I18N::translate('Marriage beginning status')),
1219            'HEAD:_SCHEMA:INDI'           => new CustomElement(I18N::translate('Individual')),
1220            'HEAD:_SCHEMA:INDI:_FA*:LABL' => new CustomElement(I18N::translate('Label')),
1221            'HEAD:_SCHEMA:INDI:_FA1'      => new CustomElement(I18N::translate('Fact 1')),
1222            'HEAD:_SCHEMA:INDI:_FA10'     => new CustomElement(I18N::translate('Fact 10')),
1223            'HEAD:_SCHEMA:INDI:_FA11'     => new CustomElement(I18N::translate('Fact 11')),
1224            'HEAD:_SCHEMA:INDI:_FA12'     => new CustomElement(I18N::translate('Fact 12')),
1225            'HEAD:_SCHEMA:INDI:_FA13'     => new CustomElement(I18N::translate('Fact 13')),
1226            'HEAD:_SCHEMA:INDI:_FA2'      => new CustomElement(I18N::translate('Fact 2')),
1227            'HEAD:_SCHEMA:INDI:_FA3'      => new CustomElement(I18N::translate('Fact 3')),
1228            'HEAD:_SCHEMA:INDI:_FA4'      => new CustomElement(I18N::translate('Fact 4')),
1229            'HEAD:_SCHEMA:INDI:_FA5'      => new CustomElement(I18N::translate('Fact 5')),
1230            'HEAD:_SCHEMA:INDI:_FA6'      => new CustomElement(I18N::translate('Fact 6')),
1231            'HEAD:_SCHEMA:INDI:_FA7'      => new CustomElement(I18N::translate('Fact 7')),
1232            'HEAD:_SCHEMA:INDI:_FA8'      => new CustomElement(I18N::translate('Fact 8')),
1233            'HEAD:_SCHEMA:INDI:_FA9'      => new CustomElement(I18N::translate('Fact 9')),
1234            'HEAD:_SCHEMA:INDI:_FREL'     => new CustomElement(I18N::translate('Relationship to father')),
1235            'HEAD:_SCHEMA:INDI:_M*:LABL'  => new CustomElement(I18N::translate('Label')),
1236            'HEAD:_SCHEMA:INDI:_MREL'     => new CustomElement(I18N::translate('Relationship to mother')),
1237            'INDI:*:SOUR:_APID'           => /* I18N: GEDCOM tag _APID */ new CustomElement(I18N::translate('Ancestry.com source identifier')),
1238            'INDI:*:SOUR:_LINK'           => new CustomElement(I18N::translate('External link')),
1239            'INDI:NAME:_AKA'              => new NamePersonal(I18N::translate('Also known as'), []),
1240            'INDI:NAME:_MARNM'            => new NamePersonal(I18N::translate('Married name'), []),
1241            'INDI:_CIRC'                  => new CustomElement(I18N::translate('Circumcision')),
1242            'INDI:_DCAUSE'                => new CustomElement(I18N::translate('Cause of death')),
1243            'INDI:_DEG'                   => new CustomElement(I18N::translate('Degree')),
1244            'INDI:_DNA'                   => new CustomElement(I18N::translate('DNA markers')),
1245            'INDI:_ELEC'                  => new CustomElement('Elected'),
1246            'INDI:_EMPLOY'                => new CustomElement('Employment'),
1247            'INDI:_EXCM'                  => new CustomElement('Excommunicated'),
1248            'INDI:_FA1'                   => new CustomElement(I18N::translate('Fact 1')),
1249            'INDI:_FA10'                  => new CustomElement(I18N::translate('Fact 10')),
1250            'INDI:_FA11'                  => new CustomElement(I18N::translate('Fact 11')),
1251            'INDI:_FA12'                  => new CustomElement(I18N::translate('Fact 12')),
1252            'INDI:_FA13'                  => new CustomElement(I18N::translate('Fact 13')),
1253            'INDI:_FA2'                   => new CustomElement(I18N::translate('Fact 2')),
1254            'INDI:_FA3'                   => new CustomElement(I18N::translate('Fact 3')),
1255            'INDI:_FA4'                   => new CustomElement(I18N::translate('Fact 4')),
1256            'INDI:_FA5'                   => new CustomElement(I18N::translate('Fact 5')),
1257            'INDI:_FA6'                   => new CustomElement(I18N::translate('Fact 6')),
1258            'INDI:_FA7'                   => new CustomElement(I18N::translate('Fact 7')),
1259            'INDI:_FA8'                   => new CustomElement(I18N::translate('Fact 8')),
1260            'INDI:_FA9'                   => new CustomElement(I18N::translate('Fact 9')),
1261            'INDI:_MDCL'                  => new CustomElement(I18N::translate('Medical')),
1262            'INDI:_MILT'                  => new CustomElement(I18N::translate('Military service')),
1263            'INDI:_MILTID'                => new CustomElement('Military ID number'),
1264            'INDI:_MISN'                  => new CustomElement('Mission'),
1265            'INDI:_NAMS'                  => new CustomElement(I18N::translate('Namesake')),
1266            'INDI:_UNKN'                  => new CustomElement(I18N::translate('Unknown')), // Special individual ID code for later file comparisons
1267        ];
1268    }
1269
1270    /**
1271     * @return array<string,ElementInterface>
1272     */
1273    private function gedcomLTags(): array
1274    {
1275        return [
1276            'FAM:*:ADDR:_NAME'                => new CustomElement(I18N::translate('Name of addressee')),
1277            // I18N: https://gov.genealogy.net
1278            'FAM:*:PLAC:_GOV'                 => new GovIdentifier(I18N::translate('GOV identifier')),
1279            'FAM:*:PLAC:_LOC'                 => new XrefLocation(I18N::translate('Location')),
1280            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
1281            'FAM:*:PLAC:_MAIDENHEAD'          => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
1282            'FAM:*:PLAC:_POST'                => new AddressPostalCode(I18N::translate('Postal code')),
1283            'FAM:*:PLAC:_POST:DATE'           => new DateValue(I18N::translate('Date')),
1284            'FAM:*:_ASSO'                     => new XrefAssociate(I18N::translate('Associate')),
1285            'FAM:*:_ASSO:NOTE'                => new NoteStructure(I18N::translate('Note on association')),
1286            'FAM:*:_ASSO:RELA'                => new RelationIsDescriptor(I18N::translate('Relationship')),
1287            'FAM:*:_ASSO:SOUR'                => new XrefSource(I18N::translate('Source citation')),
1288            'FAM:*:_ASSO:SOUR:DATA'           => new SourceData(I18N::translate('Data')),
1289            'FAM:*:_ASSO:SOUR:DATA:DATE'      => new DateValue(I18N::translate('Date of entry in original source')),
1290            'FAM:*:_ASSO:SOUR:DATA:TEXT'      => new TextFromSource(I18N::translate('Text')),
1291            'FAM:*:_ASSO:SOUR:EVEN'           => new EventTypeCitedFrom(I18N::translate('Event')),
1292            'FAM:*:_ASSO:SOUR:EVEN:ROLE'      => new RoleInEvent(I18N::translate('Role')),
1293            'FAM:*:_ASSO:SOUR:NOTE'           => new NoteStructure(I18N::translate('Note on source citation')),
1294            'FAM:*:_ASSO:SOUR:OBJE'           => new XrefMedia(I18N::translate('Media object')),
1295            'FAM:*:_ASSO:SOUR:PAGE'           => new WhereWithinSource(I18N::translate('Citation details')),
1296            'FAM:*:_ASSO:SOUR:QUAY'           => new CertaintyAssessment(I18N::translate('Quality of data')),
1297            'FAM:*:_WITN'                     => new CustomElement(I18N::translate('Witnesses')),
1298            'FAM:_ASSO'                       => new XrefAssociate(I18N::translate('Associate')),
1299            'FAM:_ASSO:RELA'                  => new RelationIsDescriptor(I18N::translate('Relationship')),
1300            'FAM:_STAT'                       => new FamilyStatusText(I18N::translate('Family status')),
1301            'FAM:_TODO'                       => new ResearchTask(I18N::translate('Research task'), ['DESC' => '1:1', '_CAT' => '0:1', '_PRTY' => '0:1', 'TYPE' => '0:1', 'NOTE' => '0:M', 'DATA' => '0:1', 'STAT'  => '0:1', '_CDATE' => '0:1', '_RDATE' => '0:1', 'REPO' => '0:1', '_UID' => '0:M']),
1302            'FAM:_TODO:DATA'                  => new SubmitterText(I18N::translate('The solution')),
1303            'FAM:_TODO:DATE'                  => new DateValue(I18N::translate('Creation date')),
1304            'FAM:_TODO:DESC'                  => new CustomElement(I18N::translate('Description')),
1305            'FAM:_TODO:NOTE'                  => new NoteStructure(I18N::translate('Note')),
1306            'FAM:_TODO:REPO'                  => new XrefRepository(I18N::translate('Repository'), []),
1307            'FAM:_TODO:STAT'                  => new ResearchTaskStatus(I18N::translate('Status')),
1308            'FAM:_TODO:TYPE'                  => new ResearchTaskType(I18N::translate('Type of research task')),
1309            'FAM:_TODO:_CAT'                  => new CustomElement(I18N::translate('Category')),
1310            'FAM:_TODO:_CDATE'                => new DateValue(I18N::translate('Completion date')),
1311            'FAM:_TODO:_PRTY'                 => new ResearchTaskPriority(I18N::translate('Priority')),
1312            'FAM:_TODO:_RDATE'                => new DateValue(I18N::translate('Reminder date')),
1313            'FAM:_UID'                        => new PafUid(I18N::translate('Unique identifier')),
1314            'HEAD:GEDC:VERS:_ADDENDUM'        => new EmptyElement(I18N::translate('GEDCOM-L')),
1315            'HEAD:GEDC:VERS:_ADDENDUM:VERS'   => new VersionNumber(I18N::translate('Version')),
1316            'HEAD:GEDC:VERS:_ADDENDUM:WWW'    => new AddressWebPage(I18N::translate('URL')),
1317            'HEAD:SOUR:CORP:ADDR:_NAME'       => new CustomElement(I18N::translate('Name of addressee')),
1318            'HEAD:_SCHEMA'                    => new EmptyElement(I18N::translate('Schema')),
1319            'HEAD:_SCHEMA:*'                  => new EmptyElement(I18N::translate('Base GEDCOM tag')),
1320            'HEAD:_SCHEMA:*:*'                => new EmptyElement(I18N::translate('New GEDCOM tag')),
1321            'HEAD:_SCHEMA:*:*:*'              => new EmptyElement(I18N::translate('New GEDCOM tag')),
1322            'HEAD:_SCHEMA:*:*:*:*'            => new EmptyElement(I18N::translate('New GEDCOM tag')),
1323            'HEAD:_SCHEMA:*:*:*:*:*'          => new EmptyElement(I18N::translate('New GEDCOM tag')),
1324            'HEAD:_SCHEMA:*:*:*:*:*:*'        => new EmptyElement(I18N::translate('New GEDCOM tag')),
1325            'HEAD:_SCHEMA:*:*:*:*:*:*:_DEFN'  => new EmptyElement(I18N::translate('Definition')),
1326            'HEAD:_SCHEMA:*:*:*:*:*:_DEFN'    => new EmptyElement(I18N::translate('Definition')),
1327            'HEAD:_SCHEMA:*:*:*:*:_DEFN'      => new EmptyElement(I18N::translate('Definition')),
1328            'HEAD:_SCHEMA:*:*:*:_DEFN'        => new EmptyElement(I18N::translate('Definition')),
1329            'HEAD:_SCHEMA:*:*:_DEFN'          => new EmptyElement(I18N::translate('Definition')),
1330            'INDI:*:ADDR:_NAME'               => new CustomElement(I18N::translate('Name of addressee')),
1331            // I18N: https://gov.genealogy.net
1332            'INDI:*:PLAC:_GOV'                => new GovIdentifier(I18N::translate('GOV identifier')),
1333            'INDI:*:PLAC:_LOC'                => new XrefLocation(I18N::translate('Location')),
1334            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
1335            'INDI:*:PLAC:_MAIDENHEAD'         => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
1336            'INDI:*:PLAC:_POST'               => new AddressPostalCode(I18N::translate('Postal code')),
1337            'INDI:*:PLAC:_POST:DATE'          => new DateValue(I18N::translate('Date')),
1338            'INDI:*:_ASSO'                    => new XrefAssociate(I18N::translate('Associate')),
1339            'INDI:*:_ASSO:NOTE'               => new NoteStructure(I18N::translate('Note on association')),
1340            'INDI:*:_ASSO:RELA'               => new RelationIsDescriptor(I18N::translate('Relationship')),
1341            'INDI:*:_ASSO:SOUR'               => new XrefSource(I18N::translate('Source citation')),
1342            'INDI:*:_ASSO:SOUR:DATA'          => new SourceData(I18N::translate('Data')),
1343            'INDI:*:_ASSO:SOUR:DATA:DATE'     => new DateValue(I18N::translate('Date of entry in original source')),
1344            'INDI:*:_ASSO:SOUR:DATA:TEXT'     => new TextFromSource(I18N::translate('Text')),
1345            'INDI:*:_ASSO:SOUR:EVEN'          => new EventTypeCitedFrom(I18N::translate('Event')),
1346            'INDI:*:_ASSO:SOUR:EVEN:ROLE'     => new RoleInEvent(I18N::translate('Role')),
1347            'INDI:*:_ASSO:SOUR:NOTE'          => new NoteStructure(I18N::translate('Note on source citation')),
1348            'INDI:*:_ASSO:SOUR:OBJE'          => new XrefMedia(I18N::translate('Media object')),
1349            'INDI:*:_ASSO:SOUR:PAGE'          => new WhereWithinSource(I18N::translate('Citation details')),
1350            'INDI:*:_ASSO:SOUR:QUAY'          => new CertaintyAssessment(I18N::translate('Quality of data')),
1351            'INDI:*:_WITN'                    => new CustomElement(I18N::translate('Witnesses')),
1352            'INDI:BAPM:_GODP'                 => new CustomElement(I18N::translate('Godparents')),
1353            'INDI:CHR:_GODP'                  => new CustomElement(I18N::translate('Godparents')),
1354            'INDI:NAME:_RUFNAME'              => new NamePieceGiven(I18N::translate('Rufname')),
1355            'INDI:OBJE:_PRIM'                 => new CustomElement(I18N::translate('Highlighted image')),
1356            'INDI:SEX'                        => new SexXValue(I18N::translate('Gender')),
1357            'INDI:_TODO'                      => new ResearchTask(I18N::translate('Research task')),
1358            'INDI:_TODO:DATA'                 => new SubmitterText(I18N::translate('The solution')),
1359            'INDI:_TODO:DATE'                 => new DateValue(I18N::translate('Creation date')),
1360            'INDI:_TODO:DESC'                 => new CustomElement(I18N::translate('Description')),
1361            'INDI:_TODO:NOTE'                 => new NoteStructure(I18N::translate('Note')),
1362            'INDI:_TODO:REPO'                 => new XrefRepository(I18N::translate('Repository'), []),
1363            'INDI:_TODO:STAT'                 => new ResearchTaskStatus(I18N::translate('Status')),
1364            'INDI:_TODO:TYPE'                 => new ResearchTaskType(I18N::translate('Type of research task')),
1365            'INDI:_TODO:_CAT'                 => new CustomElement(I18N::translate('Category')),
1366            'INDI:_TODO:_CDATE'               => new DateValue(I18N::translate('Completion date')),
1367            'INDI:_TODO:_PRTY'                => new ResearchTaskPriority(I18N::translate('Priority')),
1368            'INDI:_TODO:_RDATE'               => new DateValue(I18N::translate('Reminder date')),
1369            'INDI:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
1370            'NOTE:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
1371            'OBJE:FILE:_PRIM'                 => new CustomElement(I18N::translate('Highlighted image')),
1372            'OBJE:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
1373            'REPO:ADDR:_NAME'                 => new CustomElement(I18N::translate('Name of addressee')),
1374            'REPO:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
1375            'SOUR:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
1376            'SOUR:DATA:EVEN:PLAC:_LOC'        => new XrefLocation(I18N::translate('Location')),
1377            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
1378            'SOUR:DATA:EVEN:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
1379            'SOUR:DATA:EVEN:PLAC:_POST'       => new AddressPostalCode(I18N::translate('Postal code')),
1380            'SOUR:DATA:EVEN:PLAC:_POST:DATE'  => new DateValue(I18N::translate('Date')),
1381            'SUBM:ADDR:_NAME'                 => new CustomElement(I18N::translate('Name of addressee')),
1382            'SUBM:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
1383            'SUBN:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
1384            '_LOC'                            => new LocationRecord(I18N::translate('Location')),
1385            '_LOC:CHAN'                       => new Change(I18N::translate('Last change')),
1386            '_LOC:CHAN:DATE'                  => new ChangeDate(I18N::translate('Date of last change')),
1387            '_LOC:CHAN:DATE:TIME'             => new TimeValue(I18N::translate('Time of last change')),
1388            '_LOC:CHAN:NOTE'                  => new NoteStructure(I18N::translate('Note on last change')),
1389            '_LOC:EVEN'                       => new CustomEvent(I18N::translate('Event')),
1390            '_LOC:EVEN:DATE'                  => new DateValue(I18N::translate('Date of event')),
1391            '_LOC:EVEN:PLAC'                  => new PlaceName(I18N::translate('Place of event')),
1392            '_LOC:EVEN:PLAC:FONE'             => new PlacePhoneticVariation(I18N::translate('Phonetic place')),
1393            '_LOC:EVEN:PLAC:FONE:TYPE'        => new PhoneticType(I18N::translate('Type')),
1394            '_LOC:EVEN:PLAC:FORM'             => new PlaceHierarchy(I18N::translate('Format')),
1395            '_LOC:EVEN:PLAC:MAP'              => new EmptyElement(I18N::translate('Coordinates'), ['LATI' => '1:1', 'LONG' => '1:1']),
1396            '_LOC:EVEN:PLAC:MAP:LATI'         => new PlaceLatitude(I18N::translate('Latitude')),
1397            '_LOC:EVEN:PLAC:MAP:LONG'         => new PlaceLongtitude(I18N::translate('Longitude')),
1398            '_LOC:EVEN:PLAC:NOTE'             => new NoteStructure(I18N::translate('Note on place')),
1399            '_LOC:EVEN:PLAC:ROMN'             => new PlaceRomanizedVariation(I18N::translate('Romanized place')),
1400            '_LOC:EVEN:PLAC:ROMN:TYPE'        => new RomanizedType(I18N::translate('Type')),
1401            '_LOC:EVEN:PLAC:_LOC'             => new XrefLocation(I18N::translate('Location')),
1402            '_LOC:EVEN:TYPE'                  => new EventAttributeType(I18N::translate('Type of event')),
1403            '_LOC:EVEN:AGNC'                  => new ResponsibleAgency(I18N::translate('Agency')),
1404            '_LOC:EVEN:ADDR'                  => new AddressLine(I18N::translate('Address')),
1405            '_LOC:EVEN:ADDR:ADR1'             => new AddressLine1(I18N::translate('Address line 1')),
1406            '_LOC:EVEN:ADDR:ADR2'             => new AddressLine2(I18N::translate('Address line 2')),
1407            '_LOC:EVEN:ADDR:ADR3'             => new AddressLine3(I18N::translate('Address line 3')),
1408            '_LOC:EVEN:ADDR:CITY'             => new AddressCity(I18N::translate('City')),
1409            '_LOC:EVEN:ADDR:CTRY'             => new AddressCountry(I18N::translate('Country')),
1410            '_LOC:EVEN:ADDR:POST'             => new AddressPostalCode(I18N::translate('Postal code')),
1411            '_LOC:EVEN:ADDR:STAE'             => new AddressState(I18N::translate('State')),
1412            '_LOC:EVEN:CAUS'                  => new CauseOfEvent(I18N::translate('Cause')),
1413            '_LOC:EVEN:RELI'                  => new ReligiousAffiliation(I18N::translate('Religion'), []),
1414            '_LOC:EVEN:RESN'                  => new RestrictionNotice(I18N::translate('Restriction')),
1415            '_LOC:EVEN:SOUR'                  => new XrefSource(I18N::translate('Source citation')),
1416            '_LOC:EVEN:NOTE'                  => new NoteStructure(I18N::translate('Note')),
1417            '_LOC:EVEN:OBJE'                  => new XrefMedia(I18N::translate('Media object')),
1418            '_LOC:MAP'                        => new EmptyElement(I18N::translate('Coordinates'), ['LATI' => '1:1', 'LONG' => '1:1']),
1419            '_LOC:MAP:LATI'                   => new PlaceLatitude(I18N::translate('Latitude')),
1420            '_LOC:MAP:LONG'                   => new PlaceLongtitude(I18N::translate('Longitude')),
1421            '_LOC:NAME'                       => new PlaceName(I18N::translate('Place'), ['ABBR' => '0:1', 'DATE' => '0:1', 'LANG' => '0:1', 'SOUR' => '0:M']),
1422            '_LOC:NAME:ABBR'                  => new CustomElement(I18N::translate('Abbreviation')),
1423            '_LOC:NAME:ABBR:TYPE'             => new CustomElement(I18N::translate('Type of abbreviation')),
1424            '_LOC:NAME:DATE'                  => new DateValue(I18N::translate('Date')),
1425            '_LOC:NAME:LANG'                  => new LanguageId(I18N::translate('Language')),
1426            '_LOC:NAME:SOUR'                  => new XrefSource(I18N::translate('Source')),
1427            '_LOC:NOTE'                       => new NoteStructure(I18N::translate('Note')),
1428            '_LOC:OBJE'                       => new XrefMedia(I18N::translate('Media')),
1429            '_LOC:RELI'                       => new ReligiousAffiliation(I18N::translate('Religion'), []),
1430            '_LOC:SOUR'                       => new XrefSource(I18N::translate('Source')),
1431            '_LOC:SOUR:DATA'                  => new SourceData(I18N::translate('Data')),
1432            '_LOC:SOUR:DATA:DATE'             => new DateValue(I18N::translate('Date of entry in original source')),
1433            '_LOC:SOUR:DATA:TEXT'             => new TextFromSource(I18N::translate('Text')),
1434            '_LOC:SOUR:EVEN'                  => new EventTypeCitedFrom(I18N::translate('Event')),
1435            '_LOC:SOUR:EVEN:ROLE'             => new RoleInEvent(I18N::translate('Role')),
1436            '_LOC:SOUR:NOTE'                  => new NoteStructure(I18N::translate('Note on source citation')),
1437            '_LOC:SOUR:OBJE'                  => new XrefMedia(I18N::translate('Media object')),
1438            '_LOC:SOUR:PAGE'                  => new WhereWithinSource(I18N::translate('Citation details')),
1439            '_LOC:SOUR:QUAY'                  => new CertaintyAssessment(I18N::translate('Quality of data')),
1440            '_LOC:TYPE'                       => new CustomElement(I18N::translate('Type of location'), ['DATE' => '0:1', '_GOVTYPE' => '0:1', 'SOUR' => '0:M']),
1441            '_LOC:TYPE:DATE'                  => new DateValue(I18N::translate('Date')),
1442            '_LOC:TYPE:SOUR'                  => new XrefSource(I18N::translate('Source')),
1443            '_LOC:TYPE:_GOVTYPE'              => new CustomElement(I18N::translate('GOV identifier type')),
1444            '_LOC:_AIDN'                      => new CustomElement(I18N::translate('Administrative ID')),
1445            '_LOC:_AIDN:DATE'                 => new DateValue(I18N::translate('Date')),
1446            '_LOC:_AIDN:SOUR'                 => new XrefSource(I18N::translate('Source')),
1447            '_LOC:_AIDN:TYPE'                 => new CustomElement(I18N::translate('Type of administrative ID')),
1448            '_LOC:_DMGD'                      => new CustomElement(I18N::translate('Demographic data')),
1449            '_LOC:_DMGD:DATE'                 => new DateValue(I18N::translate('Date')),
1450            '_LOC:_DMGD:SOUR'                 => new XrefSource(I18N::translate('Source')),
1451            '_LOC:_DMGD:TYPE'                 => new CustomElement(I18N::translate('Type of demographic data')),
1452            // I18N: https://gov.genealogy.net
1453            '_LOC:_GOV'                       => new GovIdentifier(I18N::translate('GOV identifier')),
1454            '_LOC:_LOC'                       => new XrefLocation(I18N::translate('Parent location'), ['DATE' => '0:1', 'SOUR' => '0:M', 'TYPE' => '0:1']),
1455            '_LOC:_LOC:DATE'                  => new DateValue(I18N::translate('Date')),
1456            '_LOC:_LOC:SOUR'                  => new XrefSource(I18N::translate('Source')),
1457            '_LOC:_LOC:TYPE'                  => new HierarchicalRelationship(I18N::translate('Hierarchical relationship')),
1458            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
1459            '_LOC:_MAIDENHEAD'                => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
1460            '_LOC:_POST'                      => new AddressPostalCode(I18N::translate('Postal code')),
1461            '_LOC:_POST:DATE'                 => new DateValue(I18N::translate('Date')),
1462            '_LOC:_POST:SOUR'                 => new XrefSource(I18N::translate('Source')),
1463            '_LOC:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
1464            '_LOC:*:SOUR:DATA'                => new SourceData(I18N::translate('Data')),
1465            '_LOC:*:SOUR:DATA:DATE'           => new DateValue(I18N::translate('Date of entry in original source')),
1466            '_LOC:*:SOUR:DATA:TEXT'           => new TextFromSource(I18N::translate('Text')),
1467            '_LOC:*:SOUR:EVEN'                => new EventTypeCitedFrom(I18N::translate('Event')),
1468            '_LOC:*:SOUR:EVEN:ROLE'           => new RoleInEvent(I18N::translate('Role')),
1469            '_LOC:*:SOUR:NOTE'                => new NoteStructure(I18N::translate('Note on source citation')),
1470            '_LOC:*:SOUR:OBJE'                => new XrefMedia(I18N::translate('Media object')),
1471            '_LOC:*:SOUR:PAGE'                => new WhereWithinSource(I18N::translate('Citation details')),
1472            '_LOC:*:SOUR:QUAY'                => new CertaintyAssessment(I18N::translate('Quality of data')),
1473        ];
1474    }
1475
1476    /**
1477     * @return array<string,ElementInterface>
1478     */
1479    private function geneatique(): array
1480    {
1481        return [
1482            'INDI:DEAT:DATE:TIME' => new TimeValue(I18N::translate('Time of death')),
1483            'OBJE:FORM'           => new MultimediaFormat(I18N::translate('Format')),
1484            'OBJE:TITL'           => new DescriptiveTitle(I18N::translate('Title')),
1485            'INDI:NAME:_AKA'      => new NamePersonal(I18N::translate('Also known as'), []),
1486            'INDI:NAME:_MARNM'    => new NamePersonal(I18N::translate('Also known as'), []),
1487
1488            /*
1489            Pour déclarer les témoins dans les actes de naissance
1490
1491            Balise GEDCOM non valide. INDI:BIRT:ASSO
1492            INDI:BIRT:ASSO:TYPE
1493            INDI:BIRT:ASSO:RELA
1494            INDI:DEAT:PLAC:QUAY
1495            INDI:BIRT:OBJE:QUAY
1496            INDI:BIRT:SOUR:TEXT
1497
1498            Dans les mariages
1499
1500            FAM:MARR:ASSO
1501            FAM:MARR:ASSO:TYPE
1502            FAM:MARR:ASSO:RELA
1503            FAM:MARR:WWW:QUAY
1504            OBJE:WWW
1505            OBJE:SOUR:TEXTHTTPS
1506            OBJE:NOTE:WWW
1507            SOUR:QUAY
1508            SOUR:TYPE
1509            */
1510        ];
1511    }
1512
1513    /**
1514     * @return array<string,ElementInterface>
1515     */
1516    private function genPlusWinTags(): array
1517    {
1518        return [
1519            'FAM:*:ADDR:_NUM'         => new CustomElement(I18N::translate('House number')),
1520            'FAM:*:ADDR:_STRASSE'     => new CustomElement(I18N::translate('Street name')),
1521            'FAM:*:DATE:_ZUS'         => new CustomElement(I18N::translate('Additional information')),
1522            'FAM:*:OBJE:_PRIM'        => new CustomElement(I18N::translate('Highlighted image')),
1523            'FAM:*:PLAC:_AON'         => new CustomElement(I18N::translate('Alternative place name')),
1524            // I18N: https://foko.genealogy.net
1525            'FAM:*:PLAC:_FCTRY'       => new CustomElement(I18N::translate('FOKO country')),
1526            // I18N: https://foko.genealogy.net
1527            'FAM:*:PLAC:_FSTAE'       => new CustomElement(I18N::translate('FOKO country')),
1528            // I18N: https://gov.genealogy.net
1529            'FAM:*:PLAC:_GOV'         => new GovIdentifier(I18N::translate('GOV identifier')),
1530            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
1531            'FAM:*:PLAC:_MAIDENHEAD'  => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
1532            'FAM:*:PLAC:_POST'        => new AddressPostalCode(I18N::translate('Postal code')),
1533            'FAM:*:PLAC:_SIC'         => new CustomElement(I18N::translate('Reliability of the information')),
1534            'FAM:*:PLAC:_ZUS'         => new CustomElement(I18N::translate('Additional information')),
1535            'FAM:*:SOUR:_ORI'         => new TextFromSource(I18N::translate('Original text')),
1536            'FAM:*:SOUR:_ZUS'         => new CustomElement(I18N::translate('Additional information')),
1537            'FAM:*:SOUR:PAGE:_ZUS'    => new CustomElement(I18N::translate('Additional information')),
1538            'FAM:*:_ASSO'             => new XrefAssociate(I18N::translate('Associate')),
1539            'FAM:*:_CERT'             => new CustomElement(I18N::translate('Certificate number')),
1540            'FAM:*:_COM'              => new CustomElement(I18N::translate('Comment')),
1541            'FAM:*:_SITE'             => new CustomElement(I18N::translate('Extra information')),
1542            'FAM:*:_WITN'             => new CustomElement(I18N::translate('Witnesses')),
1543            'FAM:OBJE:_PRIM'          => new CustomElement(I18N::translate('Highlighted image')),
1544            'FAM:SOUR:_ORI'           => new TextFromSource(I18N::translate('Original text')),
1545            'FAM:SOUR:_ZUS'           => new CustomElement(I18N::translate('Additional information')),
1546            'FAM:SOUR:PAGE:_ZUS'      => new CustomElement(I18N::translate('Additional information')),
1547            'FAM:_CREAT'              => new DateValue(I18N::translate('Creation date')),
1548            'FAM:_LIV'                => new CustomElement(I18N::translate('Cohabitation')),
1549            'FAM:_NAME'               => new CustomElement(I18N::translate('Joint family name')),
1550            'FAM:_UID'                => new PafUid(I18N::translate('Unique identifier')),
1551            'INDI:*:ADDR:_NUM'        => new CustomElement(I18N::translate('House number')),
1552            'INDI:*:ADDR:_STRASSE'    => new CustomElement(I18N::translate('Street name')),
1553            'INDI:*:DATE:_ZUS'        => new CustomElement(I18N::translate('Additional information')),
1554            'INDI:*:OBJE:_PRIM'       => new CustomElement(I18N::translate('Highlighted image')),
1555            'INDI:*:PLAC:_AON'        => new CustomElement(I18N::translate('Alternative place name')),
1556            // I18N: https://foko.genealogy.net
1557            'INDI:*:PLAC:_FCTRY'      => new CustomElement(I18N::translate('FOKO country')),
1558            // I18N: https://foko.genealogy.net
1559            'INDI:*:PLAC:_FSTAE'      => new CustomElement(I18N::translate('FOKO country')),
1560            // I18N: https://gov.genealogy.net
1561            'INDI:*:PLAC:_GOV'        => new GovIdentifier(I18N::translate('GOV identifier')),
1562            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
1563            'INDI:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
1564            'INDI:*:PLAC:_POST'       => new AddressPostalCode(I18N::translate('Postal code')),
1565            'INDI:*:PLAC:_SIC'        => new CustomElement(I18N::translate('Reliability of the information')),
1566            'INDI:*:PLAC:_ZUS'        => new CustomElement(I18N::translate('Additional information')),
1567            'INDI:*:SOUR:_ORI'        => new TextFromSource(I18N::translate('Original text')),
1568            'INDI:*:SOUR:_ZUS'        => new CustomElement(I18N::translate('Additional information')),
1569            'INDI:*:SOUR:PAGE:_ZUS'   => new CustomElement(I18N::translate('Additional information')),
1570            'INDI:*:_ASSO'            => new XrefAssociate(I18N::translate('Associate')),
1571            'INDI:*:_CERT'            => new CustomElement(I18N::translate('Certificate number')),
1572            'INDI:*:_COM'             => new CustomElement(I18N::translate('Comment')),
1573            'INDI:*:_SITE'            => new CustomElement(I18N::translate('Extra information')),
1574            'INDI:*:_WITN'            => new CustomElement(I18N::translate('Witnesses')),
1575            'INDI:BAPM:_GODP'         => new CustomElement(I18N::translate('Godparents')),
1576            'INDI:CHR:_GODP'          => new CustomElement(I18N::translate('Godparents')),
1577            'INDI:OBJE:_PRIM'         => new CustomElement(I18N::translate('Highlighted image')),
1578            'INDI:SOUR:_ORI'          => new TextFromSource(I18N::translate('Original text')),
1579            'INDI:SOUR:_ZUS'          => new CustomElement(I18N::translate('Additional information')),
1580            'INDI:SOUR:PAGE:_ZUS'     => new CustomElement(I18N::translate('Additional information')),
1581            'INDI:NAME:_AKA'          => new CustomElement(I18N::translate('Also known as')),
1582            // https://en.wikipedia.org/wiki/Rufname
1583            'INDI:NAME:RUFN'          => new CustomElement(I18N::translate('Rufname')),
1584            'INDI:_CREAT'             => new CustomElement(I18N::translate('Creation date')),
1585            'INDI:_HEIM'              => new CustomElement(/* I18N: German Bürgerort */ I18N::translate('Place of citizenship')),
1586            'INDI:_UID'               => new PafUid(I18N::translate('Unique identifier')),
1587            'NOTE:_CREAT'             => new DateValue(I18N::translate('Creation date')),
1588            'NOTE:_UID'               => new PafUid(I18N::translate('Unique identifier')),
1589            'OBJE:_CREAT'             => new DateValue(I18N::translate('Creation date')),
1590            'OBJE:_UID'               => new PafUid(I18N::translate('Unique identifier')),
1591            'REPO:_CREAT'             => new DateValue(I18N::translate('Creation date')),
1592            'REPO:_UID'               => new PafUid(I18N::translate('Unique identifier')),
1593            'SOUR:_CREAT'             => new DateValue(I18N::translate('Creation date')),
1594            'SOUR:_KTIT'              => new SourceFiledByEntry(I18N::translate('Abbreviation')),
1595            'SOUR:_UID'               => new PafUid(I18N::translate('Unique identifier')),
1596        ];
1597    }
1598
1599    /**
1600     * @return array<string,ElementInterface>
1601     */
1602    private function heredis(): array
1603    {
1604        return [
1605            'INDI:SIGN'                   => new CustomElement(I18N::translate('Signature')),
1606            /* Reported on the forum - but what do they mean?
1607            'INDI:_FIL'                   => new CustomElement(I18N::translate('???')),
1608            'INDI:*:_FNA'                 => new CustomElement(I18N::translate('???')),
1609            'INDI:????:????:_SUBMAP'      => new EmptyElement(I18N::translate('Coordinates'), ['INDI' => '1:1', 'LONG' => '1:1']),
1610            'INDI:????:????:_SUBMAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')),
1611            'INDI:????:????:_SUBMAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')),
1612            */
1613        ];
1614    }
1615
1616    /**
1617     * @see http://support.legacyfamilytree.com/article/AA-00520/0/GEDCOM-Files-custom-tags-in-Legacy.html
1618     *
1619     * @return array<string,ElementInterface>
1620     */
1621    private function legacyTags(): array
1622    {
1623        return [
1624            'FAM:*:ADDR:_PRIV'             => new CustomElement(I18N::translate('Private')),
1625            'FAM:*:PLAC:_VERI'             => new CustomElement(I18N::translate('Verified')),
1626            'FAM:*:SOUR:DATE'              => new DateValue(I18N::translate('Date')),
1627            'FAM:*:SOUR:_VERI'             => new CustomElement(I18N::translate('Verified')),
1628            'FAM:*:_PRIV'                  => new CustomElement(I18N::translate('Private')),
1629            'FAM:CHIL:_FREL'               => new CustomElement(I18N::translate('Relationship to father')),
1630            'FAM:CHIL:_MREL'               => new CustomElement(I18N::translate('Relationship to mother')),
1631            'FAM:CHIL:_STAT'               => new CustomElement(I18N::translate('Status')),
1632            'FAM:EVEN:_OVER'               => new CustomElement('Event sentence override'),
1633            'FAM:MARR:_HTITL'              => new CustomElement(I18N::translate('Label for husband')),
1634            'FAM:MARR:_RPT_PHRS'           => /* I18N: ''GEDCOM tag _RPT_PHRS */ new CustomElement(I18N::translate('Report phrase')),
1635            'FAM:MARR:_RPT_PHRS2'          => /* I18N: ''GEDCOM tag _RPT_PHRS */ new CustomElement(I18N::translate('Report phrase')),
1636            'FAM:MARR:_STAT'               => new CustomElement(I18N::translate('Status')),
1637            'FAM:MARR:_WTITL'              => new CustomElement(I18N::translate('Label for wife')),
1638            'FAM:_NONE'                    => new CustomElement(I18N::translate('No children')),
1639            'FAM:_TAG'                     => new CustomElement('Tag'),
1640            'FAM:_TAG2'                    => new CustomElement('Tag #2'),
1641            'FAM:_TAG3'                    => new CustomElement('Tag #3'),
1642            'FAM:_TAG4'                    => new CustomElement('Tag #4'),
1643            'FAM:_TAG5'                    => new CustomElement('Tag #5'),
1644            'FAM:_TAG6'                    => new CustomElement('Tag #6'),
1645            'FAM:_TAG7'                    => new CustomElement('Tag #7'),
1646            'FAM:_TAG8'                    => new CustomElement('Tag #8'),
1647            'FAM:_TAG9'                    => new CustomElement('Tag #9'),
1648            'FAM:_UID'                     => new PafUid(I18N::translate('Unique identifier')),
1649            'HEAD:_EVENT_DEFN'             => new CustomElement('Event definition'),
1650            'HEAD:_EVENT_DEFN:_CONF_FLAG'  => new CustomElement(I18N::translate('Private')),
1651            'HEAD:_EVENT_DEFN:_DATE_TYPE'  => new CustomElement(I18N::translate('Date')),
1652            'HEAD:_EVENT_DEFN:_DESC_FLAG'  => new CustomElement(I18N::translate('Description')),
1653            'HEAD:_EVENT_DEFN:_PLACE_TYPE' => new CustomElement(I18N::translate('Place')),
1654            'HEAD:_EVENT_DEFN:_PP_EXCLUDE' => new CustomElement('Exclude event from potential problems report'),
1655            'HEAD:_EVENT_DEFN:_SEN1'       => new CustomElement('Event sentence definition'),
1656            'HEAD:_EVENT_DEFN:_SEN2'       => new CustomElement('Event sentence definition'),
1657            'HEAD:_EVENT_DEFN:_SEN3'       => new CustomElement('Event sentence definition'),
1658            'HEAD:_EVENT_DEFN:_SEN4'       => new CustomElement('Event sentence definition'),
1659            'HEAD:_EVENT_DEFN:_SEN5'       => new CustomElement('Event sentence definition'),
1660            'HEAD:_EVENT_DEFN:_SEN6'       => new CustomElement('Event sentence definition'),
1661            'HEAD:_EVENT_DEFN:_SEN7'       => new CustomElement('Event sentence definition'),
1662            'HEAD:_EVENT_DEFN:_SEN8'       => new CustomElement('Event sentence definition'),
1663            'HEAD:_EVENT_DEFN:_SENDOF'     => new CustomElement('Event sentence, female, date only'),
1664            'HEAD:_EVENT_DEFN:_SENDOM'     => new CustomElement('Event sentence, male, date only'),
1665            'HEAD:_EVENT_DEFN:_SENDOU'     => new CustomElement('Event sentence, unknown sex, date only'),
1666            'HEAD:_EVENT_DEFN:_SENDPF'     => new CustomElement('Event sentence, female, date and place'),
1667            'HEAD:_EVENT_DEFN:_SENDPM'     => new CustomElement('Event sentence, male, date and place'),
1668            'HEAD:_EVENT_DEFN:_SENDPU'     => new CustomElement('Event sentence, unknown sex, date and place'),
1669            'HEAD:_EVENT_DEFN:_SENF'       => new CustomElement('Event sentence, female'),
1670            'HEAD:_EVENT_DEFN:_SENM'       => new CustomElement('Event sentence, male'),
1671            'HEAD:_EVENT_DEFN:_SENPOF'     => new CustomElement('Event sentence, unknown sex'),
1672            'HEAD:_EVENT_DEFN:_SENPOM'     => new CustomElement('Event sentence, female, place only'),
1673            'HEAD:_EVENT_DEFN:_SENPOU'     => new CustomElement('Event sentence, male, place only'),
1674            'HEAD:_EVENT_DEFN:_SENU'       => new CustomElement('Event sentence, unknown sex, place only'),
1675            'HEAD:_PLAC_DEFN'              => new CustomElement('Place definition'),
1676            'HEAD:_PLAC_DEFN:_PREP'        => new CustomElement('Place preposition'),
1677            'INDI:*:ADDR:_EMAIL'           => new CustomElement(I18N::translate('Email')),
1678            'INDI:*:ADDR:_LIST1'           => new CustomElement('Include in the “newsletter” group'),
1679            'INDI:*:ADDR:_LIST2'           => new CustomElement('Include in the “family association” group'),
1680            'INDI:*:ADDR:_LIST3'           => new CustomElement('Include in the “birthday” group'),
1681            'INDI:*:ADDR:_LIST4'           => new CustomElement('Include in the “research” group'),
1682            'INDI:*:ADDR:_LIST5'           => new CustomElement('Include in the “christmas” group'),
1683            'INDI:*:ADDR:_LIST6'           => new CustomElement('Include in the “holiday” group'),
1684            'INDI:*:ADDR:_NAME'            => new CustomElement(I18N::translate('Name of addressee')),
1685            'INDI:*:ADDR:_PRIV'            => new CustomElement(I18N::translate('Private')),
1686            'INDI:*:ADDR:_SORT'            => new CustomElement('The spelling of a name to be used when sorting addresses for a report'),
1687            'INDI:*:ADDR:_TAG'             => new CustomElement('Tag'),
1688            'INDI:*:PLAC:_TAG'             => new CustomElement('Tag'),
1689            'INDI:*:PLAC:_VERI'            => new CustomElement(I18N::translate('Verified')),
1690            'INDI:*:SOUR:DATE'             => new DateValue(I18N::translate('Date')),
1691            'INDI:*:SOUR:_VERI'            => new CustomElement(I18N::translate('Verified')),
1692            'INDI:*:_PRIV'                 => new CustomElement(I18N::translate('Private')),
1693            'INDI:EVEN:_OVER'              => new CustomElement('Event sentence override'),
1694            'INDI:SOUR:_VERI'              => new CustomElement(I18N::translate('Verified')),
1695            'INDI:_TAG'                    => new CustomElement('Tag'),
1696            'INDI:_TAG2'                   => new CustomElement('Tag #2'),
1697            'INDI:_TAG3'                   => new CustomElement('Tag #3'),
1698            'INDI:_TAG4'                   => new CustomElement('Tag #4'),
1699            'INDI:_TAG5'                   => new CustomElement('Tag #5'),
1700            'INDI:_TAG6'                   => new CustomElement('Tag #6'),
1701            'INDI:_TAG7'                   => new CustomElement('Tag #7'),
1702            'INDI:_TAG8'                   => new CustomElement('Tag #8'),
1703            'INDI:_TAG9'                   => new CustomElement('Tag #9'),
1704            'INDI:_TODO'                   => new CustomElement(I18N::translate('Research task')),
1705            'INDI:_TODO:PRTY'              => new CustomElement(I18N::translate('Priority')),
1706            'INDI:_TODO:_CAT'              => new CustomElement(I18N::translate('Category')),
1707            'INDI:_TODO:_CDATE'            => new CustomElement(I18N::translate('Completion date')),
1708            'INDI:_TODO:_LOCL'             => new CustomElement(I18N::translate('Location')),
1709            'INDI:_TODO:_RDATE'            => new CustomElement(I18N::translate('Reminder date')),
1710            'INDI:_UID'                    => new PafUid(I18N::translate('Unique identifier')),
1711            'INDI:_URL'                    => new AddressWebPage(I18N::translate('URL')),
1712            'OBJE:_DATE'                   => new CustomElement(I18N::translate('Date')),
1713            'OBJE:_PRIM'                   => new CustomElement(I18N::translate('Highlighted image')),
1714            'OBJE:_SCBK'                   => new CustomElement(I18N::translate('Scrapbook')),
1715            'OBJE:_SOUND'                  => new CustomElement(I18N::translate('Audio')),
1716            'OBJE:_TYPE'                   => new CustomElement(I18N::translate('Type')),
1717            'OBJE:_UID'                    => new PafUid(I18N::translate('Unique identifier')),
1718            'REPO:_UID'                    => new PafUid(I18N::translate('Unique identifier')),
1719            'SOUR:_ITALIC'                 => new CustomElement('The source title should be printed in italic on reports'),
1720            'SOUR:_PAREN'                  => new CustomElement('The source title should be printed within parentheses on reports'),
1721            'SOUR:_QUOTED'                 => new CustomElement('The source title should be printed within quotes on reports'),
1722            'SOUR:_TAG'                    => new CustomElement('Exclude the source citation detail on reports'),
1723            'SOUR:_TAG2'                   => new CustomElement('Exclude the source citation on reports'),
1724            'SOUR:_TAG3'                   => new CustomElement('Include the source citation detail text on reports'),
1725            'SOUR:_TAG4'                   => new CustomElement('Include the source citation detail notes on reports'),
1726            'SOUR:_UID'                    => new PafUid(I18N::translate('Unique identifier')),
1727        ];
1728    }
1729
1730    /**
1731     * @return array<string,ElementInterface>
1732     */
1733    private function myHeritageTags(): array
1734    {
1735        return [
1736            'FAM:*:_UID'                  => new PafUid(I18N::translate('Unique identifier')),
1737            'FAM:*:RIN'                   => new AutomatedRecordId(I18N::translate('Record ID number')),
1738            'HEAD:DATE:_TIMEZONE'         => new CustomElement(I18N::translate('Time zone')),
1739            'HEAD:SOUR:_RTLSAVE'          => new CustomElement(I18N::translate('Text direction')), // ?
1740            'HEAD:_RINS'                  => new CustomElement(I18N::translate('Record ID number')), // ?
1741            'HEAD:_UID'                   => new PafUid(I18N::translate('Unique identifier')),
1742            'HEAD:_PROJECT_GUID'          => new PafUid(I18N::translate('Unique identifier')),
1743            'HEAD:_EXPORTED_FROM_SITE_ID' => new CustomElement(I18N::translate('Site identification code')),
1744            'HEAD:_DESCRIPTION_AWARE'     => new CustomElement(I18N::translate('Description')), // ?
1745            'INDI:*:_UID'                 => new PafUid(I18N::translate('Unique identifier')),
1746            'INDI:*:RIN'                  => new AutomatedRecordId(I18N::translate('Record ID number')),
1747            '*:_UPD'                      => new CustomElement(I18N::translate('Updated at')),
1748        ];
1749    }
1750
1751    /**
1752     * @return array<string,ElementInterface>
1753     */
1754    private function personalAncestralFileTags(): array
1755    {
1756        return [
1757            'FAM:_UID'        => new PafUid(I18N::translate('Unique identifier')),
1758            'INDI:NAME:_ADPN' => new NamePersonal(I18N::translate('Adopted name'), []),
1759            'INDI:NAME:_AKA'  => new NamePersonal(I18N::translate('Also known as'), []),
1760            'INDI:NAME:_AKAN' => new NamePersonal(I18N::translate('Also known as'), []),
1761            'INDI:ADDR'       => new AddressLine(I18N::translate('Address')),
1762            'INDI:ADDR:ADR1'  => new AddressLine1(I18N::translate('Address line 1')),
1763            'INDI:ADDR:ADR2'  => new AddressLine2(I18N::translate('Address line 2')),
1764            'INDI:ADDR:CITY'  => new AddressCity(I18N::translate('City')),
1765            'INDI:ADDR:CTRY'  => new AddressCountry(I18N::translate('Country')),
1766            'INDI:ADDR:POST'  => new AddressPostalCode(I18N::translate('Postal code')),
1767            'INDI:ADDR:STAE'  => new AddressState(I18N::translate('State')),
1768            'INDI:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')),
1769            'INDI:EMAIL'      => new AddressEmail(I18N::translate('Email address')),
1770            'INDI:FAX'        => new AddressFax(I18N::translate('Fax')),
1771            'INDI:PHON'       => new PhoneNumber(I18N::translate('Phone')),
1772            'INDI:URL'        => new CustomElement(I18N::translate('URL')),
1773            'INDI:_UID'       => new PafUid(I18N::translate('Unique identifier')),
1774            'OBJE:_UID'       => new PafUid(I18N::translate('Unique identifier')),
1775            'REPO:_UID'       => new PafUid(I18N::translate('Unique identifier')),
1776            'SOUR:_UID'       => new PafUid(I18N::translate('Unique identifier')),
1777        ];
1778    }
1779
1780    /**
1781     * @return array<string,ElementInterface>
1782     */
1783    private function phpGedViewTags(): array
1784    {
1785        return [
1786            'FAM:CHAN:_PGVU'        => new WebtreesUser(I18N::translate('Author of last change')),
1787            'FAM:COMM'              => new CustomElement(I18N::translate('Comment')),
1788            'INDI:*:ASSO'           => new XrefAssociate(I18N::translate('Associate')),
1789            'INDI:*:ASSO:RELA'      => new RelationIsDescriptor(I18N::translate('Relationship')),
1790            'INDI:*:PLAC:_HEB'      => new NoteStructure(I18N::translate('Place in Hebrew')),
1791            'INDI:BURI:CEME'        => new CustomElement(I18N::translate('Cemetery')),
1792            'INDI:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
1793            'INDI:COMM'             => new CustomElement(I18N::translate('Comment')),
1794            'INDI:NAME:_HEB'        => new NamePersonal(I18N::translate('Name in Hebrew'), []),
1795            'INDI:_HOL'             => new CustomIndividualEvent(I18N::translate('Holocaust')),
1796            'INDI:_MILI'            => new CustomIndividualEvent(I18N::translate('Military')),
1797            'INDI:_PGV_OBJS'        => new XrefMedia(I18N::translate('Re-order media')),
1798            'NOTE:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
1799            'OBJE:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
1800            'OBJE:_THUM'            => new CustomElement(I18N::translate('Thumbnail image')),
1801            'REPO:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
1802            'SOUR:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
1803            'SOUR:SERV'             => new CustomElement(I18N::translate('Remote server')),
1804            'SOUR:URL'              => new AddressWebPage(I18N::translate('URL')),
1805            'SOUR:URL:TYPE'         => new CustomElement(I18N::translate('Type')), // e.g. "FamilySearch"
1806            'SOUR:URL:_BLOCK'       => new CustomElement(I18N::translate('Block')), // "e.g. "false"
1807            'SOUR:_DBID'            => new CustomElement(I18N::translate('Database name')),
1808            'SOUR:_DBID:_PASS'      => new CustomElement(I18N::translate('Database password')),
1809            'SOUR:_DBID:_PASS:RESN' => new RestrictionNotice(I18N::translate('Restriction')),
1810            'SOUR:_DBID:_USER'      => new CustomElement(I18N::translate('Database user account')),
1811        ];
1812    }
1813
1814    /**
1815     * @return array<string,ElementInterface>
1816     */
1817    private function reunionTags(): array
1818    {
1819        return [
1820            'FAM:_UID'   => new PafUid(I18N::translate('Unique identifier')),
1821            'INDI:CITN'  => new CustomElement(I18N::translate('Citizenship')),
1822            'INDI:EMAL'  => new AddressEmail(I18N::translate('Email address')),
1823            'INDI:_LEGA' => new CustomElement(I18N::translate('Legatee')),
1824            'INDI:_MDCL' => new CustomElement(I18N::translate('Medical')),
1825            'INDI:_PURC' => /* I18N: GEDCOM tag _PURC */ new CustomElement(I18N::translate('Land purchase')),
1826            'INDI:_SALE' => /* I18N: GEDCOM tag _SALE */ new CustomElement(I18N::translate('Land sale')),
1827            'INDI:_UID'  => new PafUid(I18N::translate('Unique identifier')),
1828            'OBJE:_UID'  => new PafUid(I18N::translate('Unique identifier')),
1829            'REPO:_UID'  => new PafUid(I18N::translate('Unique identifier')),
1830            'SOUR:_UID'  => new PafUid(I18N::translate('Unique identifier')),
1831        ];
1832    }
1833
1834    /**
1835     * @return array<string,ElementInterface>
1836     */
1837    private function rootsMagicTags(): array
1838    {
1839        return [
1840            'FAM:_UID'          => new PafUid(I18N::translate('Unique identifier')),
1841            'INDI:_DNA'         => new CustomElement(I18N::translate('DNA markers')),
1842            'INDI:_UID'         => new PafUid(I18N::translate('Unique identifier')),
1843            'INDI:_WEBTAG'      => new CustomElement(I18N::translate('External link')),
1844            'INDI:_WEBTAG:NAME' => new CustomElement(I18N::translate('Text')),
1845            'INDI:_WEBTAG:URL'  => new AddressWebPage(I18N::translate('URL')),
1846            'OBJE:_UID'         => new PafUid(I18N::translate('Unique identifier')),
1847            'REPO:_UID'         => new PafUid(I18N::translate('Unique identifier')),
1848            'SOUR:_BIBL'        => new CustomElement(I18N::translate('Bibliography')),
1849            'SOUR:_SUBQ'        => new CustomElement(I18N::translate('Abbreviation')),
1850            'SOUR:_UID'         => new PafUid(I18N::translate('Unique identifier')),
1851        ];
1852    }
1853
1854    /**
1855     * @return array<string,ElementInterface>
1856     */
1857    private function theMasterGenealogistTags(): array
1858    {
1859        return [
1860            'INDI:*:_SDATE' => new DateValue(I18N::translate('Sort date')),
1861            'INDI:NAME:_DATE'  => new DateValue(I18N::translate('Date')),
1862        ];
1863    }
1864
1865    /**
1866     * Custom tags for webtrees.
1867     *
1868     * @return array<string,ElementInterface>
1869     */
1870    private function webtreesTags(): array
1871    {
1872        return [
1873            'FAM:CHAN:_WT_USER'           => new WebtreesUser(I18N::translate('Author of last change')),
1874            'FAM:FACT'                    => new FamilyFact(I18N::translate('Fact')),
1875            'FAM:FACT:TYPE'               => new EventOrFactClassification(I18N::translate('Type of fact')),
1876            'FAM:*:_ASSO'                 => new XrefAssociate(I18N::translate('Associate')),
1877            'FAM:*:_ASSO:NOTE'            => new NoteStructure(I18N::translate('Note on association')),
1878            'FAM:*:_ASSO:RELA'            => new RelationIsDescriptor(I18N::translate('Relationship')),
1879            'FAM:*:_ASSO:SOUR'            => new XrefSource(I18N::translate('Source citation')),
1880            'FAM:*:_ASSO:SOUR:DATA'       => new SourceData(I18N::translate('Data')),
1881            'FAM:*:_ASSO:SOUR:DATA:DATE'  => new DateValue(I18N::translate('Date of entry in original source')),
1882            'FAM:*:_ASSO:SOUR:DATA:TEXT'  => new TextFromSource(I18N::translate('Text')),
1883            'FAM:*:_ASSO:SOUR:EVEN'       => new EventTypeCitedFrom(I18N::translate('Event')),
1884            'FAM:*:_ASSO:SOUR:EVEN:ROLE'  => new RoleInEvent(I18N::translate('Role')),
1885            'FAM:*:_ASSO:SOUR:NOTE'       => new NoteStructure(I18N::translate('Note on source citation')),
1886            'FAM:*:_ASSO:SOUR:OBJE'       => new XrefMedia(I18N::translate('Media object')),
1887            'FAM:*:_ASSO:SOUR:PAGE'       => new WhereWithinSource(I18N::translate('Citation details')),
1888            'FAM:*:_ASSO:SOUR:QUAY'       => new CertaintyAssessment(I18N::translate('Quality of data')),
1889            'INDI:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
1890            'INDI:*:_ASSO'                => new XrefAssociate(I18N::translate('Associate')),
1891            'INDI:*:_ASSO:NOTE'           => new NoteStructure(I18N::translate('Note on association')),
1892            'INDI:*:_ASSO:RELA'           => new RelationIsDescriptor(I18N::translate('Relationship')),
1893            'INDI:*:_ASSO:SOUR'           => new XrefSource(I18N::translate('Source citation')),
1894            'INDI:*:_ASSO:SOUR:DATA'      => new SourceData(I18N::translate('Data')),
1895            'INDI:*:_ASSO:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')),
1896            'INDI:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')),
1897            'INDI:*:_ASSO:SOUR:EVEN'      => new EventTypeCitedFrom(I18N::translate('Event')),
1898            'INDI:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')),
1899            'INDI:*:_ASSO:SOUR:NOTE'      => new NoteStructure(I18N::translate('Note on source citation')),
1900            'INDI:*:_ASSO:SOUR:OBJE'      => new XrefMedia(I18N::translate('Media object')),
1901            'INDI:*:_ASSO:SOUR:PAGE'      => new WhereWithinSource(I18N::translate('Citation details')),
1902            'INDI:*:_ASSO:SOUR:QUAY'      => new CertaintyAssessment(I18N::translate('Quality of data')),
1903            'NOTE:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
1904            'NOTE:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
1905            'OBJE:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
1906            'OBJE:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
1907            'REPO:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
1908            'REPO:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
1909            'SOUR:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
1910            'SOUR:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
1911            'SUBM:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
1912            'SUBM:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
1913            '_LOC:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
1914            '_LOC:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
1915        ];
1916    }
1917
1918    /**
1919     * @return array<string,array<int,array<int,string>>>
1920     */
1921    private function webtreesSubTags(): array
1922    {
1923        return [
1924            'FAM'              => [['_UID', '0:M']],
1925            'FAM:*:SOUR:DATA'  => [['TEXT', '0:1']],
1926            'FAM:ANUL'         => [['_ASSO', '0:M', 'NOTE']],
1927            'FAM:CENS'         => [['_ASSO', '0:M', 'NOTE']],
1928            'FAM:CHAN'         => [['_WT_USER', '0:1']],
1929            'FAM:DIV'          => [['_ASSO', '0:M', 'NOTE']],
1930            'FAM:DIVF'         => [['_ASSO', '0:M', 'NOTE']],
1931            'FAM:ENGA'         => [['_ASSO', '0:M', 'NOTE']],
1932            'FAM:EVEN'         => [['_ASSO', '0:M', 'NOTE']],
1933            'FAM:MARB'         => [['_ASSO', '0:M', 'NOTE']],
1934            'FAM:MARC'         => [['_ASSO', '0:M', 'NOTE']],
1935            'FAM:MARL'         => [['_ASSO', '0:M', 'NOTE']],
1936            'FAM:MARR'         => [['_ASSO', '2:M', 'NOTE']],
1937            'FAM:MARS'         => [['_ASSO', '0:M', 'NOTE']],
1938            'FAM:SLGS'         => [['_ASSO', '0:M', 'NOTE']],
1939            'FAM:SOUR:DATA'    => [['TEXT', '0:1']],
1940            'INDI'             => [['_UID', '0:M']],
1941            'INDI:*:SOUR:DATA' => [['TEXT', '0:1']],
1942            'INDI:ADOP'        => [['_ASSO', '0:M', 'NOTE']],
1943            'INDI:BAPL'        => [['_ASSO', '0:M', 'NOTE']],
1944            'INDI:BAPM'        => [['_ASSO', '2:M', 'NOTE']],
1945            'INDI:BARM'        => [['_ASSO', '0:M', 'NOTE']],
1946            'INDI:BASM'        => [['_ASSO', '0:M', 'NOTE']],
1947            'INDI:BIRT'        => [['_ASSO', '0:M', 'NOTE'], ['FAMC', '0:0']],
1948            'INDI:BURI'        => [['_ASSO', '0:M', 'NOTE']],
1949            'INDI:CENS'        => [['_ASSO', '0:M', 'NOTE']],
1950            'INDI:CHAN'        => [['_WT_USER', '0:1']],
1951            'INDI:CHR'         => [['_ASSO', '2:M', 'NOTE']],
1952            'INDI:CHRA'        => [['_ASSO', '0:M', 'NOTE']],
1953            'INDI:CONF'        => [['_ASSO', '0:M', 'NOTE']],
1954            'INDI:CONL'        => [['_ASSO', '0:M', 'NOTE']],
1955            'INDI:CREM'        => [['_ASSO', '0:M', 'NOTE']],
1956            'INDI:DEAT'        => [['_ASSO', '0:M', 'NOTE']],
1957            'INDI:EDUC'        => [['_ASSO', '0:M', 'NOTE']],
1958            'INDI:EMIG'        => [['_ASSO', '0:M', 'NOTE']],
1959            'INDI:ENDL'        => [['_ASSO', '0:M', 'NOTE']],
1960            'INDI:EVEN'        => [['_ASSO', '0:M', 'NOTE']],
1961            'INDI:GRAD'        => [['_ASSO', '0:M', 'NOTE']],
1962            'INDI:IMMI'        => [['_ASSO', '0:M', 'NOTE']],
1963            'INDI:NATU'        => [['_ASSO', '0:M', 'NOTE']],
1964            'INDI:OCCU'        => [['_ASSO', '0:M', 'NOTE']],
1965            'INDI:ORDN'        => [['_ASSO', '0:M', 'NOTE']],
1966            'INDI:PROB'        => [['_ASSO', '0:M', 'NOTE']],
1967            'INDI:PROP'        => [['_ASSO', '0:M', 'NOTE']],
1968            'INDI:RESI'        => [['_ASSO', '0:M', 'NOTE']],
1969            'INDI:RETI'        => [['_ASSO', '0:M', 'NOTE']],
1970            'INDI:SLGC'        => [['_ASSO', '0:M', 'NOTE']],
1971            'INDI:SOUR:DATA'   => [['TEXT', '0:1']],
1972            'INDI:TITL'        => [['_ASSO', '0:M', 'NOTE']],
1973            'INDI:WILL'        => [['_ASSO', '0:M', 'NOTE']],
1974            'NOTE'             => [['RESN', '0:1', 'CHAN']],
1975            'NOTE:CHAN'        => [['_WT_USER', '0:1']],
1976            'NOTE:SOUR:DATA'   => [['TEXT', '0:1']],
1977            'OBJE'             => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']],
1978            'OBJE:CHAN'        => [['_WT_USER', '0:1']],
1979            'OBJE:SOUR:DATA'   => [['TEXT', '0:1']],
1980            'REPO'             => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']],
1981            'REPO:CHAN'        => [['_WT_USER', '0:1']],
1982            'SOUR'             => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']],
1983            'SOUR:CHAN'        => [['_WT_USER', '0:1']],
1984            'SUBM'             => [['RESN', '0:1', 'CHAN']],
1985            'SUBM:CHAN'        => [['_WT_USER', '0:1']],
1986        ];
1987    }
1988
1989    /**
1990     * @return array<string,array<int,array<int,string>>>
1991     */
1992    private function customSubTags(): array
1993    {
1994        $custom_family_tags     = array_filter(explode(',', Site::getPreference('CUSTOM_FAMILY_TAGS')));
1995        $custom_individual_tags = array_filter(explode(',', Site::getPreference('CUSTOM_INDIVIDUAL_TAGS')));
1996
1997        $subtags = [
1998            'FAM'  => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_family_tags),
1999            'INDI' => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_individual_tags),
2000        ];
2001
2002        if (Site::getPreference('CUSTOM_TIME_TAGS') === '1') {
2003            $subtags['INDI:BIRT:DATE'][] = ['TIME', '0:1'];
2004            $subtags['INDI:DEAT:DATE'][] = ['TIME', '0:1'];
2005        }
2006
2007        if (Site::getPreference('CUSTOM_GEDCOM_L_TAGS') === '1') {
2008            $subtags['FAM'][]               = ['_ASSO', '0:M'];
2009            $subtags['FAM'][]               = ['_STAT', '0:1'];
2010            $subtags['FAM'][]               = ['_UID', '0:M'];
2011            $subtags['FAM:*:ADDR']          = [['_NAME', '0:1:?', 'ADR1']];
2012            $subtags['FAM:*:PLAC']          = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2013            $subtags['FAM:ENGA:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2014            $subtags['FAM:MARB:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2015            $subtags['FAM:MARR']            = [['_WITN', '0:1']];
2016            $subtags['FAM:MARR:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2017            $subtags['FAM:SLGS:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2018            $subtags['INDI'][]              = ['_UID', '0:M'];
2019            $subtags['INDI:*:ADDR']         = [['_NAME', '0:1:?', 'ADR1']];
2020            $subtags['INDI:*:PLAC']         = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2021            $subtags['INDI:ADOP:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2022            $subtags['INDI:BAPL:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2023            $subtags['INDI:BAPM']           = [['_GODP', '0:1'], ['_WITN', '0:1']];
2024            $subtags['INDI:BAPM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2025            $subtags['INDI:BARM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2026            $subtags['INDI:BASM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2027            $subtags['INDI:BIRT:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2028            $subtags['INDI:BLES:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2029            $subtags['INDI:BURI:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2030            $subtags['INDI:CENS:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2031            $subtags['INDI:CHR']            = [['_GODP', '0:1'], ['_WITN', '0:1']];
2032            $subtags['INDI:CHR:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2033            $subtags['INDI:CHRA:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2034            $subtags['INDI:CONF:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2035            $subtags['INDI:CONL:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2036            $subtags['INDI:CREM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2037            $subtags['INDI:DEAT:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2038            $subtags['INDI:EMIG:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2039            $subtags['INDI:ENDL:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2040            $subtags['INDI:EVEN:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2041            $subtags['INDI:FCOM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2042            $subtags['INDI:IMMI:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2043            $subtags['INDI:NAME']           = [['_RUFN', '0:1']];
2044            $subtags['INDI:NATU:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2045            $subtags['INDI:ORDN:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2046            $subtags['INDI:RESI:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2047            $subtags['INDI:SLGC:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2048            $subtags['NOTE']                = [['_UID', '0:M']];
2049            $subtags['OBJE']                = [['_PRIM', '0:1:?'], ['_UID', '0:M']];
2050            $subtags['REPO']                = [['_UID', '0:M']];
2051            $subtags['REPO:ADDR']           = [['_NAME', '0:1', 'ADR1']];
2052            $subtags['SOUR']                = [['_UID', '0:M']];
2053            $subtags['SOUR:DATA:EVEN:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
2054            $subtags['SUBM']                = [['_UID', '0:M']];
2055            $subtags['SUBM:ADDR']           = [['_NAME', '0:1', 'ADR1']];
2056        }
2057
2058        return $subtags;
2059    }
2060
2061    /**
2062     * @param ElementFactoryInterface $element_factory
2063     * @param bool                    $include_custom_tags
2064     *
2065     * @return void
2066     */
2067    public function registerTags(ElementFactoryInterface $element_factory, bool $include_custom_tags): void
2068    {
2069        // Standard GEDCOM.
2070        $element_factory->registerTags($this->gedcom551Tags());
2071
2072        // webtrees extensions.
2073        $element_factory->registerTags($this->webtreesTags());
2074
2075        if ($include_custom_tags) {
2076            // webtrees extensions.
2077            $element_factory->registerSubTags($this->webtreesSubTags());
2078
2079            // Third-party extensions.
2080            $element_factory->registerTags($this->aldfaerTags());
2081            $element_factory->registerTags($this->ancestryTags());
2082            $element_factory->registerTags($this->brothersKeeperTags());
2083            $element_factory->registerTags($this->familySearchTags());
2084            $element_factory->registerTags($this->familyTreeBuilderTags());
2085            $element_factory->registerTags($this->familyTreeMakerTags());
2086            $element_factory->registerTags($this->gedcom7Tags());
2087            $element_factory->registerTags($this->gedcomLTags());
2088            $element_factory->registerTags($this->geneatique());
2089            $element_factory->registerTags($this->genPlusWinTags());
2090            $element_factory->registerTags($this->heredis());
2091            $element_factory->registerTags($this->legacyTags());
2092            $element_factory->registerTags($this->myHeritageTags());
2093            $element_factory->registerTags($this->personalAncestralFileTags());
2094            $element_factory->registerTags($this->phpGedViewTags());
2095            $element_factory->registerTags($this->reunionTags());
2096            $element_factory->registerTags($this->rootsMagicTags());
2097            $element_factory->registerTags($this->theMasterGenealogistTags());
2098
2099            // Creating tags from all the above are grouped into one place
2100            $element_factory->registerSubTags($this->customSubTags());
2101        }
2102    }
2103}
2104