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