Hacking with Display formats for names

Maybe there a way to write a custom format in Edit->Preferences->Display->Name Format to display part of a Surname in the chart (Eg: Schwarzendruber as sh). I am not aware of how to do it.

My idea is a to print a chart with all members of a certain family along with 2nd cousins and their family names. Since there is not much real estate in the chart, I wanted to show a short family name with a legend on the side of the chart. This monogram helped, even though it may not be the most elegant way.

I clicked Edit button for the Name format: in the Display tab of Preferences.

Then Added 4 lines and Edited them to be as follows:

Given H., Suffix "Common"
Given K., Suffix "Common"
Given P., Suffix "Common"
Given S., Suffix "Common"

After that, those 4 override Monograms were menu options for the Display and could be applied to people in an ad hoc manner.


By the way, my preferred display is:
Title Surname, Given, Suffix "Common"
With a sort on:
Surname, Given, Suffix "Common"

2 Likes

I never try that, and I’m going to use it now for all my Group as persons !

Do you know how to set these Sort as and Display as fields using SuperTool ?

I haven’t searched for that. But it seemed like there might be too few Name fields in the Person object Help of SuperTool.

My big concern is that some Display Name customizations seem to have disappeared from Preferences when I switched repeatedly between Trees. (I switch Trees a LOT for testing techniques & tools )

Little ST script doing what I want:

[Gramps SuperTool script file]
version=1

[title]
Individus-Sort_as des individus groupés

[category]
People

[initial_statements]

[statements]
for n in nameobjs:
	n.sort_as = -1

[filter]

[expressions]
([n.group_as, n.sort_as, n.display_as] for n in nameobjs)

[scope]
selected

[unwind_lists]
False

[commit_changes]
True

[summary_only]
False