From: Douglas S. Blank <dblank@cs...> - 2007-10-14 04:29:29
I've committed a patch for an enhanced NameDisplay that you might want to
try, and report any issues.
The main use of this patch might be its ability to remove commas and
parens near empty entries. For example, if you'd like a name to have the
"call" name follow a person's full name, inside parens, try this pattern:
%l, %f (%c)
That would show "Smith, Edwin (Ed)" if Edwin has a call name, and show
"Smith, Edwin" if he doesn't.
You can also use the pattern "surname, given (call)" or any of these
keywords (shown with their codes):
surname - %l
given - %f
call - %c
title - %t
prefix - %p
suffix - %s
patronymic - %y
which were all defined by these codes, previously. In addition, there are
two new codes/keywords:
common - %x (gives call, if one, or first part of given if not)
initials - %i (gives first letter of all words in given)
Finally, you can also use your language's localized version of each of
these keywords (if translated). (If you switch between languages, you
should use the English keywords or codes). Uppercase keywords should give
If this works fine, we could change the interface of the Display Name
editor so that "Format name" *is* the "Format definition".
Another motivation for this patch was to supply a short and common (yet
proper) name for the Calendar. (This will appear shortly).
If you think of other name patterns that would be useful for your culture
or usage, please let us know.
Get latest updates about Open Source Projects, Conferences and News.