xref: /webtrees/app/Gedcom.php (revision 79509d8e146fb6c833e75bf6c6aa6f0e8a930574)
10f471f91SGreg Roach<?php
23976b470SGreg Roach
30f471f91SGreg Roach/**
40f471f91SGreg Roach * webtrees: online genealogy
55bfc6897SGreg Roach * Copyright (C) 2022 webtrees development team
60f471f91SGreg Roach * This program is free software: you can redistribute it and/or modify
70f471f91SGreg Roach * it under the terms of the GNU General Public License as published by
80f471f91SGreg Roach * the Free Software Foundation, either version 3 of the License, or
90f471f91SGreg Roach * (at your option) any later version.
100f471f91SGreg Roach * This program is distributed in the hope that it will be useful,
110f471f91SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
120f471f91SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
130f471f91SGreg Roach * GNU General Public License for more details.
140f471f91SGreg Roach * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
160f471f91SGreg Roach */
17fcfa147eSGreg Roach
18e7f56f2aSGreg Roachdeclare(strict_types=1);
19e7f56f2aSGreg Roach
200f471f91SGreg Roachnamespace Fisharebest\Webtrees;
210f471f91SGreg Roach
22e669bb4bSGreg Roachuse Fisharebest\Webtrees\Contracts\ElementFactoryInterface;
2300c92694SGreg Roachuse Fisharebest\Webtrees\Contracts\ElementInterface;
2400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressCity;
2500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressCountry;
2600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressEmail;
2700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressFax;
2800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressLine;
2900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressLine1;
3000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressLine2;
3100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressLine3;
3200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressPostalCode;
3300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressState;
3400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AddressWebPage;
3500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AdoptedByWhichParent;
3600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Adoption;
3700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AdultChristening;
3800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AgeAtEvent;
3900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AncestralFileNumber;
4000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Annulment;
4100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ApprovedSystemId;
4200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\AutomatedRecordId;
4300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Baptism;
4400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\BarMitzvah;
4500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\BasMitzvah;
4600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Birth;
4700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Blessing;
4800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Burial;
4900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CasteName;
5000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CauseOfEvent;
5100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Census;
5200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CertaintyAssessment;
5300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Change;
5400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ChangeDate;
5500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CharacterSet;
5600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ChildLinkageStatus;
5700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Christening;
5800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Confirmation;
5900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ContentDescription;
6000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Coordinates;
6100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CopyrightFile;
6200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CopyrightSourceData;
6300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CountOfChildren;
6400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CountOfMarriages;
6500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Cremation;
6600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomElement;
6700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomEvent;
6800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomFact;
6900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomFamilyEvent;
7000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomIndividualEvent;
7100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\DateLdsOrd;
7200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\DateValue;
7300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Death;
7400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\DescriptiveTitle;
7500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Divorce;
7600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\DivorceFiled;
7700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Emigration;
7800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EmptyElement;
7900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Engagement;
8000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EntryRecordingDate;
8100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EventAttributeType;
8200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EventOrFactClassification;
8300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EventsRecorded;
8400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EventTypeCitedFrom;
8500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyCensus;
8600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyRecord;
8700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyResidence;
8800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilySearchFamilyTreeId;
8900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyStatusText;
9000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FileName;
9100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FirstCommunion;
9200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Form;
9300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\GedcomElement;
9400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\GenerationsOfAncestors;
9500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\GenerationsOfDescendants;
9600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\GovIdentifier;
9700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Graduation;
9800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\HeaderRecord;
9900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\HierarchicalRelationship;
10000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Immigration;
10100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\IndividualRecord;
10200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LanguageId;
10300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsBaptism;
10400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsBaptismDateStatus;
10500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsChildSealing;
10600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsChildSealingDateStatus;
10700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsConfirmation;
10800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsEndowment;
10900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsEndowmentDateStatus;
11000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsSpouseSealing;
11100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsSpouseSealingDateStatus;
11200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LocationRecord;
11300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MaidenheadLocator;
11400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Marriage;
11500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageBanns;
11600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageContract;
11700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageLicence;
11800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageSettlement;
11900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageType;
12000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MediaRecord;
12100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MultimediaFileReference;
12200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MultimediaFormat;
12300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfBusiness;
12400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfFamilyFile;
12500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfProduct;
12600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfRepository;
12700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfSourceData;
12800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePersonal;
12900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePhoneticVariation;
13000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceGiven;
13100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceNickname;
13200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePiecePrefix;
13300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceSuffix;
13400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceSurname;
13500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceSurnamePrefix;
13600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameRomanizedVariation;
13700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameType;
13800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NationalIdNumber;
13900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NationOrTribalOrigin;
14000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Naturalization;
14100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NobilityTypeTitle;
14200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NoteRecord;
14300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NoteStructure;
14400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Occupation;
14500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\OrdinanceProcessFlag;
14600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Ordination;
14700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PafUid;
14800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PedigreeLinkageType;
14900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PermanentRecordFileNumber;
15000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PhoneNumber;
15100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PhoneticType;
15200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PhysicalDescription;
15300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceHierarchy;
15400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceLatitude;
15500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceLivingOrdinance;
15600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceLongtitude;
15700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceName;
15800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlacePhoneticVariation;
15900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceRomanizedVariation;
16000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Possessions;
16100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Probate;
16200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PublicationDate;
16300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ReceivingSystemName;
16400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RelationIsDescriptor;
16500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ReligiousAffiliation;
16600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RepositoryRecord;
16700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResearchTask;
16800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResearchTaskPriority;
16900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResearchTaskStatus;
17000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResearchTaskType;
17100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Residence;
17200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResponsibleAgency;
17300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RestrictionNotice;
17400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Retirement;
17500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RoleInEvent;
17600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RomanizedType;
17700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ScholasticAchievement;
17800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SexValue;
17900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SexXValue;
18000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SocialSecurityNumber;
18100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceCallNumber;
18200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceData;
18300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceFiledByEntry;
18400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceJurisdictionPlace;
18500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceMediaType;
18600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceOriginator;
18700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourcePublicationFacts;
18800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceRecord;
18900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmissionRecord;
19000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmitterName;
19100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmitterRecord;
19200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmitterRegisteredRfn;
19300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmitterText;
19400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\TempleCode;
19500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\TextFromSource;
19600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\TimeValue;
19700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\TransmissionDate;
19800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\UserReferenceNumber;
19900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\UserReferenceType;
20000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\VersionNumber;
20100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\WebtreesUser;
20200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\WhereWithinSource;
20300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Will;
20400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefAssociate;
20500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefFamily;
20600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefIndividual;
20700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefLocation;
20800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefMedia;
20900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefRepository;
21000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefSource;
21100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefSubmission;
21200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefSubmitter;
21300c92694SGreg Roach
2140f471f91SGreg Roach/**
2150f471f91SGreg Roach * GEDCOM 5.5.1 specification
2160f471f91SGreg Roach */
217c1010edaSGreg Roachclass Gedcom
218c1010edaSGreg Roach{
2190f471f91SGreg Roach    // 255 less the EOL character.
22016d6367aSGreg Roach    public const LINE_LENGTH = 253;
2218d0ebef0SGreg Roach
2228d0ebef0SGreg Roach    // Gedcom tags which indicate the start of life.
22369d5bee2SGreg Roach    public const BIRTH_EVENTS = ['BIRT', 'CHR', 'BAPM'];
2248d0ebef0SGreg Roach
2258d0ebef0SGreg Roach    // Gedcom tags which indicate the end of life.
22616d6367aSGreg Roach    public const DEATH_EVENTS = ['DEAT', 'BURI', 'CREM'];
2278d0ebef0SGreg Roach
2288d0ebef0SGreg Roach    // Gedcom tags which indicate the start of a relationship.
22916d6367aSGreg Roach    public const MARRIAGE_EVENTS = ['MARR', '_NMR'];
2308d0ebef0SGreg Roach
2318d0ebef0SGreg Roach    // Gedcom tags which indicate the end of a relationship.
23216d6367aSGreg Roach    public const DIVORCE_EVENTS = ['DIV', 'ANUL', '_SEPR'];
2338d0ebef0SGreg Roach
2348d0ebef0SGreg Roach    // Regular expression to match a GEDCOM tag.
23516d6367aSGreg Roach    public const REGEX_TAG = '[_A-Z][_A-Z0-9]*';
2368d0ebef0SGreg Roach
2378d0ebef0SGreg Roach    // Regular expression to match a GEDCOM XREF.
238f81cefe9SGreg Roach    public const REGEX_XREF = '[A-Za-z0-9:_.-]{1,20}';
2398d0ebef0SGreg Roach
2401c6adce8SGreg Roach    // Separates the parts of a place name.
241ead61980SGreg Roach    public const PLACE_SEPARATOR = ', ';
242392561bbSGreg Roach
243392561bbSGreg Roach    // Regex to match a (badly formed) GEDCOM place separator.
24490949315SGreg Roach    public const PLACE_SEPARATOR_REGEX = '/ *,[, ]*/';
24590949315SGreg Roach
24690949315SGreg Roach    // LATI and LONG tags
24790949315SGreg Roach    public const LATITUDE_NORTH = 'N';
24890949315SGreg Roach    public const LATITUDE_SOUTH = 'S';
24990949315SGreg Roach    public const LONGITUDE_EAST = 'E';
25090949315SGreg Roach    public const LONGITUDE_WEST = 'W';
25171f696adSGreg Roach
25271f696adSGreg Roach    // Not all record types allow a CHAN event.
25371f696adSGreg Roach    public const RECORDS_WITH_CHAN = [
25471f696adSGreg Roach        Family::RECORD_TYPE,
25571f696adSGreg Roach        Individual::RECORD_TYPE,
25671f696adSGreg Roach        Media::RECORD_TYPE,
25771f696adSGreg Roach        Note::RECORD_TYPE,
25871f696adSGreg Roach        Repository::RECORD_TYPE,
25971f696adSGreg Roach        Source::RECORD_TYPE,
26071f696adSGreg Roach        Submitter::RECORD_TYPE,
26171f696adSGreg Roach    ];
262c8183f29SGreg Roach
263c8183f29SGreg Roach    // These preferences control multiple tag definitions
264c8183f29SGreg Roach    public const HIDDEN_TAGS = [
265c8183f29SGreg Roach        // Individual names
266c8183f29SGreg Roach        'NAME_NPFX'  => ['INDI:NAME:NPFX', 'INDI:NAME:FONE:NPFX', 'INDI:NAME:ROMN:NPFX'],
267c8183f29SGreg Roach        'NAME_SPFX'  => ['INDI:NAME:SPFX', 'INDI:NAME:FONE:SPFX', 'INDI:NAME:ROMN:SPFX'],
268c8183f29SGreg Roach        'NAME_NSFX'  => ['INDI:NAME:NSFX', 'INDI:NAME:FONE:NSFX', 'INDI:NAME:ROMN:NSFX'],
269c8183f29SGreg Roach        'NAME_NICK'  => ['INDI:NAME:NICK', 'INDI:NAME:FONE:NICK', 'INDI:NAME:ROMN:NICK'],
270c8183f29SGreg Roach        'NAME_FONE'  => ['INDI:NAME:FONE'],
271c8183f29SGreg Roach        'NAME_ROMN'  => ['INDI:NAME:ROMN'],
272c8183f29SGreg Roach        'NAME_NOTE'  => ['INDI:NAME:NOTE'],
273c8183f29SGreg Roach        'NAME_SOUR'  => ['INDI:NAME:SOUR'],
274c8183f29SGreg Roach        // Places
275302fdb8dSGreg Roach        'PLAC_MAP'   => [':PLAC:MAP'],
276302fdb8dSGreg Roach        'PLAC_FONE'  => [':PLAC:FONE'],
277302fdb8dSGreg Roach        'PLAC_ROMN'  => [':PLAC:ROMN'],
278302fdb8dSGreg Roach        'PLAC_FORM'  => [':PLAC:FORM', 'HEAD:PLAC'],
279302fdb8dSGreg Roach        'PLAC_NOTE'  => [':PLAC:NOTE'],
280c8183f29SGreg Roach        // Addresses
281302fdb8dSGreg Roach        'ADDR_EMAIL' => [':EMAIL'],
282302fdb8dSGreg Roach        'ADDR_PHON'  => [':PHON'],
283302fdb8dSGreg Roach        'ADDR_WWW'   => [':WWW'],
284c8183f29SGreg Roach        // Source citations
285c8183f29SGreg Roach        'SOUR_EVEN'  => [':SOUR:EVEN'],
286c8183f29SGreg Roach        'SOUR_DATE'  => [':SOUR:DATA:DATE'],
287c8183f29SGreg Roach        'SOUR_NOTE'  => [':SOUR:NOTE'],
288c8183f29SGreg Roach        'SOUR_QUAY'  => [':SOUR:QUAY'],
289c8183f29SGreg Roach        // Sources
29040c249dcSGreg Roach        'SOUR_DATA'  => ['SOUR:DATA:EVEN', 'SOUR:DATA:AGNC', 'SOUR:DATA:NOTE'],
291c8183f29SGreg Roach        // Individuals
292c8183f29SGreg Roach        'BIRT_FAMC'  => ['INDI:BIRT:FAMC'],
293c8183f29SGreg Roach        'RELI'       => ['INDI:RELI'],
294c8183f29SGreg Roach        'BAPM'       => ['INDI:BAPM'],
295c8183f29SGreg Roach        'CHR'        => ['INDI:CHR', 'INDI:CHRA'],
296c8183f29SGreg Roach        'FCOM'       => ['INDI:FCOM', 'INDI:CONF'],
297c8183f29SGreg Roach        'ORDN'       => ['INDI:ORDN'],
298c8183f29SGreg Roach        'BARM'       => ['INDI:BARM', 'INDI:BASM'],
299c8183f29SGreg Roach        'ALIA'       => ['INDI:ALIA'],
300c8183f29SGreg Roach        'ASSO'       => ['INDI:ASSO'],
301c8183f29SGreg Roach        // Families
302c8183f29SGreg Roach        'ENGA'       => ['FAM:ENGA'],
303c8183f29SGreg Roach        'MARB'       => ['FAM:MARB'],
304c8183f29SGreg Roach        'MARC'       => ['FAM:MARC'],
305c8183f29SGreg Roach        'MARL'       => ['FAM:MARL'],
306c8183f29SGreg Roach        'MARS'       => ['FAM:MARS'],
307c8183f29SGreg Roach        'ANUL'       => ['FAM:ANUL'],
308c8183f29SGreg Roach        'DIVF'       => ['FAM:DIVF'],
309c8183f29SGreg Roach        'FAM_RESI'   => ['FAM:RESI'],
310c8183f29SGreg Roach        'FAM_CENS'   => ['FAM:CENS'],
311c8183f29SGreg Roach        // LDS church
312c8183f29SGreg Roach        'LDS'        => ['INDI:BAPL', 'INDI:CONL', 'INDI:ENDL', 'INDI:SLGC', 'FAM:SLGS', 'HEAD:SUBN'],
313c8183f29SGreg Roach        // Identifiers
314c8183f29SGreg Roach        'AFN'        => ['INDI:AFN'],
315c8183f29SGreg Roach        'IDNO'       => ['INDI:IDNO'],
316c8183f29SGreg Roach        'SSN'        => ['INDI:SSN'],
317302fdb8dSGreg Roach        'RFN'        => [':RFN'],
318302fdb8dSGreg Roach        'REFN'       => [':REFN'],
319302fdb8dSGreg Roach        'RIN'        => [':RIN'],
320c8183f29SGreg Roach        // Submitters
321c8183f29SGreg Roach        'SUBM'       => ['INDI:SUBM', 'FAM:SUBM'],
322c8183f29SGreg Roach        'ANCI'       => ['INDI:ANCI', 'INDI:DESI'],
323c8183f29SGreg Roach    ];
32400c92694SGreg Roach
32500c92694SGreg Roach    // Custom GEDCOM tags that can be created in webtrees.
32600c92694SGreg Roach    public const CUSTOM_FAMILY_TAGS = [
32700c92694SGreg Roach        '_COML',
32800c92694SGreg Roach        '_MARI',
32900c92694SGreg Roach        '_MBON',
33000c92694SGreg Roach        '_NMR',
33100c92694SGreg Roach        '_SEPR',
33200c92694SGreg Roach    ];
33300c92694SGreg Roach
33400c92694SGreg Roach    public const CUSTOM_INDIVIDUAL_TAGS = [
33500c92694SGreg Roach        '_BRTM',
33600c92694SGreg Roach        '_CIRC',
33700c92694SGreg Roach        '_DEG',
33800c92694SGreg Roach        '_DNA',
33900c92694SGreg Roach        '_EXCM',
34000c92694SGreg Roach        '_EYEC',
34100c92694SGreg Roach        '_FNRL',
34200c92694SGreg Roach        '_FSFTID',
34300c92694SGreg Roach        '_HAIR',
34400c92694SGreg Roach        '_HEIG',
34500c92694SGreg Roach        '_INTE',
34600c92694SGreg Roach        '_MDCL',
34700c92694SGreg Roach        '_MEDC',
34800c92694SGreg Roach        '_MILI',
34900c92694SGreg Roach        '_MILT',
35000c92694SGreg Roach        '_NAMS',
35100c92694SGreg Roach        '_PRMN',
35200c92694SGreg Roach        '_WEIG',
35300c92694SGreg Roach        '_YART',
35400c92694SGreg Roach    ];
35500c92694SGreg Roach
356356588a1SGreg Roach    // Some applications create GEDCOM files containing records without XREFS.
357356588a1SGreg Roach    // We cannot process these.
358356588a1SGreg Roach    public const CUSTOM_RECORDS_WITHOUT_XREFS = [
359356588a1SGreg Roach        'EMOTIONALRELATIONSHIP', // GenoPro
360356588a1SGreg Roach        'GENOMAP', // GenoPro
361356588a1SGreg Roach        'GLOBAL', // GenoPro
362356588a1SGreg Roach        'LABEL', // GenoPro
363356588a1SGreg Roach        'PEDIGREELINK', // GenoPro
364356588a1SGreg Roach        'SOCIALRELATIONSHIP', // GenoPro
365356588a1SGreg Roach        '_EVDEF', // RootsMagic
366356588a1SGreg Roach        '_EVENT_DEFN', // PAF and Legacy
367356588a1SGreg Roach        '_HASHTAG_DEFN', // Legacy
36854671e98SGreg Roach        '_PUBLISH', // MyHeritage
369356588a1SGreg Roach        '_TODO', // Legacy
370356588a1SGreg Roach    ];
371356588a1SGreg Roach
37200c92694SGreg Roach    /**
37300c92694SGreg Roach     * Definitions for GEDCOM 5.5.1.
37400c92694SGreg Roach     *
37500c92694SGreg Roach     * @return array<string,ElementInterface>
37600c92694SGreg Roach     */
37700c92694SGreg Roach    private function gedcom551Tags(): array
37800c92694SGreg Roach    {
37900c92694SGreg Roach        return [
38000c92694SGreg Roach            'FAM'                      => new FamilyRecord(I18N::translate('Family')),
38100c92694SGreg Roach            'FAM:*:ADDR'               => new AddressLine(I18N::translate('Address')),
38200c92694SGreg Roach            'FAM:*:ADDR:ADR1'          => new AddressLine1(I18N::translate('Address line 1')),
38300c92694SGreg Roach            'FAM:*:ADDR:ADR2'          => new AddressLine2(I18N::translate('Address line 2')),
38400c92694SGreg Roach            'FAM:*:ADDR:ADR3'          => new AddressLine3(I18N::translate('Address line 3')),
38500c92694SGreg Roach            'FAM:*:ADDR:CITY'          => new AddressCity(I18N::translate('City')),
38600c92694SGreg Roach            'FAM:*:ADDR:CTRY'          => new AddressCountry(I18N::translate('Country')),
38700c92694SGreg Roach            'FAM:*:ADDR:POST'          => new AddressPostalCode(I18N::translate('Postal code')),
38800c92694SGreg Roach            'FAM:*:ADDR:STAE'          => new AddressState(I18N::translate('State')),
38900c92694SGreg Roach            'FAM:*:AGNC'               => new ResponsibleAgency(I18N::translate('Agency')),
39000c92694SGreg Roach            'FAM:*:CAUS'               => new CauseOfEvent(I18N::translate('Cause')),
39100c92694SGreg Roach            'FAM:*:DATE'               => new DateValue(I18N::translate('Date')),
39200c92694SGreg Roach            'FAM:*:EMAIL'              => new AddressEmail(I18N::translate('Email address')),
39300c92694SGreg Roach            'FAM:*:FAX'                => new AddressFax(I18N::translate('Fax')),
39400c92694SGreg Roach            'FAM:*:HUSB'               => new EmptyElement(I18N::translate('Husband'), ['AGE' => '0:1']),
39500c92694SGreg Roach            'FAM:*:HUSB:AGE'           => new AgeAtEvent(I18N::translate('Husband’s age')),
39600c92694SGreg Roach            'FAM:*:NOTE'               => new NoteStructure(I18N::translate('Note')),
39700c92694SGreg Roach            'FAM:*:OBJE'               => new XrefMedia(I18N::translate('Media object')),
39800c92694SGreg Roach            'FAM:*:PHON'               => new PhoneNumber(I18N::translate('Phone')),
39900c92694SGreg Roach            'FAM:*:PLAC'               => new PlaceName(I18N::translate('Place')),
40000c92694SGreg Roach            'FAM:*:PLAC:FONE'          => new PlacePhoneticVariation(I18N::translate('Phonetic place')),
40100c92694SGreg Roach            'FAM:*:PLAC:FONE:TYPE'     => new PhoneticType(I18N::translate('Type')),
40200c92694SGreg Roach            'FAM:*:PLAC:FORM'          => new PlaceHierarchy(I18N::translate('Format')),
40300c92694SGreg Roach            'FAM:*:PLAC:MAP'           => new Coordinates(I18N::translate('Coordinates')),
40400c92694SGreg Roach            'FAM:*:PLAC:MAP:LATI'      => new PlaceLatitude(I18N::translate('Latitude')),
40500c92694SGreg Roach            'FAM:*:PLAC:MAP:LONG'      => new PlaceLongtitude(I18N::translate('Longitude')),
40600c92694SGreg Roach            'FAM:*:PLAC:NOTE'          => new NoteStructure(I18N::translate('Note')),
40700c92694SGreg Roach            'FAM:*:PLAC:ROMN'          => new PlaceRomanizedVariation(I18N::translate('Romanized place')),
40800c92694SGreg Roach            'FAM:*:PLAC:ROMN:TYPE'     => new RomanizedType(I18N::translate('Type')),
40900c92694SGreg Roach            'FAM:*:RELI'               => new ReligiousAffiliation(I18N::translate('Religion'), []),
41000c92694SGreg Roach            'FAM:*:RESN'               => new RestrictionNotice(I18N::translate('Restriction')),
41100c92694SGreg Roach            'FAM:*:SOUR'               => new XrefSource(I18N::translate('Source citation')),
41200c92694SGreg Roach            'FAM:*:SOUR:DATA'          => new SourceData(I18N::translate('Data')),
41300c92694SGreg Roach            'FAM:*:SOUR:DATA:DATE'     => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
41400c92694SGreg Roach            'FAM:*:SOUR:DATA:TEXT'     => new TextFromSource(I18N::translate('Text')),
41500c92694SGreg Roach            'FAM:*:SOUR:EVEN'          => new EventTypeCitedFrom(I18N::translate('Event')),
41600c92694SGreg Roach            'FAM:*:SOUR:EVEN:ROLE'     => new RoleInEvent(I18N::translate('Role')),
41700c92694SGreg Roach            'FAM:*:SOUR:NOTE'          => new NoteStructure(I18N::translate('Note')),
41800c92694SGreg Roach            'FAM:*:SOUR:OBJE'          => new XrefMedia(I18N::translate('Media object')),
41900c92694SGreg Roach            'FAM:*:SOUR:PAGE'          => new WhereWithinSource(I18N::translate('Citation details')),
42000c92694SGreg Roach            'FAM:*:SOUR:QUAY'          => new CertaintyAssessment(I18N::translate('Quality of data')),
42100c92694SGreg Roach            'FAM:*:TYPE'               => new EventOrFactClassification(I18N::translate('Type')),
42200c92694SGreg Roach            'FAM:*:WIFE'               => new EmptyElement(I18N::translate('Wife'), ['AGE' => '0:1']),
42300c92694SGreg Roach            'FAM:*:WIFE:AGE'           => new AgeAtEvent(I18N::translate('Wife’s age')),
42400c92694SGreg Roach            'FAM:*:WWW'                => new AddressWebPage(I18N::translate('URL')),
42500c92694SGreg Roach            'FAM:ANUL'                 => new Annulment(I18N::translate('Annulment')),
42600c92694SGreg Roach            'FAM:CENS'                 => new FamilyCensus(I18N::translate('Family census')),
42700c92694SGreg Roach            'FAM:CHAN'                 => new Change(I18N::translate('Last change')),
42800c92694SGreg Roach            'FAM:CHAN:DATE'            => new ChangeDate(I18N::translate('Date of last change')),
42900c92694SGreg Roach            'FAM:CHAN:DATE:TIME'       => new TimeValue(I18N::translate('Time of last change')),
43000c92694SGreg Roach            'FAM:CHIL'                 => new XrefIndividual(I18N::translate('Child')),
43100c92694SGreg Roach            'FAM:DIV'                  => new Divorce(I18N::translate('Divorce')),
43200c92694SGreg Roach            'FAM:DIV:DATE'             => new DateValue(I18N::translate('Date of divorce')),
43300c92694SGreg Roach            'FAM:DIVF'                 => new DivorceFiled(I18N::translate('Divorce filed')),
43400c92694SGreg Roach            'FAM:ENGA'                 => new Engagement(I18N::translate('Engagement')),
43500c92694SGreg Roach            'FAM:ENGA:DATE'            => new DateValue(I18N::translate('Date of engagement')),
43600c92694SGreg Roach            'FAM:ENGA:PLAC'            => new PlaceName(I18N::translate('Place of engagement')),
43700c92694SGreg Roach            'FAM:EVEN'                 => new CustomFamilyEvent(I18N::translate('Event')),
43800c92694SGreg Roach            'FAM:EVEN:TYPE'            => new EventAttributeType(I18N::translate('Type of event')),
43900c92694SGreg Roach            'FAM:HUSB'                 => new XrefIndividual(I18N::translate('Husband')),
44000c92694SGreg Roach            'FAM:MARB'                 => new MarriageBanns(I18N::translate('Marriage banns')),
44100c92694SGreg Roach            'FAM:MARB:DATE'            => new DateValue(I18N::translate('Date of marriage banns')),
44200c92694SGreg Roach            'FAM:MARB:PLAC'            => new PlaceName(I18N::translate('Place of marriage banns')),
44300c92694SGreg Roach            'FAM:MARC'                 => new MarriageContract(I18N::translate('Marriage contract')),
44400c92694SGreg Roach            'FAM:MARL'                 => new MarriageLicence(I18N::translate('Marriage license')),
44500c92694SGreg Roach            'FAM:MARR'                 => new Marriage(I18N::translate('Marriage')),
44600c92694SGreg Roach            'FAM:MARR:DATE'            => new DateValue(I18N::translate('Date of marriage')),
44700c92694SGreg Roach            'FAM:MARR:PLAC'            => new PlaceName(I18N::translate('Place of marriage')),
44800c92694SGreg Roach            'FAM:MARR:TYPE'            => new MarriageType(I18N::translate('Type of marriage')),
44900c92694SGreg Roach            'FAM:MARS'                 => new MarriageSettlement(I18N::translate('Marriage settlement')),
45000c92694SGreg Roach            'FAM:NCHI'                 => new CountOfChildren(I18N::translate('Number of children')),
45100c92694SGreg Roach            'FAM:NOTE'                 => new NoteStructure(I18N::translate('Note')),
45200c92694SGreg Roach            'FAM:OBJE'                 => new XrefMedia(I18N::translate('Media object')),
45300c92694SGreg Roach            'FAM:REFN'                 => new UserReferenceNumber(I18N::translate('Reference number')),
45400c92694SGreg Roach            'FAM:REFN:TYPE'            => new UserReferenceType(I18N::translate('Type of reference number')),
45500c92694SGreg Roach            'FAM:RESI'                 => new FamilyResidence(I18N::translate('Family residence')),
45600c92694SGreg Roach            'FAM:RESN'                 => new RestrictionNotice(I18N::translate('Restriction')),
45700c92694SGreg Roach            'FAM:RIN'                  => new AutomatedRecordId(I18N::translate('Record ID number')),
45800c92694SGreg Roach            'FAM:SLGS'                 => new LdsSpouseSealing(I18N::translate('LDS spouse sealing')),
45900c92694SGreg Roach            'FAM:SLGS:DATE'            => new DateLdsOrd(I18N::translate('Date of LDS spouse sealing')),
46000c92694SGreg Roach            'FAM:SLGS:PLAC'            => new PlaceLivingOrdinance(I18N::translate('Place of LDS spouse sealing')),
46100c92694SGreg Roach            'FAM:SLGS:STAT'            => new LdsSpouseSealingDateStatus(I18N::translate('Status')),
46200c92694SGreg Roach            'FAM:SLGS:STAT:DATE'       => new ChangeDate(I18N::translate('Status change date')),
46300c92694SGreg Roach            'FAM:SLGS:TEMP'            => new TempleCode(I18N::translate('Temple')),
46400c92694SGreg Roach            'FAM:SOUR'                 => new XrefSource(I18N::translate('Source citation')),
46500c92694SGreg Roach            'FAM:SOUR:DATA'            => new SourceData(I18N::translate('Data')),
46600c92694SGreg Roach            'FAM:SOUR:DATA:DATE'       => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
46700c92694SGreg Roach            'FAM:SOUR:DATA:TEXT'       => new TextFromSource(I18N::translate('Text')),
46800c92694SGreg Roach            'FAM:SOUR:EVEN'            => new EventTypeCitedFrom(I18N::translate('Event')),
46900c92694SGreg Roach            'FAM:SOUR:EVEN:ROLE'       => new RoleInEvent(I18N::translate('Role')),
47000c92694SGreg Roach            'FAM:SOUR:NOTE'            => new NoteStructure(I18N::translate('Note')),
47100c92694SGreg Roach            'FAM:SOUR:OBJE'            => new XrefMedia(I18N::translate('Media object')),
47200c92694SGreg Roach            'FAM:SOUR:PAGE'            => new WhereWithinSource(I18N::translate('Citation details')),
47300c92694SGreg Roach            'FAM:SOUR:QUAY'            => new CertaintyAssessment(I18N::translate('Quality of data')),
47400c92694SGreg Roach            'FAM:SUBM'                 => new XrefSubmitter(I18N::translate('Submitter')),
47500c92694SGreg Roach            'FAM:WIFE'                 => new XrefIndividual(I18N::translate('Wife')),
47600c92694SGreg Roach            'HEAD'                     => new HeaderRecord(I18N::translate('Header')),
47700c92694SGreg Roach            'HEAD:CHAR'                => new CharacterSet(I18N::translate('Character set')),
47800c92694SGreg Roach            'HEAD:CHAR:VERS'           => new VersionNumber(I18N::translate('Version')),
47900c92694SGreg Roach            'HEAD:COPR'                => new CopyrightFile(I18N::translate('Copyright')),
48000c92694SGreg Roach            'HEAD:DATE'                => new TransmissionDate(I18N::translate('Date')),
48100c92694SGreg Roach            'HEAD:DATE:TIME'           => new TimeValue(I18N::translate('Time')),
48200c92694SGreg Roach            'HEAD:DEST'                => new ReceivingSystemName(I18N::translate('Destination')),
48300c92694SGreg Roach            'HEAD:FILE'                => new FileName(I18N::translate('Filename')),
48400c92694SGreg Roach            'HEAD:GEDC'                => new GedcomElement(I18N::translate('GEDCOM')),
48500c92694SGreg Roach            'HEAD:GEDC:FORM'           => new Form(I18N::translate('Format')),
48600c92694SGreg Roach            'HEAD:GEDC:VERS'           => new VersionNumber(I18N::translate('Version')),
48700c92694SGreg Roach            'HEAD:LANG'                => new LanguageId(I18N::translate('Language')),
48800c92694SGreg Roach            'HEAD:NOTE'                => new ContentDescription(I18N::translate('Note')),
48900c92694SGreg Roach            'HEAD:PLAC'                => new EmptyElement(I18N::translate('Place hierarchy'), ['FORM' => '1:1']),
49000c92694SGreg Roach            'HEAD:PLAC:FORM'           => new PlaceHierarchy(I18N::translate('Format')),
4914c10b11dSGreg Roach            'HEAD:SOUR'                => new ApprovedSystemId(I18N::translate('Application ID')),
49200c92694SGreg Roach            'HEAD:SOUR:CORP'           => new NameOfBusiness(I18N::translate('Corporation')),
49300c92694SGreg Roach            'HEAD:SOUR:CORP:ADDR'      => new AddressLine(I18N::translate('Address')),
49400c92694SGreg Roach            'HEAD:SOUR:CORP:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')),
49500c92694SGreg Roach            'HEAD:SOUR:CORP:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')),
49600c92694SGreg Roach            'HEAD:SOUR:CORP:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')),
49700c92694SGreg Roach            'HEAD:SOUR:CORP:ADDR:CITY' => new AddressCity(I18N::translate('City')),
49800c92694SGreg Roach            'HEAD:SOUR:CORP:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')),
49900c92694SGreg Roach            'HEAD:SOUR:CORP:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')),
50000c92694SGreg Roach            'HEAD:SOUR:CORP:ADDR:STAE' => new AddressState(I18N::translate('State')),
50100c92694SGreg Roach            'HEAD:SOUR:CORP:EMAIL'     => new AddressEmail(I18N::translate('Email address')),
50200c92694SGreg Roach            'HEAD:SOUR:CORP:FAX'       => new AddressFax(I18N::translate('Fax')),
50300c92694SGreg Roach            'HEAD:SOUR:CORP:PHON'      => new PhoneNumber(I18N::translate('Phone')),
50400c92694SGreg Roach            'HEAD:SOUR:CORP:WWW'       => new AddressWebPage(I18N::translate('URL')),
5054c10b11dSGreg Roach            'HEAD:SOUR:DATA'           => new NameOfSourceData(I18N::translate('Data')),
50600c92694SGreg Roach            'HEAD:SOUR:DATA:COPR'      => new CopyrightSourceData(I18N::translate('Copyright')),
50700c92694SGreg Roach            'HEAD:SOUR:DATA:DATE'      => new PublicationDate(I18N::translate('Date')),
5084c10b11dSGreg Roach            'HEAD:SOUR:NAME'           => new NameOfProduct(I18N::translate('Application name')),
50900c92694SGreg Roach            'HEAD:SOUR:VERS'           => new VersionNumber(I18N::translate('Version')),
51000c92694SGreg Roach            'HEAD:SUBM'                => new XrefSubmitter(I18N::translate('Submitter')),
51100c92694SGreg Roach            'HEAD:SUBN'                => new XrefSubmission(I18N::translate('Submission')),
51200c92694SGreg Roach            'INDI'                     => new IndividualRecord(I18N::translate('Individual')),
51300c92694SGreg Roach            'INDI:*:ADDR'              => new AddressLine(I18N::translate('Address')),
51400c92694SGreg Roach            'INDI:*:ADDR:ADR1'         => new AddressLine1(I18N::translate('Address line 1')),
51500c92694SGreg Roach            'INDI:*:ADDR:ADR2'         => new AddressLine2(I18N::translate('Address line 2')),
51600c92694SGreg Roach            'INDI:*:ADDR:ADR3'         => new AddressLine3(I18N::translate('Address line 3')),
51700c92694SGreg Roach            'INDI:*:ADDR:CITY'         => new AddressCity(I18N::translate('City')),
51800c92694SGreg Roach            'INDI:*:ADDR:CTRY'         => new AddressCountry(I18N::translate('Country')),
51900c92694SGreg Roach            'INDI:*:ADDR:POST'         => new AddressPostalCode(I18N::translate('Postal code')),
52000c92694SGreg Roach            'INDI:*:ADDR:STAE'         => new AddressState(I18N::translate('State')),
52100c92694SGreg Roach            'INDI:*:AGE'               => new AgeAtEvent(I18N::translate('Age')),
52200c92694SGreg Roach            'INDI:*:AGNC'              => new ResponsibleAgency(I18N::translate('Agency')),
52300c92694SGreg Roach            'INDI:*:CAUS'              => new CauseOfEvent(I18N::translate('Cause')),
52400c92694SGreg Roach            'INDI:*:DATE'              => new DateValue(I18N::translate('Date')),
52500c92694SGreg Roach            'INDI:*:EMAIL'             => new AddressEmail(I18N::translate('Email address')),
52600c92694SGreg Roach            'INDI:*:FAX'               => new AddressFax(I18N::translate('Fax')),
52700c92694SGreg Roach            'INDI:*:NOTE'              => new NoteStructure(I18N::translate('Note')),
52800c92694SGreg Roach            'INDI:*:OBJE'              => new XrefMedia(I18N::translate('Media object')),
52900c92694SGreg Roach            'INDI:*:PHON'              => new PhoneNumber(I18N::translate('Phone')),
53000c92694SGreg Roach            'INDI:*:PLAC'              => new PlaceName(I18N::translate('Place')),
53100c92694SGreg Roach            'INDI:*:PLAC:FONE'         => new PlacePhoneticVariation(I18N::translate('Phonetic place')),
53200c92694SGreg Roach            'INDI:*:PLAC:FONE:TYPE'    => new PhoneticType(I18N::translate('Type')),
53300c92694SGreg Roach            'INDI:*:PLAC:FORM'         => new PlaceHierarchy(I18N::translate('Format')),
53400c92694SGreg Roach            'INDI:*:PLAC:MAP'          => new Coordinates(I18N::translate('Coordinates')),
53500c92694SGreg Roach            'INDI:*:PLAC:MAP:LATI'     => new PlaceLatitude(I18N::translate('Latitude')),
53600c92694SGreg Roach            'INDI:*:PLAC:MAP:LONG'     => new PlaceLongtitude(I18N::translate('Longitude')),
53700c92694SGreg Roach            'INDI:*:PLAC:NOTE'         => new NoteStructure(I18N::translate('Note')),
53800c92694SGreg Roach            'INDI:*:PLAC:ROMN'         => new PlaceRomanizedVariation(I18N::translate('Romanized place')),
53900c92694SGreg Roach            'INDI:*:PLAC:ROMN:TYPE'    => new RomanizedType(I18N::translate('Type')),
54000c92694SGreg Roach            'INDI:*:RELI'              => new ReligiousAffiliation(I18N::translate('Religion'), []),
54100c92694SGreg Roach            'INDI:*:RESN'              => new RestrictionNotice(I18N::translate('Restriction')),
54200c92694SGreg Roach            'INDI:*:SOUR'              => new XrefSource(I18N::translate('Source citation')),
54300c92694SGreg Roach            'INDI:*:SOUR:DATA'         => new SourceData(I18N::translate('Data')),
54400c92694SGreg Roach            'INDI:*:SOUR:DATA:DATE'    => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
54500c92694SGreg Roach            'INDI:*:SOUR:DATA:TEXT'    => new TextFromSource(I18N::translate('Text')),
54600c92694SGreg Roach            'INDI:*:SOUR:EVEN'         => new EventTypeCitedFrom(I18N::translate('Event')),
54700c92694SGreg Roach            'INDI:*:SOUR:EVEN:ROLE'    => new RoleInEvent(I18N::translate('Role')),
54800c92694SGreg Roach            'INDI:*:SOUR:NOTE'         => new NoteStructure(I18N::translate('Note')),
54900c92694SGreg Roach            'INDI:*:SOUR:OBJE'         => new XrefMedia(I18N::translate('Media object')),
55000c92694SGreg Roach            'INDI:*:SOUR:PAGE'         => new WhereWithinSource(I18N::translate('Citation details')),
55100c92694SGreg Roach            'INDI:*:SOUR:QUAY'         => new CertaintyAssessment(I18N::translate('Quality of data')),
55200c92694SGreg Roach            'INDI:*:TYPE'              => new EventOrFactClassification(I18N::translate('Type')),
55300c92694SGreg Roach            'INDI:*:WWW'               => new AddressWebPage(I18N::translate('URL')),
55400c92694SGreg Roach            'INDI:ADOP'                => new Adoption(I18N::translate('Adoption')),
55500c92694SGreg Roach            'INDI:ADOP:DATE'           => new DateValue(I18N::translate('Date of adoption')),
55600c92694SGreg Roach            'INDI:ADOP:FAMC'           => new XrefFamily(I18N::translate('Adoptive parents')),
55700c92694SGreg Roach            'INDI:ADOP:FAMC:ADOP'      => new AdoptedByWhichParent(I18N::translate('Adoption')),
55800c92694SGreg Roach            'INDI:ADOP:PLAC'           => new PlaceName(I18N::translate('Place of adoption')),
55900c92694SGreg Roach            'INDI:AFN'                 => new AncestralFileNumber(I18N::translate('Ancestral file number')),
56000c92694SGreg Roach            'INDI:ALIA'                => new XrefIndividual(I18N::translate('Alias')),
56100c92694SGreg Roach            'INDI:ANCI'                => new XrefSubmitter(I18N::translate('Ancestors interest')),
56200c92694SGreg Roach            'INDI:ASSO'                => new XrefAssociate(I18N::translate('Associate')),
56300c92694SGreg Roach            'INDI:ASSO:RELA'           => new RelationIsDescriptor(I18N::translate('Relationship')),
56400c92694SGreg Roach            'INDI:BAPL'                => new LdsBaptism(I18N::translate('LDS baptism')),
56500c92694SGreg Roach            'INDI:BAPL:DATE'           => new DateLdsOrd(I18N::translate('Date of LDS baptism')),
56600c92694SGreg Roach            'INDI:BAPL:PLAC'           => new PlaceLivingOrdinance(I18N::translate('Place of LDS baptism')),
56700c92694SGreg Roach            'INDI:BAPL:STAT'           => new LdsBaptismDateStatus(I18N::translate('Status')),
56800c92694SGreg Roach            'INDI:BAPL:STAT:DATE'      => new ChangeDate(I18N::translate('Status change date')),
56900c92694SGreg Roach            'INDI:BAPL:TEMP'           => new TempleCode(I18N::translate('Temple')),
57000c92694SGreg Roach            'INDI:BAPM'                => new Baptism(I18N::translate('Baptism')),
57100c92694SGreg Roach            'INDI:BAPM:DATE'           => new DateValue(I18N::translate('Date of baptism')),
57200c92694SGreg Roach            'INDI:BAPM:PLAC'           => new PlaceName(I18N::translate('Place of baptism')),
57300c92694SGreg Roach            'INDI:BARM'                => new BarMitzvah(I18N::translate('Bar mitzvah')),
57400c92694SGreg Roach            'INDI:BARM:DATE'           => new DateValue(I18N::translate('Date of bar mitzvah')),
57500c92694SGreg Roach            'INDI:BARM:PLAC'           => new PlaceName(I18N::translate('Place of bar mitzvah')),
57600c92694SGreg Roach            'INDI:BASM'                => new BasMitzvah(I18N::translate('Bat mitzvah')),
57700c92694SGreg Roach            'INDI:BASM:DATE'           => new BasMitzvah(I18N::translate('Date of bat mitzvah')),
57800c92694SGreg Roach            'INDI:BASM:PLAC'           => new DateValue(I18N::translate('Place of bat mitzvah')),
57900c92694SGreg Roach            'INDI:BIRT'                => new Birth(I18N::translate('Birth')),
58000c92694SGreg Roach            'INDI:BIRT:DATE'           => new DateValue(I18N::translate('Date of birth')),
58100c92694SGreg Roach            'INDI:BIRT:FAMC'           => new XrefFamily(I18N::translate('Birth parents')),
58200c92694SGreg Roach            'INDI:BIRT:PLAC'           => new PlaceName(I18N::translate('Place of birth')),
58300c92694SGreg Roach            'INDI:BLES'                => new Blessing(I18N::translate('Blessing')),
58400c92694SGreg Roach            'INDI:BLES:DATE'           => new DateValue(I18N::translate('Date of blessing')),
58500c92694SGreg Roach            'INDI:BLES:PLAC'           => new PlaceName(I18N::translate('Place of blessing')),
58600c92694SGreg Roach            'INDI:BURI'                => new Burial(I18N::translate('Burial')),
58700c92694SGreg Roach            'INDI:BURI:DATE'           => new DateValue(I18N::translate('Date of burial')),
58800c92694SGreg Roach            'INDI:BURI:PLAC'           => new PlaceName(I18N::translate('Place of burial')),
58900c92694SGreg Roach            'INDI:CAST'                => new CasteName(I18N::translate('Caste')),
59000c92694SGreg Roach            'INDI:CENS'                => new Census(I18N::translate('Census')),
59100c92694SGreg Roach            'INDI:CENS:DATE'           => new DateValue(I18N::translate('Census date')),
59200c92694SGreg Roach            'INDI:CENS:PLAC'           => new PlaceName(I18N::translate('Census place')),
59300c92694SGreg Roach            'INDI:CHAN'                => new Change(I18N::translate('Last change')),
59400c92694SGreg Roach            'INDI:CHAN:DATE'           => new ChangeDate(I18N::translate('Date of last change')),
59500c92694SGreg Roach            'INDI:CHAN:DATE:TIME'      => new TimeValue(I18N::translate('Time of last change')),
59600c92694SGreg Roach            'INDI:CHR'                 => new Christening(I18N::translate('Christening')),
59700c92694SGreg Roach            'INDI:CHR:DATE'            => new DateValue(I18N::translate('Date of christening')),
59800c92694SGreg Roach            'INDI:CHR:FAMC'            => new XrefFamily(I18N::translate('Godparents')),
59900c92694SGreg Roach            'INDI:CHR:PLAC'            => new PlaceName(I18N::translate('Place of christening')),
60000c92694SGreg Roach            'INDI:CHRA'                => new AdultChristening(I18N::translate('Adult christening')),
60100c92694SGreg Roach            'INDI:CHRA:PLAC'           => new PlaceName(I18N::translate('Place of christening')),
60200c92694SGreg Roach            'INDI:CONF'                => new Confirmation(I18N::translate('Confirmation')),
60300c92694SGreg Roach            'INDI:CONF:DATE'           => new DateValue(I18N::translate('Date of confirmation')),
60400c92694SGreg Roach            'INDI:CONF:PLAC'           => new PlaceName(I18N::translate('Place of confirmation')),
60500c92694SGreg Roach            'INDI:CONL'                => new LdsConfirmation(I18N::translate('LDS confirmation')),
60600c92694SGreg Roach            'INDI:CONL:DATE'           => new DateLdsOrd(I18N::translate('Date of LDS confirmation')),
60700c92694SGreg Roach            'INDI:CONL:PLAC'           => new PlaceLivingOrdinance(I18N::translate('Place of LDS confirmation')),
60800c92694SGreg Roach            'INDI:CONL:STAT'           => new LdsSpouseSealingDateStatus(I18N::translate('Status')),
60900c92694SGreg Roach            'INDI:CONL:STAT:DATE'      => new ChangeDate(I18N::translate('Status change date')),
61000c92694SGreg Roach            'INDI:CONL:TEMP'           => new TempleCode(I18N::translate('Temple')),
61100c92694SGreg Roach            'INDI:CREM'                => new Cremation(I18N::translate('Cremation')),
61200c92694SGreg Roach            'INDI:CREM:DATE'           => new DateValue(I18N::translate('Date of cremation')),
61300c92694SGreg Roach            'INDI:CREM:PLAC'           => new PlaceName(I18N::translate('Place of cremation')),
61400c92694SGreg Roach            'INDI:DEAT'                => new Death(I18N::translate('Death')),
61500c92694SGreg Roach            'INDI:DEAT:CAUS'           => new CauseOfEvent(I18N::translate('Cause of death')),
61600c92694SGreg Roach            'INDI:DEAT:DATE'           => new DateValue(I18N::translate('Date of death')),
61700c92694SGreg Roach            'INDI:DEAT:PLAC'           => new PlaceName(I18N::translate('Place of death')),
61800c92694SGreg Roach            'INDI:DESI'                => new XrefSubmitter(I18N::translate('Descendants interest')),
61900c92694SGreg Roach            'INDI:DSCR'                => new PhysicalDescription(I18N::translate('Description')),
62000c92694SGreg Roach            'INDI:EDUC'                => new ScholasticAchievement(I18N::translate('Education')),
62100c92694SGreg Roach            'INDI:EDUC:AGNC'           => new ResponsibleAgency(I18N::translate('School or college')),
62200c92694SGreg Roach            'INDI:EMIG'                => new Emigration(I18N::translate('Emigration')),
62300c92694SGreg Roach            'INDI:EMIG:DATE'           => new DateValue(I18N::translate('Date of emigration')),
62400c92694SGreg Roach            'INDI:EMIG:PLAC'           => new PlaceName(I18N::translate('Place of emigration')),
62500c92694SGreg Roach            'INDI:ENDL'                => new LdsEndowment(I18N::translate('LDS endowment')),
62600c92694SGreg Roach            'INDI:ENDL:DATE'           => new DateLdsOrd(I18N::translate('Date of LDS endowment')),
62700c92694SGreg Roach            'INDI:ENDL:PLAC'           => new PlaceLivingOrdinance(I18N::translate('Place of LDS endowment')),
62800c92694SGreg Roach            'INDI:ENDL:STAT'           => new LdsEndowmentDateStatus(I18N::translate('Status')),
62900c92694SGreg Roach            'INDI:ENDL:STAT:DATE'      => new ChangeDate(I18N::translate('Status change date')),
63000c92694SGreg Roach            'INDI:ENDL:TEMP'           => new TempleCode(I18N::translate('Temple')),
63100c92694SGreg Roach            'INDI:EVEN'                => new CustomIndividualEvent(I18N::translate('Event')),
63200c92694SGreg Roach            'INDI:EVEN:DATE'           => new DateValue(I18N::translate('Date of event')),
63300c92694SGreg Roach            'INDI:EVEN:PLAC'           => new PlaceName(I18N::translate('Place of event')),
63400c92694SGreg Roach            'INDI:EVEN:TYPE'           => new EventAttributeType(I18N::translate('Type of event')),
63500c92694SGreg Roach            'INDI:FACT'                => new CustomFact(I18N::translate('Fact')),
63600c92694SGreg Roach            'INDI:FACT:TYPE'           => new EventAttributeType(I18N::translate('Type of fact')),
63700c92694SGreg Roach            'INDI:FAMC'                => new XrefFamily(I18N::translate('Family as a child'), ['NOTE' => '0:1', 'PEDI' => '0:1', 'STAT' => '0:1']),
63800c92694SGreg Roach            'INDI:FAMC:PEDI'           => new PedigreeLinkageType(I18N::translate('Relationship to parents')),
63900c92694SGreg Roach            'INDI:FAMC:STAT'           => new ChildLinkageStatus(I18N::translate('Status')),
64000c92694SGreg Roach            'INDI:FAMS'                => new XrefFamily(I18N::translate('Family as a spouse')),
64100c92694SGreg Roach            'INDI:FCOM'                => new FirstCommunion(I18N::translate('First communion')),
64200c92694SGreg Roach            'INDI:FCOM:DATE'           => new DateValue(I18N::translate('Date of first communion')),
64300c92694SGreg Roach            'INDI:FCOM:PLAC'           => new PlaceName(I18N::translate('Place of first communion')),
64400c92694SGreg Roach            'INDI:GRAD'                => new Graduation(I18N::translate('Graduation')),
64500c92694SGreg Roach            'INDI:GRAD:AGNC'           => new ResponsibleAgency(I18N::translate('School or college')),
64600c92694SGreg Roach            'INDI:IDNO'                => new NationalIdNumber(I18N::translate('Identification number')),
64700c92694SGreg Roach            'INDI:IDNO:TYPE'           => new EventAttributeType(I18N::translate('Type of identification number')),
64800c92694SGreg Roach            'INDI:IMMI'                => new Immigration(I18N::translate('Immigration')),
64900c92694SGreg Roach            'INDI:IMMI:DATE'           => new DateValue(I18N::translate('Date of immigration')),
65000c92694SGreg Roach            'INDI:IMMI:PLAC'           => new PlaceName(I18N::translate('Place of immigration')),
65100c92694SGreg Roach            'INDI:NAME'                => new NamePersonal(I18N::translate('Name')),
65200c92694SGreg Roach            'INDI:NAME:FONE'           => new NamePhoneticVariation(I18N::translate('Phonetic name')),
65300c92694SGreg Roach            'INDI:NAME:FONE:GIVN'      => new NamePieceGiven(I18N::translate('Given names')),
65400c92694SGreg Roach            'INDI:NAME:FONE:NICK'      => new NamePieceNickname(I18N::translate('Nickname')),
65500c92694SGreg Roach            'INDI:NAME:FONE:NPFX'      => new NamePiecePrefix(I18N::translate('Name prefix')),
65600c92694SGreg Roach            'INDI:NAME:FONE:NSFX'      => new NamePieceSuffix(I18N::translate('Name suffix')),
65700c92694SGreg Roach            'INDI:NAME:FONE:SPFX'      => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')),
65800c92694SGreg Roach            'INDI:NAME:FONE:SURN'      => new NamePieceSurname(I18N::translate('Surname')),
65900c92694SGreg Roach            'INDI:NAME:FONE:TYPE'      => new PhoneticType(I18N::translate('Phonetic type')),
66000c92694SGreg Roach            'INDI:NAME:GIVN'           => new NamePieceGiven(I18N::translate('Given names')),
66100c92694SGreg Roach            'INDI:NAME:NICK'           => new NamePieceNickname(I18N::translate('Nickname')),
66200c92694SGreg Roach            'INDI:NAME:NPFX'           => new NamePiecePrefix(I18N::translate('Name prefix')),
66300c92694SGreg Roach            'INDI:NAME:NSFX'           => new NamePieceSuffix(I18N::translate('Name suffix')),
66400c92694SGreg Roach            'INDI:NAME:ROMN'           => new NameRomanizedVariation(I18N::translate('Romanized name')),
66500c92694SGreg Roach            'INDI:NAME:ROMN:GIVN'      => new NamePieceGiven(I18N::translate('Given names')),
66600c92694SGreg Roach            'INDI:NAME:ROMN:NICK'      => new NamePieceNickname(I18N::translate('Nickname')),
66700c92694SGreg Roach            'INDI:NAME:ROMN:NPFX'      => new NamePiecePrefix(I18N::translate('Name prefix')),
66800c92694SGreg Roach            'INDI:NAME:ROMN:NSFX'      => new NamePieceSuffix(I18N::translate('Name suffix')),
66900c92694SGreg Roach            'INDI:NAME:ROMN:SPFX'      => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')),
67000c92694SGreg Roach            'INDI:NAME:ROMN:SURN'      => new NamePieceSurname(I18N::translate('Surname')),
67100c92694SGreg Roach            'INDI:NAME:ROMN:TYPE'      => new RomanizedType(I18N::translate('Romanized type')),
67200c92694SGreg Roach            'INDI:NAME:SPFX'           => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')),
67300c92694SGreg Roach            'INDI:NAME:SURN'           => new NamePieceSurname(I18N::translate('Surname')),
67400c92694SGreg Roach            'INDI:NAME:TYPE'           => new NameType(I18N::translate('Type of name')),
67500c92694SGreg Roach            'INDI:NATI'                => new NationOrTribalOrigin(I18N::translate('Nationality')),
67600c92694SGreg Roach            'INDI:NATU'                => new Naturalization(I18N::translate('Naturalization')),
67700c92694SGreg Roach            'INDI:NATU:DATE'           => new DateValue(I18N::translate('Date of naturalization')),
67800c92694SGreg Roach            'INDI:NATU:PLAC'           => new PlaceName(I18N::translate('Place of naturalization')),
67900c92694SGreg Roach            'INDI:NCHI'                => new CountOfChildren(I18N::translate('Number of children')),
68000c92694SGreg Roach            'INDI:NMR'                 => new CountOfMarriages(I18N::translate('Number of marriages')),
68100c92694SGreg Roach            'INDI:NOTE'                => new NoteStructure(I18N::translate('Note')),
68200c92694SGreg Roach            'INDI:OBJE'                => new XrefMedia(I18N::translate('Media object')),
68300c92694SGreg Roach            'INDI:OCCU'                => new Occupation(I18N::translate('Occupation')),
68400c92694SGreg Roach            'INDI:OCCU:AGNC'           => new ResponsibleAgency(I18N::translate('Employer')),
68500c92694SGreg Roach            'INDI:ORDN'                => new Ordination(I18N::translate('Ordination')),
68600c92694SGreg Roach            'INDI:ORDN:AGNC'           => new Ordination(I18N::translate('Religious institution')),
68700c92694SGreg Roach            'INDI:ORDN:DATE'           => new Ordination(I18N::translate('Date of ordination')),
68800c92694SGreg Roach            'INDI:ORDN:PLAC'           => new Ordination(I18N::translate('Place of ordination')),
68900c92694SGreg Roach            'INDI:PROB'                => new Probate(I18N::translate('Probate')),
69000c92694SGreg Roach            'INDI:PROP'                => new Possessions(I18N::translate('Property')),
69100c92694SGreg Roach            'INDI:REFN'                => new UserReferenceNumber(I18N::translate('Reference number')),
69200c92694SGreg Roach            'INDI:REFN:TYPE'           => new UserReferenceType(I18N::translate('Type of reference number')),
69300c92694SGreg Roach            'INDI:RELI'                => new ReligiousAffiliation(I18N::translate('Religion')),
69400c92694SGreg Roach            'INDI:RESI'                => new Residence(I18N::translate('Residence')),
69500c92694SGreg Roach            'INDI:RESI:DATE'           => new DateValue(I18N::translate('Date of residence')),
69600c92694SGreg Roach            'INDI:RESI:PLAC'           => new PlaceName(I18N::translate('Place of residence')),
69700c92694SGreg Roach            'INDI:RESN'                => new RestrictionNotice(I18N::translate('Restriction')),
69800c92694SGreg Roach            'INDI:RETI'                => new Retirement(I18N::translate('Retirement')),
69900c92694SGreg Roach            'INDI:RETI:AGNC'           => new ResponsibleAgency(I18N::translate('Employer')),
70000c92694SGreg Roach            'INDI:RFN'                 => new PermanentRecordFileNumber(I18N::translate('Record file number')),
70100c92694SGreg Roach            'INDI:RIN'                 => new AutomatedRecordId(I18N::translate('Record ID number')),
70200c92694SGreg Roach            'INDI:SEX'                 => new SexValue(I18N::translate('Gender')),
70300c92694SGreg Roach            'INDI:SLGC'                => new LdsChildSealing(I18N::translate('LDS child sealing')),
70400c92694SGreg Roach            'INDI:SLGC:DATE'           => new DateLdsOrd(I18N::translate('Date of LDS child sealing')),
70500c92694SGreg Roach            'INDI:SLGC:FAMC'           => new XrefFamily(I18N::translate('Parents')),
70600c92694SGreg Roach            'INDI:SLGC:PLAC'           => new PlaceLivingOrdinance(I18N::translate('Place of LDS child sealing')),
70700c92694SGreg Roach            'INDI:SLGC:STAT'           => new LdsChildSealingDateStatus(I18N::translate('Status')),
70800c92694SGreg Roach            'INDI:SLGC:STAT:DATE'      => new ChangeDate(I18N::translate('Status change date')),
70900c92694SGreg Roach            'INDI:SLGC:TEMP'           => new TempleCode(I18N::translate('Temple')),
71000c92694SGreg Roach            'INDI:SOUR'                => new XrefSource(I18N::translate('Source citation')),
71100c92694SGreg Roach            'INDI:SOUR:DATA'           => new SourceData(I18N::translate('Data')),
71200c92694SGreg Roach            'INDI:SOUR:DATA:DATE'      => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
71300c92694SGreg Roach            'INDI:SOUR:DATA:TEXT'      => new TextFromSource(I18N::translate('Text')),
71400c92694SGreg Roach            'INDI:SOUR:EVEN'           => new EventTypeCitedFrom(I18N::translate('Event')),
71500c92694SGreg Roach            'INDI:SOUR:EVEN:ROLE'      => new RoleInEvent(I18N::translate('Role')),
71600c92694SGreg Roach            'INDI:SOUR:NOTE'           => new NoteStructure(I18N::translate('Note')),
71700c92694SGreg Roach            'INDI:SOUR:OBJE'           => new XrefMedia(I18N::translate('Media object')),
71800c92694SGreg Roach            'INDI:SOUR:PAGE'           => new WhereWithinSource(I18N::translate('Citation details')),
71900c92694SGreg Roach            'INDI:SOUR:QUAY'           => new CertaintyAssessment(I18N::translate('Quality of data')),
72000c92694SGreg Roach            'INDI:SSN'                 => new SocialSecurityNumber(I18N::translate('Social security number')),
72100c92694SGreg Roach            'INDI:SUBM'                => new XrefSubmitter(I18N::translate('Submitter')),
72200c92694SGreg Roach            'INDI:TITL'                => new NobilityTypeTitle(I18N::translate('Title')),
72300c92694SGreg Roach            'INDI:WILL'                => new Will(I18N::translate('Will')),
72400c92694SGreg Roach            'NOTE'                     => new NoteRecord(I18N::translate('Shared note')),
72500c92694SGreg Roach            'NOTE:CHAN'                => new Change(I18N::translate('Last change')),
72600c92694SGreg Roach            'NOTE:CHAN:DATE'           => new ChangeDate(I18N::translate('Date of last change')),
72700c92694SGreg Roach            'NOTE:CHAN:DATE:TIME'      => new TimeValue(I18N::translate('Time of last change')),
72800c92694SGreg Roach            'NOTE:CHAN:NOTE'           => new NoteStructure(I18N::translate('Note')),
72900c92694SGreg Roach            'NOTE:CONC'                => new SubmitterText(I18N::translate('Note')),
73000c92694SGreg Roach            'NOTE:REFN'                => new UserReferenceNumber(I18N::translate('Reference number')),
73100c92694SGreg Roach            'NOTE:REFN:TYPE'           => new UserReferenceType(I18N::translate('Type of reference number')),
73200c92694SGreg Roach            'NOTE:RIN'                 => new AutomatedRecordId(I18N::translate('Record ID number')),
73300c92694SGreg Roach            'NOTE:SOUR'                => new XrefSource(I18N::translate('Source citation')),
73400c92694SGreg Roach            'NOTE:SOUR:DATA'           => new SourceData(I18N::translate('Data')),
73500c92694SGreg Roach            'NOTE:SOUR:DATA:DATE'      => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
73600c92694SGreg Roach            'NOTE:SOUR:DATA:TEXT'      => new TextFromSource(I18N::translate('Text')),
73700c92694SGreg Roach            'NOTE:SOUR:EVEN'           => new EventTypeCitedFrom(I18N::translate('Event')),
73800c92694SGreg Roach            'NOTE:SOUR:EVEN:ROLE'      => new RoleInEvent(I18N::translate('Role')),
73900c92694SGreg Roach            'NOTE:SOUR:NOTE'           => new NoteStructure(I18N::translate('Note')),
74000c92694SGreg Roach            'NOTE:SOUR:OBJE'           => new XrefMedia(I18N::translate('Media object')),
74100c92694SGreg Roach            'NOTE:SOUR:PAGE'           => new WhereWithinSource(I18N::translate('Citation details')),
74200c92694SGreg Roach            'NOTE:SOUR:QUAY'           => new CertaintyAssessment(I18N::translate('Quality of data')),
74300c92694SGreg Roach            'OBJE'                     => new MediaRecord(I18N::translate('Media object')),
74400c92694SGreg Roach            'OBJE:BLOB'                => new CustomElement(I18N::translate('Binary data object')),
74500c92694SGreg Roach            'OBJE:CHAN'                => new Change(I18N::translate('Last change')),
74600c92694SGreg Roach            'OBJE:CHAN:DATE'           => new ChangeDate(I18N::translate('Date of last change')),
74700c92694SGreg Roach            'OBJE:CHAN:DATE:TIME'      => new TimeValue(I18N::translate('Time of last change')),
74800c92694SGreg Roach            'OBJE:CHAN:NOTE'           => new NoteStructure(I18N::translate('Note')),
74900c92694SGreg Roach            'OBJE:FILE'                => new MultimediaFileReference(I18N::translate('Filename')),
75000c92694SGreg Roach            'OBJE:FILE:FORM'           => new MultimediaFormat(I18N::translate('Format')),
75100c92694SGreg Roach            'OBJE:FILE:FORM:TYPE'      => new SourceMediaType(I18N::translate('Media type')),
75200c92694SGreg Roach            'OBJE:FILE:TITL'           => new DescriptiveTitle(I18N::translate('Title')),
75300c92694SGreg Roach            'OBJE:NOTE'                => new NoteStructure(I18N::translate('Note')),
75400c92694SGreg Roach            'OBJE:REFN'                => new UserReferenceNumber(I18N::translate('Reference number')),
75500c92694SGreg Roach            'OBJE:REFN:TYPE'           => new UserReferenceType(I18N::translate('Type of reference number')),
75600c92694SGreg Roach            'OBJE:RIN'                 => new AutomatedRecordId(I18N::translate('Record ID number')),
75700c92694SGreg Roach            'OBJE:SOUR'                => new XrefSource(I18N::translate('Source citation')),
75800c92694SGreg Roach            'OBJE:SOUR:DATA'           => new SourceData(I18N::translate('Data')),
75900c92694SGreg Roach            'OBJE:SOUR:DATA:DATE'      => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
76000c92694SGreg Roach            'OBJE:SOUR:DATA:TEXT'      => new TextFromSource(I18N::translate('Text')),
76100c92694SGreg Roach            'OBJE:SOUR:EVEN'           => new EventTypeCitedFrom(I18N::translate('Event')),
76200c92694SGreg Roach            'OBJE:SOUR:EVEN:ROLE'      => new RoleInEvent(I18N::translate('Role')),
76300c92694SGreg Roach            'OBJE:SOUR:NOTE'           => new NoteStructure(I18N::translate('Note')),
76400c92694SGreg Roach            'OBJE:SOUR:OBJE'           => new XrefMedia(I18N::translate('Media object')),
76500c92694SGreg Roach            'OBJE:SOUR:PAGE'           => new WhereWithinSource(I18N::translate('Citation details')),
76600c92694SGreg Roach            'OBJE:SOUR:QUAY'           => new CertaintyAssessment(I18N::translate('Quality of data')),
76700c92694SGreg Roach            'REPO'                     => new RepositoryRecord(I18N::translate('Repository')),
76800c92694SGreg Roach            'REPO:ADDR'                => new AddressLine(I18N::translate('Address')),
76900c92694SGreg Roach            'REPO:ADDR:ADR1'           => new AddressLine1(I18N::translate('Address line 1')),
77000c92694SGreg Roach            'REPO:ADDR:ADR2'           => new AddressLine2(I18N::translate('Address line 2')),
77100c92694SGreg Roach            'REPO:ADDR:ADR3'           => new AddressLine3(I18N::translate('Address line 3')),
77200c92694SGreg Roach            'REPO:ADDR:CITY'           => new AddressCity(I18N::translate('City')),
77300c92694SGreg Roach            'REPO:ADDR:CTRY'           => new AddressCountry(I18N::translate('Country')),
77400c92694SGreg Roach            'REPO:ADDR:POST'           => new AddressPostalCode(I18N::translate('Postal code')),
77500c92694SGreg Roach            'REPO:ADDR:STAE'           => new AddressState(I18N::translate('State')),
77600c92694SGreg Roach            'REPO:CHAN'                => new Change(I18N::translate('Last change')),
77700c92694SGreg Roach            'REPO:CHAN:DATE'           => new ChangeDate(I18N::translate('Date of last change')),
77800c92694SGreg Roach            'REPO:CHAN:DATE:TIME'      => new TimeValue(I18N::translate('Time of last change')),
77900c92694SGreg Roach            'REPO:CHAN:NOTE'           => new NoteStructure(I18N::translate('Note')),
78000c92694SGreg Roach            'REPO:EMAIL'               => new AddressEmail(I18N::translate('Email address')),
78100c92694SGreg Roach            'REPO:FAX'                 => new AddressFax(I18N::translate('Fax')),
78200c92694SGreg Roach            'REPO:NAME'                => new NameOfRepository(I18N::translateContext('Repository', 'Name')),
78300c92694SGreg Roach            'REPO:NOTE'                => new NoteStructure(I18N::translate('Note')),
78400c92694SGreg Roach            'REPO:PHON'                => new PhoneNumber(I18N::translate('Phone')),
78500c92694SGreg Roach            'REPO:REFN'                => new UserReferenceNumber(I18N::translate('Reference number')),
78600c92694SGreg Roach            'REPO:REFN:TYPE'           => new UserReferenceType(I18N::translate('Type of reference number')),
78700c92694SGreg Roach            'REPO:RIN'                 => new AutomatedRecordId(I18N::translate('Record ID number')),
78800c92694SGreg Roach            'REPO:WWW'                 => new AddressWebPage(I18N::translate('URL')),
78900c92694SGreg Roach            'SOUR'                     => new SourceRecord(I18N::translate('Source')),
79000c92694SGreg Roach            'SOUR:ABBR'                => new SourceFiledByEntry(I18N::translate('Abbreviation')),
79100c92694SGreg Roach            'SOUR:AUTH'                => new SourceOriginator(I18N::translate('Author')),
79200c92694SGreg Roach            'SOUR:CHAN'                => new Change(I18N::translate('Last change')),
79300c92694SGreg Roach            'SOUR:CHAN:DATE'           => new ChangeDate(I18N::translate('Date of last change')),
79400c92694SGreg Roach            'SOUR:CHAN:DATE:TIME'      => new TimeValue(I18N::translate('Time of last change')),
79500c92694SGreg Roach            'SOUR:CHAN:NOTE'           => new NoteStructure(I18N::translate('Note')),
79600c92694SGreg Roach            'SOUR:DATA'                => new EmptyElement(I18N::translate('Data'), ['EVEN' => '0:M', 'AGNC' => '0:1', 'NOTE' => '0:M']),
79700c92694SGreg Roach            'SOUR:DATA:AGNC'           => new ResponsibleAgency(I18N::translate('Agency')),
79800c92694SGreg Roach            'SOUR:DATA:EVEN'           => new EventsRecorded(I18N::translate('Events')),
79900c92694SGreg Roach            'SOUR:DATA:EVEN:DATE'      => new DateValue(I18N::translate('Date range')),
80000c92694SGreg Roach            'SOUR:DATA:EVEN:PLAC'      => new SourceJurisdictionPlace(I18N::translate('Place'), []),
80100c92694SGreg Roach            'SOUR:DATA:NOTE'           => new NoteStructure(I18N::translate('Note')),
80200c92694SGreg Roach            'SOUR:NOTE'                => new NoteStructure(I18N::translate('Note')),
80300c92694SGreg Roach            'SOUR:OBJE'                => new XrefMedia(I18N::translate('Media object')),
80400c92694SGreg Roach            'SOUR:PUBL'                => new SourcePublicationFacts(I18N::translate('Publication')),
80500c92694SGreg Roach            'SOUR:REFN'                => new UserReferenceNumber(I18N::translate('Reference number')),
80600c92694SGreg Roach            'SOUR:REFN:TYPE'           => new UserReferenceType(I18N::translate('Type of reference number')),
80700c92694SGreg Roach            'SOUR:REPO'                => new XrefRepository(I18N::translate('Repository')),
80800c92694SGreg Roach            'SOUR:REPO:CALN'           => new SourceCallNumber(I18N::translate('Call number')),
80900c92694SGreg Roach            'SOUR:REPO:CALN:MEDI'      => new SourceMediaType(I18N::translate('Media type')),
81000c92694SGreg Roach            'SOUR:REPO:NOTE'           => new NoteStructure(I18N::translate('Note')),
81100c92694SGreg Roach            'SOUR:RIN'                 => new AutomatedRecordId(I18N::translate('Record ID number')),
81200c92694SGreg Roach            'SOUR:TEXT'                => new TextFromSource(I18N::translate('Text')),
81300c92694SGreg Roach            'SOUR:TITL'                => new DescriptiveTitle(I18N::translate('Title')),
81400c92694SGreg Roach            'SUBM'                     => new SubmitterRecord(I18N::translate('Submitter')),
81500c92694SGreg Roach            'SUBM:ADDR'                => new AddressLine(I18N::translate('Address')),
81600c92694SGreg Roach            'SUBM:ADDR:ADR1'           => new AddressLine1(I18N::translate('Address line 1')),
81700c92694SGreg Roach            'SUBM:ADDR:ADR2'           => new AddressLine2(I18N::translate('Address line 2')),
81800c92694SGreg Roach            'SUBM:ADDR:ADR3'           => new AddressLine3(I18N::translate('Address line 3')),
81900c92694SGreg Roach            'SUBM:ADDR:CITY'           => new AddressCity(I18N::translate('City')),
82000c92694SGreg Roach            'SUBM:ADDR:CTRY'           => new AddressCountry(I18N::translate('Country')),
82100c92694SGreg Roach            'SUBM:ADDR:POST'           => new AddressPostalCode(I18N::translate('Postal code')),
82200c92694SGreg Roach            'SUBM:ADDR:STAE'           => new AddressState(I18N::translate('State')),
82300c92694SGreg Roach            'SUBM:CHAN'                => new Change(I18N::translate('Last change')),
82400c92694SGreg Roach            'SUBM:CHAN:DATE'           => new ChangeDate(I18N::translate('Date of last change')),
82500c92694SGreg Roach            'SUBM:CHAN:DATE:TIME'      => new TimeValue(I18N::translate('Time of last change')),
82600c92694SGreg Roach            'SUBM:CHAN:NOTE'           => new NoteStructure(I18N::translate('Note')),
82700c92694SGreg Roach            'SUBM:EMAIL'               => new AddressEmail(I18N::translate('Email address')),
82800c92694SGreg Roach            'SUBM:FAX'                 => new AddressFax(I18N::translate('Fax')),
82900c92694SGreg Roach            'SUBM:LANG'                => new LanguageId(I18N::translate('Language')),
83000c92694SGreg Roach            'SUBM:NAME'                => new SubmitterName(I18N::translate('Name')),
83100c92694SGreg Roach            'SUBM:NOTE'                => new NoteStructure(I18N::translate('Note')),
83200c92694SGreg Roach            'SUBM:OBJE'                => new XrefMedia(I18N::translate('Media object')),
83300c92694SGreg Roach            'SUBM:PHON'                => new PhoneNumber(I18N::translate('Phone')),
83400c92694SGreg Roach            'SUBM:RFN'                 => new SubmitterRegisteredRfn(I18N::translate('Record file number')),
83500c92694SGreg Roach            'SUBM:RIN'                 => new AutomatedRecordId(I18N::translate('Record ID number')),
83600c92694SGreg Roach            'SUBM:WWW'                 => new AddressWebPage(I18N::translate('URL')),
83700c92694SGreg Roach            'SUBN'                     => new SubmissionRecord(I18N::translate('Submission')),
83800c92694SGreg Roach            'SUBN:ANCE'                => new GenerationsOfAncestors(I18N::translate('Generations of ancestors')),
83900c92694SGreg Roach            'SUBN:CHAN'                => new Change(I18N::translate('Last change')),
84000c92694SGreg Roach            'SUBN:CHAN:DATE'           => new ChangeDate(I18N::translate('Date of last change')),
84100c92694SGreg Roach            'SUBN:CHAN:DATE:TIME'      => new TimeValue(I18N::translate('Time of last change')),
84200c92694SGreg Roach            'SUBN:CHAN:NOTE'           => new NoteStructure(I18N::translate('Note')),
84300c92694SGreg Roach            'SUBN:DESC'                => new GenerationsOfDescendants(I18N::translate('Generations of descendants')),
84400c92694SGreg Roach            'SUBN:FAMF'                => new NameOfFamilyFile(I18N::translate('Family file')),
84500c92694SGreg Roach            'SUBN:NOTE'                => new NoteStructure(I18N::translate('Note')),
84600c92694SGreg Roach            'SUBN:ORDI'                => new OrdinanceProcessFlag(I18N::translate('Ordinance')),
84700c92694SGreg Roach            'SUBN:RIN'                 => new AutomatedRecordId(I18N::translate('Record ID number')),
84800c92694SGreg Roach            'SUBN:SUBM'                => new XrefSubmitter(I18N::translate('Submitter')),
84900c92694SGreg Roach            'SUBN:TEMP'                => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')),
85000c92694SGreg Roach            'TRLR'                     => new EmptyElement(I18N::translate('Trailer')),
85100c92694SGreg Roach        ];
85200c92694SGreg Roach    }
85300c92694SGreg Roach
85400c92694SGreg Roach    /**
85500c92694SGreg Roach     * @return array<string,ElementInterface>
856cb0c239dSGreg Roach     */
857cb0c239dSGreg Roach    private function aldfaerTags(): array
858cb0c239dSGreg Roach    {
859cb0c239dSGreg Roach        return [
860cb0c239dSGreg Roach            'INDI:BIRT:_LENGTH' => new CustomElement(I18N::translate('Length')),
861cb0c239dSGreg Roach            'INDI:BIRT:_WEIGHT' => new CustomElement(I18N::translate('Weight')),
862cb0c239dSGreg Roach        ];
863cb0c239dSGreg Roach    }
864cb0c239dSGreg Roach
865cb0c239dSGreg Roach    /**
866cb0c239dSGreg Roach     * @return array<string,ElementInterface>
86713d1ef26SGreg Roach     *
86813d1ef26SGreg Roach     * @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
86900c92694SGreg Roach     */
87000c92694SGreg Roach    private function ancestryTags(): array
87100c92694SGreg Roach    {
87200c92694SGreg Roach        return [
87397ed7714SGreg Roach            'HEAD:SOUR:_TREE'       => new CustomElement(I18N::translate('Family tree')),
87497ed7714SGreg Roach            'HEAD:SOUR:_TREE:NOTE'  => new SubmitterText(I18N::translate('Note')),
87597ed7714SGreg Roach            'HEAD:SOUR:_TREE:RIN'   => new AutomatedRecordId(I18N::translate('Record ID number')),
87610b4ce2aSGreg Roach            'INDI:*:SOUR:_APID'     => /* I18N: GEDCOM tag _APID */ new CustomElement(I18N::translate('Ancestry PID')),
87713d1ef26SGreg Roach            'INDI:*:SOUR:DATA:NOTE' => new SubmitterText(I18N::translate('Note')),
87800c92694SGreg Roach            'INDI:_EMPLOY'          => new CustomFact(I18N::translate('Occupation')),
8799b0286b1SGreg Roach            'INDI:_FUN'             => new CustomEvent(I18N::translate('Funeral')),
8809b0286b1SGreg Roach            'INDI:_INIT'            => /* I18N: GEDCOM tag _INIT - an LDS ceremony performed */ new CustomEvent(I18N::translate('Initiatory')),
8819b0286b1SGreg Roach            'INDI:_ORDI'            => new CustomEvent(I18N::translate('Ordination')),
8829b0286b1SGreg Roach            'INDI:_ORIG'            => new CustomFact(I18N::translate('Origin')),
8839b0286b1SGreg Roach            'INDI:_DEST'            => new CustomFact(I18N::translate('Destination')),
88413d1ef26SGreg Roach            'OBJE:DATE'             => new DateValue(I18N::translate('Date')),
88513d1ef26SGreg Roach            'OBJE:PLAC'             => new PlaceName(I18N::translate('Place')),
88613d1ef26SGreg Roach            'OBJE:_CREA'            => /* I18N: GEDCOM tag _CREA */ new CustomElement(I18N::translate('Created at')),
88713d1ef26SGreg Roach            'OBJE:_ORIG'            => /* I18N: GEDCOM tag _ORIG */ new CustomElement(I18N::translate('Original text')),
88813d1ef26SGreg Roach            'OBJE:_ORIG:_URL'       => new AddressWebPage(I18N::translate('URL')),
88900c92694SGreg Roach        ];
89000c92694SGreg Roach    }
89100c92694SGreg Roach
89200c92694SGreg Roach    /**
89300c92694SGreg Roach     * @return array<string,ElementInterface>
89400c92694SGreg Roach     *
89500c92694SGreg Roach     * @see https://wiki-de.genealogy.net/GEDCOM/_Nutzerdef-Tag
89600c92694SGreg Roach     */
89700c92694SGreg Roach    private function brothersKeeperTags(): array
89800c92694SGreg Roach    {
89900c92694SGreg Roach        return [
90000c92694SGreg Roach            'FAM:*:_EVN'       => new CustomElement('Event number'),
9014c10b11dSGreg Roach            'FAM:CHIL:_FREL'   => new CustomElement(I18N::translate('Relationship to father')),
9024c10b11dSGreg Roach            'FAM:CHIL:_MREL'   => new CustomElement(I18N::translate('Relationship to mother')),
90300c92694SGreg Roach            'FAM:_COML'        => new CustomFamilyEvent(I18N::translate('Common law marriage')),
90400c92694SGreg Roach            'FAM:_MARI'        => new CustomFamilyEvent(I18N::translate('Marriage intention')),
90500c92694SGreg Roach            'FAM:_MBON'        => new CustomFamilyEvent(I18N::translate('Marriage bond')),
90600c92694SGreg Roach            'FAM:_NMR'         => new CustomFamilyEvent(I18N::translate('Not married'), ['NOTE' => '0:M', 'SOUR' => '0:M']),
90700c92694SGreg Roach            'FAM:_PRMN'        => new CustomElement(I18N::translate('Permanent number')),
90800c92694SGreg Roach            'FAM:_SEPR'        => new CustomFamilyEvent(I18N::translate('Separated')),
90900c92694SGreg Roach            'FAM:_TODO'        => new CustomElement(I18N::translate('Research task')),
91000c92694SGreg Roach            'INDI:*:_EVN'      => new CustomElement('Event number'),
91100c92694SGreg Roach            'INDI:NAME:_ADPN'  => new NamePersonal(I18N::translate('Adopted name'), []),
91200c92694SGreg Roach            'INDI:NAME:_AKAN'  => new NamePersonal(I18N::translate('Also known as'), []),
91300c92694SGreg Roach            'INDI:NAME:_BIRN'  => new NamePersonal(I18N::translate('Birth name'), []),
91400c92694SGreg Roach            'INDI:NAME:_CALL'  => new NamePersonal('Called name', []),
91500c92694SGreg Roach            'INDI:NAME:_CENN'  => new NamePersonal('Census name', []),
91600c92694SGreg Roach            'INDI:NAME:_CURN'  => new NamePersonal('Current name', []),
91700c92694SGreg Roach            'INDI:NAME:_FARN'  => new NamePersonal(I18N::translate('Estate name'), []),
91800c92694SGreg Roach            'INDI:NAME:_FKAN'  => new NamePersonal('Formal name', []),
91900c92694SGreg Roach            'INDI:NAME:_FRKA'  => new NamePersonal('Formerly known as', []),
92000c92694SGreg Roach            'INDI:NAME:_GERN'  => new NamePersonal('German name', []),
92100c92694SGreg Roach            'INDI:NAME:_HEBN'  => new NamePersonal(I18N::translate('Hebrew name'), []),
92200c92694SGreg Roach            'INDI:NAME:_HNM'   => new NamePersonal(I18N::translate('Hebrew name'), []),
92300c92694SGreg Roach            'INDI:NAME:_INDG'  => new NamePersonal('Indigenous name', []),
92400c92694SGreg Roach            'INDI:NAME:_INDN'  => new NamePersonal('Indian name', []),
92500c92694SGreg Roach            'INDI:NAME:_LNCH'  => new NamePersonal('Legal name change', []),
92600c92694SGreg Roach            'INDI:NAME:_MARN'  => new NamePersonal('Married name', []),
92700c92694SGreg Roach            'INDI:NAME:_MARNM' => new NamePersonal('Married name', []),
92800c92694SGreg Roach            'INDI:NAME:_OTHN'  => new NamePersonal('Other name', []),
92900c92694SGreg Roach            'INDI:NAME:_RELN'  => new NamePersonal('Religious name', []),
93000c92694SGreg Roach            'INDI:NAME:_SHON'  => new NamePersonal('Short name', []),
93100c92694SGreg Roach            'INDI:NAME:_SLDN'  => new NamePersonal('Soldier name', []),
93200c92694SGreg Roach            'INDI:_ADPF'       => new CustomElement(I18N::translate('Adopted by father')),
93300c92694SGreg Roach            'INDI:_ADPM'       => new CustomElement(I18N::translate('Adopted by mother')),
93400c92694SGreg Roach            'INDI:_BRTM'       => new CustomIndividualEvent(I18N::translate('Brit milah')),
93500c92694SGreg Roach            'INDI:_BRTM:DATE'  => new DateValue(I18N::translate('Date of brit milah')),
93600c92694SGreg Roach            'INDI:_BRTM:PLAC'  => new PlaceName(I18N::translate('Place of brit milah')),
93700c92694SGreg Roach            'INDI:_EMAIL'      => new AddressEmail(I18N::translate('Email address')),
93800c92694SGreg Roach            'INDI:_EYEC'       => new CustomFact(I18N::translate('Eye color')),
93900c92694SGreg Roach            'INDI:_FRNL'       => new CustomElement(I18N::translate('Funeral')),
94000c92694SGreg Roach            'INDI:_HAIR'       => new CustomFact(I18N::translate('Hair color')),
94100c92694SGreg Roach            'INDI:_HEIG'       => new CustomFact(I18N::translate('Height')),
94200c92694SGreg Roach            'INDI:_INTE'       => new CustomElement(I18N::translate('Interment')),
94300c92694SGreg Roach            'INDI:_MEDC'       => new CustomFact(I18N::translate('Medical')),
94400c92694SGreg Roach            'INDI:_MILT'       => new CustomElement(I18N::translate('Military service')),
94500c92694SGreg Roach            'INDI:_NLIV'       => new CustomFact(I18N::translate('Not living')),
94600c92694SGreg Roach            'INDI:_NMAR'       => new CustomFact(I18N::translate('Never married'), ['NOTE' => '0:M', 'SOUR' => '0:M']),
94700c92694SGreg Roach            'INDI:_PRMN'       => new CustomElement(I18N::translate('Permanent number')),
94800c92694SGreg Roach            'INDI:_TODO'       => new CustomElement(I18N::translate('Research task')),
94900c92694SGreg Roach            'INDI:_WEIG'       => new CustomFact(I18N::translate('Weight')),
95000c92694SGreg Roach            'INDI:_YART'       => new CustomIndividualEvent(I18N::translate('Yahrzeit')),
95100c92694SGreg Roach            // 1 XXXX
95200c92694SGreg Roach            // 2 _EVN ##
95300c92694SGreg Roach            // 1 ASSO @Xnnn@
95400c92694SGreg Roach            // 2 RELA Witness at event _EVN ##
95500c92694SGreg Roach        ];
95600c92694SGreg Roach    }
95700c92694SGreg Roach
95800c92694SGreg Roach    /**
95900c92694SGreg Roach     * @return array<string,ElementInterface>
96000c92694SGreg Roach     */
96100c92694SGreg Roach    private function familySearchTags(): array
96200c92694SGreg Roach    {
96300c92694SGreg Roach        return [
96400c92694SGreg Roach            'INDI:_FSFTID' => /* I18N: familysearch.org */ new FamilySearchFamilyTreeId(I18N::translate('FamilySearch ID')),
96500c92694SGreg Roach        ];
96600c92694SGreg Roach    }
96700c92694SGreg Roach
96800c92694SGreg Roach    /**
96900c92694SGreg Roach     * @return array<string,ElementInterface>
97000c92694SGreg Roach     */
97100c92694SGreg Roach    private function familyTreeBuilderTags(): array
97200c92694SGreg Roach    {
97300c92694SGreg Roach        return [
974f0e4072fSGreg Roach            '*:_UPD'              => /* I18N: GEDCOM tag _UPD */ new CustomElement(I18N::translate('Updated at')), // e.g. "1 _UPD 14 APR 2012 00:14:10 GMT-5"
97500c92694SGreg Roach            'INDI:NAME:_AKA'      => new NamePersonal(I18N::translate('Also known as'), []),
97600c92694SGreg Roach            'OBJE:_ALBUM'         => new CustomElement(I18N::translate('Album')), // XREF to an album
97700c92694SGreg Roach            'OBJE:_DATE'          => new DateValue(I18N::translate('Date')),
97800c92694SGreg Roach            'OBJE:_FILESIZE'      => new CustomElement(I18N::translate('File size')),
97900c92694SGreg Roach            'OBJE:_PHOTO_RIN'     => new CustomElement(I18N::translate('Record ID number')),
98000c92694SGreg Roach            'OBJE:_PLACE'         => new PlaceName(I18N::translate('Place')),
98100c92694SGreg Roach            '_ALBUM:_PHOTO'       => new CustomElement(I18N::translate('Photo')),
98200c92694SGreg Roach            '_ALBUM:_PHOTO:_PRIN' => new CustomElement(I18N::translate('Highlighted image')),
98300c92694SGreg Roach        ];
98400c92694SGreg Roach    }
98500c92694SGreg Roach
98600c92694SGreg Roach    /**
98700c92694SGreg Roach     * @return array<string,ElementInterface>
98800c92694SGreg Roach     *
98900c92694SGreg Roach     * @see https://wiki-de.genealogy.net/GEDCOM/_Nutzerdef-Tag
99000c92694SGreg Roach     */
99100c92694SGreg Roach    private function familyTreeMakerTags(): array
99200c92694SGreg Roach    {
99300c92694SGreg Roach        return [
99400c92694SGreg Roach            'FAM:CHIL:_FREL'              => new CustomElement(I18N::translate('Relationship to father')),
99500c92694SGreg Roach            'FAM:CHIL:_MREL'              => new CustomElement(I18N::translate('Relationship to mother')),
99600c92694SGreg Roach            'FAM:_DETS'                   => new CustomElement(I18N::translate('Death of one spouse')),
99700c92694SGreg Roach            'FAM:_FA1'                    => new CustomElement(I18N::translate('Fact 1')),
99800c92694SGreg Roach            'FAM:_FA10'                   => new CustomElement(I18N::translate('Fact 10')),
99900c92694SGreg Roach            'FAM:_FA11'                   => new CustomElement(I18N::translate('Fact 11')),
100000c92694SGreg Roach            'FAM:_FA12'                   => new CustomElement(I18N::translate('Fact 12')),
100100c92694SGreg Roach            'FAM:_FA13'                   => new CustomElement(I18N::translate('Fact 13')),
100200c92694SGreg Roach            'FAM:_FA2'                    => new CustomElement(I18N::translate('Fact 2')),
100300c92694SGreg Roach            'FAM:_FA3'                    => new CustomElement(I18N::translate('Fact 3')),
100400c92694SGreg Roach            'FAM:_FA4'                    => new CustomElement(I18N::translate('Fact 4')),
100500c92694SGreg Roach            'FAM:_FA5'                    => new CustomElement(I18N::translate('Fact 5')),
100600c92694SGreg Roach            'FAM:_FA6'                    => new CustomElement(I18N::translate('Fact 6')),
100700c92694SGreg Roach            'FAM:_FA7'                    => new CustomElement(I18N::translate('Fact 7')),
100800c92694SGreg Roach            'FAM:_FA8'                    => new CustomElement(I18N::translate('Fact 8')),
100900c92694SGreg Roach            'FAM:_FA9'                    => new CustomElement(I18N::translate('Fact 9')),
101000c92694SGreg Roach            'FAM:_MEND'                   => new CustomElement(I18N::translate('Marriage ending status')),
101100c92694SGreg Roach            'FAM:_MSTAT'                  => new CustomElement(I18N::translate('Marriage beginning status')),
101200c92694SGreg Roach            'FAM:_SEPR'                   => new CustomElement(I18N::translate('Separation')),
10134c10b11dSGreg Roach            'HEAD:_SCHEMA'                => new CustomElement(I18N::translate('Schema')),
101400c92694SGreg Roach            'HEAD:_SCHEMA:FAM'            => new CustomElement(I18N::translate('Family')),
101500c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA*:LABL'  => new CustomElement(I18N::translate('Label')),
101600c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA1'       => new CustomElement(I18N::translate('Fact 1')),
101700c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA10'      => new CustomElement(I18N::translate('Fact 10')),
101800c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA11'      => new CustomElement(I18N::translate('Fact 11')),
101900c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA12'      => new CustomElement(I18N::translate('Fact 12')),
102000c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA13'      => new CustomElement(I18N::translate('Fact 13')),
102100c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA2'       => new CustomElement(I18N::translate('Fact 2')),
102200c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA3'       => new CustomElement(I18N::translate('Fact 3')),
102300c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA4'       => new CustomElement(I18N::translate('Fact 4')),
102400c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA5'       => new CustomElement(I18N::translate('Fact 5')),
102500c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA6'       => new CustomElement(I18N::translate('Fact 6')),
102600c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA7'       => new CustomElement(I18N::translate('Fact 7')),
102700c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA8'       => new CustomElement(I18N::translate('Fact 8')),
102800c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_FA9'       => new CustomElement(I18N::translate('Fact 9')),
102900c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_M*:LABL'   => new CustomElement(I18N::translate('Label')),
103000c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_MEND'      => new CustomElement(I18N::translate('Marriage ending status')),
103100c92694SGreg Roach            'HEAD:_SCHEMA:FAM:_MSTAT'     => new CustomElement(I18N::translate('Marriage beginning status')),
103200c92694SGreg Roach            'HEAD:_SCHEMA:INDI'           => new CustomElement(I18N::translate('Individual')),
103300c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA*:LABL' => new CustomElement(I18N::translate('Label')),
103400c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA1'      => new CustomElement(I18N::translate('Fact 1')),
103500c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA10'     => new CustomElement(I18N::translate('Fact 10')),
103600c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA11'     => new CustomElement(I18N::translate('Fact 11')),
103700c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA12'     => new CustomElement(I18N::translate('Fact 12')),
103800c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA13'     => new CustomElement(I18N::translate('Fact 13')),
103900c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA2'      => new CustomElement(I18N::translate('Fact 2')),
104000c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA3'      => new CustomElement(I18N::translate('Fact 3')),
104100c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA4'      => new CustomElement(I18N::translate('Fact 4')),
104200c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA5'      => new CustomElement(I18N::translate('Fact 5')),
104300c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA6'      => new CustomElement(I18N::translate('Fact 6')),
104400c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA7'      => new CustomElement(I18N::translate('Fact 7')),
104500c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA8'      => new CustomElement(I18N::translate('Fact 8')),
104600c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_FA9'      => new CustomElement(I18N::translate('Fact 9')),
10474c10b11dSGreg Roach            'HEAD:_SCHEMA:INDI:_FREL'     => new CustomElement(I18N::translate('Relationship to father')),
104800c92694SGreg Roach            'HEAD:_SCHEMA:INDI:_M*:LABL'  => new CustomElement(I18N::translate('Label')),
10494c10b11dSGreg Roach            'HEAD:_SCHEMA:INDI:_MREL'     => new CustomElement(I18N::translate('Relationship to mother')),
10504c10b11dSGreg Roach            'INDI:*:SOUR:_APID'           => /* I18N: GEDCOM tag _APID */ new CustomElement(I18N::translate('Ancestry.com source identifier')),
10514c10b11dSGreg Roach            'INDI:*:SOUR:_LINK'           => new CustomElement(I18N::translate('External link')),
105200c92694SGreg Roach            'INDI:NAME:_AKA'              => new NamePersonal(I18N::translate('Also known as'), []),
105300c92694SGreg Roach            'INDI:NAME:_MARNM'            => new NamePersonal(I18N::translate('Married name'), []),
10544c10b11dSGreg Roach            'INDI:_CIRC'                  => new CustomElement(I18N::translate('Circumcision')),
105500c92694SGreg Roach            'INDI:_DCAUSE'                => new CustomElement(I18N::translate('Cause of death')),
105600c92694SGreg Roach            'INDI:_DEG'                   => new CustomElement(I18N::translate('Degree')),
105700c92694SGreg Roach            'INDI:_DNA'                   => new CustomElement(I18N::translate('DNA markers')),
105800c92694SGreg Roach            'INDI:_ELEC'                  => new CustomElement('Elected'),
105900c92694SGreg Roach            'INDI:_EMPLOY'                => new CustomElement('Employment'),
106000c92694SGreg Roach            'INDI:_EXCM'                  => new CustomElement('Excommunicated'),
10614c10b11dSGreg Roach            'INDI:_FA1'                   => new CustomElement(I18N::translate('Fact 1')),
10624c10b11dSGreg Roach            'INDI:_FA10'                  => new CustomElement(I18N::translate('Fact 10')),
10634c10b11dSGreg Roach            'INDI:_FA11'                  => new CustomElement(I18N::translate('Fact 11')),
10644c10b11dSGreg Roach            'INDI:_FA12'                  => new CustomElement(I18N::translate('Fact 12')),
10654c10b11dSGreg Roach            'INDI:_FA13'                  => new CustomElement(I18N::translate('Fact 13')),
10664c10b11dSGreg Roach            'INDI:_FA2'                   => new CustomElement(I18N::translate('Fact 2')),
10674c10b11dSGreg Roach            'INDI:_FA3'                   => new CustomElement(I18N::translate('Fact 3')),
10684c10b11dSGreg Roach            'INDI:_FA4'                   => new CustomElement(I18N::translate('Fact 4')),
10694c10b11dSGreg Roach            'INDI:_FA5'                   => new CustomElement(I18N::translate('Fact 5')),
10704c10b11dSGreg Roach            'INDI:_FA6'                   => new CustomElement(I18N::translate('Fact 6')),
10714c10b11dSGreg Roach            'INDI:_FA7'                   => new CustomElement(I18N::translate('Fact 7')),
10724c10b11dSGreg Roach            'INDI:_FA8'                   => new CustomElement(I18N::translate('Fact 8')),
10734c10b11dSGreg Roach            'INDI:_FA9'                   => new CustomElement(I18N::translate('Fact 9')),
10744c10b11dSGreg Roach            'INDI:_MDCL'                  => new CustomElement(I18N::translate('Medical')),
107500c92694SGreg Roach            'INDI:_MILT'                  => new CustomElement(I18N::translate('Military service')),
107600c92694SGreg Roach            'INDI:_MILTID'                => new CustomElement('Military ID number'),
107700c92694SGreg Roach            'INDI:_MISN'                  => new CustomElement('Mission'),
107800c92694SGreg Roach            'INDI:_NAMS'                  => new CustomElement(I18N::translate('Namesake')),
107900c92694SGreg Roach            'INDI:_UNKN'                  => new CustomElement(I18N::translate('Unknown')), // Special individual ID code for later file comparisons
108000c92694SGreg Roach        ];
108100c92694SGreg Roach    }
108200c92694SGreg Roach
108300c92694SGreg Roach    /**
108400c92694SGreg Roach     * @return array<string,ElementInterface>
108500c92694SGreg Roach     */
108600c92694SGreg Roach    private function gedcomLTags(): array
108700c92694SGreg Roach    {
108800c92694SGreg Roach        return [
10894c10b11dSGreg Roach            'FAM:*:ADDR:_NAME'                => new CustomElement(I18N::translate('Name of addressee')),
109000c92694SGreg Roach            // I18N: https://gov.genealogy.net
109100c92694SGreg Roach            'FAM:*:PLAC:_GOV'                 => new GovIdentifier(I18N::translate('GOV identifier')),
109200c92694SGreg Roach            'FAM:*:PLAC:_LOC'                 => new XrefLocation(I18N::translate('Location')),
109300c92694SGreg Roach            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
109400c92694SGreg Roach            'FAM:*:PLAC:_MAIDENHEAD'          => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
10954c10b11dSGreg Roach            'FAM:*:PLAC:_POST'                => new AddressPostalCode(I18N::translate('Postal code')),
109600c92694SGreg Roach            'FAM:*:PLAC:_POST:DATE'           => new DateValue(I18N::translate('Date')),
109700c92694SGreg Roach            'FAM:*:_ASSO'                     => new XrefAssociate(I18N::translate('Associate')),
109800c92694SGreg Roach            'FAM:*:_ASSO:NOTE'                => new NoteStructure(I18N::translate('Note')),
109900c92694SGreg Roach            'FAM:*:_ASSO:RELA'                => new RelationIsDescriptor(I18N::translate('Relationship')),
110000c92694SGreg Roach            'FAM:*:_ASSO:SOUR'                => new XrefSource(I18N::translate('Source citation')),
110100c92694SGreg Roach            'FAM:*:_ASSO:SOUR:DATA'           => new SourceData(I18N::translate('Data')),
110200c92694SGreg Roach            'FAM:*:_ASSO:SOUR:DATA:DATE'      => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
110300c92694SGreg Roach            'FAM:*:_ASSO:SOUR:DATA:TEXT'      => new TextFromSource(I18N::translate('Text')),
110400c92694SGreg Roach            'FAM:*:_ASSO:SOUR:EVEN'           => new EventTypeCitedFrom(I18N::translate('Event')),
110500c92694SGreg Roach            'FAM:*:_ASSO:SOUR:EVEN:ROLE'      => new RoleInEvent(I18N::translate('Role')),
110600c92694SGreg Roach            'FAM:*:_ASSO:SOUR:NOTE'           => new NoteStructure(I18N::translate('Note')),
110700c92694SGreg Roach            'FAM:*:_ASSO:SOUR:OBJE'           => new XrefMedia(I18N::translate('Media object')),
110800c92694SGreg Roach            'FAM:*:_ASSO:SOUR:PAGE'           => new WhereWithinSource(I18N::translate('Citation details')),
110900c92694SGreg Roach            'FAM:*:_ASSO:SOUR:QUAY'           => new CertaintyAssessment(I18N::translate('Quality of data')),
11104c10b11dSGreg Roach            'FAM:*:_WITN'                     => new CustomElement(I18N::translate('Witnesses')),
111176f1fa21SRichard Cissée            'FAM:_ASSO'                       => new XrefAssociate(I18N::translate('Associate')),
111276f1fa21SRichard Cissée            'FAM:_ASSO:RELA'                  => new RelationIsDescriptor(I18N::translate('Relationship')),
111300c92694SGreg Roach            'FAM:_STAT'                       => new FamilyStatusText(I18N::translate('Family status')),
111400c92694SGreg Roach            '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']),
111500c92694SGreg Roach            'FAM:_TODO:DATA'                  => new SubmitterText(I18N::translate('The solution')),
111600c92694SGreg Roach            'FAM:_TODO:DATE'                  => new DateValue(I18N::translate('Creation date')),
111700c92694SGreg Roach            'FAM:_TODO:DESC'                  => new CustomElement(I18N::translate('Description')),
111800c92694SGreg Roach            'FAM:_TODO:NOTE'                  => new SubmitterText(I18N::translate('The problem')),
11194c10b11dSGreg Roach            'FAM:_TODO:REPO'                  => new XrefRepository(I18N::translate('Repository'), []),
112000c92694SGreg Roach            'FAM:_TODO:STAT'                  => new ResearchTaskStatus(I18N::translate('Status')),
112100c92694SGreg Roach            'FAM:_TODO:TYPE'                  => new ResearchTaskType(I18N::translate('Type of research task')),
112200c92694SGreg Roach            'FAM:_TODO:_CAT'                  => new CustomElement(I18N::translate('Category')),
112300c92694SGreg Roach            'FAM:_TODO:_CDATE'                => new DateValue(I18N::translate('Completion date')),
112400c92694SGreg Roach            'FAM:_TODO:_PRTY'                 => new ResearchTaskPriority(I18N::translate('Priority')),
112500c92694SGreg Roach            'FAM:_TODO:_RDATE'                => new DateValue(I18N::translate('Reminder date')),
112600c92694SGreg Roach            'FAM:_UID'                        => new PafUid(I18N::translate('Unique identifier')),
11274c10b11dSGreg Roach            'HEAD:GEDC:VERS:_ADDENDUM'        => new EmptyElement(I18N::translate('GEDCOM-L')),
112800c92694SGreg Roach            'HEAD:GEDC:VERS:_ADDENDUM:VERS'   => new VersionNumber(I18N::translate('Version')),
112900c92694SGreg Roach            'HEAD:GEDC:VERS:_ADDENDUM:WWW'    => new AddressWebPage(I18N::translate('URL')),
11304c10b11dSGreg Roach            'HEAD:SOUR:CORP:ADDR:_NAME'       => new CustomElement(I18N::translate('Name of addressee')),
113100c92694SGreg Roach            'HEAD:_SCHEMA'                    => new EmptyElement(I18N::translate('Schema')),
113200c92694SGreg Roach            'HEAD:_SCHEMA:*'                  => new EmptyElement(I18N::translate('Base GEDCOM tag')),
113300c92694SGreg Roach            'HEAD:_SCHEMA:*:*'                => new EmptyElement(I18N::translate('New GEDCOM tag')),
113400c92694SGreg Roach            'HEAD:_SCHEMA:*:*:*'              => new EmptyElement(I18N::translate('New GEDCOM tag')),
113500c92694SGreg Roach            'HEAD:_SCHEMA:*:*:*:*'            => new EmptyElement(I18N::translate('New GEDCOM tag')),
113600c92694SGreg Roach            'HEAD:_SCHEMA:*:*:*:*:*'          => new EmptyElement(I18N::translate('New GEDCOM tag')),
113700c92694SGreg Roach            'HEAD:_SCHEMA:*:*:*:*:*:*'        => new EmptyElement(I18N::translate('New GEDCOM tag')),
113800c92694SGreg Roach            'HEAD:_SCHEMA:*:*:*:*:*:*:_DEFN'  => new EmptyElement(I18N::translate('Definition')),
113900c92694SGreg Roach            'HEAD:_SCHEMA:*:*:*:*:*:_DEFN'    => new EmptyElement(I18N::translate('Definition')),
114000c92694SGreg Roach            'HEAD:_SCHEMA:*:*:*:*:_DEFN'      => new EmptyElement(I18N::translate('Definition')),
114100c92694SGreg Roach            'HEAD:_SCHEMA:*:*:*:_DEFN'        => new EmptyElement(I18N::translate('Definition')),
114200c92694SGreg Roach            'HEAD:_SCHEMA:*:*:_DEFN'          => new EmptyElement(I18N::translate('Definition')),
11434c10b11dSGreg Roach            'INDI:*:ADDR:_NAME'               => new CustomElement(I18N::translate('Name of addressee')),
114400c92694SGreg Roach            // I18N: https://gov.genealogy.net
114500c92694SGreg Roach            'INDI:*:PLAC:_GOV'                => new GovIdentifier(I18N::translate('GOV identifier')),
114600c92694SGreg Roach            'INDI:*:PLAC:_LOC'                => new XrefLocation(I18N::translate('Location')),
114700c92694SGreg Roach            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
114800c92694SGreg Roach            'INDI:*:PLAC:_MAIDENHEAD'         => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
11494c10b11dSGreg Roach            'INDI:*:PLAC:_POST'               => new AddressPostalCode(I18N::translate('Postal code')),
115000c92694SGreg Roach            'INDI:*:PLAC:_POST:DATE'          => new DateValue(I18N::translate('Date')),
115100c92694SGreg Roach            'INDI:*:_ASSO'                    => new XrefAssociate(I18N::translate('Associate')),
115200c92694SGreg Roach            'INDI:*:_ASSO:NOTE'               => new NoteStructure(I18N::translate('Note')),
115300c92694SGreg Roach            'INDI:*:_ASSO:RELA'               => new RelationIsDescriptor(I18N::translate('Relationship')),
115400c92694SGreg Roach            'INDI:*:_ASSO:SOUR'               => new XrefSource(I18N::translate('Source citation')),
115500c92694SGreg Roach            'INDI:*:_ASSO:SOUR:DATA'          => new SourceData(I18N::translate('Data')),
115600c92694SGreg Roach            'INDI:*:_ASSO:SOUR:DATA:DATE'     => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
115700c92694SGreg Roach            'INDI:*:_ASSO:SOUR:DATA:TEXT'     => new TextFromSource(I18N::translate('Text')),
115800c92694SGreg Roach            'INDI:*:_ASSO:SOUR:EVEN'          => new EventTypeCitedFrom(I18N::translate('Event')),
115900c92694SGreg Roach            'INDI:*:_ASSO:SOUR:EVEN:ROLE'     => new RoleInEvent(I18N::translate('Role')),
116000c92694SGreg Roach            'INDI:*:_ASSO:SOUR:NOTE'          => new NoteStructure(I18N::translate('Note')),
116100c92694SGreg Roach            'INDI:*:_ASSO:SOUR:OBJE'          => new XrefMedia(I18N::translate('Media object')),
116200c92694SGreg Roach            'INDI:*:_ASSO:SOUR:PAGE'          => new WhereWithinSource(I18N::translate('Citation details')),
116300c92694SGreg Roach            'INDI:*:_ASSO:SOUR:QUAY'          => new CertaintyAssessment(I18N::translate('Quality of data')),
11644c10b11dSGreg Roach            'INDI:*:_WITN'                    => new CustomElement(I18N::translate('Witnesses')),
11654c10b11dSGreg Roach            'INDI:BAPM:_GODP'                 => new CustomElement(I18N::translate('Godparents')),
11664c10b11dSGreg Roach            'INDI:CHR:_GODP'                  => new CustomElement(I18N::translate('Godparents')),
116700c92694SGreg Roach            'INDI:NAME:_RUFNAME'              => new NamePieceGiven(I18N::translate('Rufname')),
116800c92694SGreg Roach            'INDI:OBJE:_PRIM'                 => new CustomElement(I18N::translate('Highlighted image')),
116900c92694SGreg Roach            'INDI:SEX'                        => new SexXValue(I18N::translate('Gender')),
117000c92694SGreg Roach            'INDI:_TODO'                      => new ResearchTask(I18N::translate('Research task')),
117100c92694SGreg Roach            'INDI:_TODO:DATA'                 => new SubmitterText(I18N::translate('The solution')),
117200c92694SGreg Roach            'INDI:_TODO:DATE'                 => new DateValue(I18N::translate('Creation date')),
117300c92694SGreg Roach            'INDI:_TODO:DESC'                 => new CustomElement(I18N::translate('Description')),
117400c92694SGreg Roach            'INDI:_TODO:NOTE'                 => new SubmitterText(I18N::translate('The problem')),
11754c10b11dSGreg Roach            'INDI:_TODO:REPO'                 => new XrefRepository(I18N::translate('Repository'), []),
117600c92694SGreg Roach            'INDI:_TODO:STAT'                 => new ResearchTaskStatus(I18N::translate('Status')),
117700c92694SGreg Roach            'INDI:_TODO:TYPE'                 => new ResearchTaskType(I18N::translate('Type of research task')),
117800c92694SGreg Roach            'INDI:_TODO:_CAT'                 => new CustomElement(I18N::translate('Category')),
117900c92694SGreg Roach            'INDI:_TODO:_CDATE'               => new DateValue(I18N::translate('Completion date')),
118000c92694SGreg Roach            'INDI:_TODO:_PRTY'                => new ResearchTaskPriority(I18N::translate('Priority')),
118100c92694SGreg Roach            'INDI:_TODO:_RDATE'               => new DateValue(I18N::translate('Reminder date')),
118200c92694SGreg Roach            'INDI:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
118300c92694SGreg Roach            'NOTE:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
118400c92694SGreg Roach            'OBJE:FILE:_PRIM'                 => new CustomElement(I18N::translate('Highlighted image')),
118500c92694SGreg Roach            'OBJE:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
11864c10b11dSGreg Roach            'REPO:ADDR:_NAME'                 => new CustomElement(I18N::translate('Name of addressee')),
118700c92694SGreg Roach            'REPO:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
118800c92694SGreg Roach            'SOUR:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
1189b0a20e09SRichard Cissée            'SOUR:DATA:EVEN:PLAC:_LOC'        => new XrefLocation(I18N::translate('Location')),
1190b0a20e09SRichard Cissée            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
1191b0a20e09SRichard Cissée            'SOUR:DATA:EVEN:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
11924c10b11dSGreg Roach            'SOUR:DATA:EVEN:PLAC:_POST'       => new AddressPostalCode(I18N::translate('Postal code')),
1193b0a20e09SRichard Cissée            'SOUR:DATA:EVEN:PLAC:_POST:DATE'  => new DateValue(I18N::translate('Date')),
11944c10b11dSGreg Roach            'SUBM:ADDR:_NAME'                 => new CustomElement(I18N::translate('Name of addressee')),
119500c92694SGreg Roach            'SUBM:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
119600c92694SGreg Roach            'SUBN:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
119700c92694SGreg Roach            '_LOC'                            => new LocationRecord(I18N::translate('Location')),
119800c92694SGreg Roach            '_LOC:CHAN'                       => new Change(I18N::translate('Last change')),
119900c92694SGreg Roach            '_LOC:CHAN:DATE'                  => new ChangeDate(I18N::translate('Date of last change')),
120000c92694SGreg Roach            '_LOC:CHAN:DATE:TIME'             => new TimeValue(I18N::translate('Time')),
120100c92694SGreg Roach            '_LOC:CHAN:NOTE'                  => new NoteStructure(I18N::translate('Note')),
120200c92694SGreg Roach            '_LOC:EVEN'                       => new CustomEvent(I18N::translate('Event')),
120300c92694SGreg Roach            '_LOC:EVEN:DATE'                  => new DateValue(I18N::translate('Date of event')),
120400c92694SGreg Roach            '_LOC:EVEN:PLAC'                  => new PlaceName(I18N::translate('Place of event')),
120500c92694SGreg Roach            '_LOC:EVEN:PLAC:FONE'             => new PlacePhoneticVariation(I18N::translate('Phonetic place')),
120600c92694SGreg Roach            '_LOC:EVEN:PLAC:FONE:TYPE'        => new PhoneticType(I18N::translate('Type')),
120700c92694SGreg Roach            '_LOC:EVEN:PLAC:FORM'             => new PlaceHierarchy(I18N::translate('Format')),
120800c92694SGreg Roach            '_LOC:EVEN:PLAC:MAP'              => new EmptyElement(I18N::translate('Coordinates'), ['LATI' => '1:1', 'LONG' => '1:1']),
120900c92694SGreg Roach            '_LOC:EVEN:PLAC:MAP:LATI'         => new PlaceLatitude(I18N::translate('Latitude')),
121000c92694SGreg Roach            '_LOC:EVEN:PLAC:MAP:LONG'         => new PlaceLongtitude(I18N::translate('Longitude')),
121100c92694SGreg Roach            '_LOC:EVEN:PLAC:NOTE'             => new NoteStructure(I18N::translate('Note')),
121200c92694SGreg Roach            '_LOC:EVEN:PLAC:ROMN'             => new PlaceRomanizedVariation(I18N::translate('Romanized place')),
121300c92694SGreg Roach            '_LOC:EVEN:PLAC:ROMN:TYPE'        => new RomanizedType(I18N::translate('Type')),
121400c92694SGreg Roach            '_LOC:EVEN:TYPE'                  => new EventAttributeType(I18N::translate('Type of event')),
121500c92694SGreg Roach            '_LOC:EVEN:AGNC'                  => new ResponsibleAgency(I18N::translate('Agency')),
121600c92694SGreg Roach            '_LOC:EVEN:ADDR'                  => new AddressLine(I18N::translate('Address')),
121700c92694SGreg Roach            '_LOC:EVEN:ADDR:ADR1'             => new AddressLine1(I18N::translate('Address line 1')),
121800c92694SGreg Roach            '_LOC:EVEN:ADDR:ADR2'             => new AddressLine2(I18N::translate('Address line 2')),
121900c92694SGreg Roach            '_LOC:EVEN:ADDR:ADR3'             => new AddressLine3(I18N::translate('Address line 3')),
122000c92694SGreg Roach            '_LOC:EVEN:ADDR:CITY'             => new AddressCity(I18N::translate('City')),
122100c92694SGreg Roach            '_LOC:EVEN:ADDR:CTRY'             => new AddressCountry(I18N::translate('Country')),
122200c92694SGreg Roach            '_LOC:EVEN:ADDR:POST'             => new AddressPostalCode(I18N::translate('Postal code')),
122300c92694SGreg Roach            '_LOC:EVEN:ADDR:STAE'             => new AddressState(I18N::translate('State')),
122400c92694SGreg Roach            '_LOC:EVEN:CAUS'                  => new CauseOfEvent(I18N::translate('Cause')),
122500c92694SGreg Roach            '_LOC:EVEN:RELI'                  => new ReligiousAffiliation(I18N::translate('Religion'), []),
122600c92694SGreg Roach            '_LOC:EVEN:RESN'                  => new RestrictionNotice(I18N::translate('Restriction')),
122700c92694SGreg Roach            '_LOC:EVEN:SOUR'                  => new XrefSource(I18N::translate('Source citation')),
122800c92694SGreg Roach            '_LOC:EVEN:NOTE'                  => new NoteStructure(I18N::translate('Note')),
122900c92694SGreg Roach            '_LOC:EVEN:OBJE'                  => new XrefMedia(I18N::translate('Media object')),
123000c92694SGreg Roach            '_LOC:MAP'                        => new EmptyElement(I18N::translate('Coordinates'), ['LATI' => '1:1', 'LONG' => '1:1']),
123100c92694SGreg Roach            '_LOC:MAP:LATI'                   => new PlaceLatitude(I18N::translate('Latitude')),
123200c92694SGreg Roach            '_LOC:MAP:LONG'                   => new PlaceLongtitude(I18N::translate('Longitude')),
123300c92694SGreg Roach            '_LOC:NAME'                       => new PlaceName(I18N::translate('Place'), ['ABBR' => '0:1', 'DATE' => '0:1', 'LANG' => '0:1', 'SOUR' => '0:M']),
123400c92694SGreg Roach            '_LOC:NAME:ABBR'                  => new CustomElement(I18N::translate('Abbreviation')),
123500c92694SGreg Roach            '_LOC:NAME:ABBR:TYPE'             => new CustomElement(I18N::translate('Type of abbreviation')),
123600c92694SGreg Roach            '_LOC:NAME:DATE'                  => new DateValue(I18N::translate('Date')),
123700c92694SGreg Roach            '_LOC:NAME:LANG'                  => new LanguageId(I18N::translate('Language')),
123800c92694SGreg Roach            '_LOC:NAME:SOUR'                  => new XrefSource(I18N::translate('Source')),
123900c92694SGreg Roach            '_LOC:NOTE'                       => new NoteStructure(I18N::translate('Note')),
124000c92694SGreg Roach            '_LOC:OBJE'                       => new XrefMedia(I18N::translate('Media')),
12414c10b11dSGreg Roach            '_LOC:RELI'                       => new ReligiousAffiliation(I18N::translate('Religion'), []),
124200c92694SGreg Roach            '_LOC:SOUR'                       => new XrefSource(I18N::translate('Source')),
124300c92694SGreg Roach            '_LOC:SOUR:DATA'                  => new SourceData(I18N::translate('Data')),
124400c92694SGreg Roach            '_LOC:SOUR:DATA:DATE'             => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
124500c92694SGreg Roach            '_LOC:SOUR:DATA:TEXT'             => new TextFromSource(I18N::translate('Text')),
124600c92694SGreg Roach            '_LOC:SOUR:EVEN'                  => new EventTypeCitedFrom(I18N::translate('Event')),
124700c92694SGreg Roach            '_LOC:SOUR:EVEN:ROLE'             => new RoleInEvent(I18N::translate('Role')),
124800c92694SGreg Roach            '_LOC:SOUR:NOTE'                  => new NoteStructure(I18N::translate('Note')),
124900c92694SGreg Roach            '_LOC:SOUR:OBJE'                  => new XrefMedia(I18N::translate('Media object')),
125000c92694SGreg Roach            '_LOC:SOUR:PAGE'                  => new WhereWithinSource(I18N::translate('Citation details')),
125100c92694SGreg Roach            '_LOC:SOUR:QUAY'                  => new CertaintyAssessment(I18N::translate('Quality of data')),
125200c92694SGreg Roach            '_LOC:TYPE'                       => new CustomElement(I18N::translate('Type of location'), ['DATE' => '0:1', '_GOVTYPE' => '0:1', 'SOUR' => '0:M']),
125300c92694SGreg Roach            '_LOC:TYPE:DATE'                  => new DateValue(I18N::translate('Date')),
125400c92694SGreg Roach            '_LOC:TYPE:SOUR'                  => new XrefSource(I18N::translate('Source')),
12554c10b11dSGreg Roach            '_LOC:TYPE:_GOVTYPE'              => new CustomElement(I18N::translate('GOV identifier type')),
12564c10b11dSGreg Roach            '_LOC:_AIDN'                      => new CustomElement(I18N::translate('Administrative ID')),
125700c92694SGreg Roach            '_LOC:_AIDN:DATE'                 => new DateValue(I18N::translate('Date')),
125800c92694SGreg Roach            '_LOC:_AIDN:SOUR'                 => new XrefSource(I18N::translate('Source')),
125900c92694SGreg Roach            '_LOC:_AIDN:TYPE'                 => new CustomElement(I18N::translate('Type of administrative ID')),
12604c10b11dSGreg Roach            '_LOC:_DMGD'                      => new CustomElement(I18N::translate('Demographic data')),
126100c92694SGreg Roach            '_LOC:_DMGD:DATE'                 => new DateValue(I18N::translate('Date')),
126200c92694SGreg Roach            '_LOC:_DMGD:SOUR'                 => new XrefSource(I18N::translate('Source')),
126300c92694SGreg Roach            '_LOC:_DMGD:TYPE'                 => new CustomElement(I18N::translate('Type of demographic data')),
126400c92694SGreg Roach            // I18N: https://gov.genealogy.net
126500c92694SGreg Roach            '_LOC:_GOV'                       => new GovIdentifier(I18N::translate('GOV identifier')),
1266cbecd0bdSGreg Roach            '_LOC:_LOC'                       => new XrefLocation(I18N::translate('Parent location'), ['DATE' => '0:1', 'SOUR' => '0:M', 'TYPE' => '0:1']),
126700c92694SGreg Roach            '_LOC:_LOC:DATE'                  => new DateValue(I18N::translate('Date')),
126800c92694SGreg Roach            '_LOC:_LOC:SOUR'                  => new XrefSource(I18N::translate('Source')),
126900c92694SGreg Roach            '_LOC:_LOC:TYPE'                  => new HierarchicalRelationship(I18N::translate('Hierarchical relationship')),
127000c92694SGreg Roach            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
127100c92694SGreg Roach            '_LOC:_MAIDENHEAD'                => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
127200c92694SGreg Roach            '_LOC:_POST'                      => new AddressPostalCode(I18N::translate('Postal code')),
127300c92694SGreg Roach            '_LOC:_POST:DATE'                 => new DateValue(I18N::translate('Date')),
127400c92694SGreg Roach            '_LOC:_POST:SOUR'                 => new XrefSource(I18N::translate('Source')),
127500c92694SGreg Roach            '_LOC:_UID'                       => new PafUid(I18N::translate('Unique identifier')),
127600c92694SGreg Roach            '_LOC:*:SOUR:DATA'                => new SourceData(I18N::translate('Data')),
127700c92694SGreg Roach            '_LOC:*:SOUR:DATA:DATE'           => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
127800c92694SGreg Roach            '_LOC:*:SOUR:DATA:TEXT'           => new TextFromSource(I18N::translate('Text')),
127900c92694SGreg Roach            '_LOC:*:SOUR:EVEN'                => new EventTypeCitedFrom(I18N::translate('Event')),
128000c92694SGreg Roach            '_LOC:*:SOUR:EVEN:ROLE'           => new RoleInEvent(I18N::translate('Role')),
128100c92694SGreg Roach            '_LOC:*:SOUR:NOTE'                => new NoteStructure(I18N::translate('Note')),
128200c92694SGreg Roach            '_LOC:*:SOUR:OBJE'                => new XrefMedia(I18N::translate('Media object')),
128300c92694SGreg Roach            '_LOC:*:SOUR:PAGE'                => new WhereWithinSource(I18N::translate('Citation details')),
128400c92694SGreg Roach            '_LOC:*:SOUR:QUAY'                => new CertaintyAssessment(I18N::translate('Quality of data')),
128500c92694SGreg Roach        ];
128600c92694SGreg Roach    }
128700c92694SGreg Roach
128800c92694SGreg Roach    /**
128900c92694SGreg Roach     * @return array<string,ElementInterface>
129000c92694SGreg Roach     */
129100c92694SGreg Roach    private function genPlusWinTags(): array
129200c92694SGreg Roach    {
129300c92694SGreg Roach        return [
129400c92694SGreg Roach            'FAM:*:ADDR:_NUM'         => new CustomElement(I18N::translate('House number')),
129500c92694SGreg Roach            'FAM:*:ADDR:_STRASSE'     => new CustomElement(I18N::translate('Street name')),
129600c92694SGreg Roach            'FAM:*:DATE:_ZUS'         => new CustomElement(I18N::translate('Additional information')),
129700c92694SGreg Roach            'FAM:*:OBJE:_PRIM'        => new CustomElement(I18N::translate('Highlighted image')),
129800c92694SGreg Roach            'FAM:*:PLAC:_AON'         => new CustomElement(I18N::translate('Alternative place name')),
129900c92694SGreg Roach            // I18N: https://foko.genealogy.net
130000c92694SGreg Roach            'FAM:*:PLAC:_FCTRY'       => new CustomElement(I18N::translate('FOKO country')),
130100c92694SGreg Roach            // I18N: https://foko.genealogy.net
130200c92694SGreg Roach            'FAM:*:PLAC:_FSTAE'       => new CustomElement(I18N::translate('FOKO country')),
130300c92694SGreg Roach            // I18N: https://gov.genealogy.net
130400c92694SGreg Roach            'FAM:*:PLAC:_GOV'         => new GovIdentifier(I18N::translate('GOV identifier')),
130500c92694SGreg Roach            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
130600c92694SGreg Roach            'FAM:*:PLAC:_MAIDENHEAD'  => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
130700c92694SGreg Roach            'FAM:*:PLAC:_POST'        => new AddressPostalCode(I18N::translate('Postal code')),
130800c92694SGreg Roach            'FAM:*:PLAC:_SIC'         => new CustomElement(I18N::translate('Reliability of the information')),
130900c92694SGreg Roach            'FAM:*:PLAC:_ZUS'         => new CustomElement(I18N::translate('Additional information')),
131000c92694SGreg Roach            'FAM:*:SOUR:_ORI'         => new TextFromSource(I18N::translate('Original text')),
131100c92694SGreg Roach            'FAM:*:SOUR:_ZUS'         => new CustomElement(I18N::translate('Additional information')),
131200c92694SGreg Roach            'FAM:*:SOUR:PAGE:_ZUS'    => new CustomElement(I18N::translate('Additional information')),
131300c92694SGreg Roach            'FAM:*:_ASSO'             => new XrefAssociate(I18N::translate('Associate')),
131400c92694SGreg Roach            'FAM:*:_CERT'             => new CustomElement(I18N::translate('Certificate number')),
131500c92694SGreg Roach            'FAM:*:_COM'              => new CustomElement(I18N::translate('Comment')),
131600c92694SGreg Roach            'FAM:*:_SITE'             => new CustomElement(I18N::translate('Extra information')),
13171c2da29dSRichard Cissée            'FAM:*:_WITN'             => new CustomElement(I18N::translate('Witnesses')),
131800c92694SGreg Roach            'FAM:OBJE:_PRIM'          => new CustomElement(I18N::translate('Highlighted image')),
131900c92694SGreg Roach            'FAM:SOUR:_ORI'           => new TextFromSource(I18N::translate('Original text')),
132000c92694SGreg Roach            'FAM:SOUR:_ZUS'           => new CustomElement(I18N::translate('Additional information')),
132100c92694SGreg Roach            'FAM:SOUR:PAGE:_ZUS'      => new CustomElement(I18N::translate('Additional information')),
132200c92694SGreg Roach            'FAM:_CREAT'              => new DateValue(I18N::translate('Creation date')),
132300c92694SGreg Roach            'FAM:_LIV'                => new CustomElement(I18N::translate('Cohabitation')),
132400c92694SGreg Roach            'FAM:_NAME'               => new CustomElement(I18N::translate('Joint family name')),
132500c92694SGreg Roach            'FAM:_UID'                => new PafUid(I18N::translate('Unique identifier')),
132600c92694SGreg Roach            'INDI:*:ADDR:_NUM'        => new CustomElement(I18N::translate('House number')),
132700c92694SGreg Roach            'INDI:*:ADDR:_STRASSE'    => new CustomElement(I18N::translate('Street name')),
132800c92694SGreg Roach            'INDI:*:DATE:_ZUS'        => new CustomElement(I18N::translate('Additional information')),
132900c92694SGreg Roach            'INDI:*:OBJE:_PRIM'       => new CustomElement(I18N::translate('Highlighted image')),
133000c92694SGreg Roach            'INDI:*:PLAC:_AON'        => new CustomElement(I18N::translate('Alternative place name')),
133100c92694SGreg Roach            // I18N: https://foko.genealogy.net
133200c92694SGreg Roach            'INDI:*:PLAC:_FCTRY'      => new CustomElement(I18N::translate('FOKO country')),
133300c92694SGreg Roach            // I18N: https://foko.genealogy.net
133400c92694SGreg Roach            'INDI:*:PLAC:_FSTAE'      => new CustomElement(I18N::translate('FOKO country')),
133500c92694SGreg Roach            // I18N: https://gov.genealogy.net
133600c92694SGreg Roach            'INDI:*:PLAC:_GOV'        => new GovIdentifier(I18N::translate('GOV identifier')),
133700c92694SGreg Roach            // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System
133800c92694SGreg Roach            'INDI:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')),
133900c92694SGreg Roach            'INDI:*:PLAC:_POST'       => new AddressPostalCode(I18N::translate('Postal code')),
134000c92694SGreg Roach            'INDI:*:PLAC:_SIC'        => new CustomElement(I18N::translate('Reliability of the information')),
134100c92694SGreg Roach            'INDI:*:PLAC:_ZUS'        => new CustomElement(I18N::translate('Additional information')),
134200c92694SGreg Roach            'INDI:*:SOUR:_ORI'        => new TextFromSource(I18N::translate('Original text')),
134300c92694SGreg Roach            'INDI:*:SOUR:_ZUS'        => new CustomElement(I18N::translate('Additional information')),
134400c92694SGreg Roach            'INDI:*:SOUR:PAGE:_ZUS'   => new CustomElement(I18N::translate('Additional information')),
134500c92694SGreg Roach            'INDI:*:_ASSO'            => new XrefAssociate(I18N::translate('Associate')),
134600c92694SGreg Roach            'INDI:*:_CERT'            => new CustomElement(I18N::translate('Certificate number')),
134700c92694SGreg Roach            'INDI:*:_COM'             => new CustomElement(I18N::translate('Comment')),
134800c92694SGreg Roach            'INDI:*:_SITE'            => new CustomElement(I18N::translate('Extra information')),
13491c2da29dSRichard Cissée            'INDI:*:_WITN'            => new CustomElement(I18N::translate('Witnesses')),
13501c2da29dSRichard Cissée            'INDI:BAPM:_GODP'         => new CustomElement(I18N::translate('Godparents')),
13511c2da29dSRichard Cissée            'INDI:CHR:_GODP'          => new CustomElement(I18N::translate('Godparents')),
135200c92694SGreg Roach            'INDI:OBJE:_PRIM'         => new CustomElement(I18N::translate('Highlighted image')),
135300c92694SGreg Roach            'INDI:SOUR:_ORI'          => new TextFromSource(I18N::translate('Original text')),
135400c92694SGreg Roach            'INDI:SOUR:_ZUS'          => new CustomElement(I18N::translate('Additional information')),
135500c92694SGreg Roach            'INDI:SOUR:PAGE:_ZUS'     => new CustomElement(I18N::translate('Additional information')),
135600c92694SGreg Roach            'INDI:NAME:_AKA'          => new CustomElement(I18N::translate('Also known as')),
135700c92694SGreg Roach            // https://en.wikipedia.org/wiki/Rufname
135800c92694SGreg Roach            'INDI:NAME:RUFN'          => new CustomElement(I18N::translate('Rufname')),
135900c92694SGreg Roach            'INDI:_CREAT'             => new CustomElement(I18N::translate('Creation date')),
136000c92694SGreg Roach            'INDI:_HEIM'              => new CustomElement(/* I18N: German Bürgerort */ I18N::translate('Place of citizenship')),
136100c92694SGreg Roach            'INDI:_UID'               => new PafUid(I18N::translate('Unique identifier')),
136200c92694SGreg Roach            'NOTE:_CREAT'             => new DateValue(I18N::translate('Creation date')),
136300c92694SGreg Roach            'NOTE:_UID'               => new PafUid(I18N::translate('Unique identifier')),
136400c92694SGreg Roach            'OBJE:_CREAT'             => new DateValue(I18N::translate('Creation date')),
136500c92694SGreg Roach            'OBJE:_UID'               => new PafUid(I18N::translate('Unique identifier')),
136600c92694SGreg Roach            'REPO:_CREAT'             => new DateValue(I18N::translate('Creation date')),
136700c92694SGreg Roach            'REPO:_UID'               => new PafUid(I18N::translate('Unique identifier')),
136800c92694SGreg Roach            'SOUR:_CREAT'             => new DateValue(I18N::translate('Creation date')),
136900c92694SGreg Roach            'SOUR:_KTIT'              => new SourceFiledByEntry(I18N::translate('Abbreviation')),
137000c92694SGreg Roach            'SOUR:_UID'               => new PafUid(I18N::translate('Unique identifier')),
137100c92694SGreg Roach        ];
137200c92694SGreg Roach    }
137300c92694SGreg Roach
137400c92694SGreg Roach    /**
137500c92694SGreg Roach     * @see http://support.legacyfamilytree.com/article/AA-00520/0/GEDCOM-Files-custom-tags-in-Legacy.html
137600c92694SGreg Roach     *
137700c92694SGreg Roach     * @return array<string,ElementInterface>
137800c92694SGreg Roach     */
137900c92694SGreg Roach    private function legacyTags(): array
138000c92694SGreg Roach    {
138100c92694SGreg Roach        return [
138200c92694SGreg Roach            'FAM:*:ADDR:_PRIV'             => new CustomElement(I18N::translate('Private')),
138300c92694SGreg Roach            'FAM:*:PLAC:_VERI'             => new CustomElement(I18N::translate('Verified')),
1384082e1164SGreg Roach            'FAM:*:SOUR:DATE'              => new DateValue(I18N::translate('Date')),
138500c92694SGreg Roach            'FAM:*:SOUR:_VERI'             => new CustomElement(I18N::translate('Verified')),
138600c92694SGreg Roach            'FAM:*:_PRIV'                  => new CustomElement(I18N::translate('Private')),
138700c92694SGreg Roach            'FAM:CHIL:_FREL'               => new CustomElement(I18N::translate('Relationship to father')),
138800c92694SGreg Roach            'FAM:CHIL:_MREL'               => new CustomElement(I18N::translate('Relationship to mother')),
138900c92694SGreg Roach            'FAM:CHIL:_STAT'               => new CustomElement(I18N::translate('Status')),
139000c92694SGreg Roach            'FAM:EVEN:_OVER'               => new CustomElement('Event sentence override'),
1391082e1164SGreg Roach            'FAM:MARR:_HTITL'              => new CustomElement(I18N::translate('Label for husband')),
139200c92694SGreg Roach            'FAM:MARR:_STAT'               => new CustomElement(I18N::translate('Status')),
1393082e1164SGreg Roach            'FAM:MARR:_WTITL'              => new CustomElement(I18N::translate('Label for wife')),
139400c92694SGreg Roach            'FAM:_NONE'                    => new CustomElement(I18N::translate('No children')),
1395082e1164SGreg Roach            'FAM:_TAG'                     => new CustomElement('Tag'),
1396082e1164SGreg Roach            'FAM:_TAG2'                    => new CustomElement('Tag #2'),
1397082e1164SGreg Roach            'FAM:_TAG3'                    => new CustomElement('Tag #3'),
1398082e1164SGreg Roach            'FAM:_TAG4'                    => new CustomElement('Tag #4'),
1399082e1164SGreg Roach            'FAM:_TAG5'                    => new CustomElement('Tag #5'),
1400082e1164SGreg Roach            'FAM:_TAG6'                    => new CustomElement('Tag #6'),
1401082e1164SGreg Roach            'FAM:_TAG7'                    => new CustomElement('Tag #7'),
1402082e1164SGreg Roach            'FAM:_TAG8'                    => new CustomElement('Tag #8'),
1403082e1164SGreg Roach            'FAM:_TAG9'                    => new CustomElement('Tag #9'),
140400c92694SGreg Roach            'FAM:_UID'                     => new PafUid(I18N::translate('Unique identifier')),
140500c92694SGreg Roach            'HEAD:_EVENT_DEFN'             => new CustomElement('Event definition'),
140600c92694SGreg Roach            'HEAD:_EVENT_DEFN:_CONF_FLAG'  => new CustomElement(I18N::translate('Private')),
140700c92694SGreg Roach            'HEAD:_EVENT_DEFN:_DATE_TYPE'  => new CustomElement(I18N::translate('Date')),
140800c92694SGreg Roach            'HEAD:_EVENT_DEFN:_DESC_FLAG'  => new CustomElement(I18N::translate('Description')),
140900c92694SGreg Roach            'HEAD:_EVENT_DEFN:_PLACE_TYPE' => new CustomElement(I18N::translate('Place')),
141000c92694SGreg Roach            'HEAD:_EVENT_DEFN:_PP_EXCLUDE' => new CustomElement('Exclude event from potential problems report'),
141100c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SEN1'       => new CustomElement('Event sentence definition'),
141200c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SEN2'       => new CustomElement('Event sentence definition'),
141300c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SEN3'       => new CustomElement('Event sentence definition'),
141400c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SEN4'       => new CustomElement('Event sentence definition'),
141500c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SEN5'       => new CustomElement('Event sentence definition'),
141600c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SEN6'       => new CustomElement('Event sentence definition'),
141700c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SEN7'       => new CustomElement('Event sentence definition'),
141800c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SEN8'       => new CustomElement('Event sentence definition'),
141900c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENDOF'     => new CustomElement('Event sentence, female, date only'),
142000c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENDOM'     => new CustomElement('Event sentence, male, date only'),
142100c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENDOU'     => new CustomElement('Event sentence, unknown sex, date only'),
142200c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENDPF'     => new CustomElement('Event sentence, female, date and place'),
142300c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENDPM'     => new CustomElement('Event sentence, male, date and place'),
142400c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENDPU'     => new CustomElement('Event sentence, unknown sex, date and place'),
142500c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENF'       => new CustomElement('Event sentence, female'),
142600c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENM'       => new CustomElement('Event sentence, male'),
142700c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENPOF'     => new CustomElement('Event sentence, unknown sex'),
142800c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENPOM'     => new CustomElement('Event sentence, female, place only'),
142900c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENPOU'     => new CustomElement('Event sentence, male, place only'),
143000c92694SGreg Roach            'HEAD:_EVENT_DEFN:_SENU'       => new CustomElement('Event sentence, unknown sex, place only'),
143100c92694SGreg Roach            'HEAD:_PLAC_DEFN'              => new CustomElement('Place definition'),
143200c92694SGreg Roach            'HEAD:_PLAC_DEFN:_PREP'        => new CustomElement('Place preposition'),
143300c92694SGreg Roach            'INDI:*:ADDR:_EMAIL'           => new CustomElement(I18N::translate('Email')),
143400c92694SGreg Roach            'INDI:*:ADDR:_LIST1'           => new CustomElement('Include in the “newsletter” group'),
143500c92694SGreg Roach            'INDI:*:ADDR:_LIST2'           => new CustomElement('Include in the “family association” group'),
143600c92694SGreg Roach            'INDI:*:ADDR:_LIST3'           => new CustomElement('Include in the “birthday” group'),
143700c92694SGreg Roach            'INDI:*:ADDR:_LIST4'           => new CustomElement('Include in the “research” group'),
143800c92694SGreg Roach            'INDI:*:ADDR:_LIST5'           => new CustomElement('Include in the “christmas” group'),
143900c92694SGreg Roach            'INDI:*:ADDR:_LIST6'           => new CustomElement('Include in the “holiday” group'),
144000c92694SGreg Roach            'INDI:*:ADDR:_NAME'            => new CustomElement(I18N::translate('Name of addressee')),
144100c92694SGreg Roach            'INDI:*:ADDR:_PRIV'            => new CustomElement(I18N::translate('Private')),
144200c92694SGreg Roach            'INDI:*:ADDR:_SORT'            => new CustomElement('The spelling of a name to be used when sorting addresses for a report'),
144300c92694SGreg Roach            'INDI:*:ADDR:_TAG'             => new CustomElement('Tag'),
144400c92694SGreg Roach            'INDI:*:PLAC:_TAG'             => new CustomElement('Tag'),
144500c92694SGreg Roach            'INDI:*:PLAC:_VERI'            => new CustomElement(I18N::translate('Verified')),
1446082e1164SGreg Roach            'INDI:*:SOUR:DATE'             => new DateValue(I18N::translate('Date')),
144700c92694SGreg Roach            'INDI:*:SOUR:_VERI'            => new CustomElement(I18N::translate('Verified')),
144800c92694SGreg Roach            'INDI:*:_PRIV'                 => new CustomElement(I18N::translate('Private')),
144900c92694SGreg Roach            'INDI:EVEN:_OVER'              => new CustomElement('Event sentence override'),
145000c92694SGreg Roach            'INDI:SOUR:_VERI'              => new CustomElement(I18N::translate('Verified')),
145100c92694SGreg Roach            'INDI:_TAG'                    => new CustomElement('Tag'),
145200c92694SGreg Roach            'INDI:_TAG2'                   => new CustomElement('Tag #2'),
145300c92694SGreg Roach            'INDI:_TAG3'                   => new CustomElement('Tag #3'),
145400c92694SGreg Roach            'INDI:_TAG4'                   => new CustomElement('Tag #4'),
145500c92694SGreg Roach            'INDI:_TAG5'                   => new CustomElement('Tag #5'),
145600c92694SGreg Roach            'INDI:_TAG6'                   => new CustomElement('Tag #6'),
145700c92694SGreg Roach            'INDI:_TAG7'                   => new CustomElement('Tag #7'),
145800c92694SGreg Roach            'INDI:_TAG8'                   => new CustomElement('Tag #8'),
145900c92694SGreg Roach            'INDI:_TAG9'                   => new CustomElement('Tag #9'),
146000c92694SGreg Roach            'INDI:_TODO'                   => new CustomElement(I18N::translate('Research task')),
146100c92694SGreg Roach            'INDI:_TODO:PRTY'              => new CustomElement(I18N::translate('Priority')),
146200c92694SGreg Roach            'INDI:_TODO:_CAT'              => new CustomElement(I18N::translate('Category')),
146300c92694SGreg Roach            'INDI:_TODO:_CDATE'            => new CustomElement(I18N::translate('Completion date')),
146400c92694SGreg Roach            'INDI:_TODO:_LOCL'             => new CustomElement(I18N::translate('Location')),
146500c92694SGreg Roach            'INDI:_TODO:_RDATE'            => new CustomElement(I18N::translate('Reminder date')),
146600c92694SGreg Roach            'INDI:_UID'                    => new PafUid(I18N::translate('Unique identifier')),
146700c92694SGreg Roach            'INDI:_URL'                    => new AddressWebPage(I18N::translate('URL')),
146800c92694SGreg Roach            'OBJE:_DATE'                   => new CustomElement(I18N::translate('Date')),
146900c92694SGreg Roach            'OBJE:_PRIM'                   => new CustomElement(I18N::translate('Highlighted image')),
147000c92694SGreg Roach            'OBJE:_SCBK'                   => new CustomElement(I18N::translate('Scrapbook')),
147100c92694SGreg Roach            'OBJE:_SOUND'                  => new CustomElement(I18N::translate('Audio')),
147200c92694SGreg Roach            'OBJE:_TYPE'                   => new CustomElement(I18N::translate('Type')),
147300c92694SGreg Roach            'OBJE:_UID'                    => new PafUid(I18N::translate('Unique identifier')),
147400c92694SGreg Roach            'REPO:_UID'                    => new PafUid(I18N::translate('Unique identifier')),
147500c92694SGreg Roach            'SOUR:_ITALIC'                 => new CustomElement('The source title should be printed in italic on reports'),
147600c92694SGreg Roach            'SOUR:_PAREN'                  => new CustomElement('The source title should be printed within parentheses on reports'),
147700c92694SGreg Roach            'SOUR:_QUOTED'                 => new CustomElement('The source title should be printed within quotes on reports'),
147800c92694SGreg Roach            'SOUR:_TAG'                    => new CustomElement('Exclude the source citation detail on reports'),
147900c92694SGreg Roach            'SOUR:_TAG2'                   => new CustomElement('Exclude the source citation on reports'),
148000c92694SGreg Roach            'SOUR:_TAG3'                   => new CustomElement('Include the source citation detail text on reports'),
148100c92694SGreg Roach            'SOUR:_TAG4'                   => new CustomElement('Include the source citation detail notes on reports'),
148200c92694SGreg Roach            'SOUR:_UID'                    => new PafUid(I18N::translate('Unique identifier')),
148300c92694SGreg Roach        ];
148400c92694SGreg Roach    }
148500c92694SGreg Roach
148600c92694SGreg Roach    /**
148700c92694SGreg Roach     * @return array<string,ElementInterface>
148800c92694SGreg Roach     */
148954671e98SGreg Roach    private function myHeritageTags(): array
149054671e98SGreg Roach    {
149154671e98SGreg Roach        return [
149254671e98SGreg Roach            'FAM:*:_UID'                  => new PafUid(I18N::translate('Unique identifier')),
149354671e98SGreg Roach            'FAM:*:RIN'                   => new AutomatedRecordId(I18N::translate('Record ID number')),
149454671e98SGreg Roach            'HEAD:DATE:_TIMEZONE'         => new CustomElement(I18N::translate('Time zone')),
149554671e98SGreg Roach            'HEAD:SOUR:_RTLSAVE'          => new CustomElement(I18N::translate('Text direction')), // ?
149654671e98SGreg Roach            'HEAD:_RINS'                  => new CustomElement(I18N::translate('Record ID number')), // ?
149754671e98SGreg Roach            'HEAD:_UID'                   => new PafUid(I18N::translate('Unique identifier')),
149854671e98SGreg Roach            'HEAD:_PROJECT_GUID'          => new PafUid(I18N::translate('Unique identifier')),
149954671e98SGreg Roach            'HEAD:_EXPORTED_FROM_SITE_ID' => new CustomElement(I18N::translate('Site identification code')),
150054671e98SGreg Roach            'HEAD:_DESCRIPTION_AWARE'     => new CustomElement(I18N::translate('Description')), // ?
150154671e98SGreg Roach            'INDI:*:_UID'                 => new PafUid(I18N::translate('Unique identifier')),
150254671e98SGreg Roach            'INDI:*:RIN'                  => new AutomatedRecordId(I18N::translate('Record ID number')),
150354671e98SGreg Roach            '*:_UPD'                      => new CustomElement(I18N::translate('Updated at')),
150454671e98SGreg Roach        ];
150554671e98SGreg Roach    }
150654671e98SGreg Roach
150754671e98SGreg Roach    /**
150854671e98SGreg Roach     * @return array<string,ElementInterface>
150954671e98SGreg Roach     */
151000c92694SGreg Roach    private function personalAncestralFileTags(): array
151100c92694SGreg Roach    {
151200c92694SGreg Roach        return [
151300c92694SGreg Roach            'FAM:_UID'        => new PafUid(I18N::translate('Unique identifier')),
151400c92694SGreg Roach            'INDI:NAME:_ADPN' => new NamePersonal(I18N::translate('Adopted name'), []),
151500c92694SGreg Roach            'INDI:NAME:_AKA'  => new NamePersonal(I18N::translate('Also known as'), []),
151600c92694SGreg Roach            'INDI:NAME:_AKAN' => new NamePersonal(I18N::translate('Also known as'), []),
151700c92694SGreg Roach            'INDI:ADDR'       => new AddressLine(I18N::translate('Address')),
151800c92694SGreg Roach            'INDI:ADDR:ADR1'  => new AddressLine1(I18N::translate('Address line 1')),
151900c92694SGreg Roach            'INDI:ADDR:ADR2'  => new AddressLine2(I18N::translate('Address line 2')),
152000c92694SGreg Roach            'INDI:ADDR:CITY'  => new AddressCity(I18N::translate('City')),
152100c92694SGreg Roach            'INDI:ADDR:CTRY'  => new AddressCountry(I18N::translate('Country')),
152200c92694SGreg Roach            'INDI:ADDR:POST'  => new AddressPostalCode(I18N::translate('Postal code')),
152300c92694SGreg Roach            'INDI:ADDR:STAE'  => new AddressState(I18N::translate('State')),
152400c92694SGreg Roach            'INDI:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')),
152500c92694SGreg Roach            'INDI:EMAIL'      => new AddressEmail(I18N::translate('Email address')),
152600c92694SGreg Roach            'INDI:FAX'        => new AddressFax(I18N::translate('Fax')),
152700c92694SGreg Roach            'INDI:PHON'       => new PhoneNumber(I18N::translate('Phone')),
152800c92694SGreg Roach            'INDI:URL'        => new CustomElement(I18N::translate('URL')),
152900c92694SGreg Roach            'INDI:_UID'       => new PafUid(I18N::translate('Unique identifier')),
153000c92694SGreg Roach            'OBJE:_UID'       => new PafUid(I18N::translate('Unique identifier')),
153100c92694SGreg Roach            'REPO:_UID'       => new PafUid(I18N::translate('Unique identifier')),
153200c92694SGreg Roach            'SOUR:_UID'       => new PafUid(I18N::translate('Unique identifier')),
153300c92694SGreg Roach        ];
153400c92694SGreg Roach    }
153500c92694SGreg Roach
153600c92694SGreg Roach    /**
153700c92694SGreg Roach     * @return array<string,ElementInterface>
153800c92694SGreg Roach     */
153900c92694SGreg Roach    private function phpGedViewTags(): array
154000c92694SGreg Roach    {
154100c92694SGreg Roach        return [
154200c92694SGreg Roach            'FAM:CHAN:_PGVU'        => new WebtreesUser(I18N::translate('Author of last change')),
154300c92694SGreg Roach            'FAM:COMM'              => new CustomElement(I18N::translate('Comment')),
154400c92694SGreg Roach            'INDI:*:ASSO'           => new XrefAssociate(I18N::translate('Associate')),
154500c92694SGreg Roach            'INDI:*:ASSO:RELA'      => new RelationIsDescriptor(I18N::translate('Relationship')),
154600c92694SGreg Roach            'INDI:*:PLAC:_HEB'      => new NoteStructure(I18N::translate('Place in Hebrew')),
154700c92694SGreg Roach            'INDI:ADDR'             => new AddressLine(I18N::translate('Address')),
1548*79509d8eSGreg Roach            'INDI:BIRT:DATE:TIME'   => new TimeValue(I18N::translate('Time of birth')),
154900c92694SGreg Roach            'INDI:BURI:CEME'        => new CustomElement(I18N::translate('Cemetery')),
155000c92694SGreg Roach            'INDI:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
155100c92694SGreg Roach            'INDI:COMM'             => new CustomElement(I18N::translate('Comment')),
1552*79509d8eSGreg Roach            'INDI:DEAT:DATE:TIME'   => new TimeValue(I18N::translate('Time of death')),
155300c92694SGreg Roach            'INDI:EMAIL'            => new AddressEmail(I18N::translate('Email address')),
155400c92694SGreg Roach            'INDI:NAME:_HEB'        => new NamePersonal(I18N::translate('Name in Hebrew'), []),
155500c92694SGreg Roach            'INDI:_FNRL'            => new CustomIndividualEvent(I18N::translate('Funeral')),
155600c92694SGreg Roach            'INDI:_HOL'             => new CustomIndividualEvent(I18N::translate('Holocaust')),
155700c92694SGreg Roach            'INDI:_MILI'            => new CustomIndividualEvent(I18N::translate('Military')),
155800c92694SGreg Roach            'INDI:_PGV_OBJS'        => new XrefMedia(I18N::translate('Re-order media')),
155900c92694SGreg Roach            'NOTE:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
156000c92694SGreg Roach            'OBJE:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
156100c92694SGreg Roach            'OBJE:_PRIM'            => new CustomElement(I18N::translate('Highlighted image')),
156200c92694SGreg Roach            'OBJE:_THUM'            => new CustomElement(I18N::translate('Thumbnail image')),
156300c92694SGreg Roach            'REPO:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
156400c92694SGreg Roach            'SOUR:CHAN:_PGVU'       => new WebtreesUser(I18N::translate('Author of last change')),
156500c92694SGreg Roach            'SOUR:SERV'             => new CustomElement(I18N::translate('Remote server')),
156600c92694SGreg Roach            'SOUR:URL'              => new AddressWebPage(I18N::translate('URL')),
156700c92694SGreg Roach            'SOUR:URL:TYPE'         => new CustomElement(I18N::translate('Type')), // e.g. "FamilySearch"
156800c92694SGreg Roach            'SOUR:URL:_BLOCK'       => new CustomElement(I18N::translate('Block')), // "e.g. "false"
156900c92694SGreg Roach            'SOUR:_DBID'            => new CustomElement(I18N::translate('Database name')),
157000c92694SGreg Roach            'SOUR:_DBID:_PASS'      => new CustomElement(I18N::translate('Database password')),
157100c92694SGreg Roach            'SOUR:_DBID:_PASS:RESN' => new RestrictionNotice(I18N::translate('Restriction')),
157200c92694SGreg Roach            'SOUR:_DBID:_USER'      => new CustomElement(I18N::translate('Database user account')),
157300c92694SGreg Roach        ];
157400c92694SGreg Roach    }
157500c92694SGreg Roach
157600c92694SGreg Roach    /**
157700c92694SGreg Roach     * @return array<string,ElementInterface>
157800c92694SGreg Roach     */
157900c92694SGreg Roach    private function reunionTags(): array
158000c92694SGreg Roach    {
158100c92694SGreg Roach        return [
158200c92694SGreg Roach            'FAM:_UID'   => new PafUid(I18N::translate('Unique identifier')),
158300c92694SGreg Roach            'INDI:CITN'  => new CustomElement(I18N::translate('Citizenship')),
158400c92694SGreg Roach            'INDI:EMAL'  => new AddressEmail(I18N::translate('Email address')),
158500c92694SGreg Roach            'INDI:_LEGA' => new CustomElement(I18N::translate('Legatee')),
158600c92694SGreg Roach            'INDI:_MDCL' => new CustomElement(I18N::translate('Medical')),
15874c10b11dSGreg Roach            'INDI:_PURC' => /* I18N: GEDCOM tag _PURC */ new CustomElement(I18N::translate('Land purchase')),
15884c10b11dSGreg Roach            'INDI:_SALE' => /* I18N: GEDCOM tag _SALE */ new CustomElement(I18N::translate('Land sale')),
158900c92694SGreg Roach            'INDI:_UID'  => new PafUid(I18N::translate('Unique identifier')),
159000c92694SGreg Roach            'OBJE:_UID'  => new PafUid(I18N::translate('Unique identifier')),
159100c92694SGreg Roach            'REPO:_UID'  => new PafUid(I18N::translate('Unique identifier')),
159200c92694SGreg Roach            'SOUR:_UID'  => new PafUid(I18N::translate('Unique identifier')),
159300c92694SGreg Roach        ];
159400c92694SGreg Roach    }
159500c92694SGreg Roach
159600c92694SGreg Roach    /**
159700c92694SGreg Roach     * @return array<string,ElementInterface>
159800c92694SGreg Roach     */
159900c92694SGreg Roach    private function rootsMagicTags(): array
160000c92694SGreg Roach    {
160100c92694SGreg Roach        return [
160200c92694SGreg Roach            'FAM:_UID'          => new PafUid(I18N::translate('Unique identifier')),
160300c92694SGreg Roach            'INDI:_DNA'         => new CustomElement(I18N::translate('DNA markers')),
160400c92694SGreg Roach            'INDI:_UID'         => new PafUid(I18N::translate('Unique identifier')),
160500c92694SGreg Roach            'INDI:_WEBTAG'      => new CustomElement(I18N::translate('External link')),
160600c92694SGreg Roach            'INDI:_WEBTAG:NAME' => new CustomElement(I18N::translate('Text')),
160700c92694SGreg Roach            'INDI:_WEBTAG:URL'  => new AddressWebPage(I18N::translate('URL')),
160800c92694SGreg Roach            'OBJE:_UID'         => new PafUid(I18N::translate('Unique identifier')),
160900c92694SGreg Roach            'REPO:_UID'         => new PafUid(I18N::translate('Unique identifier')),
161000c92694SGreg Roach            'SOUR:_BIBL'        => new CustomElement(I18N::translate('Bibliography')),
161100c92694SGreg Roach            'SOUR:_SUBQ'        => new CustomElement(I18N::translate('Abbreviation')),
161200c92694SGreg Roach            'SOUR:_UID'         => new PafUid(I18N::translate('Unique identifier')),
161300c92694SGreg Roach        ];
161400c92694SGreg Roach    }
161500c92694SGreg Roach
161600c92694SGreg Roach    /**
161700c92694SGreg Roach     * @return array<string,ElementInterface>
161800c92694SGreg Roach     */
161900c92694SGreg Roach    private function theMasterGenealogistTags(): array
162000c92694SGreg Roach    {
162100c92694SGreg Roach        return [
162200c92694SGreg Roach            'INDI:*:_SDATE' => new DateValue(I18N::translate('Sort date')),
162300c92694SGreg Roach            'INDI:NAME:_DATE'  => new DateValue(I18N::translate('Date')),
162400c92694SGreg Roach        ];
162500c92694SGreg Roach    }
162600c92694SGreg Roach
162700c92694SGreg Roach    /**
162800c92694SGreg Roach     * Custom tags for webtrees.
162900c92694SGreg Roach     *
163000c92694SGreg Roach     * @return array<string,ElementInterface>
163100c92694SGreg Roach     */
163200c92694SGreg Roach    private function webtreesTags(): array
163300c92694SGreg Roach    {
163400c92694SGreg Roach        return [
163500c92694SGreg Roach            'FAM:CHAN:_WT_USER'           => new WebtreesUser(I18N::translate('Author of last change')),
163600c92694SGreg Roach            'FAM:*:_ASSO'                 => new XrefAssociate(I18N::translate('Associate')),
163700c92694SGreg Roach            'FAM:*:_ASSO:NOTE'            => new NoteStructure(I18N::translate('Note')),
163800c92694SGreg Roach            'FAM:*:_ASSO:RELA'            => new RelationIsDescriptor(I18N::translate('Relationship')),
163900c92694SGreg Roach            'FAM:*:_ASSO:SOUR'            => new XrefSource(I18N::translate('Source citation')),
164000c92694SGreg Roach            'FAM:*:_ASSO:SOUR:DATA'       => new SourceData(I18N::translate('Data')),
164100c92694SGreg Roach            'FAM:*:_ASSO:SOUR:DATA:DATE'  => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
164200c92694SGreg Roach            'FAM:*:_ASSO:SOUR:DATA:TEXT'  => new TextFromSource(I18N::translate('Text')),
164300c92694SGreg Roach            'FAM:*:_ASSO:SOUR:EVEN'       => new EventTypeCitedFrom(I18N::translate('Event')),
164400c92694SGreg Roach            'FAM:*:_ASSO:SOUR:EVEN:ROLE'  => new RoleInEvent(I18N::translate('Role')),
164500c92694SGreg Roach            'FAM:*:_ASSO:SOUR:NOTE'       => new NoteStructure(I18N::translate('Note')),
164600c92694SGreg Roach            'FAM:*:_ASSO:SOUR:OBJE'       => new XrefMedia(I18N::translate('Media object')),
164700c92694SGreg Roach            'FAM:*:_ASSO:SOUR:PAGE'       => new WhereWithinSource(I18N::translate('Citation details')),
164800c92694SGreg Roach            'FAM:*:_ASSO:SOUR:QUAY'       => new CertaintyAssessment(I18N::translate('Quality of data')),
164900c92694SGreg Roach            'INDI:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
165000c92694SGreg Roach            'INDI:*:_ASSO'                => new XrefAssociate(I18N::translate('Associate')),
165100c92694SGreg Roach            'INDI:*:_ASSO:NOTE'           => new NoteStructure(I18N::translate('Note')),
165200c92694SGreg Roach            'INDI:*:_ASSO:RELA'           => new RelationIsDescriptor(I18N::translate('Relationship')),
165300c92694SGreg Roach            'INDI:*:_ASSO:SOUR'           => new XrefSource(I18N::translate('Source citation')),
165400c92694SGreg Roach            'INDI:*:_ASSO:SOUR:DATA'      => new SourceData(I18N::translate('Data')),
165500c92694SGreg Roach            'INDI:*:_ASSO:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')),
165600c92694SGreg Roach            'INDI:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')),
165700c92694SGreg Roach            'INDI:*:_ASSO:SOUR:EVEN'      => new EventTypeCitedFrom(I18N::translate('Event')),
165800c92694SGreg Roach            'INDI:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')),
165900c92694SGreg Roach            'INDI:*:_ASSO:SOUR:NOTE'      => new NoteStructure(I18N::translate('Note')),
166000c92694SGreg Roach            'INDI:*:_ASSO:SOUR:OBJE'      => new XrefMedia(I18N::translate('Media object')),
166100c92694SGreg Roach            'INDI:*:_ASSO:SOUR:PAGE'      => new WhereWithinSource(I18N::translate('Citation details')),
166200c92694SGreg Roach            'INDI:*:_ASSO:SOUR:QUAY'      => new CertaintyAssessment(I18N::translate('Quality of data')),
166300c92694SGreg Roach            'NOTE:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
166400c92694SGreg Roach            'NOTE:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
166500c92694SGreg Roach            'OBJE:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
166600c92694SGreg Roach            'OBJE:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
166700c92694SGreg Roach            'REPO:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
166800c92694SGreg Roach            'REPO:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
166900c92694SGreg Roach            'SOUR:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
167000c92694SGreg Roach            'SOUR:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
167100c92694SGreg Roach            'SUBM:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
167200c92694SGreg Roach            'SUBM:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
167300c92694SGreg Roach            '_LOC:CHAN:_WT_USER'          => new WebtreesUser(I18N::translate('Author of last change')),
167400c92694SGreg Roach            '_LOC:RESN'                   => new RestrictionNotice(I18N::translate('Restriction')),
167500c92694SGreg Roach        ];
167600c92694SGreg Roach    }
167700c92694SGreg Roach
167800c92694SGreg Roach    /**
167900c92694SGreg Roach     * @return array<string,array<int,array<int,string>>>
168000c92694SGreg Roach     */
168100c92694SGreg Roach    private function webtreesSubTags(): array
168200c92694SGreg Roach    {
168300c92694SGreg Roach        return [
168400c92694SGreg Roach            'FAM'              => [['_UID', '0:M']],
168500c92694SGreg Roach            'FAM:*:SOUR'       => [['NOTE', '0:0']],
168600c92694SGreg Roach            'FAM:*:SOUR:DATA'  => [['TEXT', '0:1']],
168700c92694SGreg Roach            'FAM:ANUL'         => [['_ASSO', '0:M', 'NOTE']],
168800c92694SGreg Roach            'FAM:CENS'         => [['_ASSO', '0:M', 'NOTE']],
168900c92694SGreg Roach            'FAM:CHAN'         => [['_WT_USER', '0:1']],
169000c92694SGreg Roach            'FAM:DIV'          => [['_ASSO', '0:M', 'NOTE']],
169100c92694SGreg Roach            'FAM:DIVF'         => [['_ASSO', '0:M', 'NOTE']],
169200c92694SGreg Roach            'FAM:ENGA'         => [['_ASSO', '0:M', 'NOTE']],
169300c92694SGreg Roach            'FAM:EVEN'         => [['_ASSO', '0:M', 'NOTE']],
169400c92694SGreg Roach            'FAM:MARB'         => [['_ASSO', '0:M', 'NOTE']],
169500c92694SGreg Roach            'FAM:MARC'         => [['_ASSO', '0:M', 'NOTE']],
169600c92694SGreg Roach            'FAM:MARL'         => [['_ASSO', '0:M', 'NOTE']],
169700c92694SGreg Roach            'FAM:MARR'         => [['_ASSO', '2:M', 'NOTE']],
169800c92694SGreg Roach            'FAM:MARS'         => [['_ASSO', '0:M', 'NOTE']],
169900c92694SGreg Roach            'FAM:SLGS'         => [['_ASSO', '0:M', 'NOTE']],
170000c92694SGreg Roach            'FAM:SOUR:DATA'    => [['TEXT', '0:1']],
170100c92694SGreg Roach            'INDI'             => [['_UID', '0:M']],
170200c92694SGreg Roach            'INDI:*:SOUR:DATA' => [['TEXT', '0:1']],
170300c92694SGreg Roach            'INDI:ADOP'        => [['_ASSO', '0:M', 'NOTE']],
170400c92694SGreg Roach            'INDI:BAPL'        => [['_ASSO', '0:M', 'NOTE']],
170500c92694SGreg Roach            'INDI:BAPM'        => [['_ASSO', '2:M', 'NOTE']],
170600c92694SGreg Roach            'INDI:BARM'        => [['_ASSO', '0:M', 'NOTE']],
170700c92694SGreg Roach            'INDI:BASM'        => [['_ASSO', '0:M', 'NOTE']],
170800c92694SGreg Roach            'INDI:BIRT'        => [['_ASSO', '0:M', 'NOTE'], ['FAMC', '0:0']],
170900c92694SGreg Roach            'INDI:BURI'        => [['_ASSO', '0:M', 'NOTE']],
171000c92694SGreg Roach            'INDI:CENS'        => [['_ASSO', '0:M', 'NOTE']],
171100c92694SGreg Roach            'INDI:CHAN'        => [['_WT_USER', '0:1']],
171200c92694SGreg Roach            'INDI:CHR'         => [['_ASSO', '2:M', 'NOTE']],
171300c92694SGreg Roach            'INDI:CHRA'        => [['_ASSO', '0:M', 'NOTE']],
171400c92694SGreg Roach            'INDI:CONF'        => [['_ASSO', '0:M', 'NOTE']],
171500c92694SGreg Roach            'INDI:CONL'        => [['_ASSO', '0:M', 'NOTE']],
171600c92694SGreg Roach            'INDI:CREM'        => [['_ASSO', '0:M', 'NOTE']],
171700c92694SGreg Roach            'INDI:DEAT'        => [['_ASSO', '0:M', 'NOTE']],
171800c92694SGreg Roach            'INDI:EDUC'        => [['_ASSO', '0:M', 'NOTE']],
171900c92694SGreg Roach            'INDI:EMIG'        => [['_ASSO', '0:M', 'NOTE']],
172000c92694SGreg Roach            'INDI:ENDL'        => [['_ASSO', '0:M', 'NOTE']],
172100c92694SGreg Roach            'INDI:EVEN'        => [['_ASSO', '0:M', 'NOTE']],
172200c92694SGreg Roach            'INDI:GRAD'        => [['_ASSO', '0:M', 'NOTE']],
172300c92694SGreg Roach            'INDI:IMMI'        => [['_ASSO', '0:M', 'NOTE']],
172400c92694SGreg Roach            'INDI:NAME:FONE'   => [['NPFX', '0:0'], ['GIVN', '0:0'], ['SPFX', '0:0'], ['SURN', '0:0'], ['NSFX', '0:0'], ['NICK', '0:0']],
172500c92694SGreg Roach            'INDI:NAME:ROMN'   => [['NPFX', '0:0'], ['GIVN', '0:0'], ['SPFX', '0:0'], ['SURN', '0:0'], ['NSFX', '0:0'], ['NICK', '0:0']],
172600c92694SGreg Roach            'INDI:NATU'        => [['_ASSO', '0:M', 'NOTE']],
172700c92694SGreg Roach            'INDI:OCCU'        => [['_ASSO', '0:M', 'NOTE']],
172800c92694SGreg Roach            'INDI:ORDN'        => [['_ASSO', '0:M', 'NOTE']],
172900c92694SGreg Roach            'INDI:PROB'        => [['_ASSO', '0:M', 'NOTE']],
173000c92694SGreg Roach            'INDI:PROP'        => [['_ASSO', '0:M', 'NOTE']],
173100c92694SGreg Roach            'INDI:RESI'        => [['_ASSO', '0:M', 'NOTE']],
173200c92694SGreg Roach            'INDI:RETI'        => [['_ASSO', '0:M', 'NOTE']],
173300c92694SGreg Roach            'INDI:SLGC'        => [['_ASSO', '0:M', 'NOTE']],
173400c92694SGreg Roach            'INDI:SOUR:DATA'   => [['TEXT', '0:1']],
173500c92694SGreg Roach            'INDI:TITL'        => [['_ASSO', '0:M', 'NOTE']],
173600c92694SGreg Roach            'INDI:WILL'        => [['_ASSO', '0:M', 'NOTE']],
173700c92694SGreg Roach            'NOTE'             => [['RESN', '0:1', 'CHAN']],
173800c92694SGreg Roach            'NOTE:CHAN'        => [['_WT_USER', '0:1']],
173900c92694SGreg Roach            'NOTE:SOUR'        => [['NOTE', '0:0']],
174000c92694SGreg Roach            'NOTE:SOUR:DATA'   => [['TEXT', '0:1']],
174100c92694SGreg Roach            'OBJE'             => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']],
174200c92694SGreg Roach            'OBJE:CHAN'        => [['_WT_USER', '0:1']],
174300c92694SGreg Roach            'OBJE:SOUR'        => [['NOTE', '0:0']],
174400c92694SGreg Roach            'OBJE:SOUR:DATA'   => [['TEXT', '0:1']],
174500c92694SGreg Roach            'REPO'             => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']],
174600c92694SGreg Roach            'REPO:CHAN'        => [['_WT_USER', '0:1']],
174700c92694SGreg Roach            'SOUR'             => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']],
174800c92694SGreg Roach            'SOUR:CHAN'        => [['_WT_USER', '0:1']],
174900c92694SGreg Roach            'SUBM'             => [['RESN', '0:1', 'CHAN']],
175000c92694SGreg Roach            'SUBM:CHAN'        => [['_WT_USER', '0:1']],
175100c92694SGreg Roach        ];
175200c92694SGreg Roach    }
175300c92694SGreg Roach
175400c92694SGreg Roach    /**
175500c92694SGreg Roach     * @return array<string,array<int,array<int,string>>>
175600c92694SGreg Roach     */
175700c92694SGreg Roach    private function customSubTags(): array
175800c92694SGreg Roach    {
175900c92694SGreg Roach        $custom_family_tags     = array_filter(explode(',', Site::getPreference('CUSTOM_FAMILY_TAGS')));
176000c92694SGreg Roach        $custom_individual_tags = array_filter(explode(',', Site::getPreference('CUSTOM_INDIVIDUAL_TAGS')));
176100c92694SGreg Roach
176200c92694SGreg Roach        $subtags = [
176300c92694SGreg Roach            'FAM'  => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_family_tags),
176400c92694SGreg Roach            'INDI' => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_individual_tags),
176500c92694SGreg Roach        ];
176600c92694SGreg Roach
1767d4193d5fSGreg Roach        if (Site::getPreference('CUSTOM_TIME_TAGS') === '1') {
1768d4193d5fSGreg Roach            $subtags['INDI:BIRT:DATE'][] = ['TIME', '0:1'];
1769d4193d5fSGreg Roach            $subtags['INDI:DEAT:DATE'][] = ['TIME', '0:1'];
1770d4193d5fSGreg Roach        }
1771d4193d5fSGreg Roach
177200c92694SGreg Roach        if (Site::getPreference('CUSTOM_GEDCOM_L_TAGS') === '1') {
177300c92694SGreg Roach            $subtags['FAM'][]               = ['_ASSO', '0:M'];
177400c92694SGreg Roach            $subtags['FAM'][]               = ['_STAT', '0:1'];
177500c92694SGreg Roach            $subtags['FAM'][]               = ['_UID', '0:M'];
1776f91876f3SGreg Roach            $subtags['FAM:*:ADDR']          = [['_NAME', '0:1:?', 'ADR1']];
177700c92694SGreg Roach            $subtags['FAM:*:PLAC']          = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
177800c92694SGreg Roach            $subtags['FAM:ENGA:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
177900c92694SGreg Roach            $subtags['FAM:MARB:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
17801c2da29dSRichard Cissée            $subtags['FAM:MARR']            = [['_WITN', '0:1']];
178100c92694SGreg Roach            $subtags['FAM:MARR:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
178200c92694SGreg Roach            $subtags['FAM:SLGS:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
178300c92694SGreg Roach            $subtags['INDI'][]              = ['_UID', '0:M'];
1784f91876f3SGreg Roach            $subtags['INDI:*:ADDR']         = [['_NAME', '0:1:?', 'ADR1']];
178500c92694SGreg Roach            $subtags['INDI:*:PLAC']         = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
178600c92694SGreg Roach            $subtags['INDI:ADOP:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
178700c92694SGreg Roach            $subtags['INDI:BAPL:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
17881c2da29dSRichard Cissée            $subtags['INDI:BAPM']           = [['_GODP', '0:1'], ['_WITN', '0:1']];
178900c92694SGreg Roach            $subtags['INDI:BAPM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
179000c92694SGreg Roach            $subtags['INDI:BARM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
179100c92694SGreg Roach            $subtags['INDI:BASM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
179200c92694SGreg Roach            $subtags['INDI:BIRT:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
179300c92694SGreg Roach            $subtags['INDI:BLES:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
179400c92694SGreg Roach            $subtags['INDI:BURI:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
179500c92694SGreg Roach            $subtags['INDI:CENS:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
17961c2da29dSRichard Cissée            $subtags['INDI:CHR']            = [['_GODP', '0:1'], ['_WITN', '0:1']];
179700c92694SGreg Roach            $subtags['INDI:CHR:PLAC']       = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
179800c92694SGreg Roach            $subtags['INDI:CHRA:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
179900c92694SGreg Roach            $subtags['INDI:CONF:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
180000c92694SGreg Roach            $subtags['INDI:CONL:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
180100c92694SGreg Roach            $subtags['INDI:CREM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
180200c92694SGreg Roach            $subtags['INDI:DEAT:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
180300c92694SGreg Roach            $subtags['INDI:EMIG:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
180400c92694SGreg Roach            $subtags['INDI:ENDL:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
180500c92694SGreg Roach            $subtags['INDI:EVEN:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
180600c92694SGreg Roach            $subtags['INDI:FCOM:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
180700c92694SGreg Roach            $subtags['INDI:IMMI:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
180800c92694SGreg Roach            $subtags['INDI:NAME']           = [['_RUFN', '0:1']];
180900c92694SGreg Roach            $subtags['INDI:NATU:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
181000c92694SGreg Roach            $subtags['INDI:ORDN:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
181100c92694SGreg Roach            $subtags['INDI:RESI:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
181200c92694SGreg Roach            $subtags['INDI:SLGC:PLAC']      = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
181300c92694SGreg Roach            $subtags['NOTE']                = [['_UID', '0:M']];
181400c92694SGreg Roach            $subtags['OBJE']                = [['_PRIM', '0:1:?'], ['_UID', '0:M']];
181500c92694SGreg Roach            $subtags['REPO']                = [['_UID', '0:M']];
181600c92694SGreg Roach            $subtags['REPO:ADDR']           = [['_NAME', '0:1', 'ADR1']];
181700c92694SGreg Roach            $subtags['SOUR']                = [['_UID', '0:M']];
181800c92694SGreg Roach            $subtags['SOUR:DATA:EVEN:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']];
181900c92694SGreg Roach            $subtags['SUBM']                = [['_UID', '0:M']];
182000c92694SGreg Roach            $subtags['SUBM:ADDR']           = [['_NAME', '0:1', 'ADR1']];
182100c92694SGreg Roach        }
182200c92694SGreg Roach
182300c92694SGreg Roach        return $subtags;
182400c92694SGreg Roach    }
182500c92694SGreg Roach
1826e669bb4bSGreg Roach    public function registerTags(ElementFactoryInterface $element_factory, bool $include_custom_tags): void
182700c92694SGreg Roach    {
182800c92694SGreg Roach        // Standard GEDCOM.
1829e669bb4bSGreg Roach        $element_factory->registerTags($this->gedcom551Tags());
183000c92694SGreg Roach
183100c92694SGreg Roach        // webtrees extensions.
1832e669bb4bSGreg Roach        $element_factory->registerTags($this->webtreesTags());
1833e669bb4bSGreg Roach
1834e669bb4bSGreg Roach        if ($include_custom_tags) {
1835e669bb4bSGreg Roach            // webtrees extensions.
1836e669bb4bSGreg Roach            $element_factory->registerSubTags($this->webtreesSubTags());
183700c92694SGreg Roach
183800c92694SGreg Roach            // Third-party extensions.
1839cb0c239dSGreg Roach            $element_factory->registerTags($this->aldfaerTags());
1840e669bb4bSGreg Roach            $element_factory->registerTags($this->ancestryTags());
1841e669bb4bSGreg Roach            $element_factory->registerTags($this->brothersKeeperTags());
1842e669bb4bSGreg Roach            $element_factory->registerTags($this->familySearchTags());
1843e669bb4bSGreg Roach            $element_factory->registerTags($this->familyTreeBuilderTags());
1844e669bb4bSGreg Roach            $element_factory->registerTags($this->familyTreeMakerTags());
1845e669bb4bSGreg Roach            $element_factory->registerTags($this->gedcomLTags());
1846e669bb4bSGreg Roach            $element_factory->registerTags($this->genPlusWinTags());
1847e669bb4bSGreg Roach            $element_factory->registerTags($this->legacyTags());
184854671e98SGreg Roach            $element_factory->registerTags($this->myHeritageTags());
1849e669bb4bSGreg Roach            $element_factory->registerTags($this->personalAncestralFileTags());
1850e669bb4bSGreg Roach            $element_factory->registerTags($this->phpGedViewTags());
1851e669bb4bSGreg Roach            $element_factory->registerTags($this->reunionTags());
1852e669bb4bSGreg Roach            $element_factory->registerTags($this->rootsMagicTags());
1853e669bb4bSGreg Roach            $element_factory->registerTags($this->theMasterGenealogistTags());
185400c92694SGreg Roach
185500c92694SGreg Roach            // Creating tags from all the above are grouped into one place
1856e669bb4bSGreg Roach            $element_factory->registerSubTags($this->customSubTags());
1857e669bb4bSGreg Roach        }
185800c92694SGreg Roach    }
18590f471f91SGreg Roach}
1860