Lines Matching refs:gedcom
450 * @param string $gedcom
452 private function importLegacyPlacDefn(string $gedcom): void argument
456 if (preg_match('/\n1 PLAC (.+)/', $gedcom, $match)) {
462 if (preg_match('/\n3 LATI ([NS].+)/', $gedcom, $match)) {
468 if (preg_match('/\n3 LONG ([EW].+)/', $gedcom, $match)) {
489 * @param string $gedcom
491 private function importTNGPlac(string $gedcom): void argument
493 if (preg_match('/^0 _PLAC (.+)/', $gedcom, $match)) {
499 if (preg_match('/\n2 LATI (.+)/', $gedcom, $match)) {
505 if (preg_match('/\n2 LONG (.+)/', $gedcom, $match)) {
704 * @param string $gedcom
708 private function convertInlineMedia(Tree $tree, string $gedcom): string argument
710 while (preg_match('/\n1 OBJE(?:\n[2-9].+)+/', $gedcom, $match)) {
712 $gedcom = strtr($gedcom, [$match[0] => "\n1 OBJE @" . $xref . '@']);
714 while (preg_match('/\n2 OBJE(?:\n[3-9].+)+/', $gedcom, $match)) {
716 $gedcom = strtr($gedcom, [$match[0] => "\n2 OBJE @" . $xref . '@']);
718 while (preg_match('/\n3 OBJE(?:\n[4-9].+)+/', $gedcom, $match)) {
720 $gedcom = strtr($gedcom, [$match[0] => "\n3 OBJE @" . $xref . '@']);
723 return $gedcom;
736 * @param string $gedcom
741 private function createMediaObject(string $gedcom, Tree $tree): string argument
743 preg_match('/\n\d FILE (.+)/', $gedcom, $match);
746 preg_match('/\n\d TITL (.+)/', $gedcom, $match);
749 preg_match('/\n\d FORM (.+)/', $gedcom, $match);
752 preg_match('/\n\d MEDI (.+)/', $gedcom, $match);
755 preg_match('/\n\d _SCBK (.+)/', $gedcom, $match);
758 preg_match('/\n\d _PRIM (.+)/', $gedcom, $match);
761 preg_match('/\n\d _TYPE (.+)/', $gedcom, $match);
770 preg_match_all('/\n\d NOTE (.+(?:\n\d CONT.*)*)/', $gedcom, $matches);
784 $gedcom = '0 @' . $xref . "@ OBJE\n1 FILE " . $file;
787 $gedcom .= "\n2 FORM " . $format;
790 $gedcom .= "\n3 TYPE " . $media;
795 $gedcom .= "\n2 TITL " . $title;
799 $gedcom .= "\n1 _SCBK " . $scrapbook;
803 $gedcom .= "\n1 _PRIM " . $primary;
807 $gedcom .= "\n1 _TYPE " . $type;
811 … $gedcom .= "\n1 NOTE " . strtr($note, ["\n3" => "\n2", "\n4" => "\n2", "\n5" => "\n2"]);
817 'm_gedcom' => $gedcom,