* src/WriteGedcom.py: handle patronymics

svn: r5222
This commit is contained in:
Don Allingham 2005-09-24 02:24:26 +00:00
parent 0fc8d53798
commit 50f2226da6
3 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,6 @@
2005-09-24 Don Allingham <dona@gramps-project.org>
* src/WriteGedcom.py: handle patronymics
2005-09-24 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/GrampsDbBase.py: Properly validate ID prefix strings

View File

@ -25,13 +25,14 @@
<title>Preface</title>
<para>
&app; is a software package designed to help you with
&app; is a free software package designed to help you with
genealogical research. It allows you to store, edit, and research
genealogical data using your computer. Although similar to other
genealogical programs, it offers some unique and powerful
features. GRAMPS is an open source software package, which means
it's distributed for free. It's developed and maintained by a
worldwide team of volunteers.
genealogical data using your computer. &app; is an open source
software package, which means you are free to run it on any number
of computers, examine the code, make changes, and redistribute as
many copies as you like. It is developed and maintained by a
worldwide team of volunteers and is available at no cost from the
project web site and from many software distributions
</para>

View File

@ -1157,7 +1157,7 @@ class GedcomWriter:
self.writeln("%s %s" % (prefix,self.cnvtxt(date.get_text())))
def write_person_name(self,name,nick):
firstName = self.cnvtxt(name.get_first_name())
firstName = self.cnvtxt("%s %s" % (name.get_first_name(),name.get_patronymic())).strip()
surName = self.cnvtxt(name.get_surname())
surName = surName.replace('/','?')
surPref = self.cnvtxt(name.get_surname_prefix())
@ -1175,7 +1175,7 @@ class GedcomWriter:
else:
self.writeln("1 NAME %s/%s %s/%s" % (firstName,surPref,surName,suffix))
if name.get_first_name():
if firstName:
self.writeln("2 GIVN %s" % firstName)
if self.prefix:
if surPref: