.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Biber 3pm" .TH Biber 3pm "2016-06-10" "perl v5.20.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Biber \- main module for biber, a bibtex replacement for users of biblatex .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use Biber; \& \& my $biber = Biber\->new(); \& $biber\->parse_ctrlfile("example.bcf"); \& $biber\->prepare; .Ve .SH "METHODS" .IX Header "METHODS" .SS "new" .IX Subsection "new" .Vb 1 \& Initialize the Biber object, optionally passing named options as arguments. .Ve .SS "display_problems" .IX Subsection "display_problems" .Vb 1 \& Output summary of warnings/errors before exit .Ve .SS "biber_tempdir" .IX Subsection "biber_tempdir" .Vb 1 \& my $sections= $biber\->biber_tempdir \& \& Returns a File::Temp directory object for use in various things .Ve .SS "sections" .IX Subsection "sections" .Vb 1 \& my $sections= $biber\->sections \& \& Returns a Biber::Sections object describing the bibliography sections .Ve .SS "add_sections" .IX Subsection "add_sections" .Vb 1 \& Adds a Biber::Sections object. Used externally from, e.g. biber .Ve .SS "sortlists" .IX Subsection "sortlists" .Vb 1 \& my $sortlists= $biber\->sortlists \& \& Returns a Biber::SortLists object describing the bibliography sorting lists .Ve .SS "set_output_obj" .IX Subsection "set_output_obj" .Vb 2 \& Sets the object used to output final results \& Must be a subclass of Biber::Output::base .Ve .SS "get_preamble" .IX Subsection "get_preamble" .Vb 1 \& Returns the current preamble as an array ref .Ve .SS "get_output_obj" .IX Subsection "get_output_obj" .Vb 1 \& Returns the object used to output final results .Ve .SS "set_current_section" .IX Subsection "set_current_section" .Vb 1 \& Sets the current section number that we are working on to a section number .Ve .SS "get_current_section" .IX Subsection "get_current_section" .Vb 1 \& Gets the current section number that we are working on .Ve .SS "tool_mode_setup" .IX Subsection "tool_mode_setup" .Vb 1 \& Fakes parts of the control file for tool mode .Ve .SS "parse_ctrlfile" .IX Subsection "parse_ctrlfile" .Vb 3 \& This method reads the control file \& generated by biblatex to work out the various biblatex options. \& See Constants.pm for defaults and example of the data structure being built here. .Ve .SS "process_setup" .IX Subsection "process_setup" .Vb 1 \& Place to put misc pre\-processing things needed later .Ve .SS "process_setup_tool" .IX Subsection "process_setup_tool" .Vb 1 \& Place to put misc pre\-processing things needed later for tool mode .Ve .SS "resolve_alias_refs" .IX Subsection "resolve_alias_refs" .Vb 1 \& Resolve aliases in xref/crossref/xdata which take keys as values to their real keys \& \& We use set_datafield as we are overriding the alias in the datasource .Ve .SS "process_citekey_aliases" .IX Subsection "process_citekey_aliases" .Vb 2 \& Remove citekey aliases from citekeys as they don\*(Aqt point to real \& entries. .Ve .SS "nullable_check" .IX Subsection "nullable_check" .Vb 1 \& Check entries for nullable fields .Ve .SS "instantiate_dynamic" .IX Subsection "instantiate_dynamic" .Vb 5 \& This instantiates any dynamic entries so that they are available \& for processing later on. This has to be done before most all other \& processing so that when we call $section\->bibentry($key), as we \& do many times in the code, we don\*(Aqt die because there is a key but \& no Entry object. .Ve .SS "resolve_xdata" .IX Subsection "resolve_xdata" .Vb 1 \& Resolve xdata entries .Ve .SS "cite_setmembers" .IX Subsection "cite_setmembers" .Vb 1 \& Promotes set member to cited status .Ve .SS "process_interentry" .IX Subsection "process_interentry" .Vb 1 \& $biber\->process_interentry \& \& This does several things: \& 1. Records the set information for use later \& 2. Ensures proper inheritance of data from cross\-references. \& 3. Ensures that crossrefs/xrefs that are directly cited or cross\-referenced \& at least mincrossrefs times are included in the bibliography. .Ve .SS "validate_datamodel" .IX Subsection "validate_datamodel" .Vb 5 \& Validate bib data according to a datamodel \& Note that we are validating the internal Biber::Entries \& after they have been created from the datasources so this is \& datasource neutral, as it should be. It is here to enforce \& adherence to what biblatex expects. .Ve .SS "process_entries_pre" .IX Subsection "process_entries_pre" .Vb 5 \& Main processing operations, to generate metadata and entry information \& This method is automatically called by C. \& Here we generate the "namehash" and the strings for \& "labelname", "labelyear", "labelalpha", "sortstrings", etc. \& Runs prior to uniqueness processing .Ve .SS "process_entries_post" .IX Subsection "process_entries_post" .Vb 3 \& More processing operations, to generate things which require uniqueness \& information like namehash \& Runs after uniqueness processing .Ve .SS "process_singletitle" .IX Subsection "process_singletitle" .Vb 1 \& Track seen work combination for generation of singletitle .Ve .SS "process_extrayear" .IX Subsection "process_extrayear" .Vb 1 \& Track labelname/year combination for generation of extrayear .Ve .SS "process_extratitle" .IX Subsection "process_extratitle" .Vb 1 \& Track labelname/labeltitle combination for generation of extratitle .Ve .SS "process_extratitleyear" .IX Subsection "process_extratitleyear" .Vb 1 \& Track labeltitle/labelyear combination for generation of extratitleyear .Ve .SS "process_sets" .IX Subsection "process_sets" .Vb 1 \& Postprocess set entries \& \& Checks for common set errors and enforces \*(Aqdataonly\*(Aq for set members .Ve .SS "process_labelname" .IX Subsection "process_labelname" .Vb 1 \& Generate labelname information. .Ve .SS "process_labeldate" .IX Subsection "process_labeldate" .Vb 1 \& Generate labeldate information .Ve .SS "process_labeltitle" .IX Subsection "process_labeltitle" .Vb 1 \& Generate labeltitle \& \& Note that this is not conditionalised on the biblatex "labeltitle" \& as labeltitle should always be output since all standard styles need it. \& Only extratitle is conditionalised on the biblatex "labeltitle" option. .Ve .SS "process_fullhash" .IX Subsection "process_fullhash" .Vb 1 \& Generate fullhash .Ve .SS "process_namehash" .IX Subsection "process_namehash" .Vb 1 \& Generate namehash .Ve .SS "process_pername_hashes" .IX Subsection "process_pername_hashes" .Vb 1 \& Generate per_name_hashes .Ve .SS "process_visible_names" .IX Subsection "process_visible_names" .Vb 2 \& Generate the visible name information. \& This is used in various places and it is useful to have it generated in one place. .Ve .SS "process_labelalpha" .IX Subsection "process_labelalpha" .Vb 1 \& Generate the labelalpha and also the variant for sorting .Ve .SS "process_extraalpha" .IX Subsection "process_extraalpha" .Vb 1 \& Generate the extraalpha information .Ve .SS "process_presort" .IX Subsection "process_presort" .Vb 3 \& Put presort fields for an entry into the main Biber bltx state \& so that it is all available in the same place since this can be \& set per\-type and globally too. .Ve .SS "process_lists" .IX Subsection "process_lists" .Vb 1 \& Sort and filter lists for a section .Ve .SS "check_list_filter" .IX Subsection "check_list_filter" .Vb 1 \& Run an entry through a list filter. Returns a boolean. .Ve .SS "generate_sortinfo" .IX Subsection "generate_sortinfo" .Vb 1 \& Generate information for sorting .Ve .SS "uniqueness" .IX Subsection "uniqueness" .Vb 1 \& Generate the uniqueness information needed when creating .bbl .Ve .SS "create_uniquename_info" .IX Subsection "create_uniquename_info" .Vb 1 \& Gather the uniquename information as we look through the names \& \& What is happening in here is the following: \& We are registering the number of occurences of each name, name+init and fullname \& within a specific context. For example, the context is "global" with uniquename < 5 \& and "name list" for uniquename=5 or 6. The keys we store to count this are the most specific \& information for the context, so, for uniquename < 5, this is the full name and for \& uniquename=5 or 6, this is the complete list of full names. These keys have values in a hash \& which are ignored. They serve only to accumulate repeated occurences with the context \& and we don\*(Aqt care about this and so the values are a useful sinkhole for such repetition. \& \& For example, if we find in the global context a lastname "Smith" in two different entries \& under the same form "Alan Smith", the data structure will look like: \& \& {Smith}\->{global}\->{Alan Smith} = 2 \& \& We don\*(Aqt care about the value as this means that there are 2 "Alan Smith"s in the global \& context which need disambiguating identically anyway. So, we just count the keys for the \& lastname "Smith" in the global context to see how ambiguous the lastname itself is. This \& would be "1" and so "Alan Smith" would get uniquename=0 because it\*(Aqs unambiguous as just \& "Smith". \& \& The same goes for "minimal" list context disambiguation for uniquename=5 or 6. \& For example, if we had the lastname "Smith" to disambiguate in two entries with labelname \& "John Smith and Alan Jones", the data structure would look like: \& \& {Smith}\->{Smith+Jones}\->{John Smith+Alan Jones} = 2 \& \& Again, counting the keys of the context for the lastname gives us "1" which means we \& have uniquename=0 for "John Smith" in both entries because it\*(Aqs the same list. This also works \& for repeated names in the same list "John Smith and Bert Smith". Disambiguating "Smith" in this: \& \& {Smith}\->{Smith+Smith}\->{John Smith+Bert Smith} = 2 \& \& So both "John Smith" and "Bert Smith" in this entry get uniquename=0 (of course, as long as \& there are no other "X Smith and Y Smith" entries where X != "John" or Y != "Bert"). .Ve .SS "generate_uniquename" .IX Subsection "generate_uniquename" .Vb 2 \& Generate the per\-name uniquename values using the information \& harvested by create_uniquename_info() .Ve .SS "create_uniquelist_info" .IX Subsection "create_uniquelist_info" .Vb 1 \& Gather the uniquename information as we look through the names .Ve .SS "generate_uniquelist" .IX Subsection "generate_uniquelist" .Vb 2 \& Generate the per\-namelist uniquelist values using the information \& harvested by create_uniquelist_info() .Ve .SS "generate_extra" .IX Subsection "generate_extra" .Vb 1 \& Generate information for: \& \& * extraalpha \& * extrayear \& * extratitle \& * extratitleyear .Ve .SS "generate_singletitle" .IX Subsection "generate_singletitle" .Vb 2 \& Generate the singletitle field, if requested. The information for generating \& this is gathered in process_singletitle() .Ve .SS "sort_list" .IX Subsection "sort_list" .Vb 2 \& Sort a list using information in entries according to a certain sorting scheme. \& Use a flag to skip info messages on first pass .Ve .SS "prepare" .IX Subsection "prepare" .Vb 2 \& Do the main work. \& Process and sort all entries before writing the output. .Ve .SS "prepare_tool" .IX Subsection "prepare_tool" .Vb 1 \& Do the main work for tool mode .Ve .SS "fetch_data" .IX Subsection "fetch_data" .Vb 2 \& Fetch citekey and dependents data from section datasources \& Expects to find datasource packages named: \& \& Biber::Input:::: \& \& and one defined subroutine called: \& \& Biber::Input::::::extract_entries \& \& which takes args: \& \& 1: Biber object \& 2: Datasource name \& 3: Reference to an array of cite keys to look for \& \& and returns an array of the cite keys it did not find in the datasource .Ve .SS "get_dependents" .IX Subsection "get_dependents" .Vb 2 \& Get dependents of the entries for a given list of citekeys. Is called recursively \& until there are no more dependents to look for. .Ve .SS "remove_undef_dependent" .IX Subsection "remove_undef_dependent" .Vb 2 \& Remove undefined dependent keys from an entry using a map of \& dependent keys to entries .Ve .SS "_parse_sort" .IX Subsection "_parse_sort" .Vb 2 \& Convenience sub to parse a .bcf sorting section and return nice \& sorting object .Ve .SS "_filedump and _stringdump" .IX Subsection "_filedump and _stringdump" .Vb 1 \& Dump the biber object with Data::Dump for debugging .Ve .SH "AUTHORS" .IX Header "AUTHORS" Franc\*,ois Charette, \f(CW\*(C`\*(C'\fR Philip Kime \f(CW\*(C`\*(C'\fR .SH "BUGS" .IX Header "BUGS" Please report any bugs or feature requests on our Github tracker at . .SH "COPYRIGHT & LICENSE" .IX Header "COPYRIGHT & LICENSE" Copyright 2009\-2014 Franc\*,ois Charette and Philip Kime, all rights reserved. .PP This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0. .PP This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.