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