Copyright | (c) John MacFarlane |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | John MacFarlane <fiddlosopher@gmail.com> |
Stability | unstable-- Portability : unportable |
Safe Haskell | None |
Language | Haskell2010 |
Text.CSL.Input.Bibtex
Description
Synopsis
- readBibtex :: (String -> Bool) -> Bool -> Bool -> FilePath -> IO [Reference]
- readBibtexString :: (String -> Bool) -> Bool -> Bool -> String -> IO [Reference]
- data Lang = Lang String String
- langToLocale :: Lang -> String
- getLangFromEnv :: IO Lang
Documentation
readBibtex :: (String -> Bool) -> Bool -> Bool -> FilePath -> IO [Reference] Source #
Parse a BibTeX or BibLaTeX file into a list of Reference
s.
The first parameter is a predicate to filter identifiers.
If the second parameter is true, the file will be treated as
BibTeX; otherwse as BibLaTeX. If the third parameter is
true, an "untitlecase" transformation will be performed.
readBibtexString :: (String -> Bool) -> Bool -> Bool -> String -> IO [Reference] Source #
Like readBibtex
but operates on a String rather than a file.
langToLocale :: Lang -> String Source #
Prints a Lang
in BCP 47 format.
getLangFromEnv :: IO Lang Source #
Get Lang
from the environment variable LANG, defaulting to en-US.