GEDCOM problems with Pedigree
Posted: 16 Nov 2002 20:55
Date: Wed, 28 Aug 2002 11:53:33 +0100
Brian Teece wrote
I've been trying to transfer source and census information across from > Pedigree but FH rejects the coding, a sample of which is given below. I'd be > grateful if you could explain where the errors are and what needs to be done > to make it acceptable to FH. > I appreciate that the census data is using cusom tags - will FH accept these > if they are changed in some way, or is there another way around the problem? > > Kind regards, > Brian Teece > > 0 @I2547@ INDI > 1 BIRT > 2 SOUR @11@ > 0 @11@ SOUR > 1 NOTE Parish Register & IGI > > 0 @I5551@ INDI > 1 CENS @295@ > 0 @295@ CENS > 1 CNUM 300 > 1 CYEA 1881 > 1 CADD Cobridge Rd,Shelton,Hanley > 1 CPER TEECE Harriet Head W 67 Broseley > 1814 > 2 CONT TEECE Benjamin Son U 47 Stone Miner Broseley > 1834 > 2 CONT TEECE George H. GSon 16 App.in Pottery Hanley > 1865
Brian, the census stuff that Pedigree is not valid GEDCOM. The line '0 @295@ CENS' defines a record of type 'CENS'. There is no such record in GEDCOM (not in GEDCOM 5.5 at any rate, which has been the standard for about 7 years now). Nor does GEDCOM contain any provision for defining your own record types. If you want to try to recover this information, the best thing would be to try to find someone with a later version of Pedigree that does a better job of exporting the data. Failing that, you could try editing the GEDCOM file directly and converting all your Census records into Note records. If you want to do this, as always, please make sure that you *backup* all files involved before you try any of this out, and check the results very carefully before starting to make use of a file that you've edited in this way! (and, again, this is all at your own risk if you do it).
To edit the GEDCOM file to convert CENS records to NOTE records, you would first have to find all occurrences of lines that look like
0 @295@ CENS
and change them to
0 @295@ NOTE
The number between the @ chars must remain unchanged, in each case. This is a little tricky. You could search for all occurrences of '@ CENS' and replace this with '@ NOTE', but you would need to check that '@ CENS' never occurred in a different type of context. Alternatively, if you want to, Microsoft Word and other editors allow you to use 'Wildcards' (sometimes also called regular expressions), which would make it possible to do the search and replace in a single pass (not easy unless you're already familiar with using Wildcards), specifying something effectively like this: Find me a line beginning with '0 @' followed by any text, followed by '@ CENS'; and then keep it all the same but replace the final CENS with NOTE (In Word 97, open the Replace dialog, click 'Wild cards', set Find What to '(^l0 @[0-9]@@) CENS' without the quotes and set Replace to '1 NOTE', without the quotes. Experiment with this yourself, to make sure it does what it should, before you rely on it!).
Having done that you would then want to find all occurrences of lines containing '1 CENS @295@' (or something other record number other than 295) and replace them with lines containing '1 NOTE @295@'. Again, you could do this by searching for 1 CENS @' and replacing it with '1 NOTE @' as long as you were sure that the search text did not occur in the wrong context anywhere.
That should take you forward a bit, but you would find that your new Note records contained no text, and had lots of 'star-burst' fields (unrecognised fields that F.H. has loaded and treats as text, but doesn't actually know what the fields are supposed to be used for) in them with the Census info. CNUM, CYEA, CADD and CPER and for example, are not valid GEDCOM. You could use this data to manually edit the census records over time, to move the data into the text portion of the note. Alternatively, when you do the conversion, you could if you wanted to try changing this at that point. e.g. when you edited the GEDCOM file you could change
0 @295@ CENS 1 CNUM 300 1 CYEA 1881
to
0 @295 NOTE Census - 300 - 1881
or something similar. You could experiment with a sample file, perhaps, and see what works best in practice.
Good luck.
Simon Orde List Administrator and Family Historian designer
Brian Teece wrote
I've been trying to transfer source and census information across from > Pedigree but FH rejects the coding, a sample of which is given below. I'd be > grateful if you could explain where the errors are and what needs to be done > to make it acceptable to FH. > I appreciate that the census data is using cusom tags - will FH accept these > if they are changed in some way, or is there another way around the problem? > > Kind regards, > Brian Teece > > 0 @I2547@ INDI > 1 BIRT > 2 SOUR @11@ > 0 @11@ SOUR > 1 NOTE Parish Register & IGI > > 0 @I5551@ INDI > 1 CENS @295@ > 0 @295@ CENS > 1 CNUM 300 > 1 CYEA 1881 > 1 CADD Cobridge Rd,Shelton,Hanley > 1 CPER TEECE Harriet Head W 67 Broseley > 1814 > 2 CONT TEECE Benjamin Son U 47 Stone Miner Broseley > 1834 > 2 CONT TEECE George H. GSon 16 App.in Pottery Hanley > 1865
Brian, the census stuff that Pedigree is not valid GEDCOM. The line '0 @295@ CENS' defines a record of type 'CENS'. There is no such record in GEDCOM (not in GEDCOM 5.5 at any rate, which has been the standard for about 7 years now). Nor does GEDCOM contain any provision for defining your own record types. If you want to try to recover this information, the best thing would be to try to find someone with a later version of Pedigree that does a better job of exporting the data. Failing that, you could try editing the GEDCOM file directly and converting all your Census records into Note records. If you want to do this, as always, please make sure that you *backup* all files involved before you try any of this out, and check the results very carefully before starting to make use of a file that you've edited in this way! (and, again, this is all at your own risk if you do it).
To edit the GEDCOM file to convert CENS records to NOTE records, you would first have to find all occurrences of lines that look like
0 @295@ CENS
and change them to
0 @295@ NOTE
The number between the @ chars must remain unchanged, in each case. This is a little tricky. You could search for all occurrences of '@ CENS' and replace this with '@ NOTE', but you would need to check that '@ CENS' never occurred in a different type of context. Alternatively, if you want to, Microsoft Word and other editors allow you to use 'Wildcards' (sometimes also called regular expressions), which would make it possible to do the search and replace in a single pass (not easy unless you're already familiar with using Wildcards), specifying something effectively like this: Find me a line beginning with '0 @' followed by any text, followed by '@ CENS'; and then keep it all the same but replace the final CENS with NOTE (In Word 97, open the Replace dialog, click 'Wild cards', set Find What to '(^l0 @[0-9]@@) CENS' without the quotes and set Replace to '1 NOTE', without the quotes. Experiment with this yourself, to make sure it does what it should, before you rely on it!).
Having done that you would then want to find all occurrences of lines containing '1 CENS @295@' (or something other record number other than 295) and replace them with lines containing '1 NOTE @295@'. Again, you could do this by searching for 1 CENS @' and replacing it with '1 NOTE @' as long as you were sure that the search text did not occur in the wrong context anywhere.
That should take you forward a bit, but you would find that your new Note records contained no text, and had lots of 'star-burst' fields (unrecognised fields that F.H. has loaded and treats as text, but doesn't actually know what the fields are supposed to be used for) in them with the Census info. CNUM, CYEA, CADD and CPER and for example, are not valid GEDCOM. You could use this data to manually edit the census records over time, to move the data into the text portion of the note. Alternatively, when you do the conversion, you could if you wanted to try changing this at that point. e.g. when you edited the GEDCOM file you could change
0 @295@ CENS 1 CNUM 300 1 CYEA 1881
to
0 @295 NOTE Census - 300 - 1881
or something similar. You could experiment with a sample file, perhaps, and see what works best in practice.
Good luck.
Simon Orde List Administrator and Family Historian designer