bibble.util.name_parts

Refactored from bibtexparser.middlewares.names

Type Aliases

MbList

Functions

escape_last_slash(string)

Escape the last slash in a string if it is not escaped.

Classes

NameParts_d

A dataclass representing the parts of a person name.

Module Contents

bibble.util.name_parts.MbList: TypeAlias = Maybe[list[str]]
bibble.util.name_parts.escape_last_slash(string) <Unknown>[source]

Escape the last slash in a string if it is not escaped.

Parameters:

string (str)

Return type:

str

class bibble.util.name_parts.NameParts_d(
*,
first=None,
von=None,
last=None,
jr=None,
)[source]

A dataclass representing the parts of a person name.

The different parts are defined according to BibTex’s implementation of name parts (first, von, last, jr).

Parameters:
  • first (MbList)

  • von (MbList)

  • last (MbList)

  • jr (MbList)

merge(*, format=None) <Unknown>[source]
Parameters:

format (jgdv.Maybe[list[str]])

Return type:

str

first: list[str]
jr: list[str]
last: list[str]
von: list[str]