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