Merge changes made in gramps20 into HEAD

svn: r4549
This commit is contained in:
Alex Roitman
2005-05-11 14:04:47 +00:00
parent 90a4d68cef
commit 2a77676b36
111 changed files with 42212 additions and 31765 deletions

View File

@ -106,13 +106,25 @@ class PatchNames:
for key in self.db.get_person_handles(sort_handles=False):
person = self.db.get_person_from_handle(key)
first = person.get_primary_name().get_first_name()
sname = person.get_primary_name().get_surname()
name = person.get_primary_name()
first = name.get_first_name()
sname = name.get_surname()
match = _title_re.match(first)
if match:
if name.get_title():
current_title = [name.get_title()]
else:
current_title = []
while match:
groups = match.groups()
self.title_list.append((key,groups[0],groups[1]))
first = groups[1]
current_title.append(groups[0])
match = _title_re.match(first)
if current_title:
self.title_list.append((key," ".join(current_title),first))
continue
match = _nick_re.match(first)
if match:
groups = match.groups()