TheGeneGenieProject / GeneGenie.Gedcom

A .Net library for loading, saving, working with and analysing family trees stored in the GEDCOM format.
GNU Affero General Public License v3.0
52 stars 23 forks source link

Implicit surname prefix is duplicated. #103

Open ennoborg opened 3 years ago

ennoborg commented 3 years ago

When I import the following GEDCOM fragment

1 NAME Hendrik /van Veen/ 2 GIVN Hendrik 2 SURN van Veen

the first line results in 3 separate properties for Given, SurnamePrefix, and Surname, being "Hendrik", "van", and "Veen". And although that's not what I expected, it's not that bad either, especially because it creates a soundex for "Veen".

The third line, however, overwrites the Surname property with "van Veen", so in the end, the full name is "Hendrik /van van Veen/", and that's not right.

As far as I'm concerned, the above is proper GEDCOM, because it follows my choice to keep the full surname in one part, and the lack of a surname prefix in my data is properly translated to no SPFX being exported.

Any advice on how to solve this?