GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Biber::Utils(3) User Contributed Perl Documentation Biber::Utils(3)
 

Biber::Utils - Various utility subs used in Biber

All functions are exported by default.

  Searches for a file by
  The exact path if the filename is absolute
  In the input_directory, if defined
  In the output_directory, if defined
  Relative to the current directory
  In the same directory as the control file
  Using kpsewhich, if available

    Wrapper around various warnings bits and pieces
    Logs a warning, add warning to the list of .bbl warnings and optionally
    increments warning count in Biber object, if present

    Wrapper around error logging
    Forces an exit.

Given a Biber::Names object, return an underscore normalised concatenation of all of the full name strings.

Given a Biber::Name object, return an underscore normalised concatenation of the full name strings.

  Tries to convert UTF-8 to TeX macros in passed string

  Removes elements which are not to be considered during initials generation
  in names

  Removes elements which are not to be used in sorting a name from a string

Remove some things from a string for label generation, like braces. It also decodes LaTeX character macros into Unicode as this is always safe when normalising strings for sorting since they don't appear in the output.

Removes LaTeX macros, and all punctuation, symbols, separators and control characters, as well as leading and trailing whitespace for sorting strings. It also decodes LaTeX character macros into Unicode as this is always safe when normalising strings for sorting since they don't appear in the output.

Removes LaTeX macros, and all punctuation, symbols, separators and control characters, as well as leading and trailing whitespace for sorting strings. Only decodes LaTeX character macros into Unicode if output is UTF-8

  Common bit for normalisation

  Normalise strings used for hashes. We collapse LaTeX macros into a vestige
  so that hashes are unique between things like:
  Smith
  {\v S}mith
  we replace macros like this to preserve their vestiges:
  \v S -> v:
  \" -> 34:

  Like normalise_string, but also substitutes ~ and whitespace with underscore.

  Escapes a few special character which might be used in labels

  Unscapes a few special character which might be used in label but which need
  sorting without escapes

reduce_array(\@a, \@b) returns all elements in @a that are not in @b

    Remove surrounding curly brackets:
        '{string}' -> 'string'

    Add surrounding curly brackets:
        'string' -> '{string}'

    upper case of initial letters in a string

    Checks for undefness of arbitrary things, including
    composite method chain calls which don't reliably work
    with defined() (see perldoc for defined())
    This works because we are just testing the value passed
    to this sub. So, for example, this is randomly unreliable
    even if the resulting value of the arg to defined() is "undef":
    defined($thing->method($arg)->method)
    wheras:
    is_undef($thing->method($arg)->method)
    works since we only test the return value of all the methods
    with defined()

    Checks for definedness in the same way as is_undef()

    Checks for undef or nullness (see is_undef() above)

    Checks for def and unnullness (see is_undef() above)

    Checks for def and nullness (see is_undef() above)

    Checks for nullness

    Checks for notnullness

    Checks for notnullness of a scalar

    Checks for notnullness of an array (passed by ref)

    Checks for notnullness of an hash (passed by ref)

    Checks for notnullness of an object (passed by ref)

    Turns a hash into a string of keys and values

  Normalise any UTF-8 encoding string immediately to exactly what we want
  We want the strict perl utf8 "UTF-8"

   We turn the initials into an array so we can be flexible with them later
   The tie here is used only so we know what to split on. We don't want to make
   any typesetting decisions in Biber, like what to use to join initials so on
   output to the .bbl, we only use BibLaTeX macros.

  Replace all join typsetting elements in a name part (space, ties) with BibLaTeX macros
  so that typesetting decisions are made in BibLaTeX, not hard-coded in Biber

    Process any per_entry option transformations which are necessary

    Do an interpolating (neg)match using a match RE and a string passed in as variables

    Do an interpolating match/replace using a match RE, replacement RE
    and string passed in as variables

  Validate a biber/biblatex XML metadata file against an RNG schema

    Set per-entry options

  Simple parse of ISO8601 dates because not decent module exists for this that
  doesn't default the missing components

    Perform NFD form conversion as well as UTF-8 conversion. Used to normalize
    bibtex input as the T::B interface doesn't allow a neat whole file slurping.

  Output to target. Outputs NFC UTF-8 if output is UTF-8

  Map babel/polyglossia language options to a sensible CLDR (bcp47) locale default
  Return input string if there is no mapping

  Map CLDR (bcp47) locale to a babel/polyglossia locale
  Return input string if there is no mapping

  Calculate the length of a range field
  Range fields are an array ref of two-element array refs [range_start, range_end]
  range_end can be be empty for open-ended range or undef
  Deals with Unicode and ASCII roman numerals via the magic of Unicode NFKD form
  m-n -> [m, n]
  m   -> [m, undef]
  m-  -> [m, '']
  -n  -> ['', n]
  -   -> ['', undef]

Francois Charette, "<firmicus at ankabut.net>" Philip Kime "<philip at kime.org.uk>"

Please report any bugs or feature requests on our Github tracker at <https://github.com/plk/biber/issues>.

Copyright 2009-2015 Francois Charette and Philip Kime, all rights reserved.
This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.
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.
2019-01-03 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.