bibpy.postprocess module

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

bibpy.postprocess.find_postprocess_fields(parameter, value)[source]

Find the fields that need to be postprocessed for a given parameter.

bibpy.postprocess.get_month_name(i)[source]

Return the name of a month from its one-based index .

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

Postprocess a subset of fields in a list of parsed entries.

bibpy.postprocess.postprocess_braces(value, **options)[source]

Remove any braces from a string value.

bibpy.postprocess.postprocess_date(field, datestring, **options)[source]

Convert a string to a bibpy.date.DateRange.

bibpy.postprocess.postprocess_int(field, value, **options)[source]

Convert a string to an integer.

bibpy.postprocess.postprocess_keylist(field, keylist, **options)[source]

Split a comma-separated string of keys into a list.

bibpy.postprocess.postprocess_keywords(field, keywords, **options)[source]

Split a string of keywords into a list.

bibpy.postprocess.postprocess_month(field, month, **options)[source]

Convert a month number to its name.

bibpy.postprocess.postprocess_name(field, author, **options)[source]

Attempts to split an author name into its components.

bibpy.postprocess.postprocess_namelist(field, names, **options)[source]

Split a string of authors into a list.

bibpy.postprocess.postprocess_pages(field, pages, **options)[source]

Convert a page range to a 2-element tuple.