From 0ed444394c30a2e3983fb551e7f788804116a8b4 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Mon, 27 Jan 2003 19:29:36 +0000 Subject: [PATCH] Compatibility tests for EasyTree and Family Origins. --- t/compat-easytree.test | 3 + t/compat-famorig.test | 3 + t/input/compat-easytree.ged | 24 ++ t/input/compat-famorig.ged | 106 ++++++ t/output/compat-easytree.ref | 157 +++++++++ t/output/compat-famorig.ref | 429 +++++++++++++++++++++++++ t/output/write_gom_compat-easytree.ged | 32 ++ t/output/write_gom_compat-easytree.ref | 9 + t/output/write_gom_compat-famorig.ged | 92 ++++++ t/output/write_gom_compat-famorig.ref | 8 + t/write_gom_compat-easytree.test | 3 + t/write_gom_compat-famorig.test | 3 + 12 files changed, 869 insertions(+) create mode 100755 t/compat-easytree.test create mode 100755 t/compat-famorig.test create mode 100644 t/input/compat-easytree.ged create mode 100644 t/input/compat-famorig.ged create mode 100644 t/output/compat-easytree.ref create mode 100644 t/output/compat-famorig.ref create mode 100644 t/output/write_gom_compat-easytree.ged create mode 100644 t/output/write_gom_compat-easytree.ref create mode 100644 t/output/write_gom_compat-famorig.ged create mode 100644 t/output/write_gom_compat-famorig.ref create mode 100755 t/write_gom_compat-easytree.test create mode 100755 t/write_gom_compat-famorig.test diff --git a/t/compat-easytree.test b/t/compat-easytree.test new file mode 100755 index 0000000..721e87a --- /dev/null +++ b/t/compat-easytree.test @@ -0,0 +1,3 @@ +#!/bin/sh + +$srcdir/src/test_script -2 $0 0 compat-easytree.ged diff --git a/t/compat-famorig.test b/t/compat-famorig.test new file mode 100755 index 0000000..ae0ae42 --- /dev/null +++ b/t/compat-famorig.test @@ -0,0 +1,3 @@ +#!/bin/sh + +$srcdir/src/test_script -2 $0 0 compat-famorig.ged diff --git a/t/input/compat-easytree.ged b/t/input/compat-easytree.ged new file mode 100644 index 0000000..419c617 --- /dev/null +++ b/t/input/compat-easytree.ged @@ -0,0 +1,24 @@ +0 HEAD +1 SOUR EasyTree +2 VERS V6.0 +2 CORP Sierra On-Line +1 DEST EasyTree +1 DATE 21 JUN 2000 +1 FILE d:\winapps\SIERRA\GENDlx6\familysearch\FamilySearch.uds +1 GEDC +2 VERS 5.5 +1 CHAR IBM WINDOWS +1 NOTE (Peter Verthez) This file is only a very small extract of the original +2 CONT See http://www.daish.net/downloads.htm +0 @I1@ INDI +1 NAME Agnes Graden /DAYSH/ +1 SEX F +1 CHR +2 DATE 26 AUG 1838 +2 PLAC Shedfield, Hampshire, England +1 CHR +2 DATE 8 MAY 1870 +2 PLAC Weston Patrick, Hampshire, England +0 @N4639@ NOTE +1 NOTE Relative: Henry Howick WHITE +0 TRLR diff --git a/t/input/compat-famorig.ged b/t/input/compat-famorig.ged new file mode 100644 index 0000000..5f5fb0a --- /dev/null +++ b/t/input/compat-famorig.ged @@ -0,0 +1,106 @@ +0 HEAD +1 SOUR FamilyOrigins +2 NAME Family Origins(R) for Windows +2 VERS 6.0 +2 CORP FormalSoft, Inc. +1 DEST DISKETTE +1 DATE 4 JAN 2003 +1 SUBM @SUB1@ +1 FILE AXB45.GED +1 GEDC +2 VERS 5.5 +2 FORM LINEAGE-LINKED +1 CHAR ANSI +1 NOTE (Peter Verthez) This is only a very small extract from the original file +2 CONT For the full file, see http://www.axtellfamily.org/axgenea/axggedco.html +0 @SUB1@ SUBM +1 NAME Daniel Gibson Axtell +1 ADDR 1674 Westminster West Rd +2 CONT Putney VT 05346 +1 PHON 802-387-4145 +1 _EMAIL daxtell@sover.net +0 @I1@ INDI +1 NAME Thomas /Axtell/ +2 GIVN Thomas +2 SURN Axtell +1 SEX M +1 NOTE son of William and Thomasine Axtell, was baptised in St. Peter's +2 CONC Church, +2 CONT Berkhamstead, Hertfordshire, England, January 26, 1619 (N.S.). His +2 CONC father +2 CONT died in 1638. He married Mary -- probably in 1638; two children were +2 CONC born to +2 CONT them in England, and their baptism is recorded in St. Peter's. They +2 CONC left +2 CONT England as early as 1643, for in October of that year, Thomas +2 CONC purchased five +2 CONT acres of land in Sudbury, Massachusetts, of Edmond Rice, who himself +2 CONC had come +2 CONT from Berkhamstead five years earlier. This land is described as "lying +2 CONC in ye +2 CONT south part of ye town-bounds, the southwest side lying to the commons +2 CONC and +2 CONT joined to the land of Edmond Rice, southward and northward to the +2 CONC highway +2 CONT leading from Sudbury to Mr. Duston's farm." This is what is now +2 CONC Wayland near +2 CONT "The Five Paths." Thomas took the oath of fidelity July 8, 1645. He +2 CONC died in +2 CONT March, 1646, and was buried the 8th of that month. The following is +2 CONC the +2 CONT inventory of Thomas Axtell of Sudbury, lately deceased, +2 CONT +2 CONT Imprimi: +2 CONT +2 CONT His land and house 8£ 10s +2 CONT +2 CONT Cattle 8£ 10s +2 CONT +2 CONT Wearing apparel and bedding with his arms 10£ +2 CONT +2 CONT Brass and pewter 5£ +2 CONT +2 CONT Edmond Rice bought back the land, six acres, and dwelling house. This +2 CONC was +2 CONT near the spring. +2 CONT +2 CONT The story told in those words is short, indeed, but we are +2 CONC permitted to +2 CONT see what it stands for. The young Englishman was a soldier or at least +2 CONT trained to arms; he was of strong puritanical leanings, like his +2 CONC brother +2 CONT Daniel the regicide. With his wife and two little ones he followed his +2 CONT neighbor across the sea to make his home in a frontier settlement of +2 CONC New +2 CONT England. Scarcely had he set up his rooftree in the wilderness when +2 CONC hardships +2 CONT and exposure struck him down. +2 CONT +2 CONT With his last breath he leaves his little all for the helpless +2 CONC group about +2 CONT his death bed. Mary, the widow of Thomas, appears to have married John +2 CONT Maynard, a widower with a boy of eight, on June 16, 1646. +1 BIRT +2 DATE ABT 26 JAN 1619 +2 PLAC Berkhamstead, , Hertfordshire, England +1 DEAT +2 DATE MAR 1646 +2 PLAC Sudbury, , MA +1 REFN 1-1 +0 @I71@ INDI +1 NAME Daniel /Axtell/ +2 GIVN Daniel +2 SURN Axtell +1 SEX M +1 NOTE twin, probably unmarried. +1 BIRT +2 DATE 29 FEB 1739 +1 DEAT +2 DATE 1772 +1 REFN 5-12 +1 FAMC @F23@ +0 @F23@ FAM +1 CHIL @I71@ +1 MARR +2 DATE 15 SEP 1737 +0 TRLR diff --git a/t/output/compat-easytree.ref b/t/output/compat-easytree.ref new file mode 100644 index 0000000..057a2a5 --- /dev/null +++ b/t/output/compat-easytree.ref @@ -0,0 +1,157 @@ + +=== Parsing file compat-easytree.ged +Header start +Source is EasyTree (ctxt is 1001, parent is 1) +== 2 VERS (391) V6.0 (ctxt is 1001, conversion failures: 0) +== 2 CORP (302) Sierra On-Line (ctxt is 1001, conversion failures: 0) +WARNING: Warning on line 4: Enabling compatibility with 'EasyTree' +Source context 1001 in parent 1 +== 1 DEST (310) EasyTree (ctxt is 1, conversion failures: 0) +== 1 DATE (306) 21 JUN 2000 (ctxt is 1, conversion failures: 0) +== 1 FILE (324) d:\winapps\SIERRA\GENDlx6\familysearch\FamilySearch.uds (ctxt is 1, conversion failures: 0) +== 1 GEDC (326) (null) (ctxt is 1, conversion failures: 0) +== 2 VERS (391) 5.5 (ctxt is 1, conversion failures: 0) +== 2 FORM (325) LINEAGE-LINKED (ctxt is 1, conversion failures: 0) +== 1 CHAR (292) IBM_WINDOWS (ctxt is 1, conversion failures: 0) +Note: (Peter Verthez) This file is only a very small extract of the original (ctxt is 1, parent is 1) +== 2 CONT (300) See http://www.daish.net/downloads.htm (ctxt is 1, conversion failures: 0) +Complete note: +(Peter Verthez) This file is only a very small extract of the original +See http://www.daish.net/downloads.htm +WARNING: Warning on line 12: Adding link to submitter record with xref '@__COMPAT__SUBM__@' +== 1 SUBM (382) @__COMPAT__SUBM__@ (ctxt is 1, conversion failures: 0) +Header end, context is 1 +Submitter, xref is @__COMPAT__SUBM__@ +== 1 NAME (342) Submitter (ctxt is 10000, conversion failures: 0) +Rec INDI start, xref is @I1@ +== 1 NAME (342) Agnes Graden /DAYSH/ (ctxt is 333, conversion failures: 0) +== 1 SEX (374) F (ctxt is 333, conversion failures: 0) +== 1 CHR (294) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: 26 AUG 1838 + type: 0 + date1: + calendar type: 0 + day: 26 + month: AUG + year: 1838 + date type: 1 + sdn1: 2392613 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 2 PLAC (358) Shedfield, Hampshire, England (ctxt is 333, conversion failures: 0) +== 1 CHR (294) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: 8 MAY 1870 + type: 0 + date1: + calendar type: 0 + day: 8 + month: MAY + year: 1870 + date type: 1 + sdn1: 2404191 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 2 PLAC (358) Weston Patrick, Hampshire, England (ctxt is 333, conversion failures: 0) +== 0 NOTE (348) - (xref is @N4639@) +== 1 CONT (300) Relative: Henry Howick WHITE (ctxt is 348, conversion failures: 0) +WARNING: Warning: Cross-reference @I1@ defined on line 13 is never used +WARNING: Warning: Cross-reference @N4639@ defined on line 22 is never used + +=== Total conversion failures: 0 + +=== Parsing file compat-easytree.ged +Header start +Source is EasyTree (ctxt is 1001, parent is 1) +== 2 VERS (391) V6.0 (ctxt is 1001, conversion failures: 0) +== 2 CORP (302) Sierra On-Line (ctxt is 1001, conversion failures: 0) +WARNING: Warning on line 4: Enabling compatibility with 'EasyTree' +Source context 1001 in parent 1 +== 1 DEST (310) EasyTree (ctxt is 1, conversion failures: 0) +== 1 DATE (306) 21 JUN 2000 (ctxt is 1, conversion failures: 0) +== 1 FILE (324) d:\winapps\SIERRA\GENDlx6\familysearch\FamilySearch.uds (ctxt is 1, conversion failures: 0) +== 1 GEDC (326) (null) (ctxt is 1, conversion failures: 0) +== 2 VERS (391) 5.5 (ctxt is 1, conversion failures: 0) +== 2 FORM (325) LINEAGE-LINKED (ctxt is 1, conversion failures: 0) +== 1 CHAR (292) IBM_WINDOWS (ctxt is 1, conversion failures: 0) +Note: (Peter Verthez) This file is only a very small extract of the original (ctxt is 1, parent is 1) +== 2 CONT (300) See http://www.daish.net/downloads.htm (ctxt is 1, conversion failures: 0) +Complete note: +(Peter Verthez) This file is only a very small extract of the original +See http://www.daish.net/downloads.htm +WARNING: Warning on line 12: Adding link to submitter record with xref '@__COMPAT__SUBM__@' +== 1 SUBM (382) @__COMPAT__SUBM__@ (ctxt is 1, conversion failures: 0) +Header end, context is 1 +Submitter, xref is @__COMPAT__SUBM__@ +== 1 NAME (342) Submitter (ctxt is 10000, conversion failures: 0) +Rec INDI start, xref is @I1@ +== 1 NAME (342) Agnes Graden /DAYSH/ (ctxt is 333, conversion failures: 0) +== 1 SEX (374) F (ctxt is 333, conversion failures: 0) +== 1 CHR (294) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: 26 AUG 1838 + type: 0 + date1: + calendar type: 0 + day: 26 + month: AUG + year: 1838 + date type: 1 + sdn1: 2392613 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 2 PLAC (358) Shedfield, Hampshire, England (ctxt is 333, conversion failures: 0) +== 1 CHR (294) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: 8 MAY 1870 + type: 0 + date1: + calendar type: 0 + day: 8 + month: MAY + year: 1870 + date type: 1 + sdn1: 2404191 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 2 PLAC (358) Weston Patrick, Hampshire, England (ctxt is 333, conversion failures: 0) +== 0 NOTE (348) - (xref is @N4639@) +== 1 CONT (300) Relative: Henry Howick WHITE (ctxt is 348, conversion failures: 0) +WARNING: Warning: Cross-reference @I1@ defined on line 13 is never used +WARNING: Warning: Cross-reference @N4639@ defined on line 22 is never used + +=== Total conversion failures: 0 +Parse succeeded diff --git a/t/output/compat-famorig.ref b/t/output/compat-famorig.ref new file mode 100644 index 0000000..1b338f7 --- /dev/null +++ b/t/output/compat-famorig.ref @@ -0,0 +1,429 @@ + +=== Parsing file compat-famorig.ged +Header start +Source is FamilyOrigins (ctxt is 1001, parent is 1) +== 2 NAME (342) Family Origins(R) for Windows (ctxt is 1001, conversion failures: 0) +== 2 VERS (391) 6.0 (ctxt is 1001, conversion failures: 0) +== 2 CORP (302) FormalSoft, Inc. (ctxt is 1001, conversion failures: 0) +WARNING: Warning on line 5: Enabling compatibility with 'Family Origins' +Source context 1001 in parent 1 +== 1 DEST (310) DISKETTE (ctxt is 1, conversion failures: 0) +== 1 DATE (306) 4 JAN 2003 (ctxt is 1, conversion failures: 0) +== 1 SUBM (382) @SUB1@ (ctxt is 1, conversion failures: 0) +== 1 FILE (324) AXB45.GED (ctxt is 1, conversion failures: 0) +== 1 GEDC (326) (null) (ctxt is 1, conversion failures: 0) +== 2 VERS (391) 5.5 (ctxt is 1, conversion failures: 0) +== 2 FORM (325) LINEAGE-LINKED (ctxt is 1, conversion failures: 0) +== 1 CHAR (292) ANSI (ctxt is 1, conversion failures: 0) +Note: (Peter Verthez) This is only a very small extract from the original file (ctxt is 1, parent is 1) +== 2 CONT (300) For the full file, see http://www.axtellfamily.org/axgenea/axggedco.html (ctxt is 1, conversion failures: 0) +Complete note: +(Peter Verthez) This is only a very small extract from the original file +For the full file, see http://www.axtellfamily.org/axgenea/axggedco.html +Header end, context is 1 +Submitter, xref is @SUB1@ +== 1 NAME (342) Daniel Gibson Axtell (ctxt is 10000, conversion failures: 0) +== 1 ADDR (266) 1674 Westminster West Rd (ctxt is 10000, conversion failures: 0) +== 2 CONT (300) Putney VT 05346 (ctxt is 10000, conversion failures: 0) +== 1 PHON (357) 802-387-4145 (ctxt is 10000, conversion failures: 0) +== 1 _EMAIL (264) daxtell@sover.net (ctxt is 10000, conversion failures: 0) +Rec INDI start, xref is @I1@ +== 1 NAME (342) Thomas /Axtell/ (ctxt is 333, conversion failures: 0) +== 2 GIVN (327) Thomas (ctxt is 333, conversion failures: 0) +== 2 SURN (384) Axtell (ctxt is 333, conversion failures: 0) +== 1 SEX (374) M (ctxt is 333, conversion failures: 0) +== 1 NOTE (348) son of William and Thomasine Axtell, was baptised in St. Peter's (ctxt is 333, conversion failures: 0) +== 2 CONC (297) Church, (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Berkhamstead, Hertfordshire, England, January 26, 1619 (N.S.). His (ctxt is 333, conversion failures: 0) +== 2 CONC (297) father (ctxt is 333, conversion failures: 0) +== 2 CONT (300) died in 1638. He married Mary -- probably in 1638; two children were (ctxt is 333, conversion failures: 0) +== 2 CONC (297) born to (ctxt is 333, conversion failures: 0) +== 2 CONT (300) them in England, and their baptism is recorded in St. Peter's. They (ctxt is 333, conversion failures: 0) +== 2 CONC (297) left (ctxt is 333, conversion failures: 0) +== 2 CONT (300) England as early as 1643, for in October of that year, Thomas (ctxt is 333, conversion failures: 0) +== 2 CONC (297) purchased five (ctxt is 333, conversion failures: 0) +== 2 CONT (300) acres of land in Sudbury, Massachusetts, of Edmond Rice, who himself (ctxt is 333, conversion failures: 0) +== 2 CONC (297) had come (ctxt is 333, conversion failures: 0) +== 2 CONT (300) from Berkhamstead five years earlier. This land is described as "lying (ctxt is 333, conversion failures: 0) +== 2 CONC (297) in ye (ctxt is 333, conversion failures: 0) +== 2 CONT (300) south part of ye town-bounds, the southwest side lying to the commons (ctxt is 333, conversion failures: 0) +== 2 CONC (297) and (ctxt is 333, conversion failures: 0) +== 2 CONT (300) joined to the land of Edmond Rice, southward and northward to the (ctxt is 333, conversion failures: 0) +== 2 CONC (297) highway (ctxt is 333, conversion failures: 0) +== 2 CONT (300) leading from Sudbury to Mr. Duston's farm." This is what is now (ctxt is 333, conversion failures: 0) +== 2 CONC (297) Wayland near (ctxt is 333, conversion failures: 0) +== 2 CONT (300) "The Five Paths." Thomas took the oath of fidelity July 8, 1645. He (ctxt is 333, conversion failures: 0) +== 2 CONC (297) died in (ctxt is 333, conversion failures: 0) +== 2 CONT (300) March, 1646, and was buried the 8th of that month. The following is (ctxt is 333, conversion failures: 0) +== 2 CONC (297) the (ctxt is 333, conversion failures: 0) +== 2 CONT (300) inventory of Thomas Axtell of Sudbury, lately deceased, (ctxt is 333, conversion failures: 0) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Imprimi: (ctxt is 333, conversion failures: 0) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) His land and house 8? 10s (ctxt is 333, conversion failures: 1) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Cattle 8? 10s (ctxt is 333, conversion failures: 1) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Wearing apparel and bedding with his arms 10? (ctxt is 333, conversion failures: 1) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Brass and pewter 5? (ctxt is 333, conversion failures: 1) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Edmond Rice bought back the land, six acres, and dwelling house. This (ctxt is 333, conversion failures: 0) +== 2 CONC (297) was (ctxt is 333, conversion failures: 0) +== 2 CONT (300) near the spring. (ctxt is 333, conversion failures: 0) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) The story told in those words is short, indeed, but we are (ctxt is 333, conversion failures: 0) +== 2 CONC (297) permitted to (ctxt is 333, conversion failures: 0) +== 2 CONT (300) see what it stands for. The young Englishman was a soldier or at least (ctxt is 333, conversion failures: 0) +== 2 CONT (300) trained to arms; he was of strong puritanical leanings, like his (ctxt is 333, conversion failures: 0) +== 2 CONC (297) brother (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Daniel the regicide. With his wife and two little ones he followed his (ctxt is 333, conversion failures: 0) +== 2 CONT (300) neighbor across the sea to make his home in a frontier settlement of (ctxt is 333, conversion failures: 0) +== 2 CONC (297) New (ctxt is 333, conversion failures: 0) +== 2 CONT (300) England. Scarcely had he set up his rooftree in the wilderness when (ctxt is 333, conversion failures: 0) +== 2 CONC (297) hardships (ctxt is 333, conversion failures: 0) +== 2 CONT (300) and exposure struck him down. (ctxt is 333, conversion failures: 0) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) With his last breath he leaves his little all for the helpless (ctxt is 333, conversion failures: 0) +== 2 CONC (297) group about (ctxt is 333, conversion failures: 0) +== 2 CONT (300) his death bed. Mary, the widow of Thomas, appears to have married John (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Maynard, a widower with a boy of eight, on June 16, 1646. (ctxt is 333, conversion failures: 0) +== 1 BIRT (283) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: ABT 26 JAN 1619 + type: 7 + date1: + calendar type: 0 + day: 26 + month: JAN + year: 1619 + date type: 1 + sdn1: 2312413 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 2 PLAC (358) Berkhamstead, , Hertfordshire, England (ctxt is 333, conversion failures: 0) +== 1 DEAT (307) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: MAR 1646 + type: 0 + date1: + calendar type: 0 + day: + month: MAR + year: 1646 + date type: 2 + sdn1: 2322309 + sdn2: 2322339 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 2 PLAC (358) Sudbury, , MA (ctxt is 333, conversion failures: 0) +== 1 REFN (364) 1-1 (ctxt is 333, conversion failures: 0) +Rec INDI start, xref is @I71@ +== 1 NAME (342) Daniel /Axtell/ (ctxt is 333, conversion failures: 0) +== 2 GIVN (327) Daniel (ctxt is 333, conversion failures: 0) +== 2 SURN (384) Axtell (ctxt is 333, conversion failures: 0) +== 1 SEX (374) M (ctxt is 333, conversion failures: 0) +== 1 NOTE (348) twin, probably unmarried. (ctxt is 333, conversion failures: 0) +== 1 BIRT (283) (null) (ctxt is 333, conversion failures: 0) +WARNING: Warning on line 97: Error converting date: year 1739, month 2, day 29 +WARNING: Warning on line 97: Putting date in 'phrase' member +Contents of the date_value: + raw value: 29 FEB 1739 + type: 11 + date1: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: 29 FEB 1739 +== 1 DEAT (307) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: 1772 + type: 0 + date1: + calendar type: 0 + day: + month: + year: 1772 + date type: 2 + sdn1: 2368270 + sdn2: 2368635 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 1 REFN (364) 5-12 (ctxt is 333, conversion failures: 0) +== 1 FAMC (320) @F23@ (ctxt is 333, conversion failures: 0) +Family start, xref is @F23@ +== 1 CHIL (293) @I71@ (ctxt is 1, conversion failures: 0) +== 1 MARR (339) (null) (ctxt is 1, conversion failures: 0) +Contents of the date_value: + raw value: 15 SEP 1737 + type: 0 + date1: + calendar type: 0 + day: 15 + month: SEP + year: 1737 + date type: 1 + sdn1: 2355744 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +Family end, xref is @F23@ +WARNING: Warning: Cross-reference @I1@ defined on line 22 is never used + +=== Total conversion failures: 4 + +=== Parsing file compat-famorig.ged +Header start +Source is FamilyOrigins (ctxt is 1001, parent is 1) +== 2 NAME (342) Family Origins(R) for Windows (ctxt is 1001, conversion failures: 0) +== 2 VERS (391) 6.0 (ctxt is 1001, conversion failures: 0) +== 2 CORP (302) FormalSoft, Inc. (ctxt is 1001, conversion failures: 0) +WARNING: Warning on line 5: Enabling compatibility with 'Family Origins' +Source context 1001 in parent 1 +== 1 DEST (310) DISKETTE (ctxt is 1, conversion failures: 0) +== 1 DATE (306) 4 JAN 2003 (ctxt is 1, conversion failures: 0) +== 1 SUBM (382) @SUB1@ (ctxt is 1, conversion failures: 0) +== 1 FILE (324) AXB45.GED (ctxt is 1, conversion failures: 0) +== 1 GEDC (326) (null) (ctxt is 1, conversion failures: 0) +== 2 VERS (391) 5.5 (ctxt is 1, conversion failures: 0) +== 2 FORM (325) LINEAGE-LINKED (ctxt is 1, conversion failures: 0) +== 1 CHAR (292) ANSI (ctxt is 1, conversion failures: 0) +Note: (Peter Verthez) This is only a very small extract from the original file (ctxt is 1, parent is 1) +== 2 CONT (300) For the full file, see http://www.axtellfamily.org/axgenea/axggedco.html (ctxt is 1, conversion failures: 0) +Complete note: +(Peter Verthez) This is only a very small extract from the original file +For the full file, see http://www.axtellfamily.org/axgenea/axggedco.html +Header end, context is 1 +Submitter, xref is @SUB1@ +== 1 NAME (342) Daniel Gibson Axtell (ctxt is 10000, conversion failures: 0) +== 1 ADDR (266) 1674 Westminster West Rd (ctxt is 10000, conversion failures: 0) +== 2 CONT (300) Putney VT 05346 (ctxt is 10000, conversion failures: 0) +== 1 PHON (357) 802-387-4145 (ctxt is 10000, conversion failures: 0) +== 1 _EMAIL (264) daxtell@sover.net (ctxt is 10000, conversion failures: 0) +Rec INDI start, xref is @I1@ +== 1 NAME (342) Thomas /Axtell/ (ctxt is 333, conversion failures: 0) +== 2 GIVN (327) Thomas (ctxt is 333, conversion failures: 0) +== 2 SURN (384) Axtell (ctxt is 333, conversion failures: 0) +== 1 SEX (374) M (ctxt is 333, conversion failures: 0) +== 1 NOTE (348) son of William and Thomasine Axtell, was baptised in St. Peter's (ctxt is 333, conversion failures: 0) +== 2 CONC (297) Church, (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Berkhamstead, Hertfordshire, England, January 26, 1619 (N.S.). His (ctxt is 333, conversion failures: 0) +== 2 CONC (297) father (ctxt is 333, conversion failures: 0) +== 2 CONT (300) died in 1638. He married Mary -- probably in 1638; two children were (ctxt is 333, conversion failures: 0) +== 2 CONC (297) born to (ctxt is 333, conversion failures: 0) +== 2 CONT (300) them in England, and their baptism is recorded in St. Peter's. They (ctxt is 333, conversion failures: 0) +== 2 CONC (297) left (ctxt is 333, conversion failures: 0) +== 2 CONT (300) England as early as 1643, for in October of that year, Thomas (ctxt is 333, conversion failures: 0) +== 2 CONC (297) purchased five (ctxt is 333, conversion failures: 0) +== 2 CONT (300) acres of land in Sudbury, Massachusetts, of Edmond Rice, who himself (ctxt is 333, conversion failures: 0) +== 2 CONC (297) had come (ctxt is 333, conversion failures: 0) +== 2 CONT (300) from Berkhamstead five years earlier. This land is described as "lying (ctxt is 333, conversion failures: 0) +== 2 CONC (297) in ye (ctxt is 333, conversion failures: 0) +== 2 CONT (300) south part of ye town-bounds, the southwest side lying to the commons (ctxt is 333, conversion failures: 0) +== 2 CONC (297) and (ctxt is 333, conversion failures: 0) +== 2 CONT (300) joined to the land of Edmond Rice, southward and northward to the (ctxt is 333, conversion failures: 0) +== 2 CONC (297) highway (ctxt is 333, conversion failures: 0) +== 2 CONT (300) leading from Sudbury to Mr. Duston's farm." This is what is now (ctxt is 333, conversion failures: 0) +== 2 CONC (297) Wayland near (ctxt is 333, conversion failures: 0) +== 2 CONT (300) "The Five Paths." Thomas took the oath of fidelity July 8, 1645. He (ctxt is 333, conversion failures: 0) +== 2 CONC (297) died in (ctxt is 333, conversion failures: 0) +== 2 CONT (300) March, 1646, and was buried the 8th of that month. The following is (ctxt is 333, conversion failures: 0) +== 2 CONC (297) the (ctxt is 333, conversion failures: 0) +== 2 CONT (300) inventory of Thomas Axtell of Sudbury, lately deceased, (ctxt is 333, conversion failures: 0) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Imprimi: (ctxt is 333, conversion failures: 0) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) His land and house 8? 10s (ctxt is 333, conversion failures: 1) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Cattle 8? 10s (ctxt is 333, conversion failures: 1) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Wearing apparel and bedding with his arms 10? (ctxt is 333, conversion failures: 1) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Brass and pewter 5? (ctxt is 333, conversion failures: 1) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Edmond Rice bought back the land, six acres, and dwelling house. This (ctxt is 333, conversion failures: 0) +== 2 CONC (297) was (ctxt is 333, conversion failures: 0) +== 2 CONT (300) near the spring. (ctxt is 333, conversion failures: 0) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) The story told in those words is short, indeed, but we are (ctxt is 333, conversion failures: 0) +== 2 CONC (297) permitted to (ctxt is 333, conversion failures: 0) +== 2 CONT (300) see what it stands for. The young Englishman was a soldier or at least (ctxt is 333, conversion failures: 0) +== 2 CONT (300) trained to arms; he was of strong puritanical leanings, like his (ctxt is 333, conversion failures: 0) +== 2 CONC (297) brother (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Daniel the regicide. With his wife and two little ones he followed his (ctxt is 333, conversion failures: 0) +== 2 CONT (300) neighbor across the sea to make his home in a frontier settlement of (ctxt is 333, conversion failures: 0) +== 2 CONC (297) New (ctxt is 333, conversion failures: 0) +== 2 CONT (300) England. Scarcely had he set up his rooftree in the wilderness when (ctxt is 333, conversion failures: 0) +== 2 CONC (297) hardships (ctxt is 333, conversion failures: 0) +== 2 CONT (300) and exposure struck him down. (ctxt is 333, conversion failures: 0) +== 2 CONT (300) (null) (ctxt is 333, conversion failures: 0) +== 2 CONT (300) With his last breath he leaves his little all for the helpless (ctxt is 333, conversion failures: 0) +== 2 CONC (297) group about (ctxt is 333, conversion failures: 0) +== 2 CONT (300) his death bed. Mary, the widow of Thomas, appears to have married John (ctxt is 333, conversion failures: 0) +== 2 CONT (300) Maynard, a widower with a boy of eight, on June 16, 1646. (ctxt is 333, conversion failures: 0) +== 1 BIRT (283) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: ABT 26 JAN 1619 + type: 7 + date1: + calendar type: 0 + day: 26 + month: JAN + year: 1619 + date type: 1 + sdn1: 2312413 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 2 PLAC (358) Berkhamstead, , Hertfordshire, England (ctxt is 333, conversion failures: 0) +== 1 DEAT (307) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: MAR 1646 + type: 0 + date1: + calendar type: 0 + day: + month: MAR + year: 1646 + date type: 2 + sdn1: 2322309 + sdn2: 2322339 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 2 PLAC (358) Sudbury, , MA (ctxt is 333, conversion failures: 0) +== 1 REFN (364) 1-1 (ctxt is 333, conversion failures: 0) +Rec INDI start, xref is @I71@ +== 1 NAME (342) Daniel /Axtell/ (ctxt is 333, conversion failures: 0) +== 2 GIVN (327) Daniel (ctxt is 333, conversion failures: 0) +== 2 SURN (384) Axtell (ctxt is 333, conversion failures: 0) +== 1 SEX (374) M (ctxt is 333, conversion failures: 0) +== 1 NOTE (348) twin, probably unmarried. (ctxt is 333, conversion failures: 0) +== 1 BIRT (283) (null) (ctxt is 333, conversion failures: 0) +WARNING: Warning on line 97: Error converting date: year 1739, month 2, day 29 +WARNING: Warning on line 97: Putting date in 'phrase' member +Contents of the date_value: + raw value: 29 FEB 1739 + type: 11 + date1: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: 29 FEB 1739 +== 1 DEAT (307) (null) (ctxt is 333, conversion failures: 0) +Contents of the date_value: + raw value: 1772 + type: 0 + date1: + calendar type: 0 + day: + month: + year: 1772 + date type: 2 + sdn1: 2368270 + sdn2: 2368635 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +== 1 REFN (364) 5-12 (ctxt is 333, conversion failures: 0) +== 1 FAMC (320) @F23@ (ctxt is 333, conversion failures: 0) +Family start, xref is @F23@ +== 1 CHIL (293) @I71@ (ctxt is 2, conversion failures: 0) +== 1 MARR (339) (null) (ctxt is 2, conversion failures: 0) +Contents of the date_value: + raw value: 15 SEP 1737 + type: 0 + date1: + calendar type: 0 + day: 15 + month: SEP + year: 1737 + date type: 1 + sdn1: 2355744 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: +Family end, xref is @F23@ +WARNING: Warning: Cross-reference @I1@ defined on line 22 is never used + +=== Total conversion failures: 8 +Parse succeeded diff --git a/t/output/write_gom_compat-easytree.ged b/t/output/write_gom_compat-easytree.ged new file mode 100644 index 0000000..cc92aa0 --- /dev/null +++ b/t/output/write_gom_compat-easytree.ged @@ -0,0 +1,32 @@ +0 HEAD +1 CHAR IBM_WINDOWS +1 SOUR EasyTree +2 VERS V6.0 +2 CORP Sierra On-Line +1 DEST EasyTree +1 DATE 9 SEP 2001 +2 TIME 02:46:40 +1 SUBM @__COMPAT__SUBM__@ +1 FILE d:\winapps\SIERRA\GENDlx6\familysearch\FamilySearch.uds +1 GEDC +2 VERS 5.5 +2 FORM LINEAGE-LINKED +1 NOTE (Peter Verthez) This file is only a very small extract of the original +2 CONT See http://www.daish.net/downloads.htm +0 @__COMPAT__SUBM__@ SUBM +1 NAME Submitter +1 CHAN +2 DATE 9 SEP 2001 +3 TIME 02:46:40 +0 @I1@ INDI +1 NAME Agnes Graden /DAYSH/ +1 SEX F +1 CHR +2 DATE 26 AUG 1838 +2 PLAC Shedfield, Hampshire, England +1 CHR +2 DATE 8 MAY 1870 +2 PLAC Weston Patrick, Hampshire, England +0 @N4639@ NOTE - +1 CONT Relative: Henry Howick WHITE +0 TRLR diff --git a/t/output/write_gom_compat-easytree.ref b/t/output/write_gom_compat-easytree.ref new file mode 100644 index 0000000..e3662dc --- /dev/null +++ b/t/output/write_gom_compat-easytree.ref @@ -0,0 +1,9 @@ +WARNING: Warning on line 4: Enabling compatibility with 'EasyTree' +WARNING: Warning on line 12: Adding link to submitter record with xref '@__COMPAT__SUBM__@' +WARNING: Warning: Cross-reference @I1@ defined on line 13 is never used +WARNING: Warning: Cross-reference @N4639@ defined on line 22 is never used +Writing file... +Re-parsing file... +WARNING: Warning: Cross-reference @I1@ defined on line 21 is never used +WARNING: Warning: Cross-reference @N4639@ defined on line 30 is never used +Test succeeded diff --git a/t/output/write_gom_compat-famorig.ged b/t/output/write_gom_compat-famorig.ged new file mode 100644 index 0000000..fd0d3d3 --- /dev/null +++ b/t/output/write_gom_compat-famorig.ged @@ -0,0 +1,92 @@ +0 HEAD +1 CHAR ANSI +1 SOUR FamilyOrigins +2 NAME Family Origins(R) for Windows +2 VERS 6.0 +2 CORP FormalSoft, Inc. +1 DEST DISKETTE +1 DATE 9 SEP 2001 +2 TIME 02:46:40 +1 SUBM @SUB1@ +1 FILE AXB45.GED +1 GEDC +2 VERS 5.5 +2 FORM LINEAGE-LINKED +1 NOTE (Peter Verthez) This is only a very small extract from the original file +2 CONT For the full file, see http://www.axtellfamily.org/axgenea/axggedco.html +0 @SUB1@ SUBM +1 NAME Daniel Gibson Axtell +1 ADDR 1674 Westminster West Rd +2 CONT Putney VT 05346 +1 PHON 802-387-4145 +1 CHAN +2 DATE 9 SEP 2001 +3 TIME 02:46:40 +1 _EMAIL daxtell@@sover.net +0 @I1@ INDI +1 NAME Thomas /Axtell/ +2 GIVN Thomas +2 SURN Axtell +1 SEX M +1 BIRT +2 DATE ABT 26 JAN 1619 +2 PLAC Berkhamstead, , Hertfordshire, England +1 DEAT +2 DATE MAR 1646 +2 PLAC Sudbury, , MA +1 NOTE son of William and Thomasine Axtell, was baptised in St. Peter's Church, +2 CONT Berkhamstead, Hertfordshire, England, January 26, 1619 (N.S.). His father +2 CONT died in 1638. He married Mary -- probably in 1638; two children were born to +2 CONT them in England, and their baptism is recorded in St. Peter's. They left +2 CONT England as early as 1643, for in October of that year, Thomas purchased five +2 CONT acres of land in Sudbury, Massachusetts, of Edmond Rice, who himself had come +2 CONT from Berkhamstead five years earlier. This land is described as "lying in ye +2 CONT south part of ye town-bounds, the southwest side lying to the commons and +2 CONT joined to the land of Edmond Rice, southward and northward to the highway +2 CONT leading from Sudbury to Mr. Duston's farm." This is what is now Wayland near +2 CONT "The Five Paths." Thomas took the oath of fidelity July 8, 1645. He died in +2 CONT March, 1646, and was buried the 8th of that month. The following is the +2 CONT inventory of Thomas Axtell of Sudbury, lately deceased, +2 CONT +2 CONT Imprimi: +2 CONT +2 CONT His land and house 8£ 10s +2 CONT +2 CONT Cattle 8£ 10s +2 CONT +2 CONT Wearing apparel and bedding with his arms 10£ +2 CONT +2 CONT Brass and pewter 5£ +2 CONT +2 CONT Edmond Rice bought back the land, six acres, and dwelling house. This was +2 CONT near the spring. +2 CONT +2 CONT The story told in those words is short, indeed, but we are permitted to +2 CONT see what it stands for. The young Englishman was a soldier or at least +2 CONT trained to arms; he was of strong puritanical leanings, like his brother +2 CONT Daniel the regicide. With his wife and two little ones he followed his +2 CONT neighbor across the sea to make his home in a frontier settlement of New +2 CONT England. Scarcely had he set up his rooftree in the wilderness when hardships +2 CONT and exposure struck him down. +2 CONT +2 CONT With his last breath he leaves his little all for the helpless group about +2 CONT his death bed. Mary, the widow of Thomas, appears to have married John +2 CONT Maynard, a widower with a boy of eight, on June 16, 1 +1 REFN 1-1 +0 @I71@ INDI +1 NAME Daniel /Axtell/ +2 GIVN Daniel +2 SURN Axtell +1 SEX M +1 BIRT +2 DATE (29 FEB 1739) +1 DEAT +2 DATE 1772 +1 FAMC @F23@ +1 NOTE twin, probably unmarried. +1 REFN 5-12 +0 @F23@ FAM +1 MARR +2 DATE 15 SEP 1737 +1 CHIL @I71@ +0 TRLR diff --git a/t/output/write_gom_compat-famorig.ref b/t/output/write_gom_compat-famorig.ref new file mode 100644 index 0000000..b83f79c --- /dev/null +++ b/t/output/write_gom_compat-famorig.ref @@ -0,0 +1,8 @@ +WARNING: Warning on line 5: Enabling compatibility with 'Family Origins' +WARNING: Warning on line 97: Error converting date: year 1739, month 2, day 29 +WARNING: Warning on line 97: Putting date in 'phrase' member +WARNING: Warning: Cross-reference @I1@ defined on line 22 is never used +Writing file... +Re-parsing file... +WARNING: Warning: Cross-reference @I1@ defined on line 26 is never used +Test succeeded diff --git a/t/write_gom_compat-easytree.test b/t/write_gom_compat-easytree.test new file mode 100755 index 0000000..3c6cfc1 --- /dev/null +++ b/t/write_gom_compat-easytree.test @@ -0,0 +1,3 @@ +#!/bin/sh + +$srcdir/src/test_writegom $0 0 LF ANSEL 0 compat-easytree.ged diff --git a/t/write_gom_compat-famorig.test b/t/write_gom_compat-famorig.test new file mode 100755 index 0000000..667ddc4 --- /dev/null +++ b/t/write_gom_compat-famorig.test @@ -0,0 +1,3 @@ +#!/bin/sh + +$srcdir/src/test_writegom $0 0 LF ANSEL 0 compat-famorig.ged -- 2.30.2