ged2doc.name¶
Methods for manipulating/formatting names.
Functions
|
Format name for output. |
Classes
|
Names can be rendered in different formats, this enum defines different types of presentations that can also be combined with logical OR ( |
-
class
ged2doc.name.
NameFormat
(value)[source]¶ Bases:
enum.Flag
Names can be rendered in different formats, this enum defines different types of presentations that can also be combined with logical OR (
|
).-
SURNAME_FIRST
= 1¶ Bit flag for surname-first format (e.g.
Smith Jane
).
-
COMMA
= 2¶ Bit flag for adding comma in surname-first format (e.g.
Smith, Jane
).
-
MAIDEN
= 4¶ Bit flag for adding maiden name (e.g.
Jane Smith (Sawyer)
).
-
MAIDEN_ONLY
= 8¶ Bit flag for using maiden name only (e.g.
Jane Sawyer
).
-
CAPITAL
= 16¶ Bit flag for rendering surname in capital (e.g.
Jane SMITH
).
-
-
ged2doc.name.
name_fmt
(name, fmt=<NameFormat.0: 0>)[source]¶ Format name for output.
- Parameters
- name
ged4py.model.Name
Person name.
- fmt
NameFormat
, optional Bitmask combination of
NameFormat
flags.
- name
- Returns
- name
str
Formatted name representation.
- name