By default Myheritage can not import married surname from Gramps gedcom exports.
To reach this we need make some changes here: /gramps/plugins/export/exportgedcom.py
This code fragment:
self._writeln(1, "NAME", gedcom_name)
if int(name.get_type()) == NameType.BIRTH:
self._writeln(2, "TYPE", "birth")
elif int(name.get_type()) == NameType.MARRIED:
self._writeln(2, "TYPE", "married")
elif int(name.get_type()) == NameType.AKA:
self._writeln(2, "TYPE", "aka")
else:
self._writeln(2, "TYPE", name.get_type().xml_str())
if firstname:
self._writeln(2, "GIVN", firstname)
if surprefix:
self._writeln(2, "SPFX", surprefix)
if surname:
self._writeln(2, "SURN", surname)
if call:
self._writeln(2, "_RUFNAME", call)
if name.get_suffix():
self._writeln(2, "NSFX", suffix)
if name.get_title():
self._writeln(2, "NPFX", title)
if nick:
self._writeln(2, "NICK", nick)
should be replased with this one:
if int(name.get_type()) == NameType.BIRTH:
self._writeln(1, "NAME", gedcom_name)
if firstname:
self._writeln(2, "GIVN", firstname)
if surname:
self._writeln(2, "SURN", surname)
elif int(name.get_type()) == NameType.MARRIED:
self._writeln(2, "_MARNM", gedcom_name)
if surprefix:
self._writeln(2, "SPFX", surprefix)
if call:
self._writeln(2, "_RUFNAME", call)
if name.get_suffix():
self._writeln(2, "NSFX", suffix)
if name.get_title():
self._writeln(2, "NPFX", title)
if nick:
self._writeln(2, "NICK", nick)
I tested it with one person only, it works.
Pay attention that I removed AKA and unknown types. Looks like Myheritage doesnt use them. Anyway it would be greate if anybody confirm or correct the above code.
Lets collect such fragments and and later implement individual exports/imports between different external services and Gramps?