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