bibpy.preprocess module

Conversion functions for preprocessing of bib(la)tex fields.

bibpy.preprocess.preprocess(entry, fields, **options)[source]

Preprocess a subset of fields in a list of entries to be output.

bibpy.preprocess.preprocess_date(date, **options)[source]

Preprocess a datetime and return its string equivalent.

bibpy.preprocess.preprocess_int(i, **options)[source]

Convert a string to an integer.

bibpy.preprocess.preprocess_keylist(keylist, **options)[source]

Convert a list of keys to a comma-separated string.

bibpy.preprocess.preprocess_keywords(keywords, **options)[source]

Convert a list of keywords to a delimited string.

bibpy.preprocess.preprocess_month(month_name, **options)[source]

Convert the name of a month to its one-based index.

bibpy.preprocess.preprocess_namelist(namelist, **options)[source]

Convert a list of names to a delimited string.

bibpy.preprocess.preprocess_pages(pages, **options)[source]

Convert a 2-element page range tuple to a string.