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