Changelog for pandoc-citeproc-0.10.3

pandoc-citeproc (0.10.3) * Update to work with pandoc 1.19 (including writerStandalone API change). * Updated test case to use bracketed_spans. Note: this means that tests will fail unless pandoc 1.19 is used. * Fixed pluralization with label for issue (#267). * Factored out `comb` in Text.CSL.Pandoc. * Make it clearer when errors concern CSL parsing (#219). Errors in CSL parsing now point to the CSL file specifically. We convert any error thrown in CSL parsing into an XMLException (from xml-conduit), so the file path will be shown. * Handle EDTF dates in bibtex bibliographies (#240). pandoc-citeproc (0.10.2.2) * Fix overlapping instances with aeson-1.0.2.1 (#263). pandoc-citeproc (0.10.2.1) * Allow pandoc 1.18.x. pandoc-citeproc (0.10.2) * Use linebreaks to simulate display="block" (#85, #261). pandoc-citeproc (0.10.1.4) * Use finer grained Pandoc import statements (Albert Krewinkel). A full import of the Pandoc library leads to name collisions with Pandoc v1.18, so only required functions and datatypes are imported. * Remove unused import. pandoc-citeproc (0.10.1.3) * Fixed compiler warnings. * Setup.hs - removed unnecessary imports. * Travis improvements. Run on stack lts-7, not earlier. Disable optimizations for faster build. Turn on warnings. * Bump pandoc-types to 1.17.0.3 in stack.yaml. pandoc-citeproc (0.10.1.2) * Implemented notes-after-punctuation metadata field (#256). If this is true (the default), citations rendered as footnotes are automatically moved after punctuation. If it is false, footnote citations remain before punctuation, but space is still collapsed before the notes. * Don't require http-client 0.5. This mirrors recent changes to pandoc, which allow 0.4.30.x. * Allow pandoc-types 1.17.*. * Allow xml-conduit 1.4.x (Felix Yan). pandoc-citeproc (0.10.1.1) * Clarify that abbreviations require `form="short"` (Nick Bart). * Allow aeson 1.0.*. * Input.Bibtex: better parsing for month. Don't convert to lowercase if it's not one of the official abbreviations and isn't protected. pandoc-citeproc (0.10.1) * pandoc-citeproc: allow .yaml and .json input files, even without the `bibutils` flag, for conversion to JSON and YAML, resp. * Pluralize locator term when comma-separated series of numbers given (#245). * Don't insert bibliography if there are no entries (#249). * Fixed note field with YAMl bibliographies (#224). Supplementary fields in `note` are parsed only in CSL JSON. * Support latest aeson-pretty (Felix Yan). pandoc-citeproc (0.10) * Allow colons in bibtex field names (John MacFarlane, #220). * Set LANG as well as LC_ALL before translating bibtex (John MacFarlane). This ensures that bibtex will use the locale specified in the document, even if the system locale is different. * Data: Raise CSLLocaleException if locale not found (John MacFarlane). Minor API change: Export CSLLocaleException. * Added DeriveDataTypeable pragma to Data (John MacFarlane). * Bibtex reader: case-insensitive parsing of month names (John MacFarlane). * Bibtex: Export readBibtexInputString', a pure version of readBibtexInputString (John MacFarlane). * Rename readBibtexInput* -> readBibtex* (John MacFarlane, API change). * unTitleCase now lowercases whole word (#234, John MacFarlane). So, for example, unprotected TeV becomes tev, instead of teV. This mimics bibtex's own behavior. * Added caseTransform parameter on readBibtex* functions (#231, John MacFarlane). When set to false, the bibtex reader doesn't do the 'untitlecase' transformation. This is used in Text.CSL.Input.Bibutils, when using bibtex as an intermediate format for conversion from mods, ris, or other formats. Otherwise we get the 'untitlecase' transform when it isn't wanted. * Allow numbers with decimal points to count as "numeric." (#208, John MacFarlane) Thus, we should have "Series 2.2", not "Series, 2.2" with Chicago author-date style. * Fixed capitalization for words following slash (#236, John MacFarlane). * Updated locales. * Fix build failure for --flags=-bibutils mode (Sergei Trofimovich). Reported-by Thomas Beutin https://bugs.gentoo.org/516640. * Add missing -DUSE_BIBUTILS to Cabal build (Vaclav Haisman). pandoc-citeproc (0.9.1.1) * Only changed version number (work around for hackage upload error). pandoc-citeproc (0.9.1) * Fixed YAML/CSL reference type for motion_picture, etc. (#214). Several CSL reference types (`motion_picture`, `legal_case`, ...) use an underscore instead of a hyphen, and these had been incorrectly rendered by pandoc when translating to YAML/CSL. * Fixed handling of dimension and other 'literal' variables (#213). This also affects call-number, scale, language. * Fixed test-citeproc. * Fixed travis builds to use stack. * Only use -rtsopts for executable. * Allow aeson 0.11. * Allow compilation with pandoc 1.17. * Updated locales and chicago-author-date.csl. pandoc-citeproc (0.9) * Allow spaces around CSL note fields. Closes #191. * Add homepage field to .cabal file (Jens Petersen). * Use pandoc 1.16. * Turn on smart quote parsing in reading bib(la)tex. We didn't need this previously, but now we do thanks to changes in pandoc. * Specialize `mkRefMap` to `Reference`, and return empty map for `emptyReference`. * Improved behavior with missing references (API change, #195, #165). Previously in some cases where a citation id wasn't found in the bibliography, a "reference with no printed form" warning was printed instead of "not found." This change fixes that. It also changes some types in ways that make more sense. `processCites` now produces `[[(Cite, Maybe Reference)]]` instead of `[[(Cite, Reference)]]`, and other types are adjusted accordingly. For example, `evalLayout` now has a `Maybe Reference` parameter rather than `Reference`. * Added `hackage-docs.sh` to upload haddocks when Hackage can't build them. * Improved handling of `nocite` (#197). Previously if you had something in `nocite`, then cited it again in the document, pandoc-citeproc would use `ibid`, thinking that the item had already been cited. * Fix for pandoc API change to `writerWrapOptions`. * Allow `SoftBreak` to count as space in some contexts (e.g. splitting). * Fixed path to `chicago-fullnote-bibliography.csl` in test. * Improved error message with illegal 'type' field in YAML bibliographies (#2611). pandoc-citeproc (0.8.1.3) * test-pandoc-citeproc: Better fix for Windows. Use UTF8 strings instead of bytestrings; this helps get line endings right in tests. pandoc-citeproc (0.8.1.2) * Use UTF8 versions of readFile in test program. pandoc-citeproc (0.8.1.1) * Use pandoc's UTF8 versions of getContents, putStrLn, etc. Otherwise we get locale-dependent encodings. pandoc-citeproc (0.8.1) * Improved performance in bibtex cross-reference resolution (#190). * Take 'form' for date-part elements from date if not specified (#116). Previously if the 'form' were unspecified in a date-part element, it would go to the default 'long', even if the date as a whole was 'numeric'. * Transform only uppercase ASCII letters in titlecase transform. This helps us pass one more citeproc test case. * Cleaned up locator parsing code. * Allow roman numeral locators (#173. * Fixed missing dash between months in date ranges (#175). * Fixed `strip-periods` (#185). * Parse supplementary fields in CSL JSON "note" fields (#94). * Support more biblatex markup in converting biblatex bibliographies: `mkbibemph`, `mkbibitalic`, `mkbibbold`, `mkbibparens`, `mkbibbrackets`, `autocap` (Nick Bart, #26). Treat reviews as articles. * Add biblatex keys for additional languages (Nick Bart). * Use HTTPS for DOI resolver (Andrew Dunning). * Add biblatex keys for additional languages (Nick Bart): ca-AD, da-DK, es-ES, fi-FI, it-IT, nl-NL, pl-PL, pt-PT, pt-BR, sv-SE pandoc-citeproc (0.8.0.1) * Allow aeson 0.10.x (Felix Yan). * Add custom Prelude: -Wall clean on ghc 7.10. pandoc-citeproc (0.8) * Use `lang` metadata field to specify locale. `locale` can still be used as before, for backwards compatibility, but `lang` is now preferred. * Put the references section header outside the Div, instead of inside as before.. This interacts better with pandoc's `--section-divs` feature (#176). * Use `refs`, not `references`, for the identifier of the bibliography Div. Unlike `references`, `refs` is not likely to conflict with an autogenerated header identifier (#176). NOTE: workflows designed to work with 0.7.4, with a `<div id="references"></div>` where the bibliography is to go, will need modification (`s/references/refs/`). * Changed local override for default CSL file (#161). Previously you could override the default CSL file by modifying `~/.csl/chicago-author-date.csl`. Now you do it by modifying `~/.csl/default.csl`. To minimize the effect of this change on existing workflows, we will use the version of `chicago-author-date.csl` in `~/.csl`, if there is one, if `~/.csl/default.csl` is not found. * Implemented fallbacks for CSL terms, as per CSL spec. E.g. `verb` is used if `verb-short` is not defined (#72). * Update CSL style, locales (Andrew Dunning). * Setup.hs: got hsb2hs registered as a build-tool. * Setup.hs: avoid depending on non-base modules (esp. process). This can cause problems with older versions of cabal. * Don't raise error if `HOME` isn't defined (#35). * Add more biblatex localization keys (Nick Bart). * Simplified and improved page range collapsing (#168). * Allow multiword locator labels like "sub verbo" (#168). * Remove `parse-names: true` in a Reference after parsing names (#169). * Don't superscript author-in-text numerical citations (#133). This change also removes `unsetAffixes` from `Text.CSL.Style`'s exported functions. This function was only used in one places and is very simple. (API change) * Fixed `embed_data_files` build on OS X (Chris Knox) * Remove brackets from author-in-text numerical citations (#133). * Removed `compressName` transform on JSON output (#169). This transformation prevented the JSON produced from using a fully broken-out specification of the author, instead pushing suffixes and prefixes into the names themselves. * Fixed regression introduced by #163 (#170). pandoc-citeproc (0.7.4) * Bibliography Div has id `references`, in addition to class. * Make sure a link with a year range encompasses the whole range. Previously you'd get [LINK 1996]--[LINK 2003], where both links went to the same citation. Now you get [LINK 1996-2003]. (#146) * Fix linking of DOIs (#163). Now only a part of a prefix that begins a url (`http...`) will be part of the linked text for a DOI. (This part will also be used for the URL, in place of the default `http://doi.org/`, if present.) Other parts of the prefix and suffix will remain outside the linked text. * Use "literal" instead of "other" in producing CSL YAML (#167). * Test suite: better technique to find right executable to test. We now find the test program and locate pandoc-citeproc relative to it. * Change default for parse-names to False. * Add `Paths_pandoc_citeproc` to other-modules. * Allow flexible insertion of bibliography. + If the document contains a Div element with id `references`, the bibliography will be inserted in it (after any other content in the Div). + Otherwise, a Div with id `references` will be created at the end of the document as before. * Fix parsing of particles with hyphens on family names (#130). * Handle `#+LINK_CITATIONS` metadata in org-mode. The values `true`, `yes`, and `on` are recognized as true values (case-insensitive) (#159). pandoc-citeproc (0.7.3.1) * Moved tests from data-files to extra-source-files. * List biblatex conversion tests in cabal extra-source-files. * Updated tests for changes in yaml library (which now puts quotes arounds strings that could be read as numbers, #158). pandoc-citeproc (0.7.3) * Add Walkable instances for Formatted (Sean Leather). * Allow empty end year in Zotero workaround, e.g. `2005_` (Nick Bart). * man/Makefile - removed unnecessary dependency. * Fixed test-citeproc.hs for change in `ProcOpts`. * Cleaned up Setup.hs. Now takes into account destdir in copying man page. * Don’t add space after particles ending with "-" (Nick Bart). * Names.hs: Add Unicode “Latin Extended Additional” to isByzantine (Nick Bart). * Allow vector 0.11. pandoc-citeproc (0.7.2) * Added `link-citations` metadata field (#141). If this has a true value, citations in author-date and numerical styles are linked to their corresponding bibliography entries. Otherwise not. (In previous versions of 0.7.x, this linking was the default. Now it must be enabled explicitly by setting this field.) * Fixed locale lookup with two-letter codes (#140). * Updated locales and chicago-author-date.csl. * Text.CSL.Data: Remove spurious reference to ar-AR. * Updated tests to escape literal `[` and `]` (to match new pandoc markdown writer's behavior). * Fixed `make update` to grab chicago-author-date.csl from correct URL. * Bumped upper bound to allow aeson 0.9.*. pandoc-citeproc (0.7.1.1) * Fixed regression in numerical citation collapsing (#131). pandoc-citeproc (0.7.1) * Improvements to numerical styles: + Space is now inserted after the reference number in the bibliography when `second-field-align` is `margin` or `flush`. + Author-in-text citations are now treated just like other citations in numerical styles. So, brackets are used, and the term "Reference" is not added: instead of `Reference 1 says...` we have `[1] says...`. This seems to accord better with e.g. IEEE practice. + Improved citation collapsing. Now both the new and the old versions of `ieee.csl` work properly. Previously brackets were dropped with the new version (#55). + Use new `ieee.csl` for testing. pandoc-citeproc (0.7.0.2) * Bump version bound for xml-conduit. pandoc-citeproc (0.7.0.1) * In YAML use pandoc markdown syntax for super, subscript (#128). Added test case for rich text formatting. * Change default for first-reference-note-number to 0 on reading (#128). pandoc-citeproc (0.7) * Improved YAML output: + Fields are now in a deterministic and rational order, id at top. + Blank lines between entries for readability. + Use human-friendlier year, month, etc. rather than date-part. + The test suite no longer normalizes YAML output before comparing, since we now control the order of fields. * Use `locale` in metadata in converting bibtex (#98). * Use `locale` in metadata for unicode collation, when compiled with the `unicode_collation` flag (#122). * Made pandoc-citeproc sensitive to metadata fields `reference-section-title` and `suppress-bibliography` (Jesse Rosenthal). The former specifies a title for a new reference section. The second suppresses the bibliography altogether. Existing documents should behave as before if these fields are not used. * Strip empty span elements from output (#126). * Allow conversion FROM yaml to other formats (#124). * Improved CSL JSON output. Use the rich markup syntax described at http://docs.citationstyles.org/en/1.0/release-notes.html#rich-text-markup-within-fields * Fixed extraction of language from LANG env variable in Bibtex (#98). * Fixed `ghc-prof-options` so we don't get warning with recent cabal. Added French, German localizations to Bibtex converter (#98). * Bibtex: Use type field to further specify mastersthesis or phdthesis (#98). * Ensure that "et al" has a space before it, if no delimiter defined (#93). * Allow "et al" to be formatted (#91). * Depend on `setenv` package for the `setEnv` function, which is found only in base 4.7+. * Fixed problem with droppped final punctuation in some footnotes (#82). * `Text.CSL.Util`: Removed unused `readable`. Renamed `toShow` to `uncamelize`. Use `ppShow` in `tr'`. * Use `doi.org` instead of `dx.doi.org` (#107). * Fixed treatment of `motion_picture` title (#118). * Include preface and suffix of DOI in linked text (#107). * Added `--regenerate` flag to `test-pandoc-citeproc`. * Added `hyperlink` field to `Formatting` (API change). * Made hyperlinked citations work with numerical and author-year styles. * Bibtex: improved short title logic. * Map biblatex title/maintitle to CSL volume-title/title (Nick Bart). * Fix CSL dependent style support (Tim Lin, #105). * Added support for PMCID and PMID fields in bibtex (jgm/pandoc#1923). * Map biblatex `inreference` to `EntryEncyclopedia` rather than `NoType` (#88). * Wrap bibliography entries in Div with id=ref-citationId * Updated `chicago-author-date.csl`. * Allow compilation against pandoc 1.14 (the next release). * Removed obsolete `small_base` cabal flag. * Added `debug` cabal flag which turns on tracing. pandoc-citeproc (0.6.0.1) * Added pandoc-types upper bound. * Removed `auto-all` from profiling options. * Fixed CSL dependent style support (#105, Tim Lin). * Updates to build with GHC 7.10.1 (Mark Wright). pandoc-citeproc (0.6) * The CSL parser has been replaced with a new, xml-conduit based module, which does not rely on C libraries and should be easier to repair and extend. The module has been checked against the old module with all CSL files in the citeproc repository. The only differences are with attribute values beginning or ending with a nonbreaking space (e.g. with French guillemets), and the new parser's behavior (preserving the spaces) is clearly correct. Parsing was measured as about twice as fast in a benchmark. * The `hexpat` cabal flag has been removed. * The old `Text.CSL.Pickle` and `Text.CSL.Pickle.*` modules have been removed. * Plural locator labels (e.g. 'pp.') are now used for page ranges containing en-dashes (#84). * `Elements` has been removed from `Element`. It was entirely unnecessary, used only once (and dispensibly) in `Text.CSL.Eval`. This change results in cleaner code. * Improved man page generation. * Updated `chicago-author-date.csl` default style. pandoc-citeproc (0.5) * Revised locator parsing: + parseLocator now looks for the "short" forms of terms in the style's locale(s). So, in English you'd use "p." or "ch."; in German, "S." or "Kap." + Note that the locator label must match what is in the locale file, including the period. Before this change, you could omit the period: "p 12" or "p. 12" would both give you a "page." Also, previously, the locators were case-insensitive; now they must be in the same case as in the locale. (English "p.", German "S.".) + "no." no longer gets parsed as a "note": closes #74. + Text.CSL.Reference no longer exports parseLocator. parseLocator is now used only locally, in Text.CSL.Pandoc. * Data.getLocale: Try 2-letter locale lookup if longer locale not found. This should fix an error that occured with less common locales (jgm/pandoc#1548). * Added parseNames field to Agent. Set parse-names=true when writing CSL JSON and collapsing suffix or particles into first or last names. * Properly handle agents with 'parse-names' set to 'true' (#77). Note that parse-names defaults to true if not set, as in Zotero. * Reference: added explicit exports. * Styles: Added explicit export list. * Eval: Fixed isNumericString to recognize en dash (#74). * Allow bibtex double quotes to be escaped inside {} (jgm/pandoc#1568). * Titlecase transform improvements (#76). * Added two csl files missing from tests/. * Performance improvements: Avoid unnecessary Output groupings. Eliminated some unnecessary generic traversals. (#71) * Makefile: Use cpphs. Text.CSL.Data seems to break on OSX 10.9 without it. * Added prof target to Makefile * Test suite: don't exit with success if there were errors! pandoc-citeproc (0.4.0.1) * Interpret date literals with underscores (e.g. "2004_2006") as ranges. This covers a common workaround for a deficiency in Zotero (#65). * Correctly handle "literal" in CSL date (#65). * Fixed erroneous capitalization of the first ibid. in a citation, even in the middle of a sentence (#68). Removed "ibid-c", "ibid-locator-c" classifications. * Pandoc: Capitalize first word of citation note, unless span=nocase. Previously we only capitalized citations. This captures ibid and the like. * Text.CSL.Util.toCapital: respect `<span class="nocase">`. * Turn small caps into SmallCaps element in reading CSL JSON (#67). Either the <span style="font-variant:small-caps"> or the <sc> variant may be used. * Added "ca", "c", "et" to list of short words in titlecase transforms (#66). * Fixed some errors in the no-author test case. * test-pandoc-citeproc: Avoid running tests twice! * Check for en dash in checking for page ranges (#70). * Removed unused texmath build-depend. pandoc-citeproc (0.4) * Fixed #58 - previously not all substitute alternatives were tried. * Made first parameter of OName an Agent, not a String (API change). Also moved Agent from Reference to Style. * test-pandoc-citeproc: run tests on all matching files in the directory. This removes the need to recompile when new tests are added. * Style: Fixed appendWithPunct (mappend for Formatted). One definition was wrong, causing commas to be lost in certain places (#57). * Support \nocite{*}. If the `nocite` metadata filed contains a citation with identifier `*`, all entries in the bibliography are included in the references (#64). * Bump upper bound for aeson. * Removed span nodecor around 'ser.' (#60). * Print series as "3rd ser." (using locale's ordinal) (#60). * Added scaffolding for 'ordinalize' and infrastructure for accessing locale information to Bibtex. * Export new parseLocale from Text.CSL.Parser. * Move punctuation before fn in in-text citation before punctuation (#59). * Updated locales and chicago-author-date.csl. * Use collection-title for series, even for articles (#60). * Fixed locator parsing so capital roman numerals are legal numbers (#61). * Map bookinbook -> chapter (#62). * Better error message from parseString. * Remove space before superscript citation (pandoc #1327). * Fixed spurious "et al" problem (#27). * Match biblatex's method for separating von from last name, for biblatex. For bibtex, we match the documented bibtex algorithm as before (#50). Test case: Drummond de Andrade, Carlos. bibtex makes "Drummond de" a dropping particle. biblatex takes "Drummond de Andrade" to be the last name. * Leave off bibliography if `suppress-bibliography` has a true value in the document metadata (#40, with thanks to Jesse Rosenthal). * Try empty (null) 'csl' as if no 'csl' was specified. (The default chicago-author-date.csl is then used.) * Fixed #51: empty braces with date range. * Set pageFirst automatically from page range (#31). * Bibtex input: set page-first automatically. * Fixed capitalization of first word in sentence (#25). E.g. "foo bar baz: bazbaz foo" should turn into "Foo Bar Baz: Bazbaz Foo" in titlecase, but was turning into "foo Bar Baz: bazbaz Foo." * pandoc-citeproc: Allow conversion of mods bibliographies (#28). * readCSLFile now supports dependent styles (#30). * Removed network flag. We now use pandoc's fetchItem. * Changed type of findFile, so it returns a Maybe. * Documented fact that you can specify a URL under 'csl:'. * Added locale parameter to readCSLFile (API change). readCSLFile also now looks in ~/.csl for the file, if it isn't found locally. * Moved findFile to Util. * Bibtex/biblatex: map "unpublished" to "speech" if the record contains "eventtitle", "eventdate", or "venue". Otherwise map it to "manuscript" as before (#44). * Look for chicago-author-date.csl in ~/.csl if no csl specified. If not found there, use the chicago-author-date.csl that comes with the distribution (#48). * Improved case transform behavior with punctuation. Previously capitalization might change after a word-internal period or apostrophe. Now internal punctuation only signals a word boundary if it is a dash or single quote character. pandoc-citeproc (0.3.1) * Marked final heading (if present) as "unnumbered" (pandoc #1277). * Treat empty 'references' (empty string) as empty list. * Fixed titlecase transformation of words containing '. * Fixed punctuation in notes. * Improved test suite. * FromJSON for Formatted: handle block lists as well as inline. * Require yaml >= 0.8.8.2. * Fixed spacing problem with citations in notes in footnote styles (pandoc #1036). * Updated chicago-author-date.csl and locales (#34). * Move punctuation inside quotes, depending on style. This is activated by the `punctuation-in-quote` locale option, which has a default per locale but can be overridden in the style. This gives more flexibility. (Thanks to Jesse Rosenthal.) * Moved `isPunctuationInQuote` to `Text.CSL.Style` and rewrote. Previously it was in `Text.CSL.Output.Pandoc`. It doesn't need to use generics and no longer does. * Fixed recognition of "byzantine" names. Names with curly apostrophes were being counted as non-byzantine, and printed given-first with no space (#39). * Fixed representation of reference types to conform to CSL (#24): `motion_picture`, `legal_case`, `musical_score`, `personal_communication`. pandoc-citeproc (0.3.0.1) * Require ghc-prim if ghc < 7.6 (needed for generics). pandoc-citeproc (0.3) * Removed biblio2yaml. Instead, use pandoc-citeproc with the --bib2yaml or --bib2json option. (#20) * pandoc-citeproc --bib2json will convert bibtex/biblatex to CSL compatible JSON bibliographies. * Updated locale files for correct textual date ranges in e.g. the da-DK locale. Use form="ordinal" instead of a period as suffix. (#16, #18) * Support new langid and langidopts biblatex fields. (#11) * Made test-pandoc-citeproc work in all locales. (#19) It now tests the executable rather than the library function. * Fixed disambiguation with multivolume works (#14). * Improved titlecase/unTitlecase to be sensitive to colons, question marks, and exclamation marks, after which the next character sohuld be capitalized even in sentence case (pandoc #1102). * The "locale" filed in metadata will now override a style's default locale. This can also be set by the command line: --metadata locale=fr-FR (#10). * Use CSL-compatible date-parts for dates in YAML/JSON bibliographies. * Made FromJSON for Reference more forgiving. Suitable strings are coerced into integer values. (pandoc #1094) * Fixed extra punctuation at end of footnote (#13). * Reference: Always use array in JSON for dates, agents. * Bibtex parser: Don't fail on entry with no title. * Bibliography output: 'given' is now a string, not an array. The string will be split on spaces into a list of given names. Note that an array can also be used. But we write a plain string, to match the citeproc json schema. * Fixed spacing bug in date ranges (#7). * Names: Fixed formatLabel so it works for editortranslator. This fixes a bug for cases where editor = translator (#9). * Text.CSL.Eval.Date: Fixed bugs with date ranges. Ranges within the same year were raising an error "Prelude.init: empty list" (#7). * Util: Export tr' and init'. * Text.CSL.Proc.Disamb: Correct definition of allTheSame. * Improved disambiguation. Now we correctly handle the case with no author but title. * Consider names too when determining date disambiguations. Previously if you had two distinct names needing disambiguation for the same date, the letters would not start over with 'a' for the second name. * Added Generic instances for the types in Style and Reference.