diff --git a/src/gen/display/name.py b/src/gen/display/name.py index 86268ba6f..886567b3a 100644 --- a/src/gen/display/name.py +++ b/src/gen/display/name.py @@ -29,7 +29,7 @@ Specific symbols for parts of a name are defined: 'f' : given (first names) 'l' : full surname (lastname) 'c' : callname - 'x' : callname if existing, otherwise first first name (common name) + 'x' : nick name if existing, otherwise first first name (common name) 'i' : initials of the first names 'y' : patronymic surname (father) 'o' : surnames without patronymic @@ -368,7 +368,7 @@ class NameDisplay(object): 'f' : given = given (first names) 'l' : surname = full surname (lastname) 'c' : call = callname - 'x' : common = callname if existing, otherwise first first name (common name) + 'x' : common = nick name if existing, otherwise first first name (common name) 'i' : initials = initials of the first names 'y' : patronymic = patronymic surname (father) 'o' : notpatronymic = surnames without patronymic @@ -394,7 +394,7 @@ class NameDisplay(object): _("suffix")), "c": ("raw_data[_CALL]", "call", _("Name|call")), - "x": ("(raw_data[_CALL] or raw_data[_FIRSTNAME].split(' ')[0])", + "x": ("(raw_data[_NICK] or raw_data[_FIRSTNAME].split(' ')[0])", "common", _("Name|common")), "i": ("''.join([word[0] +'.' for word in ('. ' +" + @@ -443,7 +443,7 @@ class NameDisplay(object): 'f' : given = given (first names) 'l' : surname = full surname (lastname) 'c' : call = callname - 'x' : common = callname if existing, otherwise first first name (common name) + 'x' : common = nick name if existing, otherwise first first name (common name) 'i' : initials = initials of the first names 'y' : patronymic = patronymic surname (father) 'o' : notpatronymic = surnames without patronymic @@ -469,7 +469,7 @@ class NameDisplay(object): _("suffix")), "c": ("call", "call", _("Name|call")), - "x": ("(call or first.split(' ')[0])", "common", + "x": ("(nick or first.split(' ')[0])", "common", _("Name|common")), "i": ("''.join([word[0] +'.' for word in ('. ' + first).split()][1:])", "initials", @@ -623,7 +623,7 @@ def fn(%s): '%f' : given (first names) '%l' : full surname (lastname) '%c' : callname - '%x' : callname if existing, otherwise first first name (common name) + '%x' : nick name if existing, otherwise first first name (common name) '%i' : initials of the first names '%y' : patronymic surname (father) '%o' : surnames without patronymic diff --git a/src/gui/configure.py b/src/gui/configure.py index dc96a1341..ee85b9693 100644 --- a/src/gui/configure.py +++ b/src/gui/configure.py @@ -96,26 +96,21 @@ class DisplayNameEditor(ManagedWindow.ManagedWindow): buttons=(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)), None, _('Display Name Editor'), None) table = self.dialog._build_custom_name_ui() - label = gtk.Label(_("""The following keywords will be replaced with the name: + label = gtk.Label(_("""The following keywords are replaced with the appropriate name parts: - Given - given name (first name) | Surname - surnames (with prefix and connectors) - Title - title (Dr., Mrs.) | Suffix - suffix (Jr., Sr.) - Call - call name | Nickname - nick name - Initials - first letters of Given | Common - Call, otherwise first of Given - Primary - primary surname (main) | Familynick - Family nick name - Also: - Patronymic - patronymic surname (father's name) - Notpatronymic - all surnames except patronymic - Prefix - all surnames prefixes (von, de, de la) - Rawsurnames - all surnames without prefixes and connectors + Given - given name (first name) Surname - surnames (with prefix and connectors) + Title - title (Dr., Mrs.) Suffix - suffix (Jr., Sr.) + Call - call name Nickname - nick name + Initials - first letters of Given Common - nick name, otherwise first of Given + Primary - primary surname (main) Familynick - family nick name + Patronymic - father's surname Notpatronymic- all surnames, except patronymic + Prefix - all prefixes (von, de) Rawsurnames - surnames (no prefixes and connectors) -Use the same keyword in UPPERCASE to force to upper. Parentheses and commas -will be removed around empty fields. Other text will appear literally. +UPPERCASE keyword forces uppercase. Extra parentheses, commas are removed. Other text appears literally. -Example fictituous name: 'Dr. Edwin Jose von der Smith and Weston Wilson Sr ("Ed") - Underhills' -Here Edwin Jose are given names, Smith and Weston surnames, Wilson patronymic surname, -Dr. a title, Sr a suffix, Ed the nick name, Underhills family nick name. -Callname is Jose. +Example: 'Dr. Edwin Jose von der Smith and Weston Wilson Sr ("Ed") - Underhills' + Edwin Jose is given name, Smith and Weston surnames, Wilson patronymic surname, + Dr. title, Sr suffix, Ed nick name, Underhills family nick name, Jose callname. """)) label.set_use_markup(True) self.window.vbox.pack_start(label, expand=False)