Skip to content

bib.bibtexparser.middlewares.block.entry_field_keys_normalize

Classes

NormalizeEntryFieldKeys

NormalizeEntryFieldKeys(allow_inplace_modification=True)

Bases: BlockMiddleware

Normalize field keys to lowercase.

In case of conflicts (e.g. both 'author' and 'Author' exist in the same entry), a warning is emitted, and the last value wins.

Some other middlewares, such as SeparateCoAuthors, assume lowercase key names.

Source code in pybibtexer/bib/bibtexparser/middlewares/block/entry_field_keys_normalize.py
def __init__(self, allow_inplace_modification: bool = True):
    super().__init__(allow_inplace_modification=allow_inplace_modification, allow_parallel_execution=True)