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