bibble.people.name_reader
See EOF for license/metadata/notes as applicable
Type Aliases
Classes
A Refactored version of bibtexparser's SplitNameParts and SeparateCoAuthors |
|
Adapted from bibtexparser's parse_single_name_into_parts, originally by Blair Bonnett. |
|
Adapated from bibtexparser's split_multiple_persons_names, originally by Blair Bonnett |
Module Contents
- bibble.people.name_reader.Block: TypeAlias = model.Block
- class bibble.people.name_reader.NameReader(
- *,
- parts=True,
- authors=True,
- **kwargs,
Bases:
bibble.util.middlecore.IdenBlockMiddlewareA Refactored version of bibtexparser’s SplitNameParts and SeparateCoAuthors
- transform_Entry(entry, library) <Unknown>[source]
- Parameters:
entry (Entry)
library (bibtexparser.library.Library)
- Return type:
list[Entry]
- _do_name_parts = True
- _do_split_authors = True
- _whitelist = ('author', 'editor', 'translator')
- class bibble.people.name_reader._NameToParts_m[source]
Adapted from bibtexparser’s parse_single_name_into_parts, originally by Blair Bonnett.
Parses an individual name into a NameParts_d, a simple data structure containing: - first : list. First names. - von : list. - last : list. Last Names. - jr : list.
Bibtex Names are of one of the forms: - first von last - von last, first - von last, jr, first
- class bibble.people.name_reader._SplitAuthors_m[source]
Adapated from bibtexparser’s split_multiple_persons_names, originally by Blair Bonnett
Splits names by intermediary ‘and’s. Like its original, treats non-breaking space and ‘~’s as regular chars not whitespace.
‘and’s within braces are returned un modified. eg: ‘{Simon and Schuster}’ -> [‘{Simon and Schuster}’]