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