Menu |
Toolbar |
Shortcut |
Tools |
|
- |

The Export Post-processor gives you the ability to solve import problems of the receiving genealogy program by automatically changing the contents of the Gedcom file to be exported. Some problems occur due to variant spellings or use of other keywords in the Gedcom file. The Export Post-processor can perform up to six search and replace operations for the entire Gedcom file. These operations are not limited to a single line; line breaks are represented by \n. Variable data are represented by \*.
The operations search and replace are part of the conversion process, so that they can be performed with the current strings for repeated conversions.
Every step of the Export Post-processor can be turned on or off using checkboxes. Unneeded steps do not need to be deleted. It is enough to simply deactivate the On checkbox.
The settings, including strings, are treated like all other Gedcom Options so that they are available again later.
Each of the six steps can perform one search and replace operation. Every individual step is used for all lines of the Gedcom file before the next step is performed.
The following examples use the step numbers of the above figure:
One step is enough to change the spelling of a tag:
| • | Step 1: Search string '_STAT MARRIED', replacement string '_MSTAT Y' |
| • | Step 2: Search string '_STAT NOTMARRIED', replacement string '_MSTAT N' |
Only one step is needed to replace a double line coding by a single line coding:
| • | Step 3: Search string 'RELI', replacement string 'RELI\n2 TYPE'. For the line break \n is entered; the replacement string of this example includes strings for two lines: The end of the first line should be 'RELI', the beginning of the second line should be '2 TYPE'. Using this example the line '1 RELI Catholic' would be replaced by two subsequent lines '1 RELI' and '2 TYPE Catholic'. The other way round works analogously. |
For switching the spelling of two tags, three steps are needed. The example below switches the tags MARR and ORDI for civil and religious marriage data:
| • | Step 4: Search string 'MARR', replacement string 'XXXX' |
| • | Step 5: Search string 'ORDI', replacement string 'MARR' |
| • | Step 6: Search string 'XXXX', replacement string 'ORDI' |
The usage of data placeholders \* allows for complex changes. If a data placeholder \* is used, it must occur both in the search string and in the replacement string exactly once. Data placeholders must not be at the beginning or at the end of a string; in such cases enter in addition constant neighboring characters or the characters \n for a line break. The following example describes the usage of data placeholders \*:
Among other methods the FamilyTreeFactory can export this godparent coding in the individual record:
1 EVEN
2 TYPE Godparents
2 _GODP Name1, Name2
However, the scheduled program for the import of the Gedcom file cannot read this coding; it expects the following godparent coding:
1 EVEN Name1, Name2
2 TYPE Godparents
The change is performed in a single step with the following strings:
| • | Search string: 'EVEN\n2 TYPE Godparents\n2 _GODP \*\n' |
| • | Replacement string: 'EVEN \*\n2 TYPE Godparents\n' |
The search string begins with 'EVEN ', followed by the second line '2 TYPE Godparents' and the third line '2 _GODP ' with the data placeholder \* for the variable data ('Name1, Name2'). The lines are separated by line breaks \n. Because data placeholders must not be at the beginning or at the end of the strings, a line break \n is added to the end.
The replacement string includes the data placeholder \* for the variable data directly behind 'EVEN ', followed by the second line '2 TYPE Godparents'. Because the search string got an additional line break \n at the end, a line break \n is added to the end of the replacement string, too.
Note 1: The usage of line breaks \n and data placeholders \* can cause a significant delay of the export of large Gedcom files. Be patient. |
Note 2: Successful use of the Export Post-processor requires minimal knowledge of the Gedcom standard. The exported Gedcom file should be checked with a text editor. |