Alternative names and preferred names

Can I change the alternative name to the preferred name?
I was able to change the type using the Name Editor tool. Now, however, I want the birth name to be displayed, and the alternative name only under Names.
Is it possible to automatically convert names written in capital letters to normal letters?

Win 11 and Gramps AIO64-6.0.1–1

Drag’n’drop the alternative name to the preferred name to swap.

“Automatically” convert names in All Caps? Not fully automatic. There’s some interaction required.

But there are 2 tools to fix capitalization of names. A built-in for Family Surnames and a similar add-on for Given names.

There are a few hundred names. Anyway, let’s get into the fray…
I didn’t know about the add-ons until now.

Thanks

I’ve run SuperTool scripts to tweak which is the Preferred Name. (Mostly for setting coverture Married names.) You could write a script with other criteria.

@kku also has a NameFormat experimental addon for displaying any alternate surnames as a parenthetical.

I know that and i use it.
Super tool scripts aren’t my strong suit. Unfortunately, I can’t do that…

THX

Mine either. I have to blunder through or… beg Kari for help when I get stuck. But I get a bit further each time. And we improve the docs with the experience of each fumble.

1 Like

@kku Can I ask for your help again with a Supertool script? Is it possible to swap the preferred name and the alternative name?

Do you have a consistent entry for the Type that you want to be the Preferred name? Your screen capture has “Geburtsname” (Maiden Name) and “Auch bekannt als” (Also known as).

(I am a bit nonplussed that you are using a “Maiden name” instead of a “Birth name” designation. It seems like an extra designation for little added benefit.)

Geburtsname is the birth name …

1 Like

foiled again by Google Translate!

1 Like

There is the Fix Capitalization of Family Names (built-in) and the addon Fix Capitalization of Given Names. I recommend them with the caveat that I never had the need to run them.

Make a backup first with any batch editing tools.

@kku also has the Name Editor tool in the Isotammi addon collection. It is available through Gramps’ addon manager.

2 Likes
[Gramps SuperTool script file]
version=1

[title]
swap-names

[description]

[category]
People

[initial_statements]
# Swaps a person's primary name and the first alternate name
n = 0

[statements]
if len(names) > 1:
	priname = person.get_primary_name()
	altnames = person.get_alternate_names()
	n1 = altnames[0]
	person.set_primary_name(n1)
	person.set_alternate_names([priname]+altnames[1:])
	db.commit_person(person, trans)
	n += 1

[filter]

[expressions]
"names swapped:",n

[scope]
selected

[unwind_lists]
False

[commit_changes]
False

[summary_only]
True
3 Likes

Thanks, Kari. Perfect as always. You’ve created something truly amazing with Super Tool.

2 Likes