Implement the GEDCOM tag "_RUFNAME"

RUFNAME is the German word for "call name", i.e. the part of the given
name commonly used to address somebody. Some official documents mark it
as such.

The GEDCOM standards 5.5.1 and 5.5.5 mention this tag.
This commit is contained in:
Matthias Urlichs
2023-01-19 17:24:52 +01:00
committed by Nick Hall
parent b7d28a28f1
commit 5e1d36b0ad
5 changed files with 24 additions and 1 deletions

View File

@@ -1304,6 +1304,7 @@ class GedcomWriter(UpdateCallback):
suffix = name.get_suffix()
title = name.get_title()
nick = name.get_nick_name()
call = name.get_call_name()
if nick.strip() == '':
nick = attr_nick
@@ -1323,6 +1324,8 @@ class GedcomWriter(UpdateCallback):
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():