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; 65701f5d18SGreg Roachuse Fisharebest\Webtrees\Elements\Creation; 6600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Cremation; 6700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomElement; 6800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomEvent; 6900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomFact; 7000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomFamilyEvent; 7100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\CustomIndividualEvent; 7200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\DateLdsOrd; 7300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\DateValue; 7400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Death; 7500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\DescriptiveTitle; 7600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Divorce; 7700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\DivorceFiled; 7800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Emigration; 7900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EmptyElement; 8000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Engagement; 8100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EventAttributeType; 8200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EventOrFactClassification; 8300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EventsRecorded; 8400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\EventTypeCitedFrom; 85701f5d18SGreg Roachuse Fisharebest\Webtrees\Elements\ExternalIdentifier; 86701f5d18SGreg Roachuse Fisharebest\Webtrees\Elements\ExternalIdentifierType; 8700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyCensus; 885d2c6313SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyEvent; 895d2c6313SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyFact; 9000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyRecord; 9100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyResidence; 9200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilySearchFamilyTreeId; 9300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FamilyStatusText; 9400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FileName; 9500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\FirstCommunion; 9600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Form; 9700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\GedcomElement; 9800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\GenerationsOfAncestors; 9900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\GenerationsOfDescendants; 10000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\GovIdentifier; 10100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Graduation; 10200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\HeaderRecord; 10300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\HierarchicalRelationship; 10400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Immigration; 1055d2c6313SGreg Roachuse Fisharebest\Webtrees\Elements\IndividualEvent; 1065d2c6313SGreg Roachuse Fisharebest\Webtrees\Elements\IndividualFact; 10700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\IndividualRecord; 10800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LanguageId; 10900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsBaptism; 11000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsBaptismDateStatus; 11100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsChildSealing; 11200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsChildSealingDateStatus; 11300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsConfirmation; 11400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsEndowment; 11500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsEndowmentDateStatus; 116701f5d18SGreg Roachuse Fisharebest\Webtrees\Elements\LdsInitiatory; 117701f5d18SGreg Roachuse Fisharebest\Webtrees\Elements\LdsOrdinanceStatus; 11800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsSpouseSealing; 11900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LdsSpouseSealingDateStatus; 12000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\LocationRecord; 12100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MaidenheadLocator; 12200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Marriage; 12300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageBanns; 12400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageContract; 12500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageLicence; 12600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageSettlement; 12700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MarriageType; 12800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MediaRecord; 12900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MultimediaFileReference; 13000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\MultimediaFormat; 13100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfBusiness; 13200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfFamilyFile; 13300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfProduct; 13400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfRepository; 13500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameOfSourceData; 13600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePersonal; 13700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePhoneticVariation; 13800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceGiven; 13900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceNickname; 14000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePiecePrefix; 14100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceSuffix; 14200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceSurname; 14300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NamePieceSurnamePrefix; 14400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameRomanizedVariation; 14500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NameType; 14600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NationalIdNumber; 147f15544dcSGreg Roachuse Fisharebest\Webtrees\Elements\NationalOrTribalOrigin; 14800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Naturalization; 14900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NobilityTypeTitle; 150701f5d18SGreg Roachuse Fisharebest\Webtrees\Elements\NonEvent; 15100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NoteRecord; 15200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\NoteStructure; 15300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Occupation; 15400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\OrdinanceProcessFlag; 15500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Ordination; 15600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PafUid; 15700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PedigreeLinkageType; 15800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PermanentRecordFileNumber; 15900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PhoneNumber; 16000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PhoneticType; 16100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PhysicalDescription; 16200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceHierarchy; 16300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceLatitude; 16400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceLivingOrdinance; 16500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceLongtitude; 16600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceName; 16700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlacePhoneticVariation; 16800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PlaceRomanizedVariation; 16900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Possessions; 17000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Probate; 17100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\PublicationDate; 17200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ReceivingSystemName; 17300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RelationIsDescriptor; 17400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ReligiousAffiliation; 17500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RepositoryRecord; 17600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResearchTask; 17700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResearchTaskPriority; 17800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResearchTaskStatus; 17900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResearchTaskType; 18000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Residence; 18100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ResponsibleAgency; 18200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RestrictionNotice; 18300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Retirement; 18400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RoleInEvent; 18500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\RomanizedType; 18600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\ScholasticAchievement; 18700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SexValue; 18800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SexXValue; 18900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SocialSecurityNumber; 19000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceCallNumber; 19100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceData; 19200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceFiledByEntry; 19300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceJurisdictionPlace; 19400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceMediaType; 19500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceOriginator; 19600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourcePublicationFacts; 19700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SourceRecord; 19800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmissionRecord; 19900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmitterName; 20000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmitterRecord; 20100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmitterRegisteredRfn; 20200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\SubmitterText; 20300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\TempleCode; 20400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\TextFromSource; 20500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\TimeValue; 20600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\TransmissionDate; 207701f5d18SGreg Roachuse Fisharebest\Webtrees\Elements\Uid; 20800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\UserReferenceNumber; 20900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\UserReferenceType; 21000c92694SGreg Roachuse Fisharebest\Webtrees\Elements\VersionNumber; 21100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\WebtreesUser; 21200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\WhereWithinSource; 21300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\Will; 21400c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefAssociate; 21500c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefFamily; 21600c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefIndividual; 21700c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefLocation; 21800c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefMedia; 21900c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefRepository; 220701f5d18SGreg Roachuse Fisharebest\Webtrees\Elements\XrefSharedNote; 22100c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefSource; 22200c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefSubmission; 22300c92694SGreg Roachuse Fisharebest\Webtrees\Elements\XrefSubmitter; 22400c92694SGreg Roach 2250f471f91SGreg Roach/** 2260f471f91SGreg Roach * GEDCOM 5.5.1 specification 2270f471f91SGreg Roach */ 228c1010edaSGreg Roachclass Gedcom 229c1010edaSGreg Roach{ 2300f471f91SGreg Roach // 255 less the EOL character. 23116d6367aSGreg Roach public const LINE_LENGTH = 253; 2328d0ebef0SGreg Roach 2338d0ebef0SGreg Roach // Gedcom tags which indicate the start of life. 23469d5bee2SGreg Roach public const BIRTH_EVENTS = ['BIRT', 'CHR', 'BAPM']; 2358d0ebef0SGreg Roach 2368d0ebef0SGreg Roach // Gedcom tags which indicate the end of life. 23716d6367aSGreg Roach public const DEATH_EVENTS = ['DEAT', 'BURI', 'CREM']; 2388d0ebef0SGreg Roach 2398d0ebef0SGreg Roach // Gedcom tags which indicate the start of a relationship. 24016d6367aSGreg Roach public const MARRIAGE_EVENTS = ['MARR', '_NMR']; 2418d0ebef0SGreg Roach 2428d0ebef0SGreg Roach // Gedcom tags which indicate the end of a relationship. 24316d6367aSGreg Roach public const DIVORCE_EVENTS = ['DIV', 'ANUL', '_SEPR']; 2448d0ebef0SGreg Roach 2458d0ebef0SGreg Roach // Regular expression to match a GEDCOM tag. 24616d6367aSGreg Roach public const REGEX_TAG = '[_A-Z][_A-Z0-9]*'; 2478d0ebef0SGreg Roach 2488d0ebef0SGreg Roach // Regular expression to match a GEDCOM XREF. 249f81cefe9SGreg Roach public const REGEX_XREF = '[A-Za-z0-9:_.-]{1,20}'; 2508d0ebef0SGreg Roach 251c67b9b50SGreg Roach // Regular expression to match a GEDCOM fact/event for editing raw GEDCOM. 2528c21b414SGreg Roach private const REGEX_VALUE = '( .+)?'; 2538c21b414SGreg Roach private const REGEX_LEVEL_9 = '\n9 ' . self::REGEX_TAG . self::REGEX_VALUE; 2548c21b414SGreg Roach private const REGEX_LEVEL_8 = '\n8 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_9 . ')*'; 2558c21b414SGreg Roach private const REGEX_LEVEL_7 = '\n7 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_8 . ')*'; 2568c21b414SGreg Roach private const REGEX_LEVEL_6 = '\n6 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_7 . ')*'; 2578c21b414SGreg Roach private const REGEX_LEVEL_5 = '\n5 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_6 . ')*'; 2588c21b414SGreg Roach private const REGEX_LEVEL_4 = '\n4 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_5 . ')*'; 2598c21b414SGreg Roach private const REGEX_LEVEL_3 = '\n3 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_4 . ')*'; 2608c21b414SGreg Roach private const REGEX_LEVEL_2 = '\n2 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_3 . ')*'; 261c67b9b50SGreg Roach public const REGEX_FACT = '1 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_2 . ')*\n?'; 2628c21b414SGreg Roach 2631c6adce8SGreg Roach // Separates the parts of a place name. 264ead61980SGreg Roach public const PLACE_SEPARATOR = ', '; 265392561bbSGreg Roach 266392561bbSGreg Roach // Regex to match a (badly formed) GEDCOM place separator. 26790949315SGreg Roach public const PLACE_SEPARATOR_REGEX = '/ *,[, ]*/'; 26890949315SGreg Roach 26990949315SGreg Roach // LATI and LONG tags 27090949315SGreg Roach public const LATITUDE_NORTH = 'N'; 27190949315SGreg Roach public const LATITUDE_SOUTH = 'S'; 27290949315SGreg Roach public const LONGITUDE_EAST = 'E'; 27390949315SGreg Roach public const LONGITUDE_WEST = 'W'; 27471f696adSGreg Roach 27571f696adSGreg Roach // Not all record types allow a CHAN event. 27671f696adSGreg Roach public const RECORDS_WITH_CHAN = [ 27771f696adSGreg Roach Family::RECORD_TYPE, 27871f696adSGreg Roach Individual::RECORD_TYPE, 27971f696adSGreg Roach Media::RECORD_TYPE, 28071f696adSGreg Roach Note::RECORD_TYPE, 28171f696adSGreg Roach Repository::RECORD_TYPE, 28271f696adSGreg Roach Source::RECORD_TYPE, 28371f696adSGreg Roach Submitter::RECORD_TYPE, 28471f696adSGreg Roach ]; 285c8183f29SGreg Roach 286c8183f29SGreg Roach // These preferences control multiple tag definitions 287c8183f29SGreg Roach public const HIDDEN_TAGS = [ 288c8183f29SGreg Roach // Individual names 289c8183f29SGreg Roach 'NAME_NPFX' => ['INDI:NAME:NPFX', 'INDI:NAME:FONE:NPFX', 'INDI:NAME:ROMN:NPFX'], 290c8183f29SGreg Roach 'NAME_SPFX' => ['INDI:NAME:SPFX', 'INDI:NAME:FONE:SPFX', 'INDI:NAME:ROMN:SPFX'], 291c8183f29SGreg Roach 'NAME_NSFX' => ['INDI:NAME:NSFX', 'INDI:NAME:FONE:NSFX', 'INDI:NAME:ROMN:NSFX'], 292c8183f29SGreg Roach 'NAME_NICK' => ['INDI:NAME:NICK', 'INDI:NAME:FONE:NICK', 'INDI:NAME:ROMN:NICK'], 293c8183f29SGreg Roach 'NAME_FONE' => ['INDI:NAME:FONE'], 294c8183f29SGreg Roach 'NAME_ROMN' => ['INDI:NAME:ROMN'], 29503c55594SGreg Roach 'NAME_NOTE' => ['INDI:NAME:NOTE', 'INDI:NAME:FONE:NOTE', 'INDI:NAME:ROMN:NOTE'], 29603c55594SGreg Roach 'NAME_SOUR' => ['INDI:NAME:SOUR', 'INDI:NAME:FONE:SOUR', 'INDI:NAME:ROMN:SOUR'], 297c8183f29SGreg Roach // Places 298302fdb8dSGreg Roach 'PLAC_MAP' => [':PLAC:MAP'], 299302fdb8dSGreg Roach 'PLAC_FONE' => [':PLAC:FONE'], 300302fdb8dSGreg Roach 'PLAC_ROMN' => [':PLAC:ROMN'], 301302fdb8dSGreg Roach 'PLAC_FORM' => [':PLAC:FORM', 'HEAD:PLAC'], 302302fdb8dSGreg Roach 'PLAC_NOTE' => [':PLAC:NOTE'], 303c8183f29SGreg Roach // Addresses 304302fdb8dSGreg Roach 'ADDR_EMAIL' => [':EMAIL'], 305302fdb8dSGreg Roach 'ADDR_PHON' => [':PHON'], 306302fdb8dSGreg Roach 'ADDR_WWW' => [':WWW'], 307c8183f29SGreg Roach // Source citations 308c8183f29SGreg Roach 'SOUR_EVEN' => [':SOUR:EVEN'], 309c8183f29SGreg Roach 'SOUR_DATE' => [':SOUR:DATA:DATE'], 310c8183f29SGreg Roach 'SOUR_NOTE' => [':SOUR:NOTE'], 311c8183f29SGreg Roach 'SOUR_QUAY' => [':SOUR:QUAY'], 312c8183f29SGreg Roach // Sources 31340c249dcSGreg Roach 'SOUR_DATA' => ['SOUR:DATA:EVEN', 'SOUR:DATA:AGNC', 'SOUR:DATA:NOTE'], 314c8183f29SGreg Roach // Individuals 315c8183f29SGreg Roach 'BIRT_FAMC' => ['INDI:BIRT:FAMC'], 316c8183f29SGreg Roach 'RELI' => ['INDI:RELI'], 317c8183f29SGreg Roach 'BAPM' => ['INDI:BAPM'], 318c8183f29SGreg Roach 'CHR' => ['INDI:CHR', 'INDI:CHRA'], 319c8183f29SGreg Roach 'FCOM' => ['INDI:FCOM', 'INDI:CONF'], 320c8183f29SGreg Roach 'ORDN' => ['INDI:ORDN'], 321c8183f29SGreg Roach 'BARM' => ['INDI:BARM', 'INDI:BASM'], 322c8183f29SGreg Roach 'ALIA' => ['INDI:ALIA'], 323c8183f29SGreg Roach 'ASSO' => ['INDI:ASSO'], 324c8183f29SGreg Roach // Families 325c8183f29SGreg Roach 'ENGA' => ['FAM:ENGA'], 326c8183f29SGreg Roach 'MARB' => ['FAM:MARB'], 327c8183f29SGreg Roach 'MARC' => ['FAM:MARC'], 328c8183f29SGreg Roach 'MARL' => ['FAM:MARL'], 329c8183f29SGreg Roach 'MARS' => ['FAM:MARS'], 330c8183f29SGreg Roach 'ANUL' => ['FAM:ANUL'], 331c8183f29SGreg Roach 'DIVF' => ['FAM:DIVF'], 332c8183f29SGreg Roach 'FAM_RESI' => ['FAM:RESI'], 333c8183f29SGreg Roach 'FAM_CENS' => ['FAM:CENS'], 334c8183f29SGreg Roach // LDS church 335c8183f29SGreg Roach 'LDS' => ['INDI:BAPL', 'INDI:CONL', 'INDI:ENDL', 'INDI:SLGC', 'FAM:SLGS', 'HEAD:SUBN'], 336c8183f29SGreg Roach // Identifiers 337c8183f29SGreg Roach 'AFN' => ['INDI:AFN'], 338c8183f29SGreg Roach 'IDNO' => ['INDI:IDNO'], 339c8183f29SGreg Roach 'SSN' => ['INDI:SSN'], 340302fdb8dSGreg Roach 'RFN' => [':RFN'], 341302fdb8dSGreg Roach 'REFN' => [':REFN'], 342302fdb8dSGreg Roach 'RIN' => [':RIN'], 343c8183f29SGreg Roach // Submitters 344c8183f29SGreg Roach 'SUBM' => ['INDI:SUBM', 'FAM:SUBM'], 345c8183f29SGreg Roach 'ANCI' => ['INDI:ANCI', 'INDI:DESI'], 346c8183f29SGreg Roach ]; 34700c92694SGreg Roach 34800c92694SGreg Roach // Custom GEDCOM tags that can be created in webtrees. 34900c92694SGreg Roach public const CUSTOM_FAMILY_TAGS = [ 35038f085bcSGreg Roach 'FACT', 35100c92694SGreg Roach '_COML', 35200c92694SGreg Roach '_MARI', 35300c92694SGreg Roach '_MBON', 35400c92694SGreg Roach '_NMR', 35500c92694SGreg Roach '_SEPR', 35600c92694SGreg Roach ]; 35700c92694SGreg Roach 35800c92694SGreg Roach public const CUSTOM_INDIVIDUAL_TAGS = [ 35900c92694SGreg Roach '_BRTM', 36000c92694SGreg Roach '_CIRC', 36100c92694SGreg Roach '_DEG', 36200c92694SGreg Roach '_DNA', 36300c92694SGreg Roach '_EXCM', 36400c92694SGreg Roach '_EYEC', 36500c92694SGreg Roach '_FNRL', 36600c92694SGreg Roach '_FSFTID', 36700c92694SGreg Roach '_HAIR', 36800c92694SGreg Roach '_HEIG', 36900c92694SGreg Roach '_INTE', 37000c92694SGreg Roach '_MDCL', 37100c92694SGreg Roach '_MEDC', 37200c92694SGreg Roach '_MILI', 37300c92694SGreg Roach '_MILT', 37400c92694SGreg Roach '_NAMS', 37500c92694SGreg Roach '_PRMN', 37600c92694SGreg Roach '_WEIG', 37700c92694SGreg Roach '_YART', 37800c92694SGreg Roach ]; 37900c92694SGreg Roach 380356588a1SGreg Roach // Some applications create GEDCOM files containing records without XREFS. 381356588a1SGreg Roach // We cannot process these. 382356588a1SGreg Roach public const CUSTOM_RECORDS_WITHOUT_XREFS = [ 383356588a1SGreg Roach 'EMOTIONALRELATIONSHIP', // GenoPro 384356588a1SGreg Roach 'GENOMAP', // GenoPro 385356588a1SGreg Roach 'GLOBAL', // GenoPro 386356588a1SGreg Roach 'LABEL', // GenoPro 387356588a1SGreg Roach 'PEDIGREELINK', // GenoPro 388356588a1SGreg Roach 'SOCIALRELATIONSHIP', // GenoPro 389356588a1SGreg Roach '_EVDEF', // RootsMagic 390356588a1SGreg Roach '_EVENT_DEFN', // PAF and Legacy 391356588a1SGreg Roach '_HASHTAG_DEFN', // Legacy 39254671e98SGreg Roach '_PUBLISH', // MyHeritage 393356588a1SGreg Roach '_TODO', // Legacy 394356588a1SGreg Roach ]; 395356588a1SGreg Roach 39600c92694SGreg Roach /** 39700c92694SGreg Roach * Definitions for GEDCOM 5.5.1. 39800c92694SGreg Roach * 39900c92694SGreg Roach * @return array<string,ElementInterface> 40000c92694SGreg Roach */ 40100c92694SGreg Roach private function gedcom551Tags(): array 40200c92694SGreg Roach { 40300c92694SGreg Roach return [ 40400c92694SGreg Roach 'FAM' => new FamilyRecord(I18N::translate('Family')), 40500c92694SGreg Roach 'FAM:*:ADDR' => new AddressLine(I18N::translate('Address')), 40600c92694SGreg Roach 'FAM:*:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 40700c92694SGreg Roach 'FAM:*:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 40800c92694SGreg Roach 'FAM:*:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 40900c92694SGreg Roach 'FAM:*:ADDR:CITY' => new AddressCity(I18N::translate('City')), 41000c92694SGreg Roach 'FAM:*:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 41100c92694SGreg Roach 'FAM:*:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 41200c92694SGreg Roach 'FAM:*:ADDR:STAE' => new AddressState(I18N::translate('State')), 41300c92694SGreg Roach 'FAM:*:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), 41400c92694SGreg Roach 'FAM:*:CAUS' => new CauseOfEvent(I18N::translate('Cause')), 41500c92694SGreg Roach 'FAM:*:DATE' => new DateValue(I18N::translate('Date')), 41600c92694SGreg Roach 'FAM:*:EMAIL' => new AddressEmail(I18N::translate('Email address')), 41700c92694SGreg Roach 'FAM:*:FAX' => new AddressFax(I18N::translate('Fax')), 41800c92694SGreg Roach 'FAM:*:HUSB' => new EmptyElement(I18N::translate('Husband'), ['AGE' => '0:1']), 41900c92694SGreg Roach 'FAM:*:HUSB:AGE' => new AgeAtEvent(I18N::translate('Husband’s age')), 42000c92694SGreg Roach 'FAM:*:NOTE' => new NoteStructure(I18N::translate('Note')), 42100c92694SGreg Roach 'FAM:*:OBJE' => new XrefMedia(I18N::translate('Media object')), 42200c92694SGreg Roach 'FAM:*:PHON' => new PhoneNumber(I18N::translate('Phone')), 42300c92694SGreg Roach 'FAM:*:PLAC' => new PlaceName(I18N::translate('Place')), 42400c92694SGreg Roach 'FAM:*:PLAC:FONE' => new PlacePhoneticVariation(I18N::translate('Phonetic place')), 42500c92694SGreg Roach 'FAM:*:PLAC:FONE:TYPE' => new PhoneticType(I18N::translate('Type')), 42600c92694SGreg Roach 'FAM:*:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), 42700c92694SGreg Roach 'FAM:*:PLAC:MAP' => new Coordinates(I18N::translate('Coordinates')), 42800c92694SGreg Roach 'FAM:*:PLAC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), 42900c92694SGreg Roach 'FAM:*:PLAC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), 43000c92694SGreg Roach 'FAM:*:PLAC:NOTE' => new NoteStructure(I18N::translate('Note')), 43100c92694SGreg Roach 'FAM:*:PLAC:ROMN' => new PlaceRomanizedVariation(I18N::translate('Romanized place')), 43200c92694SGreg Roach 'FAM:*:PLAC:ROMN:TYPE' => new RomanizedType(I18N::translate('Type')), 43300c92694SGreg Roach 'FAM:*:RELI' => new ReligiousAffiliation(I18N::translate('Religion'), []), 43400c92694SGreg Roach 'FAM:*:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 43500c92694SGreg Roach 'FAM:*:SOUR' => new XrefSource(I18N::translate('Source citation')), 43600c92694SGreg Roach 'FAM:*:SOUR:DATA' => new SourceData(I18N::translate('Data')), 437352bd396SGreg Roach 'FAM:*:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 43800c92694SGreg Roach 'FAM:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 43900c92694SGreg Roach 'FAM:*:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 44000c92694SGreg Roach 'FAM:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 44100c92694SGreg Roach 'FAM:*:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 44200c92694SGreg Roach 'FAM:*:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 44300c92694SGreg Roach 'FAM:*:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 44400c92694SGreg Roach 'FAM:*:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 44500c92694SGreg Roach 'FAM:*:TYPE' => new EventOrFactClassification(I18N::translate('Type')), 44600c92694SGreg Roach 'FAM:*:WIFE' => new EmptyElement(I18N::translate('Wife'), ['AGE' => '0:1']), 44700c92694SGreg Roach 'FAM:*:WIFE:AGE' => new AgeAtEvent(I18N::translate('Wife’s age')), 44800c92694SGreg Roach 'FAM:*:WWW' => new AddressWebPage(I18N::translate('URL')), 44900c92694SGreg Roach 'FAM:ANUL' => new Annulment(I18N::translate('Annulment')), 45000c92694SGreg Roach 'FAM:CENS' => new FamilyCensus(I18N::translate('Family census')), 45100c92694SGreg Roach 'FAM:CHAN' => new Change(I18N::translate('Last change')), 45200c92694SGreg Roach 'FAM:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 45300c92694SGreg Roach 'FAM:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), 45400c92694SGreg Roach 'FAM:CHIL' => new XrefIndividual(I18N::translate('Child')), 45500c92694SGreg Roach 'FAM:DIV' => new Divorce(I18N::translate('Divorce')), 45600c92694SGreg Roach 'FAM:DIV:DATE' => new DateValue(I18N::translate('Date of divorce')), 45700c92694SGreg Roach 'FAM:DIVF' => new DivorceFiled(I18N::translate('Divorce filed')), 45800c92694SGreg Roach 'FAM:ENGA' => new Engagement(I18N::translate('Engagement')), 45900c92694SGreg Roach 'FAM:ENGA:DATE' => new DateValue(I18N::translate('Date of engagement')), 46000c92694SGreg Roach 'FAM:ENGA:PLAC' => new PlaceName(I18N::translate('Place of engagement')), 4615d2c6313SGreg Roach 'FAM:EVEN' => new FamilyEvent(I18N::translate('Event')), 4625d2c6313SGreg Roach 'FAM:EVEN:TYPE' => new EventOrFactClassification(I18N::translate('Type of event')), 46300c92694SGreg Roach 'FAM:HUSB' => new XrefIndividual(I18N::translate('Husband')), 46400c92694SGreg Roach 'FAM:MARB' => new MarriageBanns(I18N::translate('Marriage banns')), 46500c92694SGreg Roach 'FAM:MARB:DATE' => new DateValue(I18N::translate('Date of marriage banns')), 46600c92694SGreg Roach 'FAM:MARB:PLAC' => new PlaceName(I18N::translate('Place of marriage banns')), 46700c92694SGreg Roach 'FAM:MARC' => new MarriageContract(I18N::translate('Marriage contract')), 46800c92694SGreg Roach 'FAM:MARL' => new MarriageLicence(I18N::translate('Marriage license')), 46900c92694SGreg Roach 'FAM:MARR' => new Marriage(I18N::translate('Marriage')), 47000c92694SGreg Roach 'FAM:MARR:DATE' => new DateValue(I18N::translate('Date of marriage')), 47100c92694SGreg Roach 'FAM:MARR:PLAC' => new PlaceName(I18N::translate('Place of marriage')), 47200c92694SGreg Roach 'FAM:MARR:TYPE' => new MarriageType(I18N::translate('Type of marriage')), 47300c92694SGreg Roach 'FAM:MARS' => new MarriageSettlement(I18N::translate('Marriage settlement')), 47400c92694SGreg Roach 'FAM:NCHI' => new CountOfChildren(I18N::translate('Number of children')), 47500c92694SGreg Roach 'FAM:NOTE' => new NoteStructure(I18N::translate('Note')), 47600c92694SGreg Roach 'FAM:OBJE' => new XrefMedia(I18N::translate('Media object')), 47700c92694SGreg Roach 'FAM:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 47800c92694SGreg Roach 'FAM:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), 47900c92694SGreg Roach 'FAM:RESI' => new FamilyResidence(I18N::translate('Family residence')), 48000c92694SGreg Roach 'FAM:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 48100c92694SGreg Roach 'FAM:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 48200c92694SGreg Roach 'FAM:SLGS' => new LdsSpouseSealing(I18N::translate('LDS spouse sealing')), 48300c92694SGreg Roach 'FAM:SLGS:DATE' => new DateLdsOrd(I18N::translate('Date of LDS spouse sealing')), 48400c92694SGreg Roach 'FAM:SLGS:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS spouse sealing')), 48500c92694SGreg Roach 'FAM:SLGS:STAT' => new LdsSpouseSealingDateStatus(I18N::translate('Status')), 48600c92694SGreg Roach 'FAM:SLGS:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 48700c92694SGreg Roach 'FAM:SLGS:TEMP' => new TempleCode(I18N::translate('Temple')), 48800c92694SGreg Roach 'FAM:SOUR' => new XrefSource(I18N::translate('Source citation')), 48900c92694SGreg Roach 'FAM:SOUR:DATA' => new SourceData(I18N::translate('Data')), 490352bd396SGreg Roach 'FAM:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 49100c92694SGreg Roach 'FAM:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 49200c92694SGreg Roach 'FAM:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 49300c92694SGreg Roach 'FAM:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 49400c92694SGreg Roach 'FAM:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 49500c92694SGreg Roach 'FAM:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 49600c92694SGreg Roach 'FAM:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 49700c92694SGreg Roach 'FAM:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 49800c92694SGreg Roach 'FAM:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), 49900c92694SGreg Roach 'FAM:WIFE' => new XrefIndividual(I18N::translate('Wife')), 50000c92694SGreg Roach 'HEAD' => new HeaderRecord(I18N::translate('Header')), 50100c92694SGreg Roach 'HEAD:CHAR' => new CharacterSet(I18N::translate('Character set')), 50200c92694SGreg Roach 'HEAD:CHAR:VERS' => new VersionNumber(I18N::translate('Version')), 50300c92694SGreg Roach 'HEAD:COPR' => new CopyrightFile(I18N::translate('Copyright')), 50400c92694SGreg Roach 'HEAD:DATE' => new TransmissionDate(I18N::translate('Date')), 50500c92694SGreg Roach 'HEAD:DATE:TIME' => new TimeValue(I18N::translate('Time')), 50600c92694SGreg Roach 'HEAD:DEST' => new ReceivingSystemName(I18N::translate('Destination')), 50700c92694SGreg Roach 'HEAD:FILE' => new FileName(I18N::translate('Filename')), 50800c92694SGreg Roach 'HEAD:GEDC' => new GedcomElement(I18N::translate('GEDCOM')), 50900c92694SGreg Roach 'HEAD:GEDC:FORM' => new Form(I18N::translate('Format')), 51000c92694SGreg Roach 'HEAD:GEDC:VERS' => new VersionNumber(I18N::translate('Version')), 51100c92694SGreg Roach 'HEAD:LANG' => new LanguageId(I18N::translate('Language')), 51200c92694SGreg Roach 'HEAD:NOTE' => new ContentDescription(I18N::translate('Note')), 51300c92694SGreg Roach 'HEAD:PLAC' => new EmptyElement(I18N::translate('Place hierarchy'), ['FORM' => '1:1']), 51400c92694SGreg Roach 'HEAD:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), 5154c10b11dSGreg Roach 'HEAD:SOUR' => new ApprovedSystemId(I18N::translate('Application ID')), 51600c92694SGreg Roach 'HEAD:SOUR:CORP' => new NameOfBusiness(I18N::translate('Corporation')), 51700c92694SGreg Roach 'HEAD:SOUR:CORP:ADDR' => new AddressLine(I18N::translate('Address')), 51800c92694SGreg Roach 'HEAD:SOUR:CORP:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 51900c92694SGreg Roach 'HEAD:SOUR:CORP:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 52000c92694SGreg Roach 'HEAD:SOUR:CORP:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 52100c92694SGreg Roach 'HEAD:SOUR:CORP:ADDR:CITY' => new AddressCity(I18N::translate('City')), 52200c92694SGreg Roach 'HEAD:SOUR:CORP:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 52300c92694SGreg Roach 'HEAD:SOUR:CORP:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 52400c92694SGreg Roach 'HEAD:SOUR:CORP:ADDR:STAE' => new AddressState(I18N::translate('State')), 52500c92694SGreg Roach 'HEAD:SOUR:CORP:EMAIL' => new AddressEmail(I18N::translate('Email address')), 52600c92694SGreg Roach 'HEAD:SOUR:CORP:FAX' => new AddressFax(I18N::translate('Fax')), 52700c92694SGreg Roach 'HEAD:SOUR:CORP:PHON' => new PhoneNumber(I18N::translate('Phone')), 52800c92694SGreg Roach 'HEAD:SOUR:CORP:WWW' => new AddressWebPage(I18N::translate('URL')), 5294c10b11dSGreg Roach 'HEAD:SOUR:DATA' => new NameOfSourceData(I18N::translate('Data')), 53000c92694SGreg Roach 'HEAD:SOUR:DATA:COPR' => new CopyrightSourceData(I18N::translate('Copyright')), 53100c92694SGreg Roach 'HEAD:SOUR:DATA:DATE' => new PublicationDate(I18N::translate('Date')), 5324c10b11dSGreg Roach 'HEAD:SOUR:NAME' => new NameOfProduct(I18N::translate('Application name')), 53300c92694SGreg Roach 'HEAD:SOUR:VERS' => new VersionNumber(I18N::translate('Version')), 53400c92694SGreg Roach 'HEAD:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), 53500c92694SGreg Roach 'HEAD:SUBN' => new XrefSubmission(I18N::translate('Submission')), 53600c92694SGreg Roach 'INDI' => new IndividualRecord(I18N::translate('Individual')), 53700c92694SGreg Roach 'INDI:*:ADDR' => new AddressLine(I18N::translate('Address')), 53800c92694SGreg Roach 'INDI:*:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 53900c92694SGreg Roach 'INDI:*:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 54000c92694SGreg Roach 'INDI:*:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 54100c92694SGreg Roach 'INDI:*:ADDR:CITY' => new AddressCity(I18N::translate('City')), 54200c92694SGreg Roach 'INDI:*:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 54300c92694SGreg Roach 'INDI:*:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 54400c92694SGreg Roach 'INDI:*:ADDR:STAE' => new AddressState(I18N::translate('State')), 54500c92694SGreg Roach 'INDI:*:AGE' => new AgeAtEvent(I18N::translate('Age')), 54600c92694SGreg Roach 'INDI:*:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), 54700c92694SGreg Roach 'INDI:*:CAUS' => new CauseOfEvent(I18N::translate('Cause')), 54800c92694SGreg Roach 'INDI:*:DATE' => new DateValue(I18N::translate('Date')), 54900c92694SGreg Roach 'INDI:*:EMAIL' => new AddressEmail(I18N::translate('Email address')), 55000c92694SGreg Roach 'INDI:*:FAX' => new AddressFax(I18N::translate('Fax')), 55100c92694SGreg Roach 'INDI:*:NOTE' => new NoteStructure(I18N::translate('Note')), 55200c92694SGreg Roach 'INDI:*:OBJE' => new XrefMedia(I18N::translate('Media object')), 55300c92694SGreg Roach 'INDI:*:PHON' => new PhoneNumber(I18N::translate('Phone')), 55400c92694SGreg Roach 'INDI:*:PLAC' => new PlaceName(I18N::translate('Place')), 55500c92694SGreg Roach 'INDI:*:PLAC:FONE' => new PlacePhoneticVariation(I18N::translate('Phonetic place')), 55600c92694SGreg Roach 'INDI:*:PLAC:FONE:TYPE' => new PhoneticType(I18N::translate('Type')), 55700c92694SGreg Roach 'INDI:*:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), 55800c92694SGreg Roach 'INDI:*:PLAC:MAP' => new Coordinates(I18N::translate('Coordinates')), 55900c92694SGreg Roach 'INDI:*:PLAC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), 56000c92694SGreg Roach 'INDI:*:PLAC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), 56100c92694SGreg Roach 'INDI:*:PLAC:NOTE' => new NoteStructure(I18N::translate('Note')), 56200c92694SGreg Roach 'INDI:*:PLAC:ROMN' => new PlaceRomanizedVariation(I18N::translate('Romanized place')), 56300c92694SGreg Roach 'INDI:*:PLAC:ROMN:TYPE' => new RomanizedType(I18N::translate('Type')), 56400c92694SGreg Roach 'INDI:*:RELI' => new ReligiousAffiliation(I18N::translate('Religion'), []), 56500c92694SGreg Roach 'INDI:*:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 56600c92694SGreg Roach 'INDI:*:SOUR' => new XrefSource(I18N::translate('Source citation')), 56700c92694SGreg Roach 'INDI:*:SOUR:DATA' => new SourceData(I18N::translate('Data')), 568352bd396SGreg Roach 'INDI:*:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 56900c92694SGreg Roach 'INDI:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 57000c92694SGreg Roach 'INDI:*:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 57100c92694SGreg Roach 'INDI:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 57200c92694SGreg Roach 'INDI:*:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 57300c92694SGreg Roach 'INDI:*:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 57400c92694SGreg Roach 'INDI:*:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 57500c92694SGreg Roach 'INDI:*:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 57600c92694SGreg Roach 'INDI:*:TYPE' => new EventOrFactClassification(I18N::translate('Type')), 57700c92694SGreg Roach 'INDI:*:WWW' => new AddressWebPage(I18N::translate('URL')), 57800c92694SGreg Roach 'INDI:ADOP' => new Adoption(I18N::translate('Adoption')), 57900c92694SGreg Roach 'INDI:ADOP:DATE' => new DateValue(I18N::translate('Date of adoption')), 58000c92694SGreg Roach 'INDI:ADOP:FAMC' => new XrefFamily(I18N::translate('Adoptive parents')), 58100c92694SGreg Roach 'INDI:ADOP:FAMC:ADOP' => new AdoptedByWhichParent(I18N::translate('Adoption')), 58200c92694SGreg Roach 'INDI:ADOP:PLAC' => new PlaceName(I18N::translate('Place of adoption')), 58300c92694SGreg Roach 'INDI:AFN' => new AncestralFileNumber(I18N::translate('Ancestral file number')), 58400c92694SGreg Roach 'INDI:ALIA' => new XrefIndividual(I18N::translate('Alias')), 58500c92694SGreg Roach 'INDI:ANCI' => new XrefSubmitter(I18N::translate('Ancestors interest')), 58600c92694SGreg Roach 'INDI:ASSO' => new XrefAssociate(I18N::translate('Associate')), 58700c92694SGreg Roach 'INDI:ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), 58800c92694SGreg Roach 'INDI:BAPL' => new LdsBaptism(I18N::translate('LDS baptism')), 58900c92694SGreg Roach 'INDI:BAPL:DATE' => new DateLdsOrd(I18N::translate('Date of LDS baptism')), 59000c92694SGreg Roach 'INDI:BAPL:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS baptism')), 59100c92694SGreg Roach 'INDI:BAPL:STAT' => new LdsBaptismDateStatus(I18N::translate('Status')), 59200c92694SGreg Roach 'INDI:BAPL:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 59300c92694SGreg Roach 'INDI:BAPL:TEMP' => new TempleCode(I18N::translate('Temple')), 59400c92694SGreg Roach 'INDI:BAPM' => new Baptism(I18N::translate('Baptism')), 59500c92694SGreg Roach 'INDI:BAPM:DATE' => new DateValue(I18N::translate('Date of baptism')), 59600c92694SGreg Roach 'INDI:BAPM:PLAC' => new PlaceName(I18N::translate('Place of baptism')), 59700c92694SGreg Roach 'INDI:BARM' => new BarMitzvah(I18N::translate('Bar mitzvah')), 59800c92694SGreg Roach 'INDI:BARM:DATE' => new DateValue(I18N::translate('Date of bar mitzvah')), 59900c92694SGreg Roach 'INDI:BARM:PLAC' => new PlaceName(I18N::translate('Place of bar mitzvah')), 60000c92694SGreg Roach 'INDI:BASM' => new BasMitzvah(I18N::translate('Bat mitzvah')), 60100c92694SGreg Roach 'INDI:BASM:DATE' => new BasMitzvah(I18N::translate('Date of bat mitzvah')), 60200c92694SGreg Roach 'INDI:BASM:PLAC' => new DateValue(I18N::translate('Place of bat mitzvah')), 60300c92694SGreg Roach 'INDI:BIRT' => new Birth(I18N::translate('Birth')), 60400c92694SGreg Roach 'INDI:BIRT:DATE' => new DateValue(I18N::translate('Date of birth')), 60500c92694SGreg Roach 'INDI:BIRT:FAMC' => new XrefFamily(I18N::translate('Birth parents')), 60600c92694SGreg Roach 'INDI:BIRT:PLAC' => new PlaceName(I18N::translate('Place of birth')), 60700c92694SGreg Roach 'INDI:BLES' => new Blessing(I18N::translate('Blessing')), 60800c92694SGreg Roach 'INDI:BLES:DATE' => new DateValue(I18N::translate('Date of blessing')), 60900c92694SGreg Roach 'INDI:BLES:PLAC' => new PlaceName(I18N::translate('Place of blessing')), 61000c92694SGreg Roach 'INDI:BURI' => new Burial(I18N::translate('Burial')), 61100c92694SGreg Roach 'INDI:BURI:DATE' => new DateValue(I18N::translate('Date of burial')), 61200c92694SGreg Roach 'INDI:BURI:PLAC' => new PlaceName(I18N::translate('Place of burial')), 61300c92694SGreg Roach 'INDI:CAST' => new CasteName(I18N::translate('Caste')), 61400c92694SGreg Roach 'INDI:CENS' => new Census(I18N::translate('Census')), 61500c92694SGreg Roach 'INDI:CENS:DATE' => new DateValue(I18N::translate('Census date')), 61600c92694SGreg Roach 'INDI:CENS:PLAC' => new PlaceName(I18N::translate('Census place')), 61700c92694SGreg Roach 'INDI:CHAN' => new Change(I18N::translate('Last change')), 61800c92694SGreg Roach 'INDI:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 61900c92694SGreg Roach 'INDI:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), 62000c92694SGreg Roach 'INDI:CHR' => new Christening(I18N::translate('Christening')), 62100c92694SGreg Roach 'INDI:CHR:DATE' => new DateValue(I18N::translate('Date of christening')), 62200c92694SGreg Roach 'INDI:CHR:FAMC' => new XrefFamily(I18N::translate('Godparents')), 62300c92694SGreg Roach 'INDI:CHR:PLAC' => new PlaceName(I18N::translate('Place of christening')), 62400c92694SGreg Roach 'INDI:CHRA' => new AdultChristening(I18N::translate('Adult christening')), 62500c92694SGreg Roach 'INDI:CHRA:PLAC' => new PlaceName(I18N::translate('Place of christening')), 62600c92694SGreg Roach 'INDI:CONF' => new Confirmation(I18N::translate('Confirmation')), 62700c92694SGreg Roach 'INDI:CONF:DATE' => new DateValue(I18N::translate('Date of confirmation')), 62800c92694SGreg Roach 'INDI:CONF:PLAC' => new PlaceName(I18N::translate('Place of confirmation')), 62900c92694SGreg Roach 'INDI:CONL' => new LdsConfirmation(I18N::translate('LDS confirmation')), 63000c92694SGreg Roach 'INDI:CONL:DATE' => new DateLdsOrd(I18N::translate('Date of LDS confirmation')), 63100c92694SGreg Roach 'INDI:CONL:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS confirmation')), 632701f5d18SGreg Roach 'INDI:CONL:STAT' => new LdsBaptismDateStatus(I18N::translate('Status')), 63300c92694SGreg Roach 'INDI:CONL:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 63400c92694SGreg Roach 'INDI:CONL:TEMP' => new TempleCode(I18N::translate('Temple')), 63500c92694SGreg Roach 'INDI:CREM' => new Cremation(I18N::translate('Cremation')), 63600c92694SGreg Roach 'INDI:CREM:DATE' => new DateValue(I18N::translate('Date of cremation')), 63700c92694SGreg Roach 'INDI:CREM:PLAC' => new PlaceName(I18N::translate('Place of cremation')), 63800c92694SGreg Roach 'INDI:DEAT' => new Death(I18N::translate('Death')), 63900c92694SGreg Roach 'INDI:DEAT:CAUS' => new CauseOfEvent(I18N::translate('Cause of death')), 64000c92694SGreg Roach 'INDI:DEAT:DATE' => new DateValue(I18N::translate('Date of death')), 64100c92694SGreg Roach 'INDI:DEAT:PLAC' => new PlaceName(I18N::translate('Place of death')), 64200c92694SGreg Roach 'INDI:DESI' => new XrefSubmitter(I18N::translate('Descendants interest')), 64300c92694SGreg Roach 'INDI:DSCR' => new PhysicalDescription(I18N::translate('Description')), 64400c92694SGreg Roach 'INDI:EDUC' => new ScholasticAchievement(I18N::translate('Education')), 64500c92694SGreg Roach 'INDI:EDUC:AGNC' => new ResponsibleAgency(I18N::translate('School or college')), 64600c92694SGreg Roach 'INDI:EMIG' => new Emigration(I18N::translate('Emigration')), 64700c92694SGreg Roach 'INDI:EMIG:DATE' => new DateValue(I18N::translate('Date of emigration')), 64800c92694SGreg Roach 'INDI:EMIG:PLAC' => new PlaceName(I18N::translate('Place of emigration')), 64900c92694SGreg Roach 'INDI:ENDL' => new LdsEndowment(I18N::translate('LDS endowment')), 65000c92694SGreg Roach 'INDI:ENDL:DATE' => new DateLdsOrd(I18N::translate('Date of LDS endowment')), 65100c92694SGreg Roach 'INDI:ENDL:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS endowment')), 65200c92694SGreg Roach 'INDI:ENDL:STAT' => new LdsEndowmentDateStatus(I18N::translate('Status')), 65300c92694SGreg Roach 'INDI:ENDL:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 65400c92694SGreg Roach 'INDI:ENDL:TEMP' => new TempleCode(I18N::translate('Temple')), 6555d2c6313SGreg Roach 'INDI:EVEN' => new IndividualEvent(I18N::translate('Event')), 65600c92694SGreg Roach 'INDI:EVEN:DATE' => new DateValue(I18N::translate('Date of event')), 65700c92694SGreg Roach 'INDI:EVEN:PLAC' => new PlaceName(I18N::translate('Place of event')), 6585d2c6313SGreg Roach 'INDI:EVEN:TYPE' => new EventOrFactClassification(I18N::translate('Type of event')), 6595d2c6313SGreg Roach 'INDI:FACT' => new IndividualFact(I18N::translate('Fact')), 6605d2c6313SGreg Roach 'INDI:FACT:TYPE' => new EventOrFactClassification(I18N::translate('Type of fact')), 66100c92694SGreg Roach 'INDI:FAMC' => new XrefFamily(I18N::translate('Family as a child'), ['NOTE' => '0:1', 'PEDI' => '0:1', 'STAT' => '0:1']), 66200c92694SGreg Roach 'INDI:FAMC:PEDI' => new PedigreeLinkageType(I18N::translate('Relationship to parents')), 66300c92694SGreg Roach 'INDI:FAMC:STAT' => new ChildLinkageStatus(I18N::translate('Status')), 66400c92694SGreg Roach 'INDI:FAMS' => new XrefFamily(I18N::translate('Family as a spouse')), 66500c92694SGreg Roach 'INDI:FCOM' => new FirstCommunion(I18N::translate('First communion')), 66600c92694SGreg Roach 'INDI:FCOM:DATE' => new DateValue(I18N::translate('Date of first communion')), 66700c92694SGreg Roach 'INDI:FCOM:PLAC' => new PlaceName(I18N::translate('Place of first communion')), 66800c92694SGreg Roach 'INDI:GRAD' => new Graduation(I18N::translate('Graduation')), 66900c92694SGreg Roach 'INDI:GRAD:AGNC' => new ResponsibleAgency(I18N::translate('School or college')), 67000c92694SGreg Roach 'INDI:IDNO' => new NationalIdNumber(I18N::translate('Identification number')), 6715d2c6313SGreg Roach 'INDI:IDNO:TYPE' => new EventOrFactClassification(I18N::translate('Type of identification number')), 67200c92694SGreg Roach 'INDI:IMMI' => new Immigration(I18N::translate('Immigration')), 67300c92694SGreg Roach 'INDI:IMMI:DATE' => new DateValue(I18N::translate('Date of immigration')), 67400c92694SGreg Roach 'INDI:IMMI:PLAC' => new PlaceName(I18N::translate('Place of immigration')), 67500c92694SGreg Roach 'INDI:NAME' => new NamePersonal(I18N::translate('Name')), 67603c55594SGreg Roach 'INDI:NAME:*:SOUR' => new XrefSource(I18N::translate('Source citation')), 67703c55594SGreg Roach 'INDI:NAME:*:SOUR:DATA' => new SourceData(I18N::translate('Data')), 67803c55594SGreg Roach 'INDI:NAME:*:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 67903c55594SGreg Roach 'INDI:NAME:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 68003c55594SGreg Roach 'INDI:NAME:*:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 68103c55594SGreg Roach 'INDI:NAME:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 68203c55594SGreg Roach 'INDI:NAME:*:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 68303c55594SGreg Roach 'INDI:NAME:*:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 68403c55594SGreg Roach 'INDI:NAME:*:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 68503c55594SGreg Roach 'INDI:NAME:*:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 68600c92694SGreg Roach 'INDI:NAME:FONE' => new NamePhoneticVariation(I18N::translate('Phonetic name')), 68700c92694SGreg Roach 'INDI:NAME:FONE:GIVN' => new NamePieceGiven(I18N::translate('Given names')), 68800c92694SGreg Roach 'INDI:NAME:FONE:NICK' => new NamePieceNickname(I18N::translate('Nickname')), 68903c55594SGreg Roach 'INDI:NAME:FONE:NOTE' => new NoteStructure(I18N::translate('Note')), 69000c92694SGreg Roach 'INDI:NAME:FONE:NPFX' => new NamePiecePrefix(I18N::translate('Name prefix')), 69100c92694SGreg Roach 'INDI:NAME:FONE:NSFX' => new NamePieceSuffix(I18N::translate('Name suffix')), 69203c55594SGreg Roach 'INDI:NAME:FONE:SOUR' => new XrefSource(I18N::translate('Source citation')), 69300c92694SGreg Roach 'INDI:NAME:FONE:SPFX' => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')), 69400c92694SGreg Roach 'INDI:NAME:FONE:SURN' => new NamePieceSurname(I18N::translate('Surname')), 69500c92694SGreg Roach 'INDI:NAME:FONE:TYPE' => new PhoneticType(I18N::translate('Phonetic type')), 69600c92694SGreg Roach 'INDI:NAME:GIVN' => new NamePieceGiven(I18N::translate('Given names')), 69700c92694SGreg Roach 'INDI:NAME:NICK' => new NamePieceNickname(I18N::translate('Nickname')), 69800c92694SGreg Roach 'INDI:NAME:NPFX' => new NamePiecePrefix(I18N::translate('Name prefix')), 69900c92694SGreg Roach 'INDI:NAME:NSFX' => new NamePieceSuffix(I18N::translate('Name suffix')), 70000c92694SGreg Roach 'INDI:NAME:ROMN' => new NameRomanizedVariation(I18N::translate('Romanized name')), 70100c92694SGreg Roach 'INDI:NAME:ROMN:GIVN' => new NamePieceGiven(I18N::translate('Given names')), 70200c92694SGreg Roach 'INDI:NAME:ROMN:NICK' => new NamePieceNickname(I18N::translate('Nickname')), 70303c55594SGreg Roach 'INDI:NAME:ROMN:NOTE' => new NoteStructure(I18N::translate('Note')), 70400c92694SGreg Roach 'INDI:NAME:ROMN:NPFX' => new NamePiecePrefix(I18N::translate('Name prefix')), 70500c92694SGreg Roach 'INDI:NAME:ROMN:NSFX' => new NamePieceSuffix(I18N::translate('Name suffix')), 70603c55594SGreg Roach 'INDI:NAME:ROMN:SOUR' => new XrefSource(I18N::translate('Source citation')), 70700c92694SGreg Roach 'INDI:NAME:ROMN:SPFX' => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')), 70800c92694SGreg Roach 'INDI:NAME:ROMN:SURN' => new NamePieceSurname(I18N::translate('Surname')), 70900c92694SGreg Roach 'INDI:NAME:ROMN:TYPE' => new RomanizedType(I18N::translate('Romanized type')), 71000c92694SGreg Roach 'INDI:NAME:SPFX' => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')), 71100c92694SGreg Roach 'INDI:NAME:SURN' => new NamePieceSurname(I18N::translate('Surname')), 71200c92694SGreg Roach 'INDI:NAME:TYPE' => new NameType(I18N::translate('Type of name')), 713f15544dcSGreg Roach 'INDI:NATI' => new NationalOrTribalOrigin(I18N::translate('Nationality')), 71400c92694SGreg Roach 'INDI:NATU' => new Naturalization(I18N::translate('Naturalization')), 71500c92694SGreg Roach 'INDI:NATU:DATE' => new DateValue(I18N::translate('Date of naturalization')), 71600c92694SGreg Roach 'INDI:NATU:PLAC' => new PlaceName(I18N::translate('Place of naturalization')), 71700c92694SGreg Roach 'INDI:NCHI' => new CountOfChildren(I18N::translate('Number of children')), 71800c92694SGreg Roach 'INDI:NMR' => new CountOfMarriages(I18N::translate('Number of marriages')), 71900c92694SGreg Roach 'INDI:NOTE' => new NoteStructure(I18N::translate('Note')), 72000c92694SGreg Roach 'INDI:OBJE' => new XrefMedia(I18N::translate('Media object')), 72100c92694SGreg Roach 'INDI:OCCU' => new Occupation(I18N::translate('Occupation')), 72200c92694SGreg Roach 'INDI:OCCU:AGNC' => new ResponsibleAgency(I18N::translate('Employer')), 72300c92694SGreg Roach 'INDI:ORDN' => new Ordination(I18N::translate('Ordination')), 72400c92694SGreg Roach 'INDI:ORDN:AGNC' => new Ordination(I18N::translate('Religious institution')), 72500c92694SGreg Roach 'INDI:ORDN:DATE' => new Ordination(I18N::translate('Date of ordination')), 72600c92694SGreg Roach 'INDI:ORDN:PLAC' => new Ordination(I18N::translate('Place of ordination')), 72700c92694SGreg Roach 'INDI:PROB' => new Probate(I18N::translate('Probate')), 72800c92694SGreg Roach 'INDI:PROP' => new Possessions(I18N::translate('Property')), 72900c92694SGreg Roach 'INDI:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 73000c92694SGreg Roach 'INDI:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), 73100c92694SGreg Roach 'INDI:RELI' => new ReligiousAffiliation(I18N::translate('Religion')), 73200c92694SGreg Roach 'INDI:RESI' => new Residence(I18N::translate('Residence')), 73300c92694SGreg Roach 'INDI:RESI:DATE' => new DateValue(I18N::translate('Date of residence')), 73400c92694SGreg Roach 'INDI:RESI:PLAC' => new PlaceName(I18N::translate('Place of residence')), 73500c92694SGreg Roach 'INDI:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 73600c92694SGreg Roach 'INDI:RETI' => new Retirement(I18N::translate('Retirement')), 73700c92694SGreg Roach 'INDI:RETI:AGNC' => new ResponsibleAgency(I18N::translate('Employer')), 73800c92694SGreg Roach 'INDI:RFN' => new PermanentRecordFileNumber(I18N::translate('Record file number')), 73900c92694SGreg Roach 'INDI:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 74000c92694SGreg Roach 'INDI:SEX' => new SexValue(I18N::translate('Gender')), 74100c92694SGreg Roach 'INDI:SLGC' => new LdsChildSealing(I18N::translate('LDS child sealing')), 74200c92694SGreg Roach 'INDI:SLGC:DATE' => new DateLdsOrd(I18N::translate('Date of LDS child sealing')), 74300c92694SGreg Roach 'INDI:SLGC:FAMC' => new XrefFamily(I18N::translate('Parents')), 74400c92694SGreg Roach 'INDI:SLGC:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS child sealing')), 74500c92694SGreg Roach 'INDI:SLGC:STAT' => new LdsChildSealingDateStatus(I18N::translate('Status')), 74600c92694SGreg Roach 'INDI:SLGC:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 74700c92694SGreg Roach 'INDI:SLGC:TEMP' => new TempleCode(I18N::translate('Temple')), 74800c92694SGreg Roach 'INDI:SOUR' => new XrefSource(I18N::translate('Source citation')), 74900c92694SGreg Roach 'INDI:SOUR:DATA' => new SourceData(I18N::translate('Data')), 750352bd396SGreg Roach 'INDI:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 75100c92694SGreg Roach 'INDI:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 75200c92694SGreg Roach 'INDI:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 75300c92694SGreg Roach 'INDI:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 75400c92694SGreg Roach 'INDI:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 75500c92694SGreg Roach 'INDI:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 75600c92694SGreg Roach 'INDI:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 75700c92694SGreg Roach 'INDI:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 75800c92694SGreg Roach 'INDI:SSN' => new SocialSecurityNumber(I18N::translate('Social security number')), 75900c92694SGreg Roach 'INDI:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), 76000c92694SGreg Roach 'INDI:TITL' => new NobilityTypeTitle(I18N::translate('Title')), 76100c92694SGreg Roach 'INDI:WILL' => new Will(I18N::translate('Will')), 76200c92694SGreg Roach 'NOTE' => new NoteRecord(I18N::translate('Shared note')), 76300c92694SGreg Roach 'NOTE:CHAN' => new Change(I18N::translate('Last change')), 76400c92694SGreg Roach 'NOTE:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 76500c92694SGreg Roach 'NOTE:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), 76600c92694SGreg Roach 'NOTE:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 76778c3bcf9SGreg Roach 'NOTE:CONC' => new SubmitterText(I18N::translate('Note')), 7686e233fa7SGreg Roach 'NOTE:CONT' => new SubmitterText(I18N::translate('Continuation')), 76900c92694SGreg Roach 'NOTE:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 77000c92694SGreg Roach 'NOTE:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), 77100c92694SGreg Roach 'NOTE:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 77200c92694SGreg Roach 'NOTE:SOUR' => new XrefSource(I18N::translate('Source citation')), 77300c92694SGreg Roach 'NOTE:SOUR:DATA' => new SourceData(I18N::translate('Data')), 774352bd396SGreg Roach 'NOTE:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 77500c92694SGreg Roach 'NOTE:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 77600c92694SGreg Roach 'NOTE:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 77700c92694SGreg Roach 'NOTE:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 77800c92694SGreg Roach 'NOTE:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 77900c92694SGreg Roach 'NOTE:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 78000c92694SGreg Roach 'NOTE:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 78100c92694SGreg Roach 'NOTE:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 78200c92694SGreg Roach 'OBJE' => new MediaRecord(I18N::translate('Media object')), 78300c92694SGreg Roach 'OBJE:BLOB' => new CustomElement(I18N::translate('Binary data object')), 78400c92694SGreg Roach 'OBJE:CHAN' => new Change(I18N::translate('Last change')), 78500c92694SGreg Roach 'OBJE:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 78600c92694SGreg Roach 'OBJE:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), 78700c92694SGreg Roach 'OBJE:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 78800c92694SGreg Roach 'OBJE:FILE' => new MultimediaFileReference(I18N::translate('Filename')), 78900c92694SGreg Roach 'OBJE:FILE:FORM' => new MultimediaFormat(I18N::translate('Format')), 79000c92694SGreg Roach 'OBJE:FILE:FORM:TYPE' => new SourceMediaType(I18N::translate('Media type')), 79100c92694SGreg Roach 'OBJE:FILE:TITL' => new DescriptiveTitle(I18N::translate('Title')), 79200c92694SGreg Roach 'OBJE:NOTE' => new NoteStructure(I18N::translate('Note')), 79300c92694SGreg Roach 'OBJE:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 79400c92694SGreg Roach 'OBJE:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), 79500c92694SGreg Roach 'OBJE:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 79600c92694SGreg Roach 'OBJE:SOUR' => new XrefSource(I18N::translate('Source citation')), 79700c92694SGreg Roach 'OBJE:SOUR:DATA' => new SourceData(I18N::translate('Data')), 798352bd396SGreg Roach 'OBJE:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 79900c92694SGreg Roach 'OBJE:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 80000c92694SGreg Roach 'OBJE:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 80100c92694SGreg Roach 'OBJE:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 80200c92694SGreg Roach 'OBJE:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 80300c92694SGreg Roach 'OBJE:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 80400c92694SGreg Roach 'OBJE:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 80500c92694SGreg Roach 'OBJE:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 80600c92694SGreg Roach 'REPO' => new RepositoryRecord(I18N::translate('Repository')), 80700c92694SGreg Roach 'REPO:ADDR' => new AddressLine(I18N::translate('Address')), 80800c92694SGreg Roach 'REPO:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 80900c92694SGreg Roach 'REPO:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 81000c92694SGreg Roach 'REPO:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 81100c92694SGreg Roach 'REPO:ADDR:CITY' => new AddressCity(I18N::translate('City')), 81200c92694SGreg Roach 'REPO:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 81300c92694SGreg Roach 'REPO:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 81400c92694SGreg Roach 'REPO:ADDR:STAE' => new AddressState(I18N::translate('State')), 81500c92694SGreg Roach 'REPO:CHAN' => new Change(I18N::translate('Last change')), 81600c92694SGreg Roach 'REPO:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 81700c92694SGreg Roach 'REPO:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), 81800c92694SGreg Roach 'REPO:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 81900c92694SGreg Roach 'REPO:EMAIL' => new AddressEmail(I18N::translate('Email address')), 82000c92694SGreg Roach 'REPO:FAX' => new AddressFax(I18N::translate('Fax')), 82100c92694SGreg Roach 'REPO:NAME' => new NameOfRepository(I18N::translateContext('Repository', 'Name')), 82200c92694SGreg Roach 'REPO:NOTE' => new NoteStructure(I18N::translate('Note')), 82300c92694SGreg Roach 'REPO:PHON' => new PhoneNumber(I18N::translate('Phone')), 82400c92694SGreg Roach 'REPO:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 82500c92694SGreg Roach 'REPO:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), 82600c92694SGreg Roach 'REPO:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 82700c92694SGreg Roach 'REPO:WWW' => new AddressWebPage(I18N::translate('URL')), 82800c92694SGreg Roach 'SOUR' => new SourceRecord(I18N::translate('Source')), 82900c92694SGreg Roach 'SOUR:ABBR' => new SourceFiledByEntry(I18N::translate('Abbreviation')), 83000c92694SGreg Roach 'SOUR:AUTH' => new SourceOriginator(I18N::translate('Author')), 83100c92694SGreg Roach 'SOUR:CHAN' => new Change(I18N::translate('Last change')), 83200c92694SGreg Roach 'SOUR:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 83300c92694SGreg Roach 'SOUR:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), 83400c92694SGreg Roach 'SOUR:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 83500c92694SGreg Roach 'SOUR:DATA' => new EmptyElement(I18N::translate('Data'), ['EVEN' => '0:M', 'AGNC' => '0:1', 'NOTE' => '0:M']), 83600c92694SGreg Roach 'SOUR:DATA:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), 83700c92694SGreg Roach 'SOUR:DATA:EVEN' => new EventsRecorded(I18N::translate('Events')), 83800c92694SGreg Roach 'SOUR:DATA:EVEN:DATE' => new DateValue(I18N::translate('Date range')), 83900c92694SGreg Roach 'SOUR:DATA:EVEN:PLAC' => new SourceJurisdictionPlace(I18N::translate('Place'), []), 84000c92694SGreg Roach 'SOUR:DATA:NOTE' => new NoteStructure(I18N::translate('Note')), 84100c92694SGreg Roach 'SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 84200c92694SGreg Roach 'SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 84300c92694SGreg Roach 'SOUR:PUBL' => new SourcePublicationFacts(I18N::translate('Publication')), 84400c92694SGreg Roach 'SOUR:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 84500c92694SGreg Roach 'SOUR:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), 84600c92694SGreg Roach 'SOUR:REPO' => new XrefRepository(I18N::translate('Repository')), 84700c92694SGreg Roach 'SOUR:REPO:CALN' => new SourceCallNumber(I18N::translate('Call number')), 84800c92694SGreg Roach 'SOUR:REPO:CALN:MEDI' => new SourceMediaType(I18N::translate('Media type')), 84900c92694SGreg Roach 'SOUR:REPO:NOTE' => new NoteStructure(I18N::translate('Note')), 85000c92694SGreg Roach 'SOUR:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 85100c92694SGreg Roach 'SOUR:TEXT' => new TextFromSource(I18N::translate('Text')), 85200c92694SGreg Roach 'SOUR:TITL' => new DescriptiveTitle(I18N::translate('Title')), 85300c92694SGreg Roach 'SUBM' => new SubmitterRecord(I18N::translate('Submitter')), 85400c92694SGreg Roach 'SUBM:ADDR' => new AddressLine(I18N::translate('Address')), 85500c92694SGreg Roach 'SUBM:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 85600c92694SGreg Roach 'SUBM:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 85700c92694SGreg Roach 'SUBM:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 85800c92694SGreg Roach 'SUBM:ADDR:CITY' => new AddressCity(I18N::translate('City')), 85900c92694SGreg Roach 'SUBM:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 86000c92694SGreg Roach 'SUBM:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 86100c92694SGreg Roach 'SUBM:ADDR:STAE' => new AddressState(I18N::translate('State')), 86200c92694SGreg Roach 'SUBM:CHAN' => new Change(I18N::translate('Last change')), 86300c92694SGreg Roach 'SUBM:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 86400c92694SGreg Roach 'SUBM:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), 86500c92694SGreg Roach 'SUBM:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 86600c92694SGreg Roach 'SUBM:EMAIL' => new AddressEmail(I18N::translate('Email address')), 86700c92694SGreg Roach 'SUBM:FAX' => new AddressFax(I18N::translate('Fax')), 86800c92694SGreg Roach 'SUBM:LANG' => new LanguageId(I18N::translate('Language')), 86900c92694SGreg Roach 'SUBM:NAME' => new SubmitterName(I18N::translate('Name')), 87000c92694SGreg Roach 'SUBM:NOTE' => new NoteStructure(I18N::translate('Note')), 87100c92694SGreg Roach 'SUBM:OBJE' => new XrefMedia(I18N::translate('Media object')), 87200c92694SGreg Roach 'SUBM:PHON' => new PhoneNumber(I18N::translate('Phone')), 87300c92694SGreg Roach 'SUBM:RFN' => new SubmitterRegisteredRfn(I18N::translate('Record file number')), 87400c92694SGreg Roach 'SUBM:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 87500c92694SGreg Roach 'SUBM:WWW' => new AddressWebPage(I18N::translate('URL')), 87600c92694SGreg Roach 'SUBN' => new SubmissionRecord(I18N::translate('Submission')), 87700c92694SGreg Roach 'SUBN:ANCE' => new GenerationsOfAncestors(I18N::translate('Generations of ancestors')), 87800c92694SGreg Roach 'SUBN:CHAN' => new Change(I18N::translate('Last change')), 87900c92694SGreg Roach 'SUBN:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 88000c92694SGreg Roach 'SUBN:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), 88100c92694SGreg Roach 'SUBN:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 88200c92694SGreg Roach 'SUBN:DESC' => new GenerationsOfDescendants(I18N::translate('Generations of descendants')), 88300c92694SGreg Roach 'SUBN:FAMF' => new NameOfFamilyFile(I18N::translate('Family file')), 88400c92694SGreg Roach 'SUBN:NOTE' => new NoteStructure(I18N::translate('Note')), 88500c92694SGreg Roach 'SUBN:ORDI' => new OrdinanceProcessFlag(I18N::translate('Ordinance')), 88600c92694SGreg Roach 'SUBN:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 88700c92694SGreg Roach 'SUBN:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), 88800c92694SGreg Roach 'SUBN:TEMP' => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')), 88900c92694SGreg Roach 'TRLR' => new EmptyElement(I18N::translate('Trailer')), 89000c92694SGreg Roach ]; 89100c92694SGreg Roach } 89200c92694SGreg Roach 89300c92694SGreg Roach /** 894701f5d18SGreg Roach * Definitions for GEDCOM 7. 895701f5d18SGreg Roach * 896701f5d18SGreg Roach * @return array<string,ElementInterface> 897701f5d18SGreg Roach */ 898701f5d18SGreg Roach private function gedcom7Tags(): array 899701f5d18SGreg Roach { 900701f5d18SGreg Roach return [ 901701f5d18SGreg Roach 'FAM:NO' => new NonEvent('Event did not happen'), 902701f5d18SGreg Roach 'INDI:NO' => new NonEvent('Event did not happen'), 903701f5d18SGreg Roach 'FAM:*:ASSO' => new XrefAssociate(I18N::translate('Associate')), 904701f5d18SGreg Roach 'FAM:*:ASSO:PHRASE' => new CustomElement(I18N::translate('Phrase')), 905701f5d18SGreg Roach 'FAM:*:ASSO:ROLE' => new RoleInEvent(I18N::translate('Role')), 906701f5d18SGreg Roach 'FAM:*:ASSO:ROLE:PHRASE' => new CustomElement(I18N::translate('Phrase')), 907701f5d18SGreg Roach 'FAM:*:DATE:TIME' => new TimeValue(I18N::translate('Time')), 908701f5d18SGreg Roach 'FAM:*:PLAC:EXID' => new ExternalIdentifier(I18N::translate('External identifier')), 909701f5d18SGreg Roach 'FAM:*:PLAC:EXID:TYPE' => new ExternalIdentifierType(I18N::translate('Type')), 910701f5d18SGreg Roach 'FAM:*:SDATE' => new CustomElement(I18N::translate('Sort date')), 911701f5d18SGreg Roach 'FAM:*:SDATE:PHRASE' => new CustomElement(I18N::translate('Phrase')), 912701f5d18SGreg Roach 'FAM:*:SDATE:TIME' => new CustomElement(I18N::translate('Sort time')), 913701f5d18SGreg Roach 'FAM:*:SNOTE' => new XrefSharedNote(I18N::translate('Shared note')), 914701f5d18SGreg Roach 'FAM:*:UID' => new Uid(I18N::translate('Unique identifier')), 915701f5d18SGreg Roach 'FAM:ASSO' => new XrefAssociate(I18N::translate('Associate')), 916701f5d18SGreg Roach 'FAM:ASSO:PHRASE' => new CustomElement(I18N::translate('Phrase')), 917701f5d18SGreg Roach 'FAM:ASSO:ROLE' => new RoleInEvent(I18N::translate('Role')), 918701f5d18SGreg Roach 'FAM:ASSO:ROLE:PHRASE' => new CustomElement(I18N::translate('Phrase')), 919701f5d18SGreg Roach 'FAM:CREA' => new Creation(I18N::translate('Created at')), 920701f5d18SGreg Roach 'FAM:CREA:DATE' => new DateValue(I18N::translate('Creation date')), 921701f5d18SGreg Roach 'FAM:CREA:DATE:TIME' => new TimeValue(I18N::translate('Creation time')), 922701f5d18SGreg Roach 'FAM:EXID' => new ExternalIdentifier(I18N::translate('External identifier')), 923701f5d18SGreg Roach 'FAM:EXID:TYPE' => new ExternalIdentifierType(I18N::translate('Type')), 9245d2c6313SGreg Roach 'FAM:FACT' => new FamilyFact(I18N::translate('Fact')), 925701f5d18SGreg Roach 'FAM:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 926701f5d18SGreg Roach 'FAM:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 927701f5d18SGreg Roach 'FAM:SNOTE' => new XrefSharedNote(I18N::translate('Shared note')), 928701f5d18SGreg Roach 'FAM:UID' => new Uid(I18N::translate('Unique identifier')), 929701f5d18SGreg Roach 'INDI:*:ASSO' => new XrefAssociate(I18N::translate('Associate')), 930701f5d18SGreg Roach 'INDI:*:ASSO:PHRASE' => new CustomElement(I18N::translate('Phrase')), 931701f5d18SGreg Roach 'INDI:*:ASSO:ROLE' => new RoleInEvent(I18N::translate('Role')), 932701f5d18SGreg Roach 'INDI:*:ASSO:ROLE:PHRASE' => new CustomElement(I18N::translate('Phrase')), 933701f5d18SGreg Roach 'INDI:*:DATE:TIME' => new TimeValue(I18N::translate('Time')), 934701f5d18SGreg Roach 'INDI:*:PLAC:EXID' => new ExternalIdentifier(I18N::translate('External identifier')), 935701f5d18SGreg Roach 'INDI:*:PLAC:EXID:TYPE' => new ExternalIdentifierType(I18N::translate('Type')), 936701f5d18SGreg Roach 'INDI:*:SDATE' => new CustomElement(I18N::translate('Sort date')), 937701f5d18SGreg Roach 'INDI:*:SDATE:PHRASE' => new CustomElement(I18N::translate('Phrase')), 938701f5d18SGreg Roach 'INDI:*:SDATE:TIME' => new CustomElement(I18N::translate('Sort time')), 939701f5d18SGreg Roach 'INDI:*:SNOTE' => new XrefSharedNote(I18N::translate('Shared note')), 940701f5d18SGreg Roach 'INDI:*:UID' => new Uid(I18N::translate('Unique identifier')), 941701f5d18SGreg Roach 'INDI:ADOP:FAMC:ADOP:PHRASE' => new CustomElement(I18N::translate('Phrase')), 942701f5d18SGreg Roach 'INDI:ALIA:PHRASE' => new CustomElement(I18N::translate('Phrase')), 943701f5d18SGreg Roach 'INDI:ASSO' => new XrefAssociate(I18N::translate('Associate')), 944701f5d18SGreg Roach 'INDI:ASSO:PHRASE' => new CustomElement(I18N::translate('Phrase')), 945701f5d18SGreg Roach 'INDI:ASSO:ROLE' => new RoleInEvent(I18N::translate('Role')), 946701f5d18SGreg Roach 'INDI:ASSO:ROLE:PHRASE' => new CustomElement(I18N::translate('Phrase')), 947701f5d18SGreg Roach 'INDI:BIRT:DATE:TIME' => new TimeValue(I18N::translate('Time of birth')), 948701f5d18SGreg Roach 'INDI:CREA' => new Creation(I18N::translate('Created at')), 949701f5d18SGreg Roach 'INDI:CREA:DATE' => new DateValue(I18N::translate('Creation date')), 950701f5d18SGreg Roach 'INDI:CREA:DATE:TIME' => new TimeValue(I18N::translate('Creation time')), 951701f5d18SGreg Roach 'INDI:DEAT:DATE:TIME' => new TimeValue(I18N::translate('Time of death')), 952701f5d18SGreg Roach 'INDI:EXID' => new ExternalIdentifier(I18N::translate('External identifier')), 953701f5d18SGreg Roach 'INDI:EXID:TYPE' => new ExternalIdentifierType(I18N::translate('Type')), 954701f5d18SGreg Roach 'INDI:INIL' => /* I18N: GEDCOM tag INIL - an LDS ceremony */ new LdsInitiatory(I18N::translate('LDS initiatory')), 955701f5d18SGreg Roach 'INDI:INIL:STAT' => new LdsOrdinanceStatus(I18N::translate('Status')), 956701f5d18SGreg Roach 'INDI:INIL:STAT:DATE' => new ChangeDate(I18N::translate('Date of status change')), 957701f5d18SGreg Roach 'INDI:INIL:STAT:DATE:TIME' => new TimeValue(I18N::translate('Time of status change')), 958701f5d18SGreg Roach 'INDI:INIL:TEMP' => new TempleCode(I18N::translate('Temple')), 959701f5d18SGreg Roach 'INDI:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 960701f5d18SGreg Roach 'INDI:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 961701f5d18SGreg Roach 'INDI:SNOTE' => new XrefSharedNote(I18N::translate('Shared note')), 962701f5d18SGreg Roach 'INDI:UID' => new Uid(I18N::translate('Unique identifier')), 963701f5d18SGreg Roach 'OBJE:CREA' => new Creation(I18N::translate('Created at')), 964701f5d18SGreg Roach 'OBJE:CREA:DATE' => new DateValue(I18N::translate('Creation date')), 965701f5d18SGreg Roach 'OBJE:CREA:DATE:TIME' => new TimeValue(I18N::translate('Creation time')), 966701f5d18SGreg Roach 'OBJE:SNOTE' => new XrefSharedNote(I18N::translate('Shared note')), 967701f5d18SGreg Roach 'REPO:CREA' => new Creation(I18N::translate('Created at')), 968701f5d18SGreg Roach 'REPO:CREA:DATE' => new DateValue(I18N::translate('Creation date')), 969701f5d18SGreg Roach 'REPO:CREA:DATE:TIME' => new TimeValue(I18N::translate('Creation time')), 970701f5d18SGreg Roach 'REPO:EXID' => new ExternalIdentifier(I18N::translate('External identifier')), 971701f5d18SGreg Roach 'REPO:EXID:TYPE' => new ExternalIdentifierType(I18N::translate('Type')), 972701f5d18SGreg Roach 'REPO:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 973701f5d18SGreg Roach 'REPO:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 974701f5d18SGreg Roach 'REPO:SNOTE' => new XrefSharedNote(I18N::translate('Shared note')), 975701f5d18SGreg Roach 'REPO:UID' => new Uid(I18N::translate('Unique identifier')), 976701f5d18SGreg Roach 'SNOTE:CREA' => new Creation(I18N::translate('Created at')), 977701f5d18SGreg Roach 'SNOTE:CREA:DATE' => new DateValue(I18N::translate('Creation date')), 978701f5d18SGreg Roach 'SNOTE:CREA:DATE:TIME' => new TimeValue(I18N::translate('Creation time')), 979701f5d18SGreg Roach 'SNOTE:EXID' => new ExternalIdentifier(I18N::translate('External identifier')), 980701f5d18SGreg Roach 'SNOTE:EXID:TYPE' => new ExternalIdentifierType(I18N::translate('Type')), 981701f5d18SGreg Roach 'SNOTE:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 982701f5d18SGreg Roach 'SNOTE:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 983701f5d18SGreg Roach 'SNOTE:UID' => new Uid(I18N::translate('Unique identifier')), 984701f5d18SGreg Roach 'SOUR:CREA' => new Creation(I18N::translate('Created at')), 985701f5d18SGreg Roach 'SOUR:CREA:DATE' => new DateValue(I18N::translate('Creation date')), 986701f5d18SGreg Roach 'SOUR:CREA:DATE:TIME' => new TimeValue(I18N::translate('Creation time')), 987701f5d18SGreg Roach 'SOUR:EXID' => new ExternalIdentifier(I18N::translate('External identifier')), 988701f5d18SGreg Roach 'SOUR:EXID:TYPE' => new ExternalIdentifierType(I18N::translate('Type')), 989701f5d18SGreg Roach 'SOUR:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 990701f5d18SGreg Roach 'SOUR:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 991701f5d18SGreg Roach 'SOUR:SNOTE' => new XrefSharedNote(I18N::translate('Shared note')), 992701f5d18SGreg Roach 'SOUR:UID' => new Uid(I18N::translate('Unique identifier')), 993701f5d18SGreg Roach 'SUBM:CREA' => new Creation(I18N::translate('Created at')), 994701f5d18SGreg Roach 'SUBM:CREA:DATE' => new DateValue(I18N::translate('Creation date')), 995701f5d18SGreg Roach 'SUBM:CREA:DATE:TIME' => new TimeValue(I18N::translate('Creation time')), 996701f5d18SGreg Roach 'SUBM:EXID' => new ExternalIdentifier(I18N::translate('External identifier')), 997701f5d18SGreg Roach 'SUBM:EXID:TYPE' => new ExternalIdentifierType(I18N::translate('Type')), 998701f5d18SGreg Roach 'SUBM:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 999701f5d18SGreg Roach 'SUBM:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 1000701f5d18SGreg Roach 'SUBM:SNOTE' => new XrefSharedNote(I18N::translate('Shared note')), 1001701f5d18SGreg Roach 'SUBM:UID' => new Uid(I18N::translate('Unique identifier')), 1002701f5d18SGreg Roach ]; 1003701f5d18SGreg Roach } 1004701f5d18SGreg Roach 1005701f5d18SGreg Roach /** 1006744f65c6SGreg Roach * Aldfaer also uses: _BOLD, _ITALIC, _UNDERLINE, _COLOR 1007744f65c6SGreg Roach * 100800c92694SGreg Roach * @return array<string,ElementInterface> 1009cb0c239dSGreg Roach */ 1010cb0c239dSGreg Roach private function aldfaerTags(): array 1011cb0c239dSGreg Roach { 1012cb0c239dSGreg Roach return [ 10139e97502fSGreg Roach 'FAM:MARR_CIVIL' => new Marriage(I18N::translate('Civil marriage')), 10149e97502fSGreg Roach 'FAM:MARR_PARTNERS' => new Marriage(I18N::translate('Registered partnership')), 10159e97502fSGreg Roach 'FAM:MARR_RELIGIOUS' => new Marriage(I18N::translate('Religious marriage')), 10169e97502fSGreg Roach 'FAM:MARR_UNKNOWN' => new Marriage(I18N::translate('Marriage')), 1017744f65c6SGreg Roach 'FAM:_ALDFAER_NOREL' => new EmptyElement('No relation'), // What is this? 1018744f65c6SGreg Roach 'HEAD:SUBM:ADDR' => new AddressLine(I18N::translate('Address')), 1019744f65c6SGreg Roach 'HEAD:SUBM:PHON' => new PhoneNumber(I18N::translate('Phone')), 1020744f65c6SGreg Roach 'HEAD:SUBM:_EMAI' => new AddressEmail(I18N::translate('Email')), 1021744f65c6SGreg Roach 'HEAD:SUBM:_FAX' => new AddressFax(I18N::translate('Fax')), 1022744f65c6SGreg Roach 'HEAD:SUBM:_WWW' => new AddressWebPage(I18N::translate('URL')), 1023744f65c6SGreg Roach 'INDI:BIRT:_ALDFAER_TIME' => new TimeValue(I18N::translate('Time of birth')), 1024cb0c239dSGreg Roach 'INDI:BIRT:_LENGTH' => new CustomElement(I18N::translate('Length')), 1025cb0c239dSGreg Roach 'INDI:BIRT:_WEIGHT' => new CustomElement(I18N::translate('Weight')), 1026744f65c6SGreg Roach 'INDI:DEAT:_ALDFAER_TIME' => new TimeValue(I18N::translate('Time of death')), 1027744f65c6SGreg Roach 'INDI:_REFERENCE' => new CustomElement(''), 1028744f65c6SGreg Roach 'INDI:_PRIVACY' => new CustomElement(''), 1029744f65c6SGreg Roach 'INDI:_PRIVACY:_OBJECTION' => new CustomElement(''), 1030744f65c6SGreg Roach 'INDI:_PRIVACY:_PUBLISH' => new CustomElement(''), 1031744f65c6SGreg Roach 'INDI:NAME:_SURNAS' => new CustomElement(I18N::translate('Alternative spelling of surname')), 1032744f65c6SGreg Roach 'INDI:DEAT:_DATE' => new DateValue(I18N::translate('Date')), 1033744f65c6SGreg Roach 'INDI:_INQUBIRT' => new CustomElement(I18N::translate('')), 1034744f65c6SGreg Roach 'INDI:_INQUCHIL' => new CustomElement(I18N::translate('')), 1035744f65c6SGreg Roach 'INDI:_INQURELA' => new CustomElement(I18N::translate('')), 1036744f65c6SGreg Roach 'INDI:_INQUDEAT' => new CustomElement(I18N::translate('')), 1037744f65c6SGreg Roach 'INDI:_INQUVAR1' => new CustomElement(I18N::translate('')), 1038744f65c6SGreg Roach 'INDI:_INQUVAR1CAT' => new CustomElement(I18N::translate('')), 1039744f65c6SGreg Roach 'INDI:_INQUVAR2' => new CustomElement(I18N::translate('')), 1040744f65c6SGreg Roach 'INDI:_INQUVAR2CAT' => new CustomElement(I18N::translate('')), 1041744f65c6SGreg Roach 'INDI:_INQUVAR3' => new CustomElement(I18N::translate('')), 1042744f65c6SGreg Roach 'INDI:_INQUVAR3CAT' => new CustomElement(I18N::translate('')), 1043744f65c6SGreg Roach 'INDI:_NOPARTNER' => new CustomElement(I18N::translate('')), 1044744f65c6SGreg Roach 'INDI:_NEW' => new CustomElement(I18N::translate('')), 1045cb0c239dSGreg Roach ]; 1046cb0c239dSGreg Roach } 1047cb0c239dSGreg Roach 1048cb0c239dSGreg Roach /** 1049cb0c239dSGreg Roach * @return array<string,ElementInterface> 105013d1ef26SGreg Roach * 105113d1ef26SGreg 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 105200c92694SGreg Roach */ 105300c92694SGreg Roach private function ancestryTags(): array 105400c92694SGreg Roach { 105500c92694SGreg Roach return [ 105697ed7714SGreg Roach 'HEAD:SOUR:_TREE' => new CustomElement(I18N::translate('Family tree')), 105797ed7714SGreg Roach 'HEAD:SOUR:_TREE:NOTE' => new SubmitterText(I18N::translate('Note')), 105897ed7714SGreg Roach 'HEAD:SOUR:_TREE:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 105910b4ce2aSGreg Roach 'INDI:*:SOUR:_APID' => /* I18N: GEDCOM tag _APID */ new CustomElement(I18N::translate('Ancestry PID')), 106013d1ef26SGreg Roach 'INDI:*:SOUR:DATA:NOTE' => new SubmitterText(I18N::translate('Note')), 106100c92694SGreg Roach 'INDI:_EMPLOY' => new CustomFact(I18N::translate('Occupation')), 10629b0286b1SGreg Roach 'INDI:_FUN' => new CustomEvent(I18N::translate('Funeral')), 1063701f5d18SGreg Roach 'INDI:_INIT' => new LdsInitiatory(I18N::translate('LDS initiatory')), 10649b0286b1SGreg Roach 'INDI:_ORDI' => new CustomEvent(I18N::translate('Ordination')), 10659b0286b1SGreg Roach 'INDI:_ORIG' => new CustomFact(I18N::translate('Origin')), 10669b0286b1SGreg Roach 'INDI:_DEST' => new CustomFact(I18N::translate('Destination')), 106713d1ef26SGreg Roach 'OBJE:DATE' => new DateValue(I18N::translate('Date')), 106813d1ef26SGreg Roach 'OBJE:PLAC' => new PlaceName(I18N::translate('Place')), 106913d1ef26SGreg Roach 'OBJE:_CREA' => /* I18N: GEDCOM tag _CREA */ new CustomElement(I18N::translate('Created at')), 107013d1ef26SGreg Roach 'OBJE:_ORIG' => /* I18N: GEDCOM tag _ORIG */ new CustomElement(I18N::translate('Original text')), 107113d1ef26SGreg Roach 'OBJE:_ORIG:_URL' => new AddressWebPage(I18N::translate('URL')), 107200c92694SGreg Roach ]; 107300c92694SGreg Roach } 107400c92694SGreg Roach 107500c92694SGreg Roach /** 107600c92694SGreg Roach * @return array<string,ElementInterface> 107700c92694SGreg Roach * 107800c92694SGreg Roach * @see https://wiki-de.genealogy.net/GEDCOM/_Nutzerdef-Tag 107900c92694SGreg Roach */ 108000c92694SGreg Roach private function brothersKeeperTags(): array 108100c92694SGreg Roach { 108200c92694SGreg Roach return [ 108300c92694SGreg Roach 'FAM:*:_EVN' => new CustomElement('Event number'), 10844c10b11dSGreg Roach 'FAM:CHIL:_FREL' => new CustomElement(I18N::translate('Relationship to father')), 10854c10b11dSGreg Roach 'FAM:CHIL:_MREL' => new CustomElement(I18N::translate('Relationship to mother')), 108600c92694SGreg Roach 'FAM:_COML' => new CustomFamilyEvent(I18N::translate('Common law marriage')), 108700c92694SGreg Roach 'FAM:_MARI' => new CustomFamilyEvent(I18N::translate('Marriage intention')), 108800c92694SGreg Roach 'FAM:_MBON' => new CustomFamilyEvent(I18N::translate('Marriage bond')), 108900c92694SGreg Roach 'FAM:_NMR' => new CustomFamilyEvent(I18N::translate('Not married'), ['NOTE' => '0:M', 'SOUR' => '0:M']), 109000c92694SGreg Roach 'FAM:_PRMN' => new CustomElement(I18N::translate('Permanent number')), 109100c92694SGreg Roach 'FAM:_SEPR' => new CustomFamilyEvent(I18N::translate('Separated')), 109200c92694SGreg Roach 'FAM:_TODO' => new CustomElement(I18N::translate('Research task')), 109300c92694SGreg Roach 'INDI:*:_EVN' => new CustomElement('Event number'), 109400c92694SGreg Roach 'INDI:NAME:_ADPN' => new NamePersonal(I18N::translate('Adopted name'), []), 109500c92694SGreg Roach 'INDI:NAME:_AKAN' => new NamePersonal(I18N::translate('Also known as'), []), 109600c92694SGreg Roach 'INDI:NAME:_BIRN' => new NamePersonal(I18N::translate('Birth name'), []), 109700c92694SGreg Roach 'INDI:NAME:_CALL' => new NamePersonal('Called name', []), 109800c92694SGreg Roach 'INDI:NAME:_CENN' => new NamePersonal('Census name', []), 109900c92694SGreg Roach 'INDI:NAME:_CURN' => new NamePersonal('Current name', []), 110000c92694SGreg Roach 'INDI:NAME:_FARN' => new NamePersonal(I18N::translate('Estate name'), []), 110100c92694SGreg Roach 'INDI:NAME:_FKAN' => new NamePersonal('Formal name', []), 110200c92694SGreg Roach 'INDI:NAME:_FRKA' => new NamePersonal('Formerly known as', []), 110300c92694SGreg Roach 'INDI:NAME:_GERN' => new NamePersonal('German name', []), 110400c92694SGreg Roach 'INDI:NAME:_HEBN' => new NamePersonal(I18N::translate('Hebrew name'), []), 110500c92694SGreg Roach 'INDI:NAME:_HNM' => new NamePersonal(I18N::translate('Hebrew name'), []), 110600c92694SGreg Roach 'INDI:NAME:_INDG' => new NamePersonal('Indigenous name', []), 110700c92694SGreg Roach 'INDI:NAME:_INDN' => new NamePersonal('Indian name', []), 110800c92694SGreg Roach 'INDI:NAME:_LNCH' => new NamePersonal('Legal name change', []), 110900c92694SGreg Roach 'INDI:NAME:_MARN' => new NamePersonal('Married name', []), 111000c92694SGreg Roach 'INDI:NAME:_MARNM' => new NamePersonal('Married name', []), 111100c92694SGreg Roach 'INDI:NAME:_OTHN' => new NamePersonal('Other name', []), 111200c92694SGreg Roach 'INDI:NAME:_RELN' => new NamePersonal('Religious name', []), 111300c92694SGreg Roach 'INDI:NAME:_SHON' => new NamePersonal('Short name', []), 111400c92694SGreg Roach 'INDI:NAME:_SLDN' => new NamePersonal('Soldier name', []), 111500c92694SGreg Roach 'INDI:_ADPF' => new CustomElement(I18N::translate('Adopted by father')), 111600c92694SGreg Roach 'INDI:_ADPM' => new CustomElement(I18N::translate('Adopted by mother')), 111700c92694SGreg Roach 'INDI:_BRTM' => new CustomIndividualEvent(I18N::translate('Brit milah')), 111800c92694SGreg Roach 'INDI:_BRTM:DATE' => new DateValue(I18N::translate('Date of brit milah')), 111900c92694SGreg Roach 'INDI:_BRTM:PLAC' => new PlaceName(I18N::translate('Place of brit milah')), 112000c92694SGreg Roach 'INDI:_EMAIL' => new AddressEmail(I18N::translate('Email address')), 112100c92694SGreg Roach 'INDI:_EYEC' => new CustomFact(I18N::translate('Eye color')), 1122ab31afd8SGreg Roach 'INDI:_FNRL' => new CustomElement(I18N::translate('Funeral')), 112300c92694SGreg Roach 'INDI:_HAIR' => new CustomFact(I18N::translate('Hair color')), 112400c92694SGreg Roach 'INDI:_HEIG' => new CustomFact(I18N::translate('Height')), 112500c92694SGreg Roach 'INDI:_INTE' => new CustomElement(I18N::translate('Interment')), 112600c92694SGreg Roach 'INDI:_MEDC' => new CustomFact(I18N::translate('Medical')), 112700c92694SGreg Roach 'INDI:_MILT' => new CustomElement(I18N::translate('Military service')), 112800c92694SGreg Roach 'INDI:_NLIV' => new CustomFact(I18N::translate('Not living')), 112900c92694SGreg Roach 'INDI:_NMAR' => new CustomFact(I18N::translate('Never married'), ['NOTE' => '0:M', 'SOUR' => '0:M']), 113000c92694SGreg Roach 'INDI:_PRMN' => new CustomElement(I18N::translate('Permanent number')), 113100c92694SGreg Roach 'INDI:_TODO' => new CustomElement(I18N::translate('Research task')), 113200c92694SGreg Roach 'INDI:_WEIG' => new CustomFact(I18N::translate('Weight')), 113300c92694SGreg Roach 'INDI:_YART' => new CustomIndividualEvent(I18N::translate('Yahrzeit')), 113400c92694SGreg Roach // 1 XXXX 113500c92694SGreg Roach // 2 _EVN ## 113600c92694SGreg Roach // 1 ASSO @Xnnn@ 113700c92694SGreg Roach // 2 RELA Witness at event _EVN ## 113800c92694SGreg Roach ]; 113900c92694SGreg Roach } 114000c92694SGreg Roach 114100c92694SGreg Roach /** 114200c92694SGreg Roach * @return array<string,ElementInterface> 114300c92694SGreg Roach */ 114400c92694SGreg Roach private function familySearchTags(): array 114500c92694SGreg Roach { 114600c92694SGreg Roach return [ 114700c92694SGreg Roach 'INDI:_FSFTID' => /* I18N: familysearch.org */ new FamilySearchFamilyTreeId(I18N::translate('FamilySearch ID')), 114800c92694SGreg Roach ]; 114900c92694SGreg Roach } 115000c92694SGreg Roach 115100c92694SGreg Roach /** 115200c92694SGreg Roach * @return array<string,ElementInterface> 115300c92694SGreg Roach */ 115400c92694SGreg Roach private function familyTreeBuilderTags(): array 115500c92694SGreg Roach { 115600c92694SGreg Roach return [ 1157f0e4072fSGreg Roach '*:_UPD' => /* I18N: GEDCOM tag _UPD */ new CustomElement(I18N::translate('Updated at')), // e.g. "1 _UPD 14 APR 2012 00:14:10 GMT-5" 115800c92694SGreg Roach 'INDI:NAME:_AKA' => new NamePersonal(I18N::translate('Also known as'), []), 115900c92694SGreg Roach 'OBJE:_ALBUM' => new CustomElement(I18N::translate('Album')), // XREF to an album 116000c92694SGreg Roach 'OBJE:_DATE' => new DateValue(I18N::translate('Date')), 116100c92694SGreg Roach 'OBJE:_FILESIZE' => new CustomElement(I18N::translate('File size')), 116200c92694SGreg Roach 'OBJE:_PHOTO_RIN' => new CustomElement(I18N::translate('Record ID number')), 116300c92694SGreg Roach 'OBJE:_PLACE' => new PlaceName(I18N::translate('Place')), 116400c92694SGreg Roach '_ALBUM:_PHOTO' => new CustomElement(I18N::translate('Photo')), 116500c92694SGreg Roach '_ALBUM:_PHOTO:_PRIN' => new CustomElement(I18N::translate('Highlighted image')), 116600c92694SGreg Roach ]; 116700c92694SGreg Roach } 116800c92694SGreg Roach 116900c92694SGreg Roach /** 117000c92694SGreg Roach * @return array<string,ElementInterface> 117100c92694SGreg Roach * 117200c92694SGreg Roach * @see https://wiki-de.genealogy.net/GEDCOM/_Nutzerdef-Tag 117300c92694SGreg Roach */ 117400c92694SGreg Roach private function familyTreeMakerTags(): array 117500c92694SGreg Roach { 117600c92694SGreg Roach return [ 117700c92694SGreg Roach 'FAM:CHIL:_FREL' => new CustomElement(I18N::translate('Relationship to father')), 117800c92694SGreg Roach 'FAM:CHIL:_MREL' => new CustomElement(I18N::translate('Relationship to mother')), 117900c92694SGreg Roach 'FAM:_DETS' => new CustomElement(I18N::translate('Death of one spouse')), 118000c92694SGreg Roach 'FAM:_FA1' => new CustomElement(I18N::translate('Fact 1')), 118100c92694SGreg Roach 'FAM:_FA10' => new CustomElement(I18N::translate('Fact 10')), 118200c92694SGreg Roach 'FAM:_FA11' => new CustomElement(I18N::translate('Fact 11')), 118300c92694SGreg Roach 'FAM:_FA12' => new CustomElement(I18N::translate('Fact 12')), 118400c92694SGreg Roach 'FAM:_FA13' => new CustomElement(I18N::translate('Fact 13')), 118500c92694SGreg Roach 'FAM:_FA2' => new CustomElement(I18N::translate('Fact 2')), 118600c92694SGreg Roach 'FAM:_FA3' => new CustomElement(I18N::translate('Fact 3')), 118700c92694SGreg Roach 'FAM:_FA4' => new CustomElement(I18N::translate('Fact 4')), 118800c92694SGreg Roach 'FAM:_FA5' => new CustomElement(I18N::translate('Fact 5')), 118900c92694SGreg Roach 'FAM:_FA6' => new CustomElement(I18N::translate('Fact 6')), 119000c92694SGreg Roach 'FAM:_FA7' => new CustomElement(I18N::translate('Fact 7')), 119100c92694SGreg Roach 'FAM:_FA8' => new CustomElement(I18N::translate('Fact 8')), 119200c92694SGreg Roach 'FAM:_FA9' => new CustomElement(I18N::translate('Fact 9')), 119300c92694SGreg Roach 'FAM:_MEND' => new CustomElement(I18N::translate('Marriage ending status')), 119400c92694SGreg Roach 'FAM:_MSTAT' => new CustomElement(I18N::translate('Marriage beginning status')), 119500c92694SGreg Roach 'FAM:_SEPR' => new CustomElement(I18N::translate('Separation')), 11964c10b11dSGreg Roach 'HEAD:_SCHEMA' => new CustomElement(I18N::translate('Schema')), 119700c92694SGreg Roach 'HEAD:_SCHEMA:FAM' => new CustomElement(I18N::translate('Family')), 119800c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA*:LABL' => new CustomElement(I18N::translate('Label')), 119900c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA1' => new CustomElement(I18N::translate('Fact 1')), 120000c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA10' => new CustomElement(I18N::translate('Fact 10')), 120100c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA11' => new CustomElement(I18N::translate('Fact 11')), 120200c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA12' => new CustomElement(I18N::translate('Fact 12')), 120300c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA13' => new CustomElement(I18N::translate('Fact 13')), 120400c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA2' => new CustomElement(I18N::translate('Fact 2')), 120500c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA3' => new CustomElement(I18N::translate('Fact 3')), 120600c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA4' => new CustomElement(I18N::translate('Fact 4')), 120700c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA5' => new CustomElement(I18N::translate('Fact 5')), 120800c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA6' => new CustomElement(I18N::translate('Fact 6')), 120900c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA7' => new CustomElement(I18N::translate('Fact 7')), 121000c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA8' => new CustomElement(I18N::translate('Fact 8')), 121100c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_FA9' => new CustomElement(I18N::translate('Fact 9')), 121200c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_M*:LABL' => new CustomElement(I18N::translate('Label')), 121300c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_MEND' => new CustomElement(I18N::translate('Marriage ending status')), 121400c92694SGreg Roach 'HEAD:_SCHEMA:FAM:_MSTAT' => new CustomElement(I18N::translate('Marriage beginning status')), 121500c92694SGreg Roach 'HEAD:_SCHEMA:INDI' => new CustomElement(I18N::translate('Individual')), 121600c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA*:LABL' => new CustomElement(I18N::translate('Label')), 121700c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA1' => new CustomElement(I18N::translate('Fact 1')), 121800c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA10' => new CustomElement(I18N::translate('Fact 10')), 121900c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA11' => new CustomElement(I18N::translate('Fact 11')), 122000c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA12' => new CustomElement(I18N::translate('Fact 12')), 122100c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA13' => new CustomElement(I18N::translate('Fact 13')), 122200c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA2' => new CustomElement(I18N::translate('Fact 2')), 122300c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA3' => new CustomElement(I18N::translate('Fact 3')), 122400c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA4' => new CustomElement(I18N::translate('Fact 4')), 122500c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA5' => new CustomElement(I18N::translate('Fact 5')), 122600c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA6' => new CustomElement(I18N::translate('Fact 6')), 122700c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA7' => new CustomElement(I18N::translate('Fact 7')), 122800c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA8' => new CustomElement(I18N::translate('Fact 8')), 122900c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_FA9' => new CustomElement(I18N::translate('Fact 9')), 12304c10b11dSGreg Roach 'HEAD:_SCHEMA:INDI:_FREL' => new CustomElement(I18N::translate('Relationship to father')), 123100c92694SGreg Roach 'HEAD:_SCHEMA:INDI:_M*:LABL' => new CustomElement(I18N::translate('Label')), 12324c10b11dSGreg Roach 'HEAD:_SCHEMA:INDI:_MREL' => new CustomElement(I18N::translate('Relationship to mother')), 12334c10b11dSGreg Roach 'INDI:*:SOUR:_APID' => /* I18N: GEDCOM tag _APID */ new CustomElement(I18N::translate('Ancestry.com source identifier')), 12344c10b11dSGreg Roach 'INDI:*:SOUR:_LINK' => new CustomElement(I18N::translate('External link')), 123500c92694SGreg Roach 'INDI:NAME:_AKA' => new NamePersonal(I18N::translate('Also known as'), []), 123600c92694SGreg Roach 'INDI:NAME:_MARNM' => new NamePersonal(I18N::translate('Married name'), []), 12374c10b11dSGreg Roach 'INDI:_CIRC' => new CustomElement(I18N::translate('Circumcision')), 123800c92694SGreg Roach 'INDI:_DCAUSE' => new CustomElement(I18N::translate('Cause of death')), 123900c92694SGreg Roach 'INDI:_DEG' => new CustomElement(I18N::translate('Degree')), 124000c92694SGreg Roach 'INDI:_DNA' => new CustomElement(I18N::translate('DNA markers')), 124100c92694SGreg Roach 'INDI:_ELEC' => new CustomElement('Elected'), 124200c92694SGreg Roach 'INDI:_EMPLOY' => new CustomElement('Employment'), 124300c92694SGreg Roach 'INDI:_EXCM' => new CustomElement('Excommunicated'), 12444c10b11dSGreg Roach 'INDI:_FA1' => new CustomElement(I18N::translate('Fact 1')), 12454c10b11dSGreg Roach 'INDI:_FA10' => new CustomElement(I18N::translate('Fact 10')), 12464c10b11dSGreg Roach 'INDI:_FA11' => new CustomElement(I18N::translate('Fact 11')), 12474c10b11dSGreg Roach 'INDI:_FA12' => new CustomElement(I18N::translate('Fact 12')), 12484c10b11dSGreg Roach 'INDI:_FA13' => new CustomElement(I18N::translate('Fact 13')), 12494c10b11dSGreg Roach 'INDI:_FA2' => new CustomElement(I18N::translate('Fact 2')), 12504c10b11dSGreg Roach 'INDI:_FA3' => new CustomElement(I18N::translate('Fact 3')), 12514c10b11dSGreg Roach 'INDI:_FA4' => new CustomElement(I18N::translate('Fact 4')), 12524c10b11dSGreg Roach 'INDI:_FA5' => new CustomElement(I18N::translate('Fact 5')), 12534c10b11dSGreg Roach 'INDI:_FA6' => new CustomElement(I18N::translate('Fact 6')), 12544c10b11dSGreg Roach 'INDI:_FA7' => new CustomElement(I18N::translate('Fact 7')), 12554c10b11dSGreg Roach 'INDI:_FA8' => new CustomElement(I18N::translate('Fact 8')), 12564c10b11dSGreg Roach 'INDI:_FA9' => new CustomElement(I18N::translate('Fact 9')), 12574c10b11dSGreg Roach 'INDI:_MDCL' => new CustomElement(I18N::translate('Medical')), 125800c92694SGreg Roach 'INDI:_MILT' => new CustomElement(I18N::translate('Military service')), 125900c92694SGreg Roach 'INDI:_MILTID' => new CustomElement('Military ID number'), 126000c92694SGreg Roach 'INDI:_MISN' => new CustomElement('Mission'), 126100c92694SGreg Roach 'INDI:_NAMS' => new CustomElement(I18N::translate('Namesake')), 126200c92694SGreg Roach 'INDI:_UNKN' => new CustomElement(I18N::translate('Unknown')), // Special individual ID code for later file comparisons 126300c92694SGreg Roach ]; 126400c92694SGreg Roach } 126500c92694SGreg Roach 126600c92694SGreg Roach /** 126700c92694SGreg Roach * @return array<string,ElementInterface> 126800c92694SGreg Roach */ 126900c92694SGreg Roach private function gedcomLTags(): array 127000c92694SGreg Roach { 127100c92694SGreg Roach return [ 12724c10b11dSGreg Roach 'FAM:*:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), 127300c92694SGreg Roach // I18N: https://gov.genealogy.net 127400c92694SGreg Roach 'FAM:*:PLAC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), 127500c92694SGreg Roach 'FAM:*:PLAC:_LOC' => new XrefLocation(I18N::translate('Location')), 127600c92694SGreg Roach // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System 127700c92694SGreg Roach 'FAM:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), 12784c10b11dSGreg Roach 'FAM:*:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), 127900c92694SGreg Roach 'FAM:*:PLAC:_POST:DATE' => new DateValue(I18N::translate('Date')), 128000c92694SGreg Roach 'FAM:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), 128100c92694SGreg Roach 'FAM:*:_ASSO:NOTE' => new NoteStructure(I18N::translate('Note')), 128200c92694SGreg Roach 'FAM:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), 128300c92694SGreg Roach 'FAM:*:_ASSO:SOUR' => new XrefSource(I18N::translate('Source citation')), 128400c92694SGreg Roach 'FAM:*:_ASSO:SOUR:DATA' => new SourceData(I18N::translate('Data')), 1285352bd396SGreg Roach 'FAM:*:_ASSO:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 128600c92694SGreg Roach 'FAM:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 128700c92694SGreg Roach 'FAM:*:_ASSO:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 128800c92694SGreg Roach 'FAM:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 128900c92694SGreg Roach 'FAM:*:_ASSO:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 129000c92694SGreg Roach 'FAM:*:_ASSO:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 129100c92694SGreg Roach 'FAM:*:_ASSO:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 129200c92694SGreg Roach 'FAM:*:_ASSO:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 12934c10b11dSGreg Roach 'FAM:*:_WITN' => new CustomElement(I18N::translate('Witnesses')), 129476f1fa21SRichard Cissée 'FAM:_ASSO' => new XrefAssociate(I18N::translate('Associate')), 129576f1fa21SRichard Cissée 'FAM:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), 129600c92694SGreg Roach 'FAM:_STAT' => new FamilyStatusText(I18N::translate('Family status')), 129700c92694SGreg 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']), 129800c92694SGreg Roach 'FAM:_TODO:DATA' => new SubmitterText(I18N::translate('The solution')), 129900c92694SGreg Roach 'FAM:_TODO:DATE' => new DateValue(I18N::translate('Creation date')), 130000c92694SGreg Roach 'FAM:_TODO:DESC' => new CustomElement(I18N::translate('Description')), 1301*afb53502SGreg Roach 'FAM:_TODO:NOTE' => new NoteStructure(I18N::translate('Note')), 13024c10b11dSGreg Roach 'FAM:_TODO:REPO' => new XrefRepository(I18N::translate('Repository'), []), 130300c92694SGreg Roach 'FAM:_TODO:STAT' => new ResearchTaskStatus(I18N::translate('Status')), 130400c92694SGreg Roach 'FAM:_TODO:TYPE' => new ResearchTaskType(I18N::translate('Type of research task')), 130500c92694SGreg Roach 'FAM:_TODO:_CAT' => new CustomElement(I18N::translate('Category')), 130600c92694SGreg Roach 'FAM:_TODO:_CDATE' => new DateValue(I18N::translate('Completion date')), 130700c92694SGreg Roach 'FAM:_TODO:_PRTY' => new ResearchTaskPriority(I18N::translate('Priority')), 130800c92694SGreg Roach 'FAM:_TODO:_RDATE' => new DateValue(I18N::translate('Reminder date')), 130900c92694SGreg Roach 'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), 13104c10b11dSGreg Roach 'HEAD:GEDC:VERS:_ADDENDUM' => new EmptyElement(I18N::translate('GEDCOM-L')), 131100c92694SGreg Roach 'HEAD:GEDC:VERS:_ADDENDUM:VERS' => new VersionNumber(I18N::translate('Version')), 131200c92694SGreg Roach 'HEAD:GEDC:VERS:_ADDENDUM:WWW' => new AddressWebPage(I18N::translate('URL')), 13134c10b11dSGreg Roach 'HEAD:SOUR:CORP:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), 131400c92694SGreg Roach 'HEAD:_SCHEMA' => new EmptyElement(I18N::translate('Schema')), 131500c92694SGreg Roach 'HEAD:_SCHEMA:*' => new EmptyElement(I18N::translate('Base GEDCOM tag')), 131600c92694SGreg Roach 'HEAD:_SCHEMA:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), 131700c92694SGreg Roach 'HEAD:_SCHEMA:*:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), 131800c92694SGreg Roach 'HEAD:_SCHEMA:*:*:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), 131900c92694SGreg Roach 'HEAD:_SCHEMA:*:*:*:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), 132000c92694SGreg Roach 'HEAD:_SCHEMA:*:*:*:*:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), 132100c92694SGreg Roach 'HEAD:_SCHEMA:*:*:*:*:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), 132200c92694SGreg Roach 'HEAD:_SCHEMA:*:*:*:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), 132300c92694SGreg Roach 'HEAD:_SCHEMA:*:*:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), 132400c92694SGreg Roach 'HEAD:_SCHEMA:*:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), 132500c92694SGreg Roach 'HEAD:_SCHEMA:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), 13264c10b11dSGreg Roach 'INDI:*:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), 132700c92694SGreg Roach // I18N: https://gov.genealogy.net 132800c92694SGreg Roach 'INDI:*:PLAC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), 132900c92694SGreg Roach 'INDI:*:PLAC:_LOC' => new XrefLocation(I18N::translate('Location')), 133000c92694SGreg Roach // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System 133100c92694SGreg Roach 'INDI:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), 13324c10b11dSGreg Roach 'INDI:*:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), 133300c92694SGreg Roach 'INDI:*:PLAC:_POST:DATE' => new DateValue(I18N::translate('Date')), 133400c92694SGreg Roach 'INDI:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), 133500c92694SGreg Roach 'INDI:*:_ASSO:NOTE' => new NoteStructure(I18N::translate('Note')), 133600c92694SGreg Roach 'INDI:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), 133700c92694SGreg Roach 'INDI:*:_ASSO:SOUR' => new XrefSource(I18N::translate('Source citation')), 133800c92694SGreg Roach 'INDI:*:_ASSO:SOUR:DATA' => new SourceData(I18N::translate('Data')), 1339352bd396SGreg Roach 'INDI:*:_ASSO:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 134000c92694SGreg Roach 'INDI:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 134100c92694SGreg Roach 'INDI:*:_ASSO:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 134200c92694SGreg Roach 'INDI:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 134300c92694SGreg Roach 'INDI:*:_ASSO:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 134400c92694SGreg Roach 'INDI:*:_ASSO:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 134500c92694SGreg Roach 'INDI:*:_ASSO:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 134600c92694SGreg Roach 'INDI:*:_ASSO:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 13474c10b11dSGreg Roach 'INDI:*:_WITN' => new CustomElement(I18N::translate('Witnesses')), 13484c10b11dSGreg Roach 'INDI:BAPM:_GODP' => new CustomElement(I18N::translate('Godparents')), 13494c10b11dSGreg Roach 'INDI:CHR:_GODP' => new CustomElement(I18N::translate('Godparents')), 135000c92694SGreg Roach 'INDI:NAME:_RUFNAME' => new NamePieceGiven(I18N::translate('Rufname')), 135100c92694SGreg Roach 'INDI:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), 135200c92694SGreg Roach 'INDI:SEX' => new SexXValue(I18N::translate('Gender')), 135300c92694SGreg Roach 'INDI:_TODO' => new ResearchTask(I18N::translate('Research task')), 135400c92694SGreg Roach 'INDI:_TODO:DATA' => new SubmitterText(I18N::translate('The solution')), 135500c92694SGreg Roach 'INDI:_TODO:DATE' => new DateValue(I18N::translate('Creation date')), 135600c92694SGreg Roach 'INDI:_TODO:DESC' => new CustomElement(I18N::translate('Description')), 1357*afb53502SGreg Roach 'INDI:_TODO:NOTE' => new NoteStructure(I18N::translate('Note')), 13584c10b11dSGreg Roach 'INDI:_TODO:REPO' => new XrefRepository(I18N::translate('Repository'), []), 135900c92694SGreg Roach 'INDI:_TODO:STAT' => new ResearchTaskStatus(I18N::translate('Status')), 136000c92694SGreg Roach 'INDI:_TODO:TYPE' => new ResearchTaskType(I18N::translate('Type of research task')), 136100c92694SGreg Roach 'INDI:_TODO:_CAT' => new CustomElement(I18N::translate('Category')), 136200c92694SGreg Roach 'INDI:_TODO:_CDATE' => new DateValue(I18N::translate('Completion date')), 136300c92694SGreg Roach 'INDI:_TODO:_PRTY' => new ResearchTaskPriority(I18N::translate('Priority')), 136400c92694SGreg Roach 'INDI:_TODO:_RDATE' => new DateValue(I18N::translate('Reminder date')), 136500c92694SGreg Roach 'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), 136600c92694SGreg Roach 'NOTE:_UID' => new PafUid(I18N::translate('Unique identifier')), 136700c92694SGreg Roach 'OBJE:FILE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), 136800c92694SGreg Roach 'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), 13694c10b11dSGreg Roach 'REPO:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), 137000c92694SGreg Roach 'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), 137100c92694SGreg Roach 'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), 1372b0a20e09SRichard Cissée 'SOUR:DATA:EVEN:PLAC:_LOC' => new XrefLocation(I18N::translate('Location')), 1373b0a20e09SRichard Cissée // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System 1374b0a20e09SRichard Cissée 'SOUR:DATA:EVEN:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), 13754c10b11dSGreg Roach 'SOUR:DATA:EVEN:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), 1376b0a20e09SRichard Cissée 'SOUR:DATA:EVEN:PLAC:_POST:DATE' => new DateValue(I18N::translate('Date')), 13774c10b11dSGreg Roach 'SUBM:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), 137800c92694SGreg Roach 'SUBM:_UID' => new PafUid(I18N::translate('Unique identifier')), 137900c92694SGreg Roach 'SUBN:_UID' => new PafUid(I18N::translate('Unique identifier')), 138000c92694SGreg Roach '_LOC' => new LocationRecord(I18N::translate('Location')), 138100c92694SGreg Roach '_LOC:CHAN' => new Change(I18N::translate('Last change')), 138200c92694SGreg Roach '_LOC:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 1383701f5d18SGreg Roach '_LOC:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), 138400c92694SGreg Roach '_LOC:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 138500c92694SGreg Roach '_LOC:EVEN' => new CustomEvent(I18N::translate('Event')), 138600c92694SGreg Roach '_LOC:EVEN:DATE' => new DateValue(I18N::translate('Date of event')), 138700c92694SGreg Roach '_LOC:EVEN:PLAC' => new PlaceName(I18N::translate('Place of event')), 138800c92694SGreg Roach '_LOC:EVEN:PLAC:FONE' => new PlacePhoneticVariation(I18N::translate('Phonetic place')), 138900c92694SGreg Roach '_LOC:EVEN:PLAC:FONE:TYPE' => new PhoneticType(I18N::translate('Type')), 139000c92694SGreg Roach '_LOC:EVEN:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), 139100c92694SGreg Roach '_LOC:EVEN:PLAC:MAP' => new EmptyElement(I18N::translate('Coordinates'), ['LATI' => '1:1', 'LONG' => '1:1']), 139200c92694SGreg Roach '_LOC:EVEN:PLAC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), 139300c92694SGreg Roach '_LOC:EVEN:PLAC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), 139400c92694SGreg Roach '_LOC:EVEN:PLAC:NOTE' => new NoteStructure(I18N::translate('Note')), 139500c92694SGreg Roach '_LOC:EVEN:PLAC:ROMN' => new PlaceRomanizedVariation(I18N::translate('Romanized place')), 139600c92694SGreg Roach '_LOC:EVEN:PLAC:ROMN:TYPE' => new RomanizedType(I18N::translate('Type')), 1397fd586be4SGreg Roach '_LOC:EVEN:PLAC:_LOC' => new XrefLocation(I18N::translate('Location')), 139800c92694SGreg Roach '_LOC:EVEN:TYPE' => new EventAttributeType(I18N::translate('Type of event')), 139900c92694SGreg Roach '_LOC:EVEN:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), 140000c92694SGreg Roach '_LOC:EVEN:ADDR' => new AddressLine(I18N::translate('Address')), 140100c92694SGreg Roach '_LOC:EVEN:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 140200c92694SGreg Roach '_LOC:EVEN:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 140300c92694SGreg Roach '_LOC:EVEN:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 140400c92694SGreg Roach '_LOC:EVEN:ADDR:CITY' => new AddressCity(I18N::translate('City')), 140500c92694SGreg Roach '_LOC:EVEN:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 140600c92694SGreg Roach '_LOC:EVEN:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 140700c92694SGreg Roach '_LOC:EVEN:ADDR:STAE' => new AddressState(I18N::translate('State')), 140800c92694SGreg Roach '_LOC:EVEN:CAUS' => new CauseOfEvent(I18N::translate('Cause')), 140900c92694SGreg Roach '_LOC:EVEN:RELI' => new ReligiousAffiliation(I18N::translate('Religion'), []), 141000c92694SGreg Roach '_LOC:EVEN:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 141100c92694SGreg Roach '_LOC:EVEN:SOUR' => new XrefSource(I18N::translate('Source citation')), 141200c92694SGreg Roach '_LOC:EVEN:NOTE' => new NoteStructure(I18N::translate('Note')), 141300c92694SGreg Roach '_LOC:EVEN:OBJE' => new XrefMedia(I18N::translate('Media object')), 141400c92694SGreg Roach '_LOC:MAP' => new EmptyElement(I18N::translate('Coordinates'), ['LATI' => '1:1', 'LONG' => '1:1']), 141500c92694SGreg Roach '_LOC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), 141600c92694SGreg Roach '_LOC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), 141700c92694SGreg Roach '_LOC:NAME' => new PlaceName(I18N::translate('Place'), ['ABBR' => '0:1', 'DATE' => '0:1', 'LANG' => '0:1', 'SOUR' => '0:M']), 141800c92694SGreg Roach '_LOC:NAME:ABBR' => new CustomElement(I18N::translate('Abbreviation')), 141900c92694SGreg Roach '_LOC:NAME:ABBR:TYPE' => new CustomElement(I18N::translate('Type of abbreviation')), 142000c92694SGreg Roach '_LOC:NAME:DATE' => new DateValue(I18N::translate('Date')), 142100c92694SGreg Roach '_LOC:NAME:LANG' => new LanguageId(I18N::translate('Language')), 142200c92694SGreg Roach '_LOC:NAME:SOUR' => new XrefSource(I18N::translate('Source')), 142300c92694SGreg Roach '_LOC:NOTE' => new NoteStructure(I18N::translate('Note')), 142400c92694SGreg Roach '_LOC:OBJE' => new XrefMedia(I18N::translate('Media')), 14254c10b11dSGreg Roach '_LOC:RELI' => new ReligiousAffiliation(I18N::translate('Religion'), []), 142600c92694SGreg Roach '_LOC:SOUR' => new XrefSource(I18N::translate('Source')), 142700c92694SGreg Roach '_LOC:SOUR:DATA' => new SourceData(I18N::translate('Data')), 1428352bd396SGreg Roach '_LOC:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 142900c92694SGreg Roach '_LOC:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 143000c92694SGreg Roach '_LOC:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 143100c92694SGreg Roach '_LOC:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 143200c92694SGreg Roach '_LOC:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 143300c92694SGreg Roach '_LOC:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 143400c92694SGreg Roach '_LOC:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 143500c92694SGreg Roach '_LOC:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 143600c92694SGreg Roach '_LOC:TYPE' => new CustomElement(I18N::translate('Type of location'), ['DATE' => '0:1', '_GOVTYPE' => '0:1', 'SOUR' => '0:M']), 143700c92694SGreg Roach '_LOC:TYPE:DATE' => new DateValue(I18N::translate('Date')), 143800c92694SGreg Roach '_LOC:TYPE:SOUR' => new XrefSource(I18N::translate('Source')), 14394c10b11dSGreg Roach '_LOC:TYPE:_GOVTYPE' => new CustomElement(I18N::translate('GOV identifier type')), 14404c10b11dSGreg Roach '_LOC:_AIDN' => new CustomElement(I18N::translate('Administrative ID')), 144100c92694SGreg Roach '_LOC:_AIDN:DATE' => new DateValue(I18N::translate('Date')), 144200c92694SGreg Roach '_LOC:_AIDN:SOUR' => new XrefSource(I18N::translate('Source')), 144300c92694SGreg Roach '_LOC:_AIDN:TYPE' => new CustomElement(I18N::translate('Type of administrative ID')), 14444c10b11dSGreg Roach '_LOC:_DMGD' => new CustomElement(I18N::translate('Demographic data')), 144500c92694SGreg Roach '_LOC:_DMGD:DATE' => new DateValue(I18N::translate('Date')), 144600c92694SGreg Roach '_LOC:_DMGD:SOUR' => new XrefSource(I18N::translate('Source')), 144700c92694SGreg Roach '_LOC:_DMGD:TYPE' => new CustomElement(I18N::translate('Type of demographic data')), 144800c92694SGreg Roach // I18N: https://gov.genealogy.net 144900c92694SGreg Roach '_LOC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), 1450cbecd0bdSGreg Roach '_LOC:_LOC' => new XrefLocation(I18N::translate('Parent location'), ['DATE' => '0:1', 'SOUR' => '0:M', 'TYPE' => '0:1']), 145100c92694SGreg Roach '_LOC:_LOC:DATE' => new DateValue(I18N::translate('Date')), 145200c92694SGreg Roach '_LOC:_LOC:SOUR' => new XrefSource(I18N::translate('Source')), 145300c92694SGreg Roach '_LOC:_LOC:TYPE' => new HierarchicalRelationship(I18N::translate('Hierarchical relationship')), 145400c92694SGreg Roach // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System 145500c92694SGreg Roach '_LOC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), 145600c92694SGreg Roach '_LOC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), 145700c92694SGreg Roach '_LOC:_POST:DATE' => new DateValue(I18N::translate('Date')), 145800c92694SGreg Roach '_LOC:_POST:SOUR' => new XrefSource(I18N::translate('Source')), 145900c92694SGreg Roach '_LOC:_UID' => new PafUid(I18N::translate('Unique identifier')), 146000c92694SGreg Roach '_LOC:*:SOUR:DATA' => new SourceData(I18N::translate('Data')), 1461352bd396SGreg Roach '_LOC:*:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 146200c92694SGreg Roach '_LOC:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 146300c92694SGreg Roach '_LOC:*:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 146400c92694SGreg Roach '_LOC:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 146500c92694SGreg Roach '_LOC:*:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 146600c92694SGreg Roach '_LOC:*:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 146700c92694SGreg Roach '_LOC:*:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 146800c92694SGreg Roach '_LOC:*:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 146900c92694SGreg Roach ]; 147000c92694SGreg Roach } 147100c92694SGreg Roach 147200c92694SGreg Roach /** 147300c92694SGreg Roach * @return array<string,ElementInterface> 147400c92694SGreg Roach */ 1475b9a9ffe2SGreg Roach private function geneatique(): array 1476b9a9ffe2SGreg Roach { 1477b9a9ffe2SGreg Roach return [ 1478f15544dcSGreg Roach 'INDI:DEAT:DATE:TIME' => new TimeValue(I18N::translate('Time of death')), 1479eae6f507SGreg Roach 'OBJE:FORM' => new MultimediaFormat(I18N::translate('Format')), 1480eae6f507SGreg Roach 'OBJE:TITL' => new DescriptiveTitle(I18N::translate('Title')), 1481eae6f507SGreg Roach 'INDI:NAME:_AKA' => new NamePersonal(I18N::translate('Also known as'), []), 1482eae6f507SGreg Roach 'INDI:NAME:_MARNM' => new NamePersonal(I18N::translate('Also known as'), []), 1483f15544dcSGreg Roach 1484b9a9ffe2SGreg Roach /* 1485b9a9ffe2SGreg Roach Pour déclarer les témoins dans les actes de naissance 1486b9a9ffe2SGreg Roach 1487b9a9ffe2SGreg Roach Balise GEDCOM non valide. INDI:BIRT:ASSO 1488b9a9ffe2SGreg Roach INDI:BIRT:ASSO:TYPE 1489b9a9ffe2SGreg Roach INDI:BIRT:ASSO:RELA 1490b9a9ffe2SGreg Roach INDI:DEAT:PLAC:QUAY 1491b9a9ffe2SGreg Roach INDI:BIRT:OBJE:QUAY 1492b9a9ffe2SGreg Roach INDI:BIRT:SOUR:TEXT 1493b9a9ffe2SGreg Roach 1494b9a9ffe2SGreg Roach Dans les mariages 1495b9a9ffe2SGreg Roach 1496b9a9ffe2SGreg Roach FAM:MARR:ASSO 1497b9a9ffe2SGreg Roach FAM:MARR:ASSO:TYPE 1498b9a9ffe2SGreg Roach FAM:MARR:ASSO:RELA 1499b9a9ffe2SGreg Roach FAM:MARR:WWW:QUAY 1500b9a9ffe2SGreg Roach OBJE:WWW 1501b9a9ffe2SGreg Roach OBJE:SOUR:TEXTHTTPS 1502b9a9ffe2SGreg Roach OBJE:NOTE:WWW 1503b9a9ffe2SGreg Roach SOUR:QUAY 1504b9a9ffe2SGreg Roach SOUR:TYPE 1505b9a9ffe2SGreg Roach */ 1506b9a9ffe2SGreg Roach ]; 1507b9a9ffe2SGreg Roach } 1508b9a9ffe2SGreg Roach 1509b9a9ffe2SGreg Roach /** 1510b9a9ffe2SGreg Roach * @return array<string,ElementInterface> 1511b9a9ffe2SGreg Roach */ 151200c92694SGreg Roach private function genPlusWinTags(): array 151300c92694SGreg Roach { 151400c92694SGreg Roach return [ 151500c92694SGreg Roach 'FAM:*:ADDR:_NUM' => new CustomElement(I18N::translate('House number')), 151600c92694SGreg Roach 'FAM:*:ADDR:_STRASSE' => new CustomElement(I18N::translate('Street name')), 151700c92694SGreg Roach 'FAM:*:DATE:_ZUS' => new CustomElement(I18N::translate('Additional information')), 151800c92694SGreg Roach 'FAM:*:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), 151900c92694SGreg Roach 'FAM:*:PLAC:_AON' => new CustomElement(I18N::translate('Alternative place name')), 152000c92694SGreg Roach // I18N: https://foko.genealogy.net 152100c92694SGreg Roach 'FAM:*:PLAC:_FCTRY' => new CustomElement(I18N::translate('FOKO country')), 152200c92694SGreg Roach // I18N: https://foko.genealogy.net 152300c92694SGreg Roach 'FAM:*:PLAC:_FSTAE' => new CustomElement(I18N::translate('FOKO country')), 152400c92694SGreg Roach // I18N: https://gov.genealogy.net 152500c92694SGreg Roach 'FAM:*:PLAC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), 152600c92694SGreg Roach // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System 152700c92694SGreg Roach 'FAM:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), 152800c92694SGreg Roach 'FAM:*:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), 152900c92694SGreg Roach 'FAM:*:PLAC:_SIC' => new CustomElement(I18N::translate('Reliability of the information')), 153000c92694SGreg Roach 'FAM:*:PLAC:_ZUS' => new CustomElement(I18N::translate('Additional information')), 153100c92694SGreg Roach 'FAM:*:SOUR:_ORI' => new TextFromSource(I18N::translate('Original text')), 153200c92694SGreg Roach 'FAM:*:SOUR:_ZUS' => new CustomElement(I18N::translate('Additional information')), 153300c92694SGreg Roach 'FAM:*:SOUR:PAGE:_ZUS' => new CustomElement(I18N::translate('Additional information')), 153400c92694SGreg Roach 'FAM:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), 153500c92694SGreg Roach 'FAM:*:_CERT' => new CustomElement(I18N::translate('Certificate number')), 153600c92694SGreg Roach 'FAM:*:_COM' => new CustomElement(I18N::translate('Comment')), 153700c92694SGreg Roach 'FAM:*:_SITE' => new CustomElement(I18N::translate('Extra information')), 15381c2da29dSRichard Cissée 'FAM:*:_WITN' => new CustomElement(I18N::translate('Witnesses')), 153900c92694SGreg Roach 'FAM:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), 154000c92694SGreg Roach 'FAM:SOUR:_ORI' => new TextFromSource(I18N::translate('Original text')), 154100c92694SGreg Roach 'FAM:SOUR:_ZUS' => new CustomElement(I18N::translate('Additional information')), 154200c92694SGreg Roach 'FAM:SOUR:PAGE:_ZUS' => new CustomElement(I18N::translate('Additional information')), 154300c92694SGreg Roach 'FAM:_CREAT' => new DateValue(I18N::translate('Creation date')), 154400c92694SGreg Roach 'FAM:_LIV' => new CustomElement(I18N::translate('Cohabitation')), 154500c92694SGreg Roach 'FAM:_NAME' => new CustomElement(I18N::translate('Joint family name')), 154600c92694SGreg Roach 'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), 154700c92694SGreg Roach 'INDI:*:ADDR:_NUM' => new CustomElement(I18N::translate('House number')), 154800c92694SGreg Roach 'INDI:*:ADDR:_STRASSE' => new CustomElement(I18N::translate('Street name')), 154900c92694SGreg Roach 'INDI:*:DATE:_ZUS' => new CustomElement(I18N::translate('Additional information')), 155000c92694SGreg Roach 'INDI:*:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), 155100c92694SGreg Roach 'INDI:*:PLAC:_AON' => new CustomElement(I18N::translate('Alternative place name')), 155200c92694SGreg Roach // I18N: https://foko.genealogy.net 155300c92694SGreg Roach 'INDI:*:PLAC:_FCTRY' => new CustomElement(I18N::translate('FOKO country')), 155400c92694SGreg Roach // I18N: https://foko.genealogy.net 155500c92694SGreg Roach 'INDI:*:PLAC:_FSTAE' => new CustomElement(I18N::translate('FOKO country')), 155600c92694SGreg Roach // I18N: https://gov.genealogy.net 155700c92694SGreg Roach 'INDI:*:PLAC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), 155800c92694SGreg Roach // I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System 155900c92694SGreg Roach 'INDI:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), 156000c92694SGreg Roach 'INDI:*:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), 156100c92694SGreg Roach 'INDI:*:PLAC:_SIC' => new CustomElement(I18N::translate('Reliability of the information')), 156200c92694SGreg Roach 'INDI:*:PLAC:_ZUS' => new CustomElement(I18N::translate('Additional information')), 156300c92694SGreg Roach 'INDI:*:SOUR:_ORI' => new TextFromSource(I18N::translate('Original text')), 156400c92694SGreg Roach 'INDI:*:SOUR:_ZUS' => new CustomElement(I18N::translate('Additional information')), 156500c92694SGreg Roach 'INDI:*:SOUR:PAGE:_ZUS' => new CustomElement(I18N::translate('Additional information')), 156600c92694SGreg Roach 'INDI:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), 156700c92694SGreg Roach 'INDI:*:_CERT' => new CustomElement(I18N::translate('Certificate number')), 156800c92694SGreg Roach 'INDI:*:_COM' => new CustomElement(I18N::translate('Comment')), 156900c92694SGreg Roach 'INDI:*:_SITE' => new CustomElement(I18N::translate('Extra information')), 15701c2da29dSRichard Cissée 'INDI:*:_WITN' => new CustomElement(I18N::translate('Witnesses')), 15711c2da29dSRichard Cissée 'INDI:BAPM:_GODP' => new CustomElement(I18N::translate('Godparents')), 15721c2da29dSRichard Cissée 'INDI:CHR:_GODP' => new CustomElement(I18N::translate('Godparents')), 157300c92694SGreg Roach 'INDI:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), 157400c92694SGreg Roach 'INDI:SOUR:_ORI' => new TextFromSource(I18N::translate('Original text')), 157500c92694SGreg Roach 'INDI:SOUR:_ZUS' => new CustomElement(I18N::translate('Additional information')), 157600c92694SGreg Roach 'INDI:SOUR:PAGE:_ZUS' => new CustomElement(I18N::translate('Additional information')), 157700c92694SGreg Roach 'INDI:NAME:_AKA' => new CustomElement(I18N::translate('Also known as')), 157800c92694SGreg Roach // https://en.wikipedia.org/wiki/Rufname 157900c92694SGreg Roach 'INDI:NAME:RUFN' => new CustomElement(I18N::translate('Rufname')), 158000c92694SGreg Roach 'INDI:_CREAT' => new CustomElement(I18N::translate('Creation date')), 158100c92694SGreg Roach 'INDI:_HEIM' => new CustomElement(/* I18N: German Bürgerort */ I18N::translate('Place of citizenship')), 158200c92694SGreg Roach 'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), 158300c92694SGreg Roach 'NOTE:_CREAT' => new DateValue(I18N::translate('Creation date')), 158400c92694SGreg Roach 'NOTE:_UID' => new PafUid(I18N::translate('Unique identifier')), 158500c92694SGreg Roach 'OBJE:_CREAT' => new DateValue(I18N::translate('Creation date')), 158600c92694SGreg Roach 'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), 158700c92694SGreg Roach 'REPO:_CREAT' => new DateValue(I18N::translate('Creation date')), 158800c92694SGreg Roach 'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), 158900c92694SGreg Roach 'SOUR:_CREAT' => new DateValue(I18N::translate('Creation date')), 159000c92694SGreg Roach 'SOUR:_KTIT' => new SourceFiledByEntry(I18N::translate('Abbreviation')), 159100c92694SGreg Roach 'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), 159200c92694SGreg Roach ]; 159300c92694SGreg Roach } 159400c92694SGreg Roach 159500c92694SGreg Roach /** 1596b9a9ffe2SGreg Roach * @return array<string,ElementInterface> 1597b9a9ffe2SGreg Roach */ 1598b9a9ffe2SGreg Roach private function heredis(): array 1599b9a9ffe2SGreg Roach { 1600b9a9ffe2SGreg Roach return [ 1601b9a9ffe2SGreg Roach 'INDI:SIGN' => new CustomElement(I18N::translate('Signature')), 1602b9a9ffe2SGreg Roach /* Reported on the forum - but what do they mean? 1603b9a9ffe2SGreg Roach 'INDI:_FIL' => new CustomElement(I18N::translate('???')), 1604b9a9ffe2SGreg Roach 'INDI:*:_FNA' => new CustomElement(I18N::translate('???')), 1605b9a9ffe2SGreg Roach 'INDI:????:????:_SUBMAP' => new EmptyElement(I18N::translate('Coordinates'), ['INDI' => '1:1', 'LONG' => '1:1']), 1606b9a9ffe2SGreg Roach 'INDI:????:????:_SUBMAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), 1607b9a9ffe2SGreg Roach 'INDI:????:????:_SUBMAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), 1608b9a9ffe2SGreg Roach */ 1609b9a9ffe2SGreg Roach ]; 1610b9a9ffe2SGreg Roach } 1611b9a9ffe2SGreg Roach 1612b9a9ffe2SGreg Roach /** 161300c92694SGreg Roach * @see http://support.legacyfamilytree.com/article/AA-00520/0/GEDCOM-Files-custom-tags-in-Legacy.html 161400c92694SGreg Roach * 161500c92694SGreg Roach * @return array<string,ElementInterface> 161600c92694SGreg Roach */ 161700c92694SGreg Roach private function legacyTags(): array 161800c92694SGreg Roach { 161900c92694SGreg Roach return [ 162000c92694SGreg Roach 'FAM:*:ADDR:_PRIV' => new CustomElement(I18N::translate('Private')), 162100c92694SGreg Roach 'FAM:*:PLAC:_VERI' => new CustomElement(I18N::translate('Verified')), 1622082e1164SGreg Roach 'FAM:*:SOUR:DATE' => new DateValue(I18N::translate('Date')), 162300c92694SGreg Roach 'FAM:*:SOUR:_VERI' => new CustomElement(I18N::translate('Verified')), 162400c92694SGreg Roach 'FAM:*:_PRIV' => new CustomElement(I18N::translate('Private')), 162500c92694SGreg Roach 'FAM:CHIL:_FREL' => new CustomElement(I18N::translate('Relationship to father')), 162600c92694SGreg Roach 'FAM:CHIL:_MREL' => new CustomElement(I18N::translate('Relationship to mother')), 162700c92694SGreg Roach 'FAM:CHIL:_STAT' => new CustomElement(I18N::translate('Status')), 162800c92694SGreg Roach 'FAM:EVEN:_OVER' => new CustomElement('Event sentence override'), 1629082e1164SGreg Roach 'FAM:MARR:_HTITL' => new CustomElement(I18N::translate('Label for husband')), 16308a093e2dSGreg Roach 'FAM:MARR:_RPT_PHRS' => /* I18N: GEDCOM gag _RPT_PHRS */ new CustomElement(I18N::translate('Report phrase')), 16318a093e2dSGreg Roach 'FAM:MARR:_RPT_PHRS2' => /* I18N: GEDCOM gag _RPT_PHRS */ new CustomElement(I18N::translate('Report phrase')), 163200c92694SGreg Roach 'FAM:MARR:_STAT' => new CustomElement(I18N::translate('Status')), 1633082e1164SGreg Roach 'FAM:MARR:_WTITL' => new CustomElement(I18N::translate('Label for wife')), 163400c92694SGreg Roach 'FAM:_NONE' => new CustomElement(I18N::translate('No children')), 1635082e1164SGreg Roach 'FAM:_TAG' => new CustomElement('Tag'), 1636082e1164SGreg Roach 'FAM:_TAG2' => new CustomElement('Tag #2'), 1637082e1164SGreg Roach 'FAM:_TAG3' => new CustomElement('Tag #3'), 1638082e1164SGreg Roach 'FAM:_TAG4' => new CustomElement('Tag #4'), 1639082e1164SGreg Roach 'FAM:_TAG5' => new CustomElement('Tag #5'), 1640082e1164SGreg Roach 'FAM:_TAG6' => new CustomElement('Tag #6'), 1641082e1164SGreg Roach 'FAM:_TAG7' => new CustomElement('Tag #7'), 1642082e1164SGreg Roach 'FAM:_TAG8' => new CustomElement('Tag #8'), 1643082e1164SGreg Roach 'FAM:_TAG9' => new CustomElement('Tag #9'), 164400c92694SGreg Roach 'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), 164500c92694SGreg Roach 'HEAD:_EVENT_DEFN' => new CustomElement('Event definition'), 164600c92694SGreg Roach 'HEAD:_EVENT_DEFN:_CONF_FLAG' => new CustomElement(I18N::translate('Private')), 164700c92694SGreg Roach 'HEAD:_EVENT_DEFN:_DATE_TYPE' => new CustomElement(I18N::translate('Date')), 164800c92694SGreg Roach 'HEAD:_EVENT_DEFN:_DESC_FLAG' => new CustomElement(I18N::translate('Description')), 164900c92694SGreg Roach 'HEAD:_EVENT_DEFN:_PLACE_TYPE' => new CustomElement(I18N::translate('Place')), 165000c92694SGreg Roach 'HEAD:_EVENT_DEFN:_PP_EXCLUDE' => new CustomElement('Exclude event from potential problems report'), 165100c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SEN1' => new CustomElement('Event sentence definition'), 165200c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SEN2' => new CustomElement('Event sentence definition'), 165300c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SEN3' => new CustomElement('Event sentence definition'), 165400c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SEN4' => new CustomElement('Event sentence definition'), 165500c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SEN5' => new CustomElement('Event sentence definition'), 165600c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SEN6' => new CustomElement('Event sentence definition'), 165700c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SEN7' => new CustomElement('Event sentence definition'), 165800c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SEN8' => new CustomElement('Event sentence definition'), 165900c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENDOF' => new CustomElement('Event sentence, female, date only'), 166000c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENDOM' => new CustomElement('Event sentence, male, date only'), 166100c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENDOU' => new CustomElement('Event sentence, unknown sex, date only'), 166200c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENDPF' => new CustomElement('Event sentence, female, date and place'), 166300c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENDPM' => new CustomElement('Event sentence, male, date and place'), 166400c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENDPU' => new CustomElement('Event sentence, unknown sex, date and place'), 166500c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENF' => new CustomElement('Event sentence, female'), 166600c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENM' => new CustomElement('Event sentence, male'), 166700c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENPOF' => new CustomElement('Event sentence, unknown sex'), 166800c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENPOM' => new CustomElement('Event sentence, female, place only'), 166900c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENPOU' => new CustomElement('Event sentence, male, place only'), 167000c92694SGreg Roach 'HEAD:_EVENT_DEFN:_SENU' => new CustomElement('Event sentence, unknown sex, place only'), 167100c92694SGreg Roach 'HEAD:_PLAC_DEFN' => new CustomElement('Place definition'), 167200c92694SGreg Roach 'HEAD:_PLAC_DEFN:_PREP' => new CustomElement('Place preposition'), 167300c92694SGreg Roach 'INDI:*:ADDR:_EMAIL' => new CustomElement(I18N::translate('Email')), 167400c92694SGreg Roach 'INDI:*:ADDR:_LIST1' => new CustomElement('Include in the “newsletter” group'), 167500c92694SGreg Roach 'INDI:*:ADDR:_LIST2' => new CustomElement('Include in the “family association” group'), 167600c92694SGreg Roach 'INDI:*:ADDR:_LIST3' => new CustomElement('Include in the “birthday” group'), 167700c92694SGreg Roach 'INDI:*:ADDR:_LIST4' => new CustomElement('Include in the “research” group'), 167800c92694SGreg Roach 'INDI:*:ADDR:_LIST5' => new CustomElement('Include in the “christmas” group'), 167900c92694SGreg Roach 'INDI:*:ADDR:_LIST6' => new CustomElement('Include in the “holiday” group'), 168000c92694SGreg Roach 'INDI:*:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), 168100c92694SGreg Roach 'INDI:*:ADDR:_PRIV' => new CustomElement(I18N::translate('Private')), 168200c92694SGreg Roach 'INDI:*:ADDR:_SORT' => new CustomElement('The spelling of a name to be used when sorting addresses for a report'), 168300c92694SGreg Roach 'INDI:*:ADDR:_TAG' => new CustomElement('Tag'), 168400c92694SGreg Roach 'INDI:*:PLAC:_TAG' => new CustomElement('Tag'), 168500c92694SGreg Roach 'INDI:*:PLAC:_VERI' => new CustomElement(I18N::translate('Verified')), 1686082e1164SGreg Roach 'INDI:*:SOUR:DATE' => new DateValue(I18N::translate('Date')), 168700c92694SGreg Roach 'INDI:*:SOUR:_VERI' => new CustomElement(I18N::translate('Verified')), 168800c92694SGreg Roach 'INDI:*:_PRIV' => new CustomElement(I18N::translate('Private')), 168900c92694SGreg Roach 'INDI:EVEN:_OVER' => new CustomElement('Event sentence override'), 169000c92694SGreg Roach 'INDI:SOUR:_VERI' => new CustomElement(I18N::translate('Verified')), 169100c92694SGreg Roach 'INDI:_TAG' => new CustomElement('Tag'), 169200c92694SGreg Roach 'INDI:_TAG2' => new CustomElement('Tag #2'), 169300c92694SGreg Roach 'INDI:_TAG3' => new CustomElement('Tag #3'), 169400c92694SGreg Roach 'INDI:_TAG4' => new CustomElement('Tag #4'), 169500c92694SGreg Roach 'INDI:_TAG5' => new CustomElement('Tag #5'), 169600c92694SGreg Roach 'INDI:_TAG6' => new CustomElement('Tag #6'), 169700c92694SGreg Roach 'INDI:_TAG7' => new CustomElement('Tag #7'), 169800c92694SGreg Roach 'INDI:_TAG8' => new CustomElement('Tag #8'), 169900c92694SGreg Roach 'INDI:_TAG9' => new CustomElement('Tag #9'), 170000c92694SGreg Roach 'INDI:_TODO' => new CustomElement(I18N::translate('Research task')), 170100c92694SGreg Roach 'INDI:_TODO:PRTY' => new CustomElement(I18N::translate('Priority')), 170200c92694SGreg Roach 'INDI:_TODO:_CAT' => new CustomElement(I18N::translate('Category')), 170300c92694SGreg Roach 'INDI:_TODO:_CDATE' => new CustomElement(I18N::translate('Completion date')), 170400c92694SGreg Roach 'INDI:_TODO:_LOCL' => new CustomElement(I18N::translate('Location')), 170500c92694SGreg Roach 'INDI:_TODO:_RDATE' => new CustomElement(I18N::translate('Reminder date')), 170600c92694SGreg Roach 'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), 170700c92694SGreg Roach 'INDI:_URL' => new AddressWebPage(I18N::translate('URL')), 170800c92694SGreg Roach 'OBJE:_DATE' => new CustomElement(I18N::translate('Date')), 170900c92694SGreg Roach 'OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), 171000c92694SGreg Roach 'OBJE:_SCBK' => new CustomElement(I18N::translate('Scrapbook')), 171100c92694SGreg Roach 'OBJE:_SOUND' => new CustomElement(I18N::translate('Audio')), 171200c92694SGreg Roach 'OBJE:_TYPE' => new CustomElement(I18N::translate('Type')), 171300c92694SGreg Roach 'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), 171400c92694SGreg Roach 'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), 171500c92694SGreg Roach 'SOUR:_ITALIC' => new CustomElement('The source title should be printed in italic on reports'), 171600c92694SGreg Roach 'SOUR:_PAREN' => new CustomElement('The source title should be printed within parentheses on reports'), 171700c92694SGreg Roach 'SOUR:_QUOTED' => new CustomElement('The source title should be printed within quotes on reports'), 171800c92694SGreg Roach 'SOUR:_TAG' => new CustomElement('Exclude the source citation detail on reports'), 171900c92694SGreg Roach 'SOUR:_TAG2' => new CustomElement('Exclude the source citation on reports'), 172000c92694SGreg Roach 'SOUR:_TAG3' => new CustomElement('Include the source citation detail text on reports'), 172100c92694SGreg Roach 'SOUR:_TAG4' => new CustomElement('Include the source citation detail notes on reports'), 172200c92694SGreg Roach 'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), 172300c92694SGreg Roach ]; 172400c92694SGreg Roach } 172500c92694SGreg Roach 172600c92694SGreg Roach /** 172700c92694SGreg Roach * @return array<string,ElementInterface> 172800c92694SGreg Roach */ 172954671e98SGreg Roach private function myHeritageTags(): array 173054671e98SGreg Roach { 173154671e98SGreg Roach return [ 173254671e98SGreg Roach 'FAM:*:_UID' => new PafUid(I18N::translate('Unique identifier')), 173354671e98SGreg Roach 'FAM:*:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 173454671e98SGreg Roach 'HEAD:DATE:_TIMEZONE' => new CustomElement(I18N::translate('Time zone')), 173554671e98SGreg Roach 'HEAD:SOUR:_RTLSAVE' => new CustomElement(I18N::translate('Text direction')), // ? 173654671e98SGreg Roach 'HEAD:_RINS' => new CustomElement(I18N::translate('Record ID number')), // ? 173754671e98SGreg Roach 'HEAD:_UID' => new PafUid(I18N::translate('Unique identifier')), 173854671e98SGreg Roach 'HEAD:_PROJECT_GUID' => new PafUid(I18N::translate('Unique identifier')), 173954671e98SGreg Roach 'HEAD:_EXPORTED_FROM_SITE_ID' => new CustomElement(I18N::translate('Site identification code')), 174054671e98SGreg Roach 'HEAD:_DESCRIPTION_AWARE' => new CustomElement(I18N::translate('Description')), // ? 174154671e98SGreg Roach 'INDI:*:_UID' => new PafUid(I18N::translate('Unique identifier')), 174254671e98SGreg Roach 'INDI:*:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 174354671e98SGreg Roach '*:_UPD' => new CustomElement(I18N::translate('Updated at')), 174454671e98SGreg Roach ]; 174554671e98SGreg Roach } 174654671e98SGreg Roach 174754671e98SGreg Roach /** 174854671e98SGreg Roach * @return array<string,ElementInterface> 174954671e98SGreg Roach */ 175000c92694SGreg Roach private function personalAncestralFileTags(): array 175100c92694SGreg Roach { 175200c92694SGreg Roach return [ 175300c92694SGreg Roach 'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), 175400c92694SGreg Roach 'INDI:NAME:_ADPN' => new NamePersonal(I18N::translate('Adopted name'), []), 175500c92694SGreg Roach 'INDI:NAME:_AKA' => new NamePersonal(I18N::translate('Also known as'), []), 175600c92694SGreg Roach 'INDI:NAME:_AKAN' => new NamePersonal(I18N::translate('Also known as'), []), 175700c92694SGreg Roach 'INDI:ADDR' => new AddressLine(I18N::translate('Address')), 175800c92694SGreg Roach 'INDI:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 175900c92694SGreg Roach 'INDI:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 176000c92694SGreg Roach 'INDI:ADDR:CITY' => new AddressCity(I18N::translate('City')), 176100c92694SGreg Roach 'INDI:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 176200c92694SGreg Roach 'INDI:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 176300c92694SGreg Roach 'INDI:ADDR:STAE' => new AddressState(I18N::translate('State')), 176400c92694SGreg Roach 'INDI:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), 176500c92694SGreg Roach 'INDI:EMAIL' => new AddressEmail(I18N::translate('Email address')), 176600c92694SGreg Roach 'INDI:FAX' => new AddressFax(I18N::translate('Fax')), 176700c92694SGreg Roach 'INDI:PHON' => new PhoneNumber(I18N::translate('Phone')), 176800c92694SGreg Roach 'INDI:URL' => new CustomElement(I18N::translate('URL')), 176900c92694SGreg Roach 'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), 177000c92694SGreg Roach 'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), 177100c92694SGreg Roach 'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), 177200c92694SGreg Roach 'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), 177300c92694SGreg Roach ]; 177400c92694SGreg Roach } 177500c92694SGreg Roach 177600c92694SGreg Roach /** 177700c92694SGreg Roach * @return array<string,ElementInterface> 177800c92694SGreg Roach */ 177900c92694SGreg Roach private function phpGedViewTags(): array 178000c92694SGreg Roach { 178100c92694SGreg Roach return [ 178200c92694SGreg Roach 'FAM:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), 178300c92694SGreg Roach 'FAM:COMM' => new CustomElement(I18N::translate('Comment')), 178400c92694SGreg Roach 'INDI:*:ASSO' => new XrefAssociate(I18N::translate('Associate')), 178500c92694SGreg Roach 'INDI:*:ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), 178600c92694SGreg Roach 'INDI:*:PLAC:_HEB' => new NoteStructure(I18N::translate('Place in Hebrew')), 178700c92694SGreg Roach 'INDI:BURI:CEME' => new CustomElement(I18N::translate('Cemetery')), 178800c92694SGreg Roach 'INDI:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), 178900c92694SGreg Roach 'INDI:COMM' => new CustomElement(I18N::translate('Comment')), 179000c92694SGreg Roach 'INDI:NAME:_HEB' => new NamePersonal(I18N::translate('Name in Hebrew'), []), 179100c92694SGreg Roach 'INDI:_HOL' => new CustomIndividualEvent(I18N::translate('Holocaust')), 179200c92694SGreg Roach 'INDI:_MILI' => new CustomIndividualEvent(I18N::translate('Military')), 179300c92694SGreg Roach 'INDI:_PGV_OBJS' => new XrefMedia(I18N::translate('Re-order media')), 179400c92694SGreg Roach 'NOTE:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), 179500c92694SGreg Roach 'OBJE:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), 179600c92694SGreg Roach 'OBJE:_THUM' => new CustomElement(I18N::translate('Thumbnail image')), 179700c92694SGreg Roach 'REPO:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), 179800c92694SGreg Roach 'SOUR:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), 179900c92694SGreg Roach 'SOUR:SERV' => new CustomElement(I18N::translate('Remote server')), 180000c92694SGreg Roach 'SOUR:URL' => new AddressWebPage(I18N::translate('URL')), 180100c92694SGreg Roach 'SOUR:URL:TYPE' => new CustomElement(I18N::translate('Type')), // e.g. "FamilySearch" 180200c92694SGreg Roach 'SOUR:URL:_BLOCK' => new CustomElement(I18N::translate('Block')), // "e.g. "false" 180300c92694SGreg Roach 'SOUR:_DBID' => new CustomElement(I18N::translate('Database name')), 180400c92694SGreg Roach 'SOUR:_DBID:_PASS' => new CustomElement(I18N::translate('Database password')), 180500c92694SGreg Roach 'SOUR:_DBID:_PASS:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 180600c92694SGreg Roach 'SOUR:_DBID:_USER' => new CustomElement(I18N::translate('Database user account')), 180700c92694SGreg Roach ]; 180800c92694SGreg Roach } 180900c92694SGreg Roach 181000c92694SGreg Roach /** 181100c92694SGreg Roach * @return array<string,ElementInterface> 181200c92694SGreg Roach */ 181300c92694SGreg Roach private function reunionTags(): array 181400c92694SGreg Roach { 181500c92694SGreg Roach return [ 181600c92694SGreg Roach 'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), 181700c92694SGreg Roach 'INDI:CITN' => new CustomElement(I18N::translate('Citizenship')), 181800c92694SGreg Roach 'INDI:EMAL' => new AddressEmail(I18N::translate('Email address')), 181900c92694SGreg Roach 'INDI:_LEGA' => new CustomElement(I18N::translate('Legatee')), 182000c92694SGreg Roach 'INDI:_MDCL' => new CustomElement(I18N::translate('Medical')), 18214c10b11dSGreg Roach 'INDI:_PURC' => /* I18N: GEDCOM tag _PURC */ new CustomElement(I18N::translate('Land purchase')), 18224c10b11dSGreg Roach 'INDI:_SALE' => /* I18N: GEDCOM tag _SALE */ new CustomElement(I18N::translate('Land sale')), 182300c92694SGreg Roach 'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), 182400c92694SGreg Roach 'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), 182500c92694SGreg Roach 'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), 182600c92694SGreg Roach 'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), 182700c92694SGreg Roach ]; 182800c92694SGreg Roach } 182900c92694SGreg Roach 183000c92694SGreg Roach /** 183100c92694SGreg Roach * @return array<string,ElementInterface> 183200c92694SGreg Roach */ 183300c92694SGreg Roach private function rootsMagicTags(): array 183400c92694SGreg Roach { 183500c92694SGreg Roach return [ 183600c92694SGreg Roach 'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), 183700c92694SGreg Roach 'INDI:_DNA' => new CustomElement(I18N::translate('DNA markers')), 183800c92694SGreg Roach 'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), 183900c92694SGreg Roach 'INDI:_WEBTAG' => new CustomElement(I18N::translate('External link')), 184000c92694SGreg Roach 'INDI:_WEBTAG:NAME' => new CustomElement(I18N::translate('Text')), 184100c92694SGreg Roach 'INDI:_WEBTAG:URL' => new AddressWebPage(I18N::translate('URL')), 184200c92694SGreg Roach 'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), 184300c92694SGreg Roach 'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), 184400c92694SGreg Roach 'SOUR:_BIBL' => new CustomElement(I18N::translate('Bibliography')), 184500c92694SGreg Roach 'SOUR:_SUBQ' => new CustomElement(I18N::translate('Abbreviation')), 184600c92694SGreg Roach 'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), 184700c92694SGreg Roach ]; 184800c92694SGreg Roach } 184900c92694SGreg Roach 185000c92694SGreg Roach /** 185100c92694SGreg Roach * @return array<string,ElementInterface> 185200c92694SGreg Roach */ 185300c92694SGreg Roach private function theMasterGenealogistTags(): array 185400c92694SGreg Roach { 185500c92694SGreg Roach return [ 185600c92694SGreg Roach 'INDI:*:_SDATE' => new DateValue(I18N::translate('Sort date')), 185700c92694SGreg Roach 'INDI:NAME:_DATE' => new DateValue(I18N::translate('Date')), 185800c92694SGreg Roach ]; 185900c92694SGreg Roach } 186000c92694SGreg Roach 186100c92694SGreg Roach /** 186200c92694SGreg Roach * Custom tags for webtrees. 186300c92694SGreg Roach * 186400c92694SGreg Roach * @return array<string,ElementInterface> 186500c92694SGreg Roach */ 186600c92694SGreg Roach private function webtreesTags(): array 186700c92694SGreg Roach { 186800c92694SGreg Roach return [ 186900c92694SGreg Roach 'FAM:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), 18705d2c6313SGreg Roach 'FAM:FACT' => new FamilyFact(I18N::translate('Fact')), 18715d2c6313SGreg Roach 'FAM:FACT:TYPE' => new EventOrFactClassification(I18N::translate('Type of fact')), 187200c92694SGreg Roach 'FAM:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), 187300c92694SGreg Roach 'FAM:*:_ASSO:NOTE' => new NoteStructure(I18N::translate('Note')), 187400c92694SGreg Roach 'FAM:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), 187500c92694SGreg Roach 'FAM:*:_ASSO:SOUR' => new XrefSource(I18N::translate('Source citation')), 187600c92694SGreg Roach 'FAM:*:_ASSO:SOUR:DATA' => new SourceData(I18N::translate('Data')), 1877352bd396SGreg Roach 'FAM:*:_ASSO:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 187800c92694SGreg Roach 'FAM:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 187900c92694SGreg Roach 'FAM:*:_ASSO:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 188000c92694SGreg Roach 'FAM:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 188100c92694SGreg Roach 'FAM:*:_ASSO:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 188200c92694SGreg Roach 'FAM:*:_ASSO:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 188300c92694SGreg Roach 'FAM:*:_ASSO:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 188400c92694SGreg Roach 'FAM:*:_ASSO:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 188500c92694SGreg Roach 'INDI:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), 188600c92694SGreg Roach 'INDI:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), 188700c92694SGreg Roach 'INDI:*:_ASSO:NOTE' => new NoteStructure(I18N::translate('Note')), 188800c92694SGreg Roach 'INDI:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), 188900c92694SGreg Roach 'INDI:*:_ASSO:SOUR' => new XrefSource(I18N::translate('Source citation')), 189000c92694SGreg Roach 'INDI:*:_ASSO:SOUR:DATA' => new SourceData(I18N::translate('Data')), 1891352bd396SGreg Roach 'INDI:*:_ASSO:SOUR:DATA:DATE' => new DateValue(I18N::translate('Date of entry in original source')), 189200c92694SGreg Roach 'INDI:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 189300c92694SGreg Roach 'INDI:*:_ASSO:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 189400c92694SGreg Roach 'INDI:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 189500c92694SGreg Roach 'INDI:*:_ASSO:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 189600c92694SGreg Roach 'INDI:*:_ASSO:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 189700c92694SGreg Roach 'INDI:*:_ASSO:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 189800c92694SGreg Roach 'INDI:*:_ASSO:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 189900c92694SGreg Roach 'NOTE:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), 190000c92694SGreg Roach 'NOTE:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 190100c92694SGreg Roach 'OBJE:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), 190200c92694SGreg Roach 'OBJE:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 190300c92694SGreg Roach 'REPO:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), 190400c92694SGreg Roach 'REPO:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 190500c92694SGreg Roach 'SOUR:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), 190600c92694SGreg Roach 'SOUR:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 190700c92694SGreg Roach 'SUBM:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), 190800c92694SGreg Roach 'SUBM:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 190900c92694SGreg Roach '_LOC:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), 191000c92694SGreg Roach '_LOC:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 191100c92694SGreg Roach ]; 191200c92694SGreg Roach } 191300c92694SGreg Roach 191400c92694SGreg Roach /** 191500c92694SGreg Roach * @return array<string,array<int,array<int,string>>> 191600c92694SGreg Roach */ 191700c92694SGreg Roach private function webtreesSubTags(): array 191800c92694SGreg Roach { 191900c92694SGreg Roach return [ 192000c92694SGreg Roach 'FAM' => [['_UID', '0:M']], 192100c92694SGreg Roach 'FAM:*:SOUR:DATA' => [['TEXT', '0:1']], 192200c92694SGreg Roach 'FAM:ANUL' => [['_ASSO', '0:M', 'NOTE']], 192300c92694SGreg Roach 'FAM:CENS' => [['_ASSO', '0:M', 'NOTE']], 192400c92694SGreg Roach 'FAM:CHAN' => [['_WT_USER', '0:1']], 192500c92694SGreg Roach 'FAM:DIV' => [['_ASSO', '0:M', 'NOTE']], 192600c92694SGreg Roach 'FAM:DIVF' => [['_ASSO', '0:M', 'NOTE']], 192700c92694SGreg Roach 'FAM:ENGA' => [['_ASSO', '0:M', 'NOTE']], 192800c92694SGreg Roach 'FAM:EVEN' => [['_ASSO', '0:M', 'NOTE']], 192900c92694SGreg Roach 'FAM:MARB' => [['_ASSO', '0:M', 'NOTE']], 193000c92694SGreg Roach 'FAM:MARC' => [['_ASSO', '0:M', 'NOTE']], 193100c92694SGreg Roach 'FAM:MARL' => [['_ASSO', '0:M', 'NOTE']], 193200c92694SGreg Roach 'FAM:MARR' => [['_ASSO', '2:M', 'NOTE']], 193300c92694SGreg Roach 'FAM:MARS' => [['_ASSO', '0:M', 'NOTE']], 193400c92694SGreg Roach 'FAM:SLGS' => [['_ASSO', '0:M', 'NOTE']], 193500c92694SGreg Roach 'FAM:SOUR:DATA' => [['TEXT', '0:1']], 193600c92694SGreg Roach 'INDI' => [['_UID', '0:M']], 193700c92694SGreg Roach 'INDI:*:SOUR:DATA' => [['TEXT', '0:1']], 193800c92694SGreg Roach 'INDI:ADOP' => [['_ASSO', '0:M', 'NOTE']], 193900c92694SGreg Roach 'INDI:BAPL' => [['_ASSO', '0:M', 'NOTE']], 194000c92694SGreg Roach 'INDI:BAPM' => [['_ASSO', '2:M', 'NOTE']], 194100c92694SGreg Roach 'INDI:BARM' => [['_ASSO', '0:M', 'NOTE']], 194200c92694SGreg Roach 'INDI:BASM' => [['_ASSO', '0:M', 'NOTE']], 194300c92694SGreg Roach 'INDI:BIRT' => [['_ASSO', '0:M', 'NOTE'], ['FAMC', '0:0']], 194400c92694SGreg Roach 'INDI:BURI' => [['_ASSO', '0:M', 'NOTE']], 194500c92694SGreg Roach 'INDI:CENS' => [['_ASSO', '0:M', 'NOTE']], 194600c92694SGreg Roach 'INDI:CHAN' => [['_WT_USER', '0:1']], 194700c92694SGreg Roach 'INDI:CHR' => [['_ASSO', '2:M', 'NOTE']], 194800c92694SGreg Roach 'INDI:CHRA' => [['_ASSO', '0:M', 'NOTE']], 194900c92694SGreg Roach 'INDI:CONF' => [['_ASSO', '0:M', 'NOTE']], 195000c92694SGreg Roach 'INDI:CONL' => [['_ASSO', '0:M', 'NOTE']], 195100c92694SGreg Roach 'INDI:CREM' => [['_ASSO', '0:M', 'NOTE']], 195200c92694SGreg Roach 'INDI:DEAT' => [['_ASSO', '0:M', 'NOTE']], 195300c92694SGreg Roach 'INDI:EDUC' => [['_ASSO', '0:M', 'NOTE']], 195400c92694SGreg Roach 'INDI:EMIG' => [['_ASSO', '0:M', 'NOTE']], 195500c92694SGreg Roach 'INDI:ENDL' => [['_ASSO', '0:M', 'NOTE']], 195600c92694SGreg Roach 'INDI:EVEN' => [['_ASSO', '0:M', 'NOTE']], 195700c92694SGreg Roach 'INDI:GRAD' => [['_ASSO', '0:M', 'NOTE']], 195800c92694SGreg Roach 'INDI:IMMI' => [['_ASSO', '0:M', 'NOTE']], 195900c92694SGreg Roach 'INDI:NATU' => [['_ASSO', '0:M', 'NOTE']], 196000c92694SGreg Roach 'INDI:OCCU' => [['_ASSO', '0:M', 'NOTE']], 196100c92694SGreg Roach 'INDI:ORDN' => [['_ASSO', '0:M', 'NOTE']], 196200c92694SGreg Roach 'INDI:PROB' => [['_ASSO', '0:M', 'NOTE']], 196300c92694SGreg Roach 'INDI:PROP' => [['_ASSO', '0:M', 'NOTE']], 196400c92694SGreg Roach 'INDI:RESI' => [['_ASSO', '0:M', 'NOTE']], 196500c92694SGreg Roach 'INDI:RETI' => [['_ASSO', '0:M', 'NOTE']], 196600c92694SGreg Roach 'INDI:SLGC' => [['_ASSO', '0:M', 'NOTE']], 196700c92694SGreg Roach 'INDI:SOUR:DATA' => [['TEXT', '0:1']], 196800c92694SGreg Roach 'INDI:TITL' => [['_ASSO', '0:M', 'NOTE']], 196900c92694SGreg Roach 'INDI:WILL' => [['_ASSO', '0:M', 'NOTE']], 197000c92694SGreg Roach 'NOTE' => [['RESN', '0:1', 'CHAN']], 197100c92694SGreg Roach 'NOTE:CHAN' => [['_WT_USER', '0:1']], 197200c92694SGreg Roach 'NOTE:SOUR:DATA' => [['TEXT', '0:1']], 197300c92694SGreg Roach 'OBJE' => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']], 197400c92694SGreg Roach 'OBJE:CHAN' => [['_WT_USER', '0:1']], 197500c92694SGreg Roach 'OBJE:SOUR:DATA' => [['TEXT', '0:1']], 197600c92694SGreg Roach 'REPO' => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']], 197700c92694SGreg Roach 'REPO:CHAN' => [['_WT_USER', '0:1']], 197800c92694SGreg Roach 'SOUR' => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']], 197900c92694SGreg Roach 'SOUR:CHAN' => [['_WT_USER', '0:1']], 198000c92694SGreg Roach 'SUBM' => [['RESN', '0:1', 'CHAN']], 198100c92694SGreg Roach 'SUBM:CHAN' => [['_WT_USER', '0:1']], 198200c92694SGreg Roach ]; 198300c92694SGreg Roach } 198400c92694SGreg Roach 198500c92694SGreg Roach /** 198600c92694SGreg Roach * @return array<string,array<int,array<int,string>>> 198700c92694SGreg Roach */ 198800c92694SGreg Roach private function customSubTags(): array 198900c92694SGreg Roach { 199000c92694SGreg Roach $custom_family_tags = array_filter(explode(',', Site::getPreference('CUSTOM_FAMILY_TAGS'))); 199100c92694SGreg Roach $custom_individual_tags = array_filter(explode(',', Site::getPreference('CUSTOM_INDIVIDUAL_TAGS'))); 199200c92694SGreg Roach 199300c92694SGreg Roach $subtags = [ 199400c92694SGreg Roach 'FAM' => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_family_tags), 199500c92694SGreg Roach 'INDI' => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_individual_tags), 199600c92694SGreg Roach ]; 199700c92694SGreg Roach 1998d4193d5fSGreg Roach if (Site::getPreference('CUSTOM_TIME_TAGS') === '1') { 1999d4193d5fSGreg Roach $subtags['INDI:BIRT:DATE'][] = ['TIME', '0:1']; 2000d4193d5fSGreg Roach $subtags['INDI:DEAT:DATE'][] = ['TIME', '0:1']; 2001d4193d5fSGreg Roach } 2002d4193d5fSGreg Roach 200300c92694SGreg Roach if (Site::getPreference('CUSTOM_GEDCOM_L_TAGS') === '1') { 200400c92694SGreg Roach $subtags['FAM'][] = ['_ASSO', '0:M']; 200500c92694SGreg Roach $subtags['FAM'][] = ['_STAT', '0:1']; 200600c92694SGreg Roach $subtags['FAM'][] = ['_UID', '0:M']; 2007f91876f3SGreg Roach $subtags['FAM:*:ADDR'] = [['_NAME', '0:1:?', 'ADR1']]; 200800c92694SGreg Roach $subtags['FAM:*:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 200900c92694SGreg Roach $subtags['FAM:ENGA:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 201000c92694SGreg Roach $subtags['FAM:MARB:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 20111c2da29dSRichard Cissée $subtags['FAM:MARR'] = [['_WITN', '0:1']]; 201200c92694SGreg Roach $subtags['FAM:MARR:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 201300c92694SGreg Roach $subtags['FAM:SLGS:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 201400c92694SGreg Roach $subtags['INDI'][] = ['_UID', '0:M']; 2015f91876f3SGreg Roach $subtags['INDI:*:ADDR'] = [['_NAME', '0:1:?', 'ADR1']]; 201600c92694SGreg Roach $subtags['INDI:*:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 201700c92694SGreg Roach $subtags['INDI:ADOP:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 201800c92694SGreg Roach $subtags['INDI:BAPL:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 20191c2da29dSRichard Cissée $subtags['INDI:BAPM'] = [['_GODP', '0:1'], ['_WITN', '0:1']]; 202000c92694SGreg Roach $subtags['INDI:BAPM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 202100c92694SGreg Roach $subtags['INDI:BARM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 202200c92694SGreg Roach $subtags['INDI:BASM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 202300c92694SGreg Roach $subtags['INDI:BIRT:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 202400c92694SGreg Roach $subtags['INDI:BLES:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 202500c92694SGreg Roach $subtags['INDI:BURI:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 202600c92694SGreg Roach $subtags['INDI:CENS:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 20271c2da29dSRichard Cissée $subtags['INDI:CHR'] = [['_GODP', '0:1'], ['_WITN', '0:1']]; 202800c92694SGreg Roach $subtags['INDI:CHR:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 202900c92694SGreg Roach $subtags['INDI:CHRA:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203000c92694SGreg Roach $subtags['INDI:CONF:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203100c92694SGreg Roach $subtags['INDI:CONL:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203200c92694SGreg Roach $subtags['INDI:CREM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203300c92694SGreg Roach $subtags['INDI:DEAT:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203400c92694SGreg Roach $subtags['INDI:EMIG:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203500c92694SGreg Roach $subtags['INDI:ENDL:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203600c92694SGreg Roach $subtags['INDI:EVEN:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203700c92694SGreg Roach $subtags['INDI:FCOM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203800c92694SGreg Roach $subtags['INDI:IMMI:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 203900c92694SGreg Roach $subtags['INDI:NAME'] = [['_RUFN', '0:1']]; 204000c92694SGreg Roach $subtags['INDI:NATU:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 204100c92694SGreg Roach $subtags['INDI:ORDN:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 204200c92694SGreg Roach $subtags['INDI:RESI:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 204300c92694SGreg Roach $subtags['INDI:SLGC:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 204400c92694SGreg Roach $subtags['NOTE'] = [['_UID', '0:M']]; 204500c92694SGreg Roach $subtags['OBJE'] = [['_PRIM', '0:1:?'], ['_UID', '0:M']]; 204600c92694SGreg Roach $subtags['REPO'] = [['_UID', '0:M']]; 204700c92694SGreg Roach $subtags['REPO:ADDR'] = [['_NAME', '0:1', 'ADR1']]; 204800c92694SGreg Roach $subtags['SOUR'] = [['_UID', '0:M']]; 204900c92694SGreg Roach $subtags['SOUR:DATA:EVEN:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; 205000c92694SGreg Roach $subtags['SUBM'] = [['_UID', '0:M']]; 205100c92694SGreg Roach $subtags['SUBM:ADDR'] = [['_NAME', '0:1', 'ADR1']]; 205200c92694SGreg Roach } 205300c92694SGreg Roach 205400c92694SGreg Roach return $subtags; 205500c92694SGreg Roach } 205600c92694SGreg Roach 20579e97502fSGreg Roach /** 20589e97502fSGreg Roach * @param ElementFactoryInterface $element_factory 20599e97502fSGreg Roach * @param bool $include_custom_tags 20609e97502fSGreg Roach * 20619e97502fSGreg Roach * @return void 20629e97502fSGreg Roach */ 2063e669bb4bSGreg Roach public function registerTags(ElementFactoryInterface $element_factory, bool $include_custom_tags): void 206400c92694SGreg Roach { 206500c92694SGreg Roach // Standard GEDCOM. 2066e669bb4bSGreg Roach $element_factory->registerTags($this->gedcom551Tags()); 206700c92694SGreg Roach 206800c92694SGreg Roach // webtrees extensions. 2069e669bb4bSGreg Roach $element_factory->registerTags($this->webtreesTags()); 2070e669bb4bSGreg Roach 2071e669bb4bSGreg Roach if ($include_custom_tags) { 2072e669bb4bSGreg Roach // webtrees extensions. 2073e669bb4bSGreg Roach $element_factory->registerSubTags($this->webtreesSubTags()); 207400c92694SGreg Roach 207500c92694SGreg Roach // Third-party extensions. 2076cb0c239dSGreg Roach $element_factory->registerTags($this->aldfaerTags()); 2077e669bb4bSGreg Roach $element_factory->registerTags($this->ancestryTags()); 2078e669bb4bSGreg Roach $element_factory->registerTags($this->brothersKeeperTags()); 2079e669bb4bSGreg Roach $element_factory->registerTags($this->familySearchTags()); 2080e669bb4bSGreg Roach $element_factory->registerTags($this->familyTreeBuilderTags()); 2081e669bb4bSGreg Roach $element_factory->registerTags($this->familyTreeMakerTags()); 2082701f5d18SGreg Roach $element_factory->registerTags($this->gedcom7Tags()); 2083e669bb4bSGreg Roach $element_factory->registerTags($this->gedcomLTags()); 2084b9a9ffe2SGreg Roach $element_factory->registerTags($this->geneatique()); 2085e669bb4bSGreg Roach $element_factory->registerTags($this->genPlusWinTags()); 2086b9a9ffe2SGreg Roach $element_factory->registerTags($this->heredis()); 2087e669bb4bSGreg Roach $element_factory->registerTags($this->legacyTags()); 208854671e98SGreg Roach $element_factory->registerTags($this->myHeritageTags()); 2089e669bb4bSGreg Roach $element_factory->registerTags($this->personalAncestralFileTags()); 2090e669bb4bSGreg Roach $element_factory->registerTags($this->phpGedViewTags()); 2091e669bb4bSGreg Roach $element_factory->registerTags($this->reunionTags()); 2092e669bb4bSGreg Roach $element_factory->registerTags($this->rootsMagicTags()); 2093e669bb4bSGreg Roach $element_factory->registerTags($this->theMasterGenealogistTags()); 209400c92694SGreg Roach 209500c92694SGreg Roach // Creating tags from all the above are grouped into one place 2096e669bb4bSGreg Roach $element_factory->registerSubTags($this->customSubTags()); 2097e669bb4bSGreg Roach } 209800c92694SGreg Roach } 20990f471f91SGreg Roach} 2100