Text to GEDCOM Using my Ahnen2GED

My Ahnentafel to GEDCOM converter, Ahnen2GED, apparently has more uses than I realized. It was initially written to convert the output of DNArboretum (a tool to create ahnentafels from Family Tree DNA trees) to a GEDCOM, but many people are using it to convert other text files as well. So I have enhanced Ahnen2GED to accept any date format that ends with a space followed by the four digit year, so for example 10 jan 1920. I also fixed the known problem where it did not work properly if the lines for the grandparents were not there.

The URL for my Ahnentafel to GEDCOM converter is:
http://kittymunson.com/dna/Ahnen2GEDcom.php

Below is the documentation of the format Ahen2GED expects. Hopefully this will help you create text files that will easily convert to GEDCOMs using my tool. Especially DNAgedcom.com users!

myahnentafels

Look at the image above of the format Ahnen2GED expects as output from DNArboretum. Each line must start with the ahnentafel number followed by a period, a space, or a tab. Then a space and the person’s name. Then the word “born:” with a colon followed by a space then the birth location which can include commas or be blank. Finally a comma followed by the date the person was born on which can be either just the year, or else any other date format as long as it ends with a space and then the four digit year with no commas. Thus legal dates are 1 dec 2004 or abt. 1909 but not Apr 19, 2004 (has a comma) or 12/12/1914 (no space before the year). Finally the word “died:” followed by the place and date of death where the same formatting rules apply as for born.

My informant told me that he uses the DNAgedcom.com client tool (a paid feature under the subscribers tab) to download tree information to a spreadsheet from his matches at Ancestry.com DNA. He then massages the file, which has the ahnentafel numbers already, into a text file for my tool so that he can use the GEDCOM compare tool, also at DNAgedcom. He was curious if I could add the ability to my tool to do that massaging. “Probably,” I said. “I would have to see some samples.”

Are there other users out there who want this capability? How about more date formats like 02-02-1899 or 1/6/1976? If so pass the hat, once I have at least six glasses of wine (click button in right hand column), I will write it.

11 thoughts on “Text to GEDCOM Using my Ahnen2GED

Click here to add your thoughts at the end of the comments
    • Rob has plans to include more tree gathering at DNAgedcom … I intend to update my tool to acccept more formats after Jamboree. Currently you have to massage your text file to look like the one above.

      What exactly do you mean by the DNA client files? the a_ files from the GWorks client? No plans, since people aren’t identified as to where in the tree. However I do plan to be able to use the text cut and paste from the print at ancestry (see http://blog.kittycooper.com/2017/05/getting-a-simple-text-pedigree-from-ancestry-com/ )

      Here is how I use my tool with the wiki compact tree …
      When you see wiki in the tier1 one to many at GEDmatch and click on it to get to a tree
      Select all and paste into a text editor

      A little massaging is required

      1. remove every occurance of “+-”

      2. replace “ancestors descendants” with “born:

      3. replace ” – ” with ” died: ” (be sure to include space after the dash

      4. remove any excess txt at top or bottom and make sure person 1 has “ancestors” removed

      5. do a quick visual check and fix any remaining +- or other issues

      6. if any born and died entries have places as well as dates the dates have to be moved to after the place, preceeded with a comma. This last one can be time consuming so I hope to automate it soon.

    • This is a better version of my comment
      There seems to be a problem with the output when there is an apostrophe in the name. wth first line
      1. Andrew Francis O’CONNELL born: died:
      The html link is generated as
      <a href='tmp/Andrew_Francis_O'CONNELL1547.ged'>
      and that single quote in the middle causes problems. The file is there if I edit the URL. The html output needs to use double quotes or replace the single quote with &amp#39;. It appears you are using PHP in which case htmlspecialchars() will convert any characters in the file name with html meaning to entities for the URL.

      • Thanks Andrew, I am not going to be able to fix that right away but will get to it next week I hope. For now, just remove the apostrophe with a text editor.
        Thanks for finding this and understanding the problem!

  1. I paid 5.00 to buy your DNA segment chart it took me to pay pal but not back to the page and I can’t find it now. Does the file have to be unzipped?

  2. Hi Kitty,
    I love your Ahnen2Ged, I would love it more if I could get it to work 🙂 I have created a text file using Pedigree Thief. I uploaded the resulting text file into Ahnen2Ged and it performed it’s magic. I then saved the new Gedcom file to a folder where I could find it. I started Legacy 9.0 and created a new Family File. I then imported the GEDcom file from where I saved it into Legacy 9. I have tried this twice with the same results… “Import Complete 0 Individuals 0 Families 0 Sources” I don’t understand why this doesn’t work??
    Thank You Kitty 🙂
    Rory Bowers
    Fort Smith, Arkansas

    • Try checking the add a slash box. Some programs need 2 slashes around the surname so I need to add that capability. Next week I hope.

Leave a Reply to mskitty Cancel reply

Your email address will not be published. Required fields are marked *