git.iko.soy/typeable/pandoc
on master help sign in
Add built-in citation support using new citeproc library.

This deprecates the use of the external pandoc-citeproc filter; citation processing is now built in to pandoc. * Add dependency on citeproc library. * Add Text.Pandoc.Citeproc module (and some associated unexported modules under Text.Pandoc.Citeproc). Exports `processCitations`. [API change] * Add data files needed for Text.Pandoc.Citeproc: default.csl in the data directory, and a citeproc directory that is just used at compile-time. Note that we've added file-embed as a mandatory rather than a conditional depedency, because of the biblatex localization files. We might eventually want to use readDataFile for this, but it would take some code reorganization. * Text.Pandoc.Loging: Add `CiteprocWarning` to `LogMessage` and use it in `processCitations`. [API change] * Add tests from the pandoc-citeproc package as command tests (including some tests pandoc-citeproc did not pass). * Remove instructions for building pandoc-citeproc from CI and release binary build instructions. We will no longer distribute pandoc-citeproc. * Markdown reader: tweak abbreviation support. Don't insert a nonbreaking space after a potential abbreviation if it comes right before a note or citation. This messes up several things, including citeproc's moving of note citations. * Add `csljson` as and input and output format. This allows pandoc to convert between `csljson` and other bibliography formats, and to generate formatted versions of CSL JSON bibliographies. * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`. [API change] * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`. [API change] * Added `bibtex`, `biblatex` as input formats. This allows pandoc to convert between BibLaTeX and BibTeX and other bibliography formats, and to generated formatted versions of BibTeX/BibLaTeX bibliographies. * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and `readBibLaTeX`. [API change] * Make "standalone" implicit if output format is a bibliography format. This is needed because pandoc readers for bibliography formats put the bibliographic information in the `references` field of metadata; and unless standalone is specified, metadata gets ignored. (TODO: This needs improvement. We should trigger standalone for the reader when the input format is bibliographic, and for the writer when the output format is markdown.) * Carry over `citationNoteNum` to `citationNoteNumber`. This was just ignored in pandoc-citeproc. * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter. [API change] This runs the processCitations transformation. We need to treat it like a filter so it can be placed in the sequence of filter runs (after some, before others). In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`, so this special filter may be specified either way in a defaults file (or by `citeproc: true`, though this gives no control of positioning relative to other filters). TODO: we need to add something to the manual section on defaults files for this. * Add deprecation warning if `upandoc-citeproc` filter is used. * Add `--citeproc/-C` option to trigger citation processing. This behaves like a filter and will be positioned relative to filters as they appear on the command line. * Rewrote the manual on citatations, adding a dedicated Citations section which also includes some information formerly found in the pandoc-citeproc man page. * Look for CSL styles in the `csl` subdirectory of the pandoc user data directory. This changes the old pandoc-citeproc behavior, which looked in `~/.csl`. Users can simply symlink `~/.csl` to the `csl` subdirectory of their pandoc user data directory if they want the old behavior. * Add support for CSL bibliography entry formatting to LaTeX, HTML, Ms writers. Added CSL-related CSS to styles.html.

commite0984a43a99231e72c02a0a716c8d0315de9abdf authorJohn MacFarlane <jgm@berkeley.edu> dateSun 6 Sep 2020, 16:25 (6 years ago) parent89c577b
312 files changed+31826−303
.github/workflows/nightly.yml+6−9 .github/workflows/release-candidate.yml+3−3 .travis.yml+2−5 MANUAL.txt+347−183 cabal.project+2−6 citeproc/biblatex-localization/.strings citeproc/biblatex-localization/UKenglish.lbx.strings citeproc/biblatex-localization/USenglish.lbx.strings citeproc/biblatex-localization/american.lbx.strings citeproc/biblatex-localization/australian.lbx.strings citeproc/biblatex-localization/austrian.lbx.strings+1 citeproc/biblatex-localization/brazil.lbx.strings citeproc/biblatex-localization/brazilian.lbx.strings+233 citeproc/biblatex-localization/british.lbx.strings+3 citeproc/biblatex-localization/bulgarian.lbx.strings+28 citeproc/biblatex-localization/canadian.lbx.strings citeproc/biblatex-localization/catalan.lbx.strings+158 citeproc/biblatex-localization/croatian.lbx.strings+214 citeproc/biblatex-localization/czech.lbx.strings+91 citeproc/biblatex-localization/danish.lbx.strings+106 citeproc/biblatex-localization/dutch.lbx.strings+23 citeproc/biblatex-localization/english.lbx.strings+254 citeproc/biblatex-localization/estonian.lbx.strings+178 citeproc/biblatex-localization/finnish.lbx.strings+254 citeproc/biblatex-localization/french.lbx.strings+245 citeproc/biblatex-localization/galician.lbx.strings+28 citeproc/biblatex-localization/german.lbx.strings+28 citeproc/biblatex-localization/greek.lbx.strings+9 citeproc/biblatex-localization/hungarian.lbx.strings citeproc/biblatex-localization/icelandic.lbx.strings+7 citeproc/biblatex-localization/italian.lbx.strings+9 citeproc/biblatex-localization/latvian.lbx.strings+75 citeproc/biblatex-localization/lithuanian.lbx.strings+31 citeproc/biblatex-localization/magyar.lbx.strings+29 citeproc/biblatex-localization/naustrian.lbx.strings+2 citeproc/biblatex-localization/newzealand.lbx.strings citeproc/biblatex-localization/ngerman.lbx.strings+1 citeproc/biblatex-localization/norsk.lbx.strings+98 citeproc/biblatex-localization/nswissgerman.lbx.strings+2 citeproc/biblatex-localization/nynorsk.lbx.strings+28 citeproc/biblatex-localization/polish.lbx.strings+100 citeproc/biblatex-localization/portuges.lbx.strings citeproc/biblatex-localization/portuguese.lbx.strings+95 citeproc/biblatex-localization/russian.lbx.strings+102 citeproc/biblatex-localization/serbian.lbx.strings citeproc/biblatex-localization/serbianc.lbx.strings citeproc/biblatex-localization/slovak.lbx.strings+82 citeproc/biblatex-localization/slovene.lbx.strings+28 citeproc/biblatex-localization/slovenian.lbx.strings citeproc/biblatex-localization/spanish.lbx.strings+190 citeproc/biblatex-localization/swedish.lbx.strings+9 citeproc/biblatex-localization/swissgerman.lbx.strings+1 citeproc/biblatex-localization/turkish.lbx.strings+157 citeproc/biblatex-localization/ukrainian.lbx.strings+102 data/default.csl+648 data/templates/default.latex+19−4 data/templates/styles.html+24 linux/control.in+1−1 linux/make_artifacts.sh+5−15 macos/Makefile+1−2 pandoc.cabal+19−2 src/Text/Pandoc/App.hs+16−11 src/Text/Pandoc/App/CommandLineOptions.hs+6 src/Text/Pandoc/App/FormatHeuristics.hs+1 src/Text/Pandoc/App/Opt.hs+5 src/Text/Pandoc/Citeproc.hs+492 src/Text/Pandoc/Citeproc/BibTeX.hs+1237 src/Text/Pandoc/Citeproc/CslJson.hs+37 src/Text/Pandoc/Citeproc/Data.hs+31 src/Text/Pandoc/Citeproc/Locator.hs+279 src/Text/Pandoc/Citeproc/MetaValue.hs+252 src/Text/Pandoc/Citeproc/Util.hs+70 src/Text/Pandoc/Class/PandocMonad.hs+2−2 src/Text/Pandoc/Error.hs+4 src/Text/Pandoc/Filter.hs+12−3 src/Text/Pandoc/Logging.hs+5 src/Text/Pandoc/Readers.hs+8 src/Text/Pandoc/Readers/BibTeX.hs+70 src/Text/Pandoc/Readers/CslJson.hs+53 src/Text/Pandoc/Readers/Markdown.hs+1 src/Text/Pandoc/Templates.hs+1 src/Text/Pandoc/Writers.hs+3 src/Text/Pandoc/Writers/CslJson.hs+87 src/Text/Pandoc/Writers/Docx.hs+12 src/Text/Pandoc/Writers/HTML.hs+58−21 src/Text/Pandoc/Writers/LaTeX.hs+32−11 src/Text/Pandoc/Writers/Ms.hs+59−5 stack.yaml+2−8 test/command/5541-localLink.md+1−1 test/command/5541-nesting.md+1−1 test/command/5541-urlLink.md+1−1 test/command/5849-prefix.md+5−6 test/command/6675.md+1−1 test/command/advanced-optical-materials.csl+155 test/command/annales.csl+334 test/command/apa.csl+474 test/command/archeologie-medievale.csl+291 test/command/biblatex-266.md+34 test/command/biblatex-aksin.md+78 test/command/biblatex-almendro.md+71 test/command/biblatex-angenendt.md+66 test/command/biblatex-aristotle-anima.md+62 test/command/biblatex-aristotle-physics.md+63 test/command/biblatex-aristotle-poetics.md+65 test/command/biblatex-aristotle-rhetoric.md+80 test/command/biblatex-article.md+128 test/command/biblatex-augustine.md+56 test/command/biblatex-averroes-bland.md+85 test/command/biblatex-averroes-hannes.md+84 test/command/biblatex-averroes-hercz.md+85 test/command/biblatex-baez-article.md+76 test/command/biblatex-baez-online.md+69 test/command/biblatex-basic.md+69 test/command/biblatex-bertram.md+66 test/command/biblatex-bibstring-resolution.md+20 test/command/biblatex-book-averroes.md+128 test/command/biblatex-book-coleridge.md+59 test/command/biblatex-book-title-maintitle-series.md+39 test/command/biblatex-book-vazques-de-parga.md+48 test/command/biblatex-brandt.md+88 test/command/biblatex-britannica.md+85 test/command/biblatex-chiu.md+77 test/command/biblatex-cicero.md+82 test/command/biblatex-cms.md+81 test/command/biblatex-coleridge.md+86 test/command/biblatex-companion.md+70 test/command/biblatex-cotton.md+69 test/command/biblatex-crossref-inbook-mvbook.md+58 test/command/biblatex-crossref-nested.md+100 test/command/biblatex-ctan.md+73 test/command/biblatex-dates.md+162 test/command/biblatex-doody.md+101 test/command/biblatex-edtf-date.md+73 test/command/biblatex-escapedquotes.md+51 test/command/biblatex-examples.bib+1674 test/command/biblatex-formatting.md+23 test/command/biblatex-gaonkar-in.md+62 test/command/biblatex-gaonkar.md+59 test/command/biblatex-geer.md+70 test/command/biblatex-gerhardt.md+64 test/command/biblatex-gillies.md+70 test/command/biblatex-glashow.md+51 test/command/biblatex-gonzalez.md+62 test/command/biblatex-hammond.md+63 test/command/biblatex-herrmann.md+70 test/command/biblatex-hyman.md+79 test/command/biblatex-iliad.md+68 test/command/biblatex-inbook-title-booktitle-maintitle-series-2.md+48 test/command/biblatex-inbook-title-booktitle-maintitle-series.md+44 test/command/biblatex-inbook.md+147 test/command/biblatex-incollection-2.md+98 test/command/biblatex-incollection.md+130 test/command/biblatex-inproceedings.md+88 test/command/biblatex-issue288.md+35 test/command/biblatex-itzhaki.md+83 test/command/biblatex-jaffe.md+82 test/command/biblatex-jcg.md+54 test/command/biblatex-kant-kpv.md+90 test/command/biblatex-kant-ku.md+82 test/command/biblatex-kastenholz.md+126 test/command/biblatex-knuth-ct-a.md+78 test/command/biblatex-knuth-ct-b.md+70 test/command/biblatex-knuth-ct-c.md+69 test/command/biblatex-knuth-ct-d.md+71 test/command/biblatex-knuth-ct-e.md+66 test/command/biblatex-knuth-ct-related.md+72 test/command/biblatex-knuth-ct.md+66 test/command/biblatex-kowalik.md+68 test/command/biblatex-kullback-related.md+62 test/command/biblatex-kullback-reprint.md+71 test/command/biblatex-kullback.md+52 test/command/biblatex-laufenberg.md+109 test/command/biblatex-loh.md+65 test/command/biblatex-malinowski.md+67 test/command/biblatex-manual.md+51 test/command/biblatex-markey.md+65 test/command/biblatex-maron.md+70 test/command/biblatex-massa.md+56 test/command/biblatex-moore-related.md+66 test/command/biblatex-moore.md+56 test/command/biblatex-moraux.md+94 test/command/biblatex-murray.md+104 test/command/biblatex-nietzsche-historie.md+100 test/command/biblatex-nietzsche-ksa.md+89 test/command/biblatex-nietzsche-ksa1.md+95 test/command/biblatex-nussbaum.md+63 test/command/biblatex-online.md+64 test/command/biblatex-options-url-false-doi-false.md+57 test/command/biblatex-padhye.md+117 test/command/biblatex-patent.md+158 test/command/biblatex-periodical.md+30 test/command/biblatex-piccato.md+59 test/command/biblatex-pines.md+77 test/command/biblatex-quotes.md+44 test/command/biblatex-reese.md+71 test/command/biblatex-report.md+119 test/command/biblatex-salam.md+69 test/command/biblatex-sarfraz.md+65 test/command/biblatex-shore.md+66 test/command/biblatex-sigfridsson.md+106 test/command/biblatex-sorace.md+65 test/command/biblatex-spiegelberg.md+74 test/command/biblatex-springer.md+58 test/command/biblatex-strings.md+46 test/command/biblatex-test-case-conversion.md+73 test/command/biblatex-textnormal.md+17 test/command/biblatex-thesis.md+68 test/command/biblatex-title-and-shorttitle.md+76 test/command/biblatex-vangennep-related.md+69 test/command/biblatex-vangennep-trans.md+69 test/command/biblatex-vangennep.md+61 test/command/biblatex-vazques-de-parga-mvbook.md+75 test/command/biblatex-vazques-de-parga.md+74 test/command/biblatex-video.md+19 test/command/biblatex-vizedom-related.md+68 test/command/biblatex-wassenberg.md+83 test/command/biblatex-weinberg.md+52 test/command/biblatex-westfahl-frontier.md+60 test/command/biblatex-westfahl-space.md+106 test/command/biblatex-wilde.md+65 test/command/biblatex-worman.md+60 test/command/biblatex-yoon.md+67 test/command/biblio.bib+26 test/command/bibtex-basic.md+71 test/command/bioethics.csl+226 test/command/chicago-annotated-bibliography.csl+1207 test/command/chicago-author-date-with-original-date-and-status.csl+575 test/command/chicago-fullnote-bibliography.csl+1182 test/command/chicago-note-bibliography.csl+1005 test/command/chinese-gb7714-2005-numeric.csl+213 test/command/citeproc-7a.md+42 test/command/citeproc-7b.md+36 test/command/din-1505-2.csl+406 test/command/harvard-university-of-kent.csl+253 test/command/ieee.csl+339 test/command/issue160.csl+28 test/command/issue437.csl+26 test/command/issue58.csl+553 test/command/jats.csl+208 test/command/le-tapuscrit-note.csl+496 test/command/locators.csl+68 test/command/modern-humanities-research-association.csl+445 test/command/oscola.csl+680 test/command/pandoc-citeproc-118.md+28 test/command/pandoc-citeproc-119.md+39 test/command/pandoc-citeproc-13.md+29 test/command/pandoc-citeproc-136.md+23 test/command/pandoc-citeproc-14.md+78 test/command/pandoc-citeproc-152.md+65 test/command/pandoc-citeproc-160.md+46 test/command/pandoc-citeproc-175.md+45 test/command/pandoc-citeproc-197.md+31 test/command/pandoc-citeproc-213.md+34 test/command/pandoc-citeproc-25.md+31 test/command/pandoc-citeproc-250.md+21 test/command/pandoc-citeproc-27.md+39 test/command/pandoc-citeproc-292.md+43 test/command/pandoc-citeproc-301.md+25 test/command/pandoc-citeproc-307.md+31 test/command/pandoc-citeproc-31.md+48 test/command/pandoc-citeproc-312.md+171 test/command/pandoc-citeproc-320.md+254 test/command/pandoc-citeproc-320a.md+87 test/command/pandoc-citeproc-322.md+35 test/command/pandoc-citeproc-325.md+30 test/command/pandoc-citeproc-327.md+51 test/command/pandoc-citeproc-338.md+35 test/command/pandoc-citeproc-351.md+27 test/command/pandoc-citeproc-356.md+25 test/command/pandoc-citeproc-360.md+35 test/command/pandoc-citeproc-361.md+80 test/command/pandoc-citeproc-365.md+39 test/command/pandoc-citeproc-371.md+41 test/command/pandoc-citeproc-38.md+29 test/command/pandoc-citeproc-386.md+35 test/command/pandoc-citeproc-392.md+29 test/command/pandoc-citeproc-399.md+45 test/command/pandoc-citeproc-401.md+59 test/command/pandoc-citeproc-408.md+39 test/command/pandoc-citeproc-416.md+61 test/command/pandoc-citeproc-437.md+23 test/command/pandoc-citeproc-47.md+113 test/command/pandoc-citeproc-51.md+45 test/command/pandoc-citeproc-53.md+54 test/command/pandoc-citeproc-57.md+38 test/command/pandoc-citeproc-58.md+33 test/command/pandoc-citeproc-61.md+79 test/command/pandoc-citeproc-64.md+24 test/command/pandoc-citeproc-65.md+38 test/command/pandoc-citeproc-68.md+56 test/command/pandoc-citeproc-7.md+31 test/command/pandoc-citeproc-70.md+73 test/command/pandoc-citeproc-75.md+67 test/command/pandoc-citeproc-76.md+64 test/command/pandoc-citeproc-77.md+67 test/command/pandoc-citeproc-82.md+40 test/command/pandoc-citeproc-87.md+157 test/command/pandoc-citeproc-chicago-author-date.md+111 test/command/pandoc-citeproc-chicago-fullnote-bibliography.md+134 test/command/pandoc-citeproc-ieee.md+115 test/command/pandoc-citeproc-locators-delimited.md+127 test/command/pandoc-citeproc-locators-integrated.md+159 test/command/pandoc-citeproc-move-period-inside-quote.md+53 test/command/pandoc-citeproc-no-author.md+73 test/command/pandoc-citeproc-number-of-volumes.md+29 test/command/pandoc-citeproc-page-range.md+32 test/command/sage-harvard.csl+202 test/command/science.csl+245 test/command/style399.csl+12 test/command/vancouver.csl+351 test/command/zeitschrift-fur-kunstgeschichte.csl+346 windows/pandoc.wxs−2
.github/workflows/nightly.yml+6−9
@@ -18,19 +18,17 @@ jobs:
1818 ghc --version
1919 cabal --version
2020 cabal v2-update
21− cabal v2-build --dependencies-only . pandoc-citeproc
21+ cabal v2-build --dependencies-only all
2222 - name: Build
2323 run: |
2424 export PATH=/opt/cabal/3.2/bin:/opt/ghc/8.8.3/bin:$PATH
25− cabal v2-install . pandoc-citeproc
25+ cabal v2-install all
2626 strip $HOME/.cabal/bin/pandoc
27− strip $HOME/.cabal/bin/pandoc-citeproc
2827 - name: Install artifact
2928 run: |
3029 export ARTIFACTS=nightly-linux/pandoc-nightly-linux-$(date +%Y-%m-%d)
3130 mkdir -p ${ARTIFACTS}
3231 cp $HOME/.cabal/bin/pandoc ${ARTIFACTS}/
33− cp $HOME/.cabal/bin/pandoc-citeproc ${ARTIFACTS}/
3432 cp COPYRIGHT ${ARTIFACTS}/
3533 echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
3634 - uses: actions/upload-artifact@master
@@ -51,14 +49,14 @@ jobs:
5149 - name: Install dependencies
5250 run: |
5351 stack update
54− stack build --dependencies-only pandoc pandoc-citeproc
52+ stack build --dependencies-only pandoc
5553 - name: Build artifacts
5654 shell: cmd
5755 run: |
5856 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
5957 set ARTIFACTS=%CD%\nightly-windows\pandoc-nightly-windows-%THEDATE%
6058 mkdir %ARTIFACTS%
61− stack build pandoc pandoc-citeproc
59+ stack build pandoc
6260 forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %%ARTIFACTS%%"
6361 copy COPYRIGHT %ARTIFACTS%
6462 ren %ARTIFACTS%\COPYRIGHT COPYRIGHT.txt
@@ -81,15 +79,14 @@ jobs:
8179 - name: Install dependencies
8280 run: |
8381 ./stack update
84− ./stack build --dependencies-only pandoc pandoc-citeproc
82+ ./stack build --dependencies-only pandoc
8583 - name: Build artifacts
8684 run: |
8785 export ARTIFACTS=nightly-macos/pandoc-nightly-macos-$(date +%Y-%m-%d)
8886 mkdir -p ${ARTIFACTS}
89− ./stack build pandoc pandoc-citeproc
87+ ./stack build pandoc
9088 for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${ARTIFACTS}/; done
9189 mv ${ARTIFACTS}/pandoc ${ARTIFACTS}/pandoc
92− mv ${ARTIFACTS}/pandoc-citeproc ${ARTIFACTS}/pandoc-citeproc
9390 cp COPYRIGHT ${ARTIFACTS}/
9491 echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
9592 - uses: actions/upload-artifact@master
.github/workflows/release-candidate.yml+3−3
@@ -48,12 +48,12 @@ jobs:
4848 - name: Install dependencies
4949 run: |
5050 stack update
51− stack build ${{ matrix.versions.stack_opts }} --dependencies-only pandoc pandoc-citeproc
51+ stack build ${{ matrix.versions.stack_opts }} --dependencies-only pandoc
5252 - name: Create windows package
5353 shell: cmd
5454 run: |
5555 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
56− stack build ${{ matrix.versions.stack_opts }} pandoc pandoc-citeproc
56+ stack build ${{ matrix.versions.stack_opts }} pandoc
5757 for /f "tokens=1-2 delims= " %%a in ('stack exec pandoc -- --version') do (
5858 @set VERSION=%%b
5959 goto :next
@@ -67,7 +67,7 @@ jobs:
6767 @set WINDOWS=%CD%\windows
6868 @set RELEASE=%WINDOWS%\pandoc-%VERSION%
6969 mkdir %RELEASE%
70− forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C echo @path && echo %%WINDOWS%% && copy @path %%RELEASE%%"
70+ forfiles /P .\.stack-work\install /M pandoc.exe /S /C "cmd /C echo @path && echo %%WINDOWS%% && copy @path %%RELEASE%%"
7171 stack exec pandoc -- -s --toc MANUAL.txt -o %RELEASE%\MANUAL.html
7272 stack exec pandoc -- -s COPYING.md -t rtf -o %RELEASE%\COPYING.rtf
7373 copy %RELEASE%\COPYING.rtf %WINDOWS%
.travis.yml+2−5
@@ -29,14 +29,11 @@ install:
2929 mkdir -p ${RESOURCES}
3030 mkdir -p ${DEST}/bin
3131 mkdir -p ${DEST}/share/man/man1
32− stack build --dependencies-only pandoc pandoc-citeproc
33− stack build pandoc pandoc-citeproc
32+ stack build --dependencies-only pandoc
33+ stack build pandoc
3434 for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${DEST}/bin/; done
3535 strip ${DEST}/bin/pandoc
36− strip ${DEST}/bin/pandoc-citeproc
3736 cp man/pandoc.1 ${DEST}/share/man/man1/pandoc.1
38− ${DEST}/bin/pandoc-citeproc --man > \
39− $DEST/share/man/man1/pandoc-citeproc.1
4037 ${DEST}/bin/pandoc -t html5 -s COPYING.md -Vpagetitle=License \
4138 -o ${RESOURCES}/license.html
4239 chown -R $ME:staff ${ROOT}
MANUAL.txt+347−183
@@ -225,9 +225,12 @@ header when requesting a document from a URL:
225225: Specify input format. *FORMAT* can be:
226226
227227 ::: {#input-formats}
228+ - `bibtex` ([BibTeX] bibliography)
229+ - `biblatex` ([BibLaTeX] bibliography)
228230 - `commonmark` ([CommonMark] Markdown)
229231 - `commonmark_x` ([CommonMark] Markdown with extensions)
230232 - `creole` ([Creole 1.0])
233+ - `csljson` ([CSL JSON] bibliography)
231234 - `csv` ([CSV] table)
232235 - `docbook` ([DocBook])
233236 - `docx` ([Word docx])
@@ -280,6 +283,7 @@ header when requesting a document from a URL:
280283 - `commonmark` ([CommonMark] Markdown)
281284 - `commonmark_x` ([CommonMark] Markdown with extensions)
282285 - `context` ([ConTeXt])
286+ - `csljson` ([CSL JSON] bibliography)
283287 - `docbook` or `docbook4` ([DocBook] 4)
284288 - `docbook5` (DocBook 5)
285289 - `docx` ([Word docx])
@@ -491,6 +495,9 @@ header when requesting a document from a URL:
491495[Muse]: https://amusewiki.org/library/manual
492496[PowerPoint]: https://en.wikipedia.org/wiki/Microsoft_PowerPoint
493497[Vimwiki]: https://vimwiki.github.io
498+[CSL JSON]: https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html
499+[BibTeX]: https://ctan.org/pkg/bibtex
500+[BibLaTeX]: https://ctan.org/pkg/biblatex
494501
495502## Reader options {.options}
496503
@@ -1292,41 +1299,62 @@ header when requesting a document from a URL:
12921299
12931300## Citation rendering {.options}
12941301
1302+`-C`, `--citeproc`
1303+
1304+: Process the citations in the file, replacing them with
1305+ rendered citations and adding a bibliography.
1306+ Citation processing will not take place unless bibliographic
1307+ data is supplied, either through an external file specified
1308+ using the `--bibliography` option or the `bibliography`
1309+ field in metadata, or via a `references` section in metadata
1310+ containing a list of citations in CSL YAML format with
1311+ Markdown formatting. The style is controlled by a [CSL]
1312+ stylesheet specified using the `--csl` option or the `csl`
1313+ field in metadata. (If no stylesheet is specified,
1314+ the `chicago-author-date` style will be used by default.)
1315+ The citation processing transformation may be applied before
1316+ or after filters or Lua filters (see `--filter`,
1317+ `--lua-filter`): these transformations are applied in the
1318+ order they appear on the command line. For more
1319+ information, see the section on [Citations].
1320+
12951321`--bibliography=`*FILE*
12961322
12971323: Set the `bibliography` field in the document's metadata to *FILE*,
1298− overriding any value set in the metadata, and process citations
1299− using `pandoc-citeproc`. (This is equivalent to
1300− `--metadata bibliography=FILE --filter pandoc-citeproc`.)
1301− If `--natbib` or `--biblatex` is also supplied, `pandoc-citeproc` is not
1302− used, making this equivalent to `--metadata bibliography=FILE`.
1303− If you supply this argument multiple times, each *FILE* will be added
1304− to bibliography.
1324+ overriding any value set in the metadata. If you supply
1325+ this argument multiple times, each *FILE* will be added to
1326+ bibliography.
13051327
13061328`--csl=`*FILE*
13071329
13081330: Set the `csl` field in the document's metadata to *FILE*,
13091331 overriding any value set in the metadata. (This is equivalent to
1310− `--metadata csl=FILE`.)
1311− This option is only relevant with `pandoc-citeproc`.
1332+ `--metadata csl=FILE`.) If *FILE* is a URL, it will be
1333+ fetched via HTTP. If *FILE* is not found relative to the
1334+ working directory, it will be sought in the resource path
1335+ and finally in the `csl` subdirectory of the
1336+ pandoc user data directory.
13121337
13131338`--citation-abbreviations=`*FILE*
13141339
13151340: Set the `citation-abbreviations` field in the document's metadata to
13161341 *FILE*, overriding any value set in the metadata. (This is equivalent to
13171342 `--metadata citation-abbreviations=FILE`.)
1318− This option is only relevant with `pandoc-citeproc`.
1343+ If *FILE* is a URL, it will be fetched via HTTP. If *FILE* is not
1344+ found relative to the working directory, it will be sought
1345+ in the resource path and finally in the `csl` subdirectory
1346+ of the pandoc user data directory.
13191347
13201348`--natbib`
13211349
13221350: Use [`natbib`] for citations in LaTeX output. This option is not for use
1323− with the `pandoc-citeproc` filter or with PDF output. It is intended for
1351+ with the `--citeproc` option or with PDF output. It is intended for
13241352 use in producing a LaTeX file that can be processed with [`bibtex`].
13251353
13261354`--biblatex`
13271355
13281356: Use [`biblatex`] for citations in LaTeX output. This option is not for use
1329− with the `pandoc-citeproc` filter or with PDF output. It is intended for
1357+ with the `--citeproc` option or with PDF output. It is intended for
13301358 use in producing a LaTeX file that can be processed with [`bibtex`] or [`biber`].
13311359
13321360## Math rendering in HTML {.options}
@@ -1427,6 +1455,7 @@ Nonzero exit codes have the following meanings:
14271455 21 PandocUnknownReaderError
14281456 22 PandocUnknownWriterError
14291457 23 PandocUnsupportedExtensionError
1458+ 24 PandocCiteprocError
14301459 31 PandocEpubSubdirectoryError
14311460 43 PandocPDFError
14321461 47 PandocPDFProgramNotFoundError
@@ -1496,7 +1525,6 @@ resource-path: ["."]
14961525# the .lua extension, and json filters otherwise. But
14971526# the filter type can also be specified explicitly, as shown:
14981527filters:
1499−- pandoc-citeproc
15001528- wordcount.lua
15011529- type: json
15021530 path: foo.lua
@@ -4738,118 +4766,17 @@ they cannot contain multiple paragraphs). The syntax is as follows:
47384766
47394767Inline and regular footnotes may be mixed freely.
47404768
4741−## Citations
4769+## Citation syntax
47424770
47434771#### Extension: `citations` ####
47444772
4745−Using an external filter, `pandoc-citeproc`, pandoc can automatically generate
4746−citations and a bibliography in a number of styles. Basic usage is
4747−
4748− pandoc --filter pandoc-citeproc myinput.txt
4749−
4750−In order to use this feature, you will need to specify a bibliography file
4751−using the `bibliography` metadata field in a YAML metadata section, or
4752−`--bibliography` command line argument. You can supply multiple `--bibliography`
4753−arguments or set `bibliography` metadata field to YAML array, if you want to
4754−use multiple bibliography files. The bibliography may have any of these
4755−formats:
4756−
4757− Format File extension
4758− ------------ --------------
4759− BibLaTeX .bib
4760− BibTeX .bibtex
4761− Copac .copac
4762− CSL JSON .json
4763− CSL YAML .yaml
4764− EndNote .enl
4765− EndNote XML .xml
4766− ISI .wos
4767− MEDLINE .medline
4768− MODS .mods
4769− RIS .ris
4770−
4771−Note that `.bib` can be used with both BibTeX and BibLaTeX files;
4772−use `.bibtex` to force BibTeX.
4773−
4774−Note that `pandoc-citeproc --bib2json` and `pandoc-citeproc --bib2yaml`
4775−can produce `.json` and `.yaml` files from any of the supported formats.
4776−
4777−In-field markup: In BibTeX and BibLaTeX databases,
4778−pandoc-citeproc parses a subset of LaTeX markup; in CSL YAML
4779−databases, pandoc Markdown; and in CSL JSON databases, an
4780−[HTML-like markup][CSL markup specs]:
4781−
4782−`<i>...</i>`
4783−: italics
4784−
4785−`<b>...</b>`
4786−: bold
4787−
4788−`<span style="font-variant:small-caps;">...</span>` or `<sc>...</sc>`
4789−: small capitals
4790−
4791−`<sub>...</sub>`
4792−: subscript
4793−
4794−`<sup>...</sup>`
4795−: superscript
4796−
4797−`<span class="nocase">...</span>`
4798−: prevent a phrase from being capitalized as title case
4799−
4800−`pandoc-citeproc -j` and `-y` interconvert the CSL JSON
4801−and CSL YAML formats as far as possible.
4802−
4803−As an alternative to specifying a bibliography file using `--bibliography`
4804−or the YAML metadata field `bibliography`, you can include
4805−the citation data directly in the `references` field of the
4806−document's YAML metadata. The field should contain an array of
4807−YAML-encoded references, for example:
4808−
4809− ---
4810− references:
4811− - type: article-journal
4812− id: WatsonCrick1953
4813− author:
4814− - family: Watson
4815− given: J. D.
4816− - family: Crick
4817− given: F. H. C.
4818− issued:
4819− date-parts:
4820− - - 1953
4821− - 4
4822− - 25
4823− title: 'Molecular structure of nucleic acids: a structure for deoxyribose
4824− nucleic acid'
4825− title-short: Molecular structure of nucleic acids
4826− container-title: Nature
4827− volume: 171
4828− issue: 4356
4829− page: 737-738
4830− DOI: 10.1038/171737a0
4831− URL: https://www.nature.com/articles/171737a0
4832− language: en-GB
4833− ...
4834−
4835−(`pandoc-citeproc --bib2yaml` can produce these from a bibliography file in one
4836−of the supported formats.)
4837−
4838−Citations and references can be formatted using any style supported by the
4839−[Citation Style Language], listed in the [Zotero Style Repository].
4840−These files are specified using the `--csl` option or the `csl` metadata field.
4841−By default, `pandoc-citeproc` will use the [Chicago Manual of Style] author-date
4842−format. The CSL project provides further information on [finding and editing styles].
4843−
4844−To make your citations hyperlinks to the corresponding bibliography
4845−entries, add `link-citations: true` to your YAML metadata.
4846−
4847−Citations go inside square brackets and are separated by semicolons.
4848−Each citation must have a key, composed of '@' + the citation
4849−identifier from the database, and may optionally have a prefix,
4850−a locator, and a suffix. The citation key must begin with a letter, digit,
4851−or `_`, and may contain alphanumerics, `_`, and internal punctuation
4852−characters (`:.#$%&-+?<>~/`). Here are some examples:
4773+Markdown citations go inside square brackets and are separated
4774+by semicolons. Each citation must have a key, composed of '@' +
4775+the citation identifier from the database, and may optionally
4776+have a prefix, a locator, and a suffix. The citation key must
4777+begin with a letter, digit, or `_`, and may contain
4778+alphanumerics, `_`, and internal punctuation characters
4779+(`:.#$%&-+?<>~/`). Here are some examples:
48534780
48544781 Blah blah [see @doe99, pp. 33-35; also @smith04, chap. 1].
48554782
@@ -4857,7 +4784,7 @@ characters (`:.#$%&-+?<>~/`). Here are some examples:
48574784
48584785 Blah blah [@smith04; @doe99].
48594786
4860−`pandoc-citeproc` detects locator terms in the [CSL locale files].
4787+`pandoc` detects locator terms in the [CSL locale files].
48614788Either abbreviated or unabbreviated forms are accepted. In the `en-US`
48624789locale, locator terms can be written in either singular or plural forms,
48634790as `book`, `bk.`/`bks.`; `chapter`, `chap.`/`chaps.`; `column`,
@@ -4868,9 +4795,9 @@ as `book`, `bk.`/`bks.`; `chapter`, `chap.`/`chaps.`; `column`,
48684795`verse`, `v.`/`vv.`; `volume`, `vol.`/`vols.`; `¶`/`¶¶`; `§`/`§§`. If no
48694796locator term is used, "page" is assumed.
48704797
4871−`pandoc-citeproc` will use heuristics to distinguish the locator
4798+`pandoc` will use heuristics to distinguish the locator
48724799from the suffix. In complex cases, the locator can be enclosed
4873−in curly braces (using `pandoc-citeproc` 0.15 and higher only):
4800+in curly braces:
48744801
48754802 [@smith{ii, A, D-Z}, with a suffix]
48764803 [@smith, {pp. iv, vi-xi, (xv)-(xvii)} with suffix here]
@@ -4887,68 +4814,14 @@ You can also write an in-text citation, as follows:
48874814
48884815 @smith04 [p. 33] says blah.
48894816
4890−If the style calls for a list of works cited, it will be placed
4891−in a div with id `refs`, if one exists:
4892−
4893− ::: {#refs}
4894− :::
4895−
4896−Otherwise, it will be placed at the end of the document.
4897−Generation of the bibliography can be suppressed by setting
4898−`suppress-bibliography: true` in the YAML metadata.
4899−
4900−If you wish the bibliography to have a section heading, you can
4901−set `reference-section-title` in the metadata, or put the heading
4902−at the beginning of the div with id `refs` (if you are using it)
4903−or at the end of your document:
4904−
4905− last paragraph...
4906−
4907− # References
4908−
4909−The bibliography will be inserted after this heading. Note that
4910−the `unnumbered` class will be added to this heading, so that the
4911−section will not be numbered.
4912−
4913−If you want to include items in the bibliography without actually
4914−citing them in the body text, you can define a dummy `nocite` metadata
4915−field and put the citations there:
4916−
4917− ---
4918− nocite: |
4919− @item1, @item2
4920− ...
4921−
4922− @item3
4923−
4924−In this example, the document will contain a citation for `item3`
4925−only, but the bibliography will contain entries for `item1`, `item2`, and
4926−`item3`.
4927−
4928−It is possible to create a bibliography with all the citations,
4929−whether or not they appear in the document, by using a wildcard:
4930−
4931− ---
4932− nocite: |
4933− @*
4934− ...
4935−
4936−For LaTeX output, you can also use [`natbib`] or [`biblatex`] to
4937−render the bibliography. In order to do so, specify bibliography
4938−files as outlined above, and add `--natbib` or `--biblatex`
4939−argument to `pandoc` invocation. Bear in mind that bibliography
4940−files have to be in respective format (either BibTeX or
4941−BibLaTeX).
4942−
4943−For more information, see the [pandoc-citeproc man page].
49444817
4818+[CSL]: https://docs.citationstyles.org/en/stable/specification.html
49454819[CSL markup specs]: https://docs.citationstyles.org/en/1.0/release-notes.html#rich-text-markup-within-fields
49464820[Chicago Manual of Style]: https://chicagomanualofstyle.org
49474821[Citation Style Language]: https://citationstyles.org
49484822[Zotero Style Repository]: https://www.zotero.org/styles
49494823[finding and editing styles]: https://citationstyles.org/authors/
49504824[CSL locale files]: https://github.com/citation-style-language/locales
4951−[pandoc-citeproc man page]: https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md
49524825
49534826## Non-pandoc extensions
49544827
@@ -5169,7 +5042,298 @@ commonmark. So, for example, `backtick_code_blocks`
51695042does not appear as an extension, since it is enabled by
51705043default and cannot be disabled.
51715044
5172−# Producing slide shows with pandoc
5045+# Citations
5046+
5047+When the `--citeproc` option is used, pandoc can automatically generate
5048+citations and a bibliography in a number of styles. Basic usage is
5049+
5050+ pandoc --citeproc myinput.txt
5051+
5052+To use this feature, you will need to have
5053+
5054+- a document containing citations (see [Extension: `citations`]);
5055+- a source of bibliographic data: either an external bibliography
5056+ file or a list of `references` in the document's YAML metadata
5057+- optionally, a [CSL] citation style.
5058+
5059+## Specifying bibliographic data
5060+
5061+You can specify an external bibliography using the
5062+`bibliography` metadata field in a YAML metadata section or the
5063+`--bibliography` command line argument. If you want to use
5064+multiple bibliography files, you can supply multiple
5065+`--bibliography` arguments or set `bibliography` metadata field
5066+to YAML array. A bibliography may have any of these formats:
5067+
5068+ Format File extension
5069+ ------------ --------------
5070+ BibLaTeX .bib
5071+ BibTeX .bibtex
5072+ CSL JSON .json
5073+ CSL YAML .yaml
5074+
5075+Note that `.bib` can be used with both BibTeX and BibLaTeX files;
5076+use the extension `.bibtex` to force interpretation as BibTeX.
5077+
5078+In BibTeX and BibLaTeX databases, pandoc parses LaTeX markup
5079+inside fields such as `title`; in CSL YAML databases, pandoc
5080+Markdown; and in CSL JSON databases, an [HTML-like markup][CSL
5081+markup specs]:
5082+
5083+`<i>...</i>`
5084+: italics
5085+
5086+`<b>...</b>`
5087+: bold
5088+
5089+`<span style="font-variant:small-caps;">...</span>` or `<sc>...</sc>`
5090+: small capitals
5091+
5092+`<sub>...</sub>`
5093+: subscript
5094+
5095+`<sup>...</sup>`
5096+: superscript
5097+
5098+`<span class="nocase">...</span>`
5099+: prevent a phrase from being capitalized as title case
5100+
5101+As an alternative to specifying a bibliography file using
5102+`--bibliography` or the YAML metadata field `bibliography`, you
5103+can include the citation data directly in the `references` field
5104+of the document's YAML metadata. The field should contain an
5105+array of YAML-encoded references, for example:
5106+
5107+ ---
5108+ references:
5109+ - type: article-journal
5110+ id: WatsonCrick1953
5111+ author:
5112+ - family: Watson
5113+ given: J. D.
5114+ - family: Crick
5115+ given: F. H. C.
5116+ issued:
5117+ date-parts:
5118+ - - 1953
5119+ - 4
5120+ - 25
5121+ title: 'Molecular structure of nucleic acids: a structure for
5122+ deoxyribose nucleic acid'
5123+ title-short: Molecular structure of nucleic acids
5124+ container-title: Nature
5125+ volume: 171
5126+ issue: 4356
5127+ page: 737-738
5128+ DOI: 10.1038/171737a0
5129+ URL: https://www.nature.com/articles/171737a0
5130+ language: en-GB
5131+ ...
5132+
5133+Note that `pandoc` can be used to produce such a YAML metadata
5134+section from a BibTeX, BibLaTeX, or CSL JSON bibliography:
5135+
5136+ pandoc chem.bib -s -t markdown
5137+ pandoc chem.json -s -t markdown
5138+
5139+
5140+### Capitalization in titles
5141+
5142+If you are using a bibtex or biblatex bibliography, then observe
5143+the following rules:
5144+
5145+ - English titles should be in title case. Non-English titles should
5146+ be in sentence case, and the `langid` field in biblatex should be
5147+ set to the relevant language. (The following values are treated
5148+ as English: `american`, `british`, `canadian`, `english`,
5149+ `australian`, `newzealand`, `USenglish`, or `UKenglish`.)
5150+
5151+ - As is standard with bibtex/biblatex, proper names should be
5152+ protected with curly braces so that they won't be lowercased
5153+ in styles that call for sentence case. For example:
5154+
5155+ title = {My Dinner with {Andre}}
5156+
5157+ - In addition, words that should remain lowercase (or camelCase)
5158+ should be protected:
5159+
5160+ title = {Spin Wave Dispersion on the {nm} Scale}
5161+
5162+ Though this is not necessary in bibtex/biblatex, it is necessary
5163+ with citeproc, which stores titles internally in sentence case,
5164+ and converts to title case in styles that require it. Here we
5165+ protect "nm" so that it doesn't get converted to "Nm" at this stage.
5166+
5167+If you are using a CSL bibliography (either JSON or YAML), then observe
5168+the following rules:
5169+
5170+ - All titles should be in sentence case.
5171+
5172+ - Use the `language` field for non-English titles to prevent their
5173+ conversion to title case in styles that call for this. (Conversion
5174+ happens only if `language` begins with `en` or is left empty.)
5175+
5176+ - Protect words that should not be converted to title case using
5177+ this syntax:
5178+
5179+ Spin wave dispersion on the <span class="nocase">nm</span> scale
5180+
5181+### Conference Papers, Published vs. Unpublished
5182+
5183+For a formally published conference paper, use the biblatex entry type
5184+`inproceedings` (which will be mapped to CSL `paper-conference`).
5185+
5186+For an unpublished manuscript, use the biblatex entry type
5187+`unpublished` without an `eventtitle` field (this entry type
5188+will be mapped to CSL `manuscript`).
5189+
5190+For a talk, an unpublished conference paper, or a poster
5191+presentation, use the biblatex entry type `unpublished` with an
5192+`eventtitle` field (this entry type will be mapped to CSL
5193+`speech`). Use the biblatex `type` field to indicate the type,
5194+e.g. "Paper", or "Poster". `venue` and `eventdate` may be useful
5195+too, though `eventdate` will not be rendered by most CSL styles.
5196+Note that `venue` is for the event's venue, unlike `location`
5197+which describes the publisher's location; do not use the latter
5198+for an unpublished conference paper.
5199+
5200+
5201+## Specifying a citation style
5202+
5203+Citations and references can be formatted using any style supported by the
5204+[Citation Style Language], listed in the [Zotero Style Repository].
5205+These files are specified using the `--csl` option or the `csl`
5206+(or `citation-style`) metadata field. By default, pandoc will
5207+use the [Chicago Manual of Style] author-date format. (You can
5208+override this default by copying a CSL style of your choice
5209+to `default.csl` in your user data directory.)
5210+The CSL project provides further information on [finding and
5211+editing styles].
5212+
5213+The `--citation-abbreviations` option (or the
5214+`citation-abbreviations` metadata field) may be used to
5215+specify a JSON file containing abbreviations of journals
5216+that should be used in formatted bibliographies when
5217+`form="short"` is specified. The format of the file
5218+can be illustrated with an example:
5219+
5220+
5221+ { "default": {
5222+ "container-title": {
5223+ "Lloyd's Law Reports": "Lloyd's Rep",
5224+ "Estates Gazette": "EG",
5225+ "Scots Law Times": "SLT"
5226+ }
5227+ }
5228+ }
5229+
5230+## Raw content in a style
5231+
5232+To include raw content in a prefix, suffix, delimiter, or term,
5233+surround it with these tags indicating the format:
5234+
5235+ {{jats}}&lt;ref&gt;{{/jats}}
5236+
5237+Without the tags, the string will be interpreted as a string
5238+and escaped in the output, rather than being passed through raw.
5239+
5240+This feature allows stylesheets to be customized to give
5241+different output for different output formats. However,
5242+stylesheets customized in this way will not be useable
5243+by other CSL implementations.
5244+
5245+
5246+
5247+## Placement of the bibliography
5248+
5249+If the style calls for a list of works cited, it will be placed
5250+in a div with id `refs`, if one exists:
5251+
5252+ ::: {#refs}
5253+ :::
5254+
5255+Otherwise, it will be placed at the end of the document.
5256+Generation of the bibliography can be suppressed by setting
5257+`suppress-bibliography: true` in the YAML metadata.
5258+
5259+If you wish the bibliography to have a section heading, you can
5260+set `reference-section-title` in the metadata, or put the heading
5261+at the beginning of the div with id `refs` (if you are using it)
5262+or at the end of your document:
5263+
5264+ last paragraph...
5265+
5266+ # References
5267+
5268+The bibliography will be inserted after this heading. Note that
5269+the `unnumbered` class will be added to this heading, so that the
5270+section will not be numbered.
5271+
5272+## Including uncited items in the bibliography
5273+
5274+If you want to include items in the bibliography without actually
5275+citing them in the body text, you can define a dummy `nocite` metadata
5276+field and put the citations there:
5277+
5278+ ---
5279+ nocite: |
5280+ @item1, @item2
5281+ ...
5282+
5283+ @item3
5284+
5285+In this example, the document will contain a citation for `item3`
5286+only, but the bibliography will contain entries for `item1`, `item2`, and
5287+`item3`.
5288+
5289+It is possible to create a bibliography with all the citations,
5290+whether or not they appear in the document, by using a wildcard:
5291+
5292+ ---
5293+ nocite: |
5294+ @*
5295+ ...
5296+
5297+For LaTeX output, you can also use [`natbib`] or [`biblatex`] to
5298+render the bibliography. In order to do so, specify bibliography
5299+files as outlined above, and add `--natbib` or `--biblatex`
5300+argument to `pandoc` invocation. Bear in mind that bibliography
5301+files have to be in either BibTeX (for `--natbib`)
5302+or BibLaTeX (for `--biblatex`) format.
5303+
5304+## Other relevant metadata fields
5305+
5306+A few other metadata fields affect bibliography formatting:
5307+
5308+`link-citation`
5309+: If true, citations will be
5310+ hyperlinked to the corresponding bibliography entries
5311+ (for author-date and numerical styles only).
5312+
5313+`lang`
5314+: The `lang` field will affect how the style is localized,
5315+ for example in the translation of labels and the use
5316+ of quotation marks. (For backwards compatibility,
5317+ `locale` may be used instead of `lang`, but this use
5318+ is deprecated.)
5319+
5320+`notes-after-punctuation`
5321+: If true (the default), pandoc will put footnote citations
5322+ after following punctuation. For example, if the source
5323+ contains `blah blah [@jones99].`, the result will look like
5324+ `blah blah.[^1]`, with the note moved after the period and
5325+ the space collapsed. If false, the space will still be
5326+ collapsed, but the footnote will not be moved after the
5327+ punctuation.
5328+
5329+
5330+
5331+
5332+
5333+
5334+
5335+
5336+# Slide shows
51735337
51745338You can use pandoc to produce an HTML + JavaScript slide presentation
51755339that can be viewed via a web browser. There are five ways to do this,
@@ -5511,7 +5675,7 @@ Slide 1 has background_image.png as its background.
55115675Slide 2 has a special image for its background, even though the heading has no content.
55125676```
55135677
5514−# Creating EPUBs with pandoc
5678+# EPUBs
55155679
55165680## EPUB Metadata
55175681
@@ -5674,7 +5838,7 @@ with the `src` attribute. For example:
56745838 </source>
56755839 </audio>
56765840
5677−# Creating Jupyter notebooks with pandoc
5841+# Jupyter notebooks
56785842
56795843When creating a [Jupyter notebook], pandoc will try to infer the
56805844notebook structure. Code blocks with the class `code` will be
cabal.project+2−6
@@ -4,13 +4,9 @@ package pandoc
44 flags: +embed_data_files -trypandoc
55 ghc-options: -j +RTS -A64m -RTS
66
7−package pandoc-citeproc
8− flags: +embed_data_files +bibutils -unicode_collation -test_citeproc -debug
9− ghc-options: -j +RTS -A64m -RTS
10−
117source-repository-package
128 type: git
13− location: https://github.com/jgm/pandoc-citeproc
14− tag: 159bbb566858c0bc522e6404eb989671cd7236fd
9+ location: https://github.com/jgm/citeproc
10+ tag: e3695de4f34f33e32c6d3c33e8cdcf3fa96f6a5b
1511
1612constraints: base16-bytestring < 1
citeproc/biblatex-localization/.stringsnew file

No changes to the content.

citeproc/biblatex-localization/UKenglish.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/USenglish.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/american.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/australian.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/austrian.lbx.stringsnew file+1
@@ -0,0 +1 @@
1+january|J\"anner|J\"an\adddot
citeproc/biblatex-localization/brazil.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/brazilian.lbx.stringsnew file+233
@@ -0,0 +1,233 @@
1+bibliography|Bibliografia|Bibliografia
2+references|Refer\^encias|Refer\^encias
3+shorthands|Lista de abreviaturas|Abreviaturas
4+editor|editor|ed\adddot
5+editors|editores|ed\adddot
6+compiler|compilador|comp\adddot
7+compilers|compiladores|comp\adddot
8+redactor|redator|red\adddot
9+redactors|redatores|red\adddot
10+reviser|revisor|rev\adddot
11+revisers|revisores|rev\adddot
12+founder|fundador|fund\adddot
13+founders|fundadores|fund\adddot
14+continuator|continuador|cont\adddot
15+continuators|continuadores|cont\adddot
16+collaborator|colaborador|colab\adddot
17+collaborators|colaboradores|colab\adddot
18+translator|tradutor|trad\adddot
19+translators|tradutores|trad\adddot
20+commentator|coment\'ario|coment\adddot
21+commentators|coment\'ario|coment\adddot
22+annotator|notas|notas
23+annotators|notas|notas
24+commentary|coment\'ario|coment\adddot
25+annotations|notas|notas
26+foreword|pref\'acio|pref\adddot
27+afterword|posf\'acio|posf\adddot
28+organizer|organizador|org\adddot
29+organizers|organizadores|org\adddot
30+byauthor|por|por
31+byeditor|editado por|ed\adddotspace por
32+bycompiler|compilado por|comp\adddotspace por
33+byredactor|redigido por|red\adddotspace por
34+byreviser|revisado por|rev\adddotspace por
35+byreviewer|resenhado por|res\adddotspace por
36+byfounder|fundado por|fund\adddotspace por
37+bycontinuator|continuado por|cont\adddotspace por
38+bytranslator|traduzido \lbx@lfromlang\ por|trad\adddot\ \lbx@sfromlang\ por
39+bycommentator|comentado por|coment\adddot\ por
40+byannotator|anotado por|anot\adddot\ por
41+byorganizer|organizado por|org\adddotspace por
42+withcommentator|com coment\'ario de|com coment\adddot\ de
43+withannotator|com notas de|com notas de
44+withforeword|com pref\'acio de|com pref\adddot\ de
45+withafterword|com posf\'acio de|com posf\adddot\ de
46+and|e|e
47+andothers|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
48+andmore|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
49+volume|volume|vol\adddot
50+volumes|volumes|vol\adddot
51+involumes|em|em
52+jourvol|volume|v\adddot
53+jourser|s\'erie|s\'er\adddot
54+book|livro|livro
55+part|parte|parte
56+issue|n\'umero|n\'um\adddot
57+newseries|nova s\'erie|nova s\'er\adddot
58+oldseries|s\'erie antiga|s\'er\adddot\ antiga
59+reprint|reimpress\~ao|reimpr\adddot
60+reprintof|reimpress\~ao de|reimpr\adddotspace de
61+reprintas|reimpresso como|reimpr\adddotspace como
62+reprintfrom|reimpresso de|reimpr\adddotspace de
63+translationas|traduzido como|trad\adddotspace como
64+translationfrom|traduzido do|trad\adddotspace do
65+reviewof|resenha de|res\adddotspace de
66+origpubas|originalmente publicado como|orig\adddotspace pub\adddotspace como
67+origpubin|originalmente publicado em|orig\adddotspace pub\adddotspace em
68+astitle|como|como
69+bypublisher|por|por
70+nodate|sem\space data|s\adddot d\adddot
71+page|p\'agina|p\adddot
72+pages|p\'aginas|pp\adddot
73+column|coluna|col\adddot
74+columns|colunas|col\adddot
75+line|linha|l\adddot
76+lines|linhas|ll\adddot
77+verse|verso|v\adddot
78+verses|versos|vv\adddot
79+paragraph|par\'agrafo|par\adddot
80+paragraphs|par\'agrafos|par\adddot
81+pagetotal|p\'agina|p\adddot
82+pagetotals|p\'aginas|pp\adddot
83+columntotal|coluna|col\adddot
84+columntotals|colunas|col\adddot
85+linetotal|linha|l\adddot
86+linetotals|linhas|ll\adddot
87+versetotal|verso|v\adddot
88+versetotals|versos|vv\adddot
89+paragraphtotal|par\'agrafo|par\adddot
90+paragraphtotals|par\'agrafos|par\adddot
91+in|em|em
92+inseries|em|em
93+ofseries|de|de
94+number|n\'umero|n\adddot
95+chapter|cap\'\i tulo|cap\adddot
96+bathesis|trabalho de conclus\~ao|trab\adddotspace de conc\adddot
97+phdthesis|tese de doutorado|tese de dout\adddot
98+candthesis||
99+resreport|relat\'orio de pesquisa|rel\adddotspace de pesq\adddot
100+techreport|relat\'orio t\'ecnico|rel\adddotspace t\'ecn\adddot
101+software|software|software
102+datacd|CD-ROM|CD-ROM
103+audiocd|CD de \'audio|CD de \'audio
104+version|vers\~ao|vers\~ao
105+urlfrom|dispon\'ivel em|disp\adddotspace em
106+urlseen|acesso em|acesso em
107+submitted|submetido|submetido
108+inpress|no prelo|no prelo
109+prepublished|pr\'e-publicado|pr\'e-publicado
110+citedas|doravante citado como|doravante citado como
111+thiscite|especialmente|esp\adddot
112+seenote|ver nota|ver nota
113+quotedin|apud|apud
114+idem|idem|idem
115+idemsm|idem|idem
116+idemsf|eadem|eadem
117+idemsn|idem|idem
118+idempm|eidem|eidem
119+idempf|eaedem|eaedem
120+idempn|eadem|eadem
121+idempp|eidem|eidem
122+ibidem|ibidem|ibid\adddot
123+opcit|op\adddotspace cit\adddot|op\adddotspace cit\adddot
124+loccit|loc\adddotspace cit\adddot|loc\adddotspace cit\adddot
125+confer|cf\adddot|cf\adddot
126+sequens|sq\adddot|sq\adddot
127+sequentes|sqq\adddot|sqq\adddot
128+passim|passim|passim
129+see|ver|ver
130+seealso|ver tamb\'em|ver tamb\'em
131+backrefpage|ver p\'agina|ver p\adddot
132+backrefpages|ver p\'aginas|ver pp\adddot
133+january|janeiro|jan\adddot
134+february|fevereiro|fev\adddot
135+april|abril|abr\adddot
136+may|maio|mai\adddot
137+june|junho|jun\adddot
138+july|julho|jul\adddot
139+august|agosto|ago\adddot
140+september|setembro|set\adddot
141+october|outubro|out\adddot
142+november|novembro|nov\adddot
143+december|dezembro|dez\adddot
144+langamerican|ingl\^es|ingl\^es
145+langbulgarian|b\'ulgaro|b\'ulgaro
146+langcatalan|catal\~ao|catal\~ao
147+langcroatian|croata|croata
148+langczech|tcheco|tcheco
149+langdanish|dinamarqu\^es|dinamarqu\^es
150+langenglish|ingl\^es|ingl\^es
151+langfinnish|finland\^es|finland\^es
152+langestonian|estoniano|estoniano
153+langfrench|franc\^es|franc\^es
154+langgalician|galego|galego
155+langgerman|alem\~ao|alem\~ao
156+langgreek|grego|grego
157+langhungarian|h\'ungaro|h\'ungaro
158+langitalian|italiano|italiano
159+langjapanese|japon\^es|japon\^es
160+langlatin|latim|latim
161+langlatvian|let\~ao|let\~ao
162+langlithuanian|lituano|lituano
163+langnorwegian|noruegu\^es|noruegu\^es
164+langpolish|polon\^es|polon\^es
165+langrussian|russo|russo
166+langserbian|s\'ervio|s\'ervio
167+langslovak|eslovaco|eslovaco
168+langslovene|esloveno|esloveno
169+langspanish|espanhol|espanhol
170+langswedish|sueco|sueco
171+langturkish|turco|turco
172+langukrainian|ucraniano|ucraniano
173+fromamerican|do ingl\^es|do ingl\^es
174+frombulgarian|do b\'ulgaro|do b\'ulgaro
175+fromcatalan|do catal\~ao|do catal\~ao
176+fromcroatian|do croata|do croata
177+fromczech|do tcheco|do tcheco
178+fromdanish|do dinamarqu\^es|do dinamarqu\^es
179+fromenglish|do ingl\^es|do ingl\^es
180+fromestonian|do estoniano|do estoniano
181+fromfinnish|do finland\^es|do finland\^es
182+fromfrench|do franc\^es|do franc\^es
183+fromgalician|do galego|do galego
184+fromgerman|do alem\~ao|do alem\~ao
185+fromgreek|do grego|do grego
186+fromhungarian|do h\'ungaro|do h\'ungaro
187+fromitalian|do italiano|do italiano
188+fromjapanese|do japon\^es|do japon\^es
189+fromlatin|do latim|do latim
190+fromlatvian|do let\~ao|do let\~ao
191+fromlithuanian|do lituano|do lituano
192+fromnorwegian|do noruegu\^es|do noruegu\^es
193+frompolish|do polon\^es|do polon\^es
194+fromrussian|do russo|do russo
195+fromserbian|do s\'ervio|do s\'ervio
196+fromslovak|do eslovaco|do eslovaco
197+fromslovene|do esloveno|do esloveno
198+fromspanish|do espanhol|do espanhol
199+fromswedish|do sueco|do sueco
200+fromturkish|do turco|do turco
201+fromukrainian|do ucraniano|do ucraniano
202+countryde|Alemanha|DE
203+countryeu|Uni\~ao Europeia|EU
204+countryep|Uni\~ao Europeia|EP
205+countryuk|Reino Unido|GB
206+countryus|Estados Unidos|US
207+patent|patente|pat\adddot
208+patentde|patente alem\~a|pat\adddot\ alem\~a
209+patenteu|patente europeia|pat\adddot\ europeia
210+patentfr|patente francesa|pat\adddot\ francesa
211+patentuk|patente brit\^anica|pat\adddot\ brit\^anica
212+patentus|patente americana|pat\adddot\ americana
213+patreq|pedido de patente|ped\adddot\ de pat\adddot
214+patreqde|pedido de patente alem\~a|ped\adddot\ de pat\adddot\ alem\~a
215+patreqeu|pedido de patente europeia|ped\adddot\ de pat\adddot\ europeia
216+patreqfr|pedido de patente francesa|ped\adddot\ de pat\adddot\ francesa
217+patrequk|pedido de patente brit\^anica|ped\adddot\ de pat\adddot\ brit\^anica
218+patrequs|pedido de patente americana|ped\adddot\ de pat\adddot\ americana
219+file|arquivo|arquivo
220+library|biblioteca|biblioteca
221+abstract|resumo|resumo
222+annotation|notas|notas
223+commonera|Era Comum|EC
224+beforecommonera|antes da Era Comum|AEC
225+annodomini|depois de Cristo|d\adddot C\adddot
226+beforechrist|antes de Cristo|a\adddot C\adddot
227+circa|circa|ca\adddot
228+spring|primavera|primavera
229+summer|ver\~ao|ver\~ao
230+autumn|outono|outono
231+winter|inverno|inverno
232+am|AM|AM
233+pm|PM|PM
citeproc/biblatex-localization/british.lbx.stringsnew file+3
@@ -0,0 +1,3 @@
1+organizer|organiser|org\adddot
2+organizers|organisers|orgs\adddot
3+byorganizer|organised by|org\adddotspace by
citeproc/biblatex-localization/bulgarian.lbx.stringsnew file+28
@@ -0,0 +1,28 @@
1+bibliography|Библиография|Библиография
2+references|Литература|Литература
3+shorthands|Списък на съкращенията|Съкращения
4+editor|редактор|ред\adddot
5+editors|редактори|ред\adddot
6+compiler|съставител|съст\adddot
7+compilers|съставители|съст\adddot
8+redactor|редактор|ред\adddot
9+redactors|редактори|ред\adddot
10+reviser|коректор|кор\adddotspace кор\adddot
11+revisers|коректор|кор\adddotspace кор\adddot
12+founder|основател|осн\adddot
13+founders|основатели|осн\adddot
14+continuator|продължител|прод\adddot
15+continuators|продължител|прод\adddot
16+collaborator|участник|участ\adddot
17+collaborators|участници|участ\adddot
18+translator|преводач|прев\adddot
19+translators|преводачи|прев\adddot
20+commentator|коментатор|комент\adddot
21+commentators|коментатори|комент\adddot
22+annotator|бележки|бел\adddot
23+annotators|бележки|бел\adddot
24+commentary|комментар|комент\adddot
25+annotations|бележки|бел\adddot
26+introduction|уводна статия|ув\adddotspace ст\adddot
27+foreword|предговор|предг\adddot
28+afterword|послеслов|послесл\adddot
citeproc/biblatex-localization/canadian.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/catalan.lbx.stringsnew file+158
@@ -0,0 +1,158 @@
1+bibliography|Bibliografia|Bibliografia
2+references|Refer\`encies|Refer\`encies
3+shorthands|Llista d'abreviatures|Abreviatures
4+editor|editor|ed\adddot
5+editors|editors|ed\adddot
6+compiler|compilador|comp\adddot
7+compilers|compiladors|comp\adddot
8+redactor|redactor|red\adddot
9+redactors|redactors|red\adddot
10+reviser|revisor|rev\adddot
11+revisers|revisors|rev\adddot
12+founder|fundador|fund\adddot
13+founders|fundadors|fund\adddot
14+continuator|continuador|cont\adddot
15+continuators|continuadors|cont\adddot
16+collaborator|co\l.laborador|co\l.l\adddot
17+collaborators|co\l.laboradors|co\l.l\adddot
18+translator|traductor|trad\adddot
19+translators|traductors|trad\adddot
20+commentator|comentarista|com\adddot
21+commentators|comentaristes|com\adddot
22+annotator|anotador|anot\adddot
23+annotators|anotadors|anot\adddot
24+commentary|comentari|com\adddot
25+annotations|notes|n\adddot
26+introduction|introducci\'o|intr\adddot
27+foreword|pr\`oleg|pr\`ol\adddot
28+editortr|editor i traductor|ed\adddotspace i trad\adddot
29+editorstr|editors i traductors|ed\adddotspace i trad\adddot
30+editorco|editor i comentarista|ed\adddotspace i com\adddot
31+editorsco|editors i comentaristes|ed\adddotspace i com\adddot
32+editoran|editor i anotador|ed\adddotspace i anot\adddot
33+editorsan|editors i anotadors|ed\adddotspace i anot\adddot
34+organizer|organitzador|org\adddot
35+organizers|organitzadors|org\adddot
36+byorganizer|organitzat per|org\adddotspace per
37+byauthor|per|per
38+byeditor|edici\'o a cura \smartof|ed\adddotspace\smartof
39+bycompiler|compilaci\'o a cura \smartof|comp\adddotspace\smartof
40+byredactor|redacci\'o a cura \smartof|red\adddotspace\smartof
41+byreviser|revisi\'o a cura \smartof|rev\adddotspace\smartof
42+byreviewer|ressenya a cura \smartof|ress\adddotspace\smartof
43+byfounder|fundat per|fund\adddotspace per
44+bycontinuator|continuat per|cont\adddotspace per
45+bycollaborator|amb la co\l.laboraci\'o \smartof|amb la co\l.l\adddotspace\smartof
46+bytranslator|traducci\'o \lbx@fromlang\ a cura \smartof|trad\adddotspace\lbx@fromlang\ \smartof
47+bycommentator|comentari a cura \smartof|com\adddotspace\smartof
48+byannotator|notes a cura \smartof|n\adddotspace\smartof
49+withcommentator|amb un comentari a cura \smartof|amb un com\adddotspace\smartof
50+withannotator|amb notes a cura \smartof|amb n\adddotspace\smartof
51+withintroduction|amb una introducci\'o a cura \smartof|amb una intr\adddotspace\smartof
52+withforeword|amb un pr\`oleg a cura \smartof|amb un pr\`ol\adddotspace\smartof
53+and|i|i
54+andothers|et al\adddot|et al\adddot
55+andmore|i m\'es|i m\'es
56+volume|volum|vol\adddot
57+volumes|volums|vol\adddot
58+involumes|en|en
59+jourvol|volum|vol\adddot
60+jourser|s\`erie|s\`er\adddot
61+book|llibre|llib\adddot
62+part|part|part
63+issue|n\'umero|n\'um\adddot
64+newseries|s\`erie nova|s\`erie nova
65+oldseries|s\`erie antiga|s\`erie ant\adddot
66+edition|edici\'o|ed\adddot
67+reprint|reimpressi\'o|reimpr\adddot
68+reprintof|reimpressi\'o \smartof|reimpr\adddotspace\smartof
69+reprintas|reimpr\`es com|reimpr\adddotspace com
70+reprintfrom|reimpr\`es \smartof|reimpr\adddotspace\smartof
71+reviewof|ressenya \smartof|ress\adddotspace\smartof
72+translationof|traducci\'o \smartof|trad\adddotspace\smartof
73+origpubas|publicat origin\`ariament com|pub\adddotspace orig\adddotspace com
74+origpubin|publicat origin\`ariament el|pub\adddotspace orig\adddotspace el
75+astitle|com|com
76+bypublisher|per|per
77+page|p\`agina|p\`ag\adddot
78+pages|p\`agines|p\`ag\adddot
79+column|columna|col\adddot
80+columns|columnes|cols\adddot
81+nodate|sine data|s\adddotspace d\adddot
82+verse|vers|v\adddot
83+verses|versos|v\adddot
84+section|apartat|\S
85+sections|apartats|\S
86+paragraph|par\`agraf|\P
87+paragraphs|par\`agrafs|\P
88+pagetotal|p\`agina|p\`ag\adddot
89+pagetotals|p\`agines|p\`ag\adddot
90+columntotal|columna|col\adddot
91+columntotals|columnes|col\adddot
92+versetotal|vers|v\adddot
93+versetotals|versos|v\adddot
94+sectiontotal|secci\'o|\S
95+sectiontotals|seccions|\S
96+paragraphtotal|par\`agrafs|\P
97+paragraphtotals|par\`agrafs|\P
98+in|a|a
99+inseries|a|a
100+ofseries|\smartof|\smartof
101+number|n\'umero|n\'um\adddot
102+bathesis|treball final de grau|treb\adddotspace fin\adddotspace de gr\adddot
103+mathesis|treball final de m\`aster|treb\adddotspace fin\adddotspace de m\`ast\adddot
104+phdthesis|tesi doctoral|tesi doct\adddot
105+candthesis|tesi de candidatura|tesi de cand\adddot
106+resreport|informe de recerca|inf\adddotspace de rec\adddot
107+techreport|informe t\`ecnic|inf\adddotspace t\`ec\adddot
108+software|programari|prog\adddot
109+datacd|CD de dades|CD de dades
110+audiocd|CD d'\`audio|CD d'\`audio
111+version|versi\'o|vers\adddot
112+urlfrom|disponible a|disp\adddotspace a
113+urlseen|consultat|cons\adddot
114+inpreparation|en preparaci\'o|en prep\adddot
115+inpress|a impremta|a impr\adddot
116+prepublished|pre-publicat|pre-publicat
117+submitted|enviat a publicar|env\adddotspace a pub\adddot
118+forthcoming|properament|prop\adddot
119+citedas|d'ara endavant citat com|d'ara end\adddotspace cit\adddotspace com
120+thiscite|concretament|concr\adddot
121+seenote|vegeu la nota|v\adddotspace la n\adddot
122+quotedin|citat a|cit\adddotspace a
123+opcit|\`op\adddotspace cit\adddot|\`op\adddotspace cit\adddot
124+loccit|loc\adddotspace cit\adddot|loc\adddotspace cit\adddot
125+confer|cf\adddot|cf\adddot
126+sequens|seq\adddot|seq\adddot
127+sequentes|et seq\adddot|et seq\adddot
128+passim|p\`assim|p\`assim
129+see|vegeu|v\adddot
130+seealso|vegeu tamb\'e|v\adddotspace tamb\'e
131+backrefpage|vegeu la p\`agina|v\adddotspace la p\`ag\adddot
132+backrefpages|vegeu les p\`agines|v\adddotspace les p\`ag\adddot
133+january|gener|gen\adddot
134+february|febrer|febr\adddot
135+april|abril|abr\adddot
136+may|maig|maig
137+june|juny|juny
138+july|juliol|jul\adddot
139+august|agost|ag\adddot
140+september|setembre|set\adddot
141+october|octubre|oct\adddot
142+november|novembre|nov\adddot
143+december|desembre|des\adddot
144+langamerican|angl\`es americ\`a|ang\adddotspace amer\adddot
145+langbrazilian|portugu\`es brasiler|port\adddotspace bras\adddot
146+langbulgarian|b\'ulgar|b\'ulg\adddot
147+langcatalan|catal\`a|cat\adddot
148+langczech|txec|txec
149+langcroatian|croat|croat
150+langdanish|dan\`es|dan\adddot
151+langdutch|neerland\`es|neerl\adddot
152+langenglish|angl\`es|ang\adddot
153+langestonian|estoni\`a|eston\adddot
154+langfinnish|fin\`es|fin\adddot
155+langfrench|franc\`es|fr\adddot
156+langgalician|gallec|gal\adddot
157+langgerman|alemany|al\adddot
158+langgreek|grec|grec
citeproc/biblatex-localization/croatian.lbx.stringsnew file+214
@@ -0,0 +1,214 @@
1+bibliography|Bibliografija|Bibliografija
2+references|Literatura|Literatura
3+shorthands|Popis kratica|Kratice
4+editor|urednik|ur\adddot
5+editors|urednici|ur\adddot
6+redactor|redaktor|redaktor
7+redactors|redaktori|redaktori
8+reviser|korektor|korektor
9+revisers|korektori|korektori
10+collaborator|suradnik|sur\adddot
11+collaborators|suradnici|sur\adddot
12+translator|prijevod|prev\adddot
13+translators|prijevod|prev\adddot
14+commentator|komentator|komentator
15+commentators|komentatori|komentatori
16+commentary|komentar|komentar
17+introduction|uvod|uvod
18+foreword|predgovor|predgovor
19+afterword|pogovor|pogovor
20+editortr|prijevod i obrada|ur\adddotspace i prev\adddot
21+editorstr|prijevod i obrada|ur\adddotspace i prev\adddot
22+organizer|organizacija|organizacija
23+organizers|organizacija|organizacija
24+byorganizer|organizacija|organizacija
25+byauthor|autor|autor
26+byeditor|obrada|ur\adddot
27+byredactor|redaktura|red\adddot
28+byreviser|korektura|kor\adddot
29+byreviewer|recenzija|recenzija
30+bycontinuator|nastavio|nastavio
31+bycollaborator|u suradnji s|u sur\adddotspace s
32+bycommentator|komentari|komentari
33+withcommentator|komentari|komentari
34+withintroduction|uvod|uvod
35+withforeword|predgovor|predgovor
36+withafterword|pogovor|pogovor
37+and|i|i
38+andothers|i drugi|i dr\adddot
39+andmore|i drugi|i dr\adddot
40+volume|sv\adddot|sv\adddot
41+volumes|sv\adddot|sv\adddot
42+involumes|u|u
43+jourvol|sv\adddot|sv\adddot
44+jourser|serija|serija
45+book|knjiga|knj\adddot
46+part|dio|dio
47+issue|izd\adddot|izd\adddot
48+newseries|nova serija|nova serija
49+oldseries|stara serija|stara serija
50+edition|izdanje|izdanje
51+reprint|pretisak|pretisak
52+reprintof|pretisak|pretisak
53+reprintas|iznova otisnuto kao|iznova otisnuto kao
54+reprintfrom|iznova otisnut|iznova otisnut
55+translationof|prijevod|prijevod
56+translationas|prev\adddotspace kao|prev\adddotspace kao
57+translationfrom|prijevod|prijevod
58+reviewof|osvrt na|osvrt na
59+origpubas|izvorno obj\adddotspace kao|izv\adddotspace obj\adddotspace kao
60+origpubin|izvorno obj\adddot|izv\adddotspace obj\adddot
61+astitle|kao|kao
62+bypublisher||
63+nodate|bez datuma|bez datuma
64+page|stranica|str\adddot
65+pages|stranice|str\adddot
66+column|stupac|stupac
67+columns|stupci|stupci
68+line|linija|l\adddot
69+lines|linije|ll\adddot
70+verse|stih|stih
71+verses|stihovi|stihovi
72+section|odjeljak|\S
73+sections|odjeljci|\S\S
74+paragraph|stavak|st\adddot
75+paragraphs|stavci|st\adddot
76+pagetotal|str\adddot|str\adddot
77+pagetotals|str\adddot|str\adddot
78+columntotal|stupac|stupac
79+columntotals|stupaca|stupaca
80+linetotal|linija|lin\adddot
81+linetotals|linija|lin\adddot
82+versetotal|stih|st\adddot
83+versetotals|stihova|st\adddot
84+sectiontotal|odjeljak|odj\adddot
85+sectiontotals|odjeljaka|odj\adddot
86+paragraphtotal|stavak|st\adddot
87+paragraphtotals|stavaka|st\adddot
88+in||
89+inseries|u seriji|u seriji
90+ofseries|iz serije|iz serije
91+number|broj|br\adddot
92+chapter|poglavlje|pogl\adddot
93+bathesis|diplomski rad|dipl\adddotspace rad
94+mathesis|magistarski rad|mag\adddotspace rad
95+phdthesis|doktorska disertacija|disertacija
96+software|softver|softver
97+datacd|CD-ROM|CD-ROM
98+audiocd|audio CD|audio CD
99+version|verzija|verzija
100+url|adresa|adresa
101+urlfrom|dostupno na|dost\adddotspace na
102+urlseen|pogledano|pogledano
103+inpreparation|u pripremi|u pripremi
104+submitted|predan|predan
105+inpress|u tisku|u tisku
106+prepublished|pred objavom|pred obj\adddot
107+citedas|dalje citirano kao|dalje citirano kao
108+thiscite|napose|napose
109+quotedin|citirano u|citirano u
110+idem|idem|idem
111+idemsm|idem|idem
112+idemsf|eadem|eadem
113+idemsn|idem|idem
114+idempm|eidem|eidem
115+idempf|eaedem|eaedem
116+idempn|eadem|eadem
117+idempp|eidem|eidem
118+ibidem|ibidem|ibid\adddot
119+opcit|op\adddotspace cit\adddot|op\adddotspace cit\adddot
120+loccit|loc\adddotspace cit\adddot|loc\adddotspace cit\adddot
121+confer|usporedi|usp\adddot
122+sequens|sq\adddot|sq\adddot
123+sequentes|sqq\adddot|sqq\adddot
124+passim|passim|pass\adddot
125+see|vidi|v\adddot
126+seealso|pogledaj i|pogl\adddotspace i
127+backrefpage|citirano na stranci|cit\adddotspace na str\adddot
128+backrefpages|cited on pages|cit\adddotspace na str\adddot
129+april|travanj|travanj
130+may|svibanj|svibanj
131+june|lipanj|lipanj
132+july|srpanj|srpanj
133+august|kolovoz|kolovoz
134+september|rujan|rujan
135+october|listopad|listopad
136+november|studeni|studeni
137+december|prosinac|prosinac
138+dateapril|travnja|travnja
139+datemay|svibnja|svibnja
140+datejune|lipnja|lipnja
141+datejuly|srpnja|srpnja
142+dateaugust|kolovoza|kolovoza
143+dateseptember|rujna|rujna
144+dateoctober|listopada|listopada
145+datenovember|studenoga|studenoga
146+datedecember|prosinca|prosinca
147+langamerican|engleski|engleski
148+langbrazilian|portugalski|portugalski
149+langbulgarian|bugarski|bugarski
150+langcatalan|katalonski|katalonski
151+langcroatian|hrvatski|hrvatski
152+langdanish|danski|danski
153+langdutch|nizozemski|nizozemski
154+langenglish|engleski|engleski
155+langestonian|estonski|estonski
156+langfinnish|finski|finski
157+langfrench|francuski|francuski
158+langgalician|galicijski|galicijski
159+langhungarian|ma\dj arski|ma\dj arski
160+langitalian|talijanski|talijanski
161+langjapanese|japanski|japanski
162+langlatin|latinski|latinski
163+langlatvian|letonski|letonski
164+langpolish|poljski|poljski
165+langportuguese|portugalski|portugalski
166+langrussian|ruski|ruski
167+langslovene|slovenski|slovenski
168+langukrainian|ukrajinski|ukrajinski
169+fromamerican|s engleskog|s engleskog
170+frombrazilian|s portugalskog|s portugalskog
171+frombulgarian|s bugarskog|s bugarskog
172+fromcatalan|s katalonskog|s katalonskog
173+fromcroatian|s hrvatskog|s hrvatskog
174+fromdanish|s danskog|s danskog
175+fromdutch|s nizozemskog|s nizozemskog
176+fromenglish|s engleskog|s engleskog
177+fromestonian|s estonskog|s estonskog
178+fromfinnish|s finskog|s finskog
179+fromfrench|s francuskog|s francuskog
180+fromgalician|s galicijskog|s galicijskog
181+fromhungarian|s ma\dj arskog|s ma\dj arskog
182+fromitalian|s talijanskog|s talijanskog
183+fromjapanese|s japanskog|s japanskog
184+fromlatin|s latinskog|s latinskog
185+fromlatvian|s letonskog|s letonskog
186+frompolish|s poljskog|s poljskog
187+fromportuguese|s portugalskog|s portugalskog
188+fromrussian|s ruskog|s ruskog
189+fromslovene|sa slovenskog|sa slovenskog
190+fromukrainian|s ukrajinskog|s ukrajinskog
191+countryeu|Europska unija|EU
192+countryep|Europska unija|EP
193+countryfr|Francuska|FR
194+countryuk|Velika Britanija|GB
195+patent|patent|pat\adddot
196+patenteu|europski patent|europski pat\adddot
197+patentfr|francuski patent|francuski pat\adddot
198+patentuk|britanski patent|britanski pat\adddot
199+patentus|US patent|US pat\adddot
200+patreq|patentni zahtjev|pat\adddot\ zahtjev
201+patreqeu|europski patentni zahtjev|EU pat\adddotspace zahtjev
202+patrequs|US patentni zahtjev|US pat\adddot\ zahtjev
203+file|datoteka|datoteka
204+library|biblioteka|biblioteka
205+commonera|n\adddotspace e\adddot|n\adddotspace e\adddot
206+beforecommonera|pr\adddotspace n\adddotspace e\adddot|pr\adddotspace n\adddotspace e\adddot
207+annodomini|poslije Krista|p\adddotspace Kr\adddot
208+beforechrist|prije Krista|pr\adddotspace Kr\adddot
209+circa|oko|cca\adddot
210+summer|ljeto|ljeto
211+autumn|jesen|jesen
212+winter|zima|zima
213+am|prije podne|AM
214+pm|poslije podne|PM
citeproc/biblatex-localization/czech.lbx.stringsnew file+91
@@ -0,0 +1,91 @@
1+bibliography|Bibliografie|Bibliografie
2+references|Odkazy|Odkazy
3+shorthands|Seznam zkratek|Zkratky
4+editor|editor|ed\adddot
5+compiler|sestavil|sest\adddot
6+compilers|sestavili|sest\adddot
7+redactor|redaktor|red\adddot
8+reviser|korektor|kor\adddot
9+founder|zakladatel|zakl\adddot
10+annotations|anotace|anot\adddot
11+afterword|doslov|dosl\adddot
12+byauthor||
13+bycompiler|sestaveno|sest\adddot
14+withannotator|s\addnbspace anotacemi od|s\addnbspace anot\adddot\ od
15+withafterword|s\addnbspace doslovem od|s\addnbspace dosl\adddot\ od
16+and|a|a
17+andothers|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
18+andmore|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
19+volume|svazek|sv\adddot
20+volumes|svazky|sv\adddot
21+involumes|in|in
22+book|kniha|kniha
23+reprint|dotisk|dotisk
24+reprintof|dotisk|dotisk
25+reprintas|dotisknuto jako|dotisknuto jako
26+reprintfrom|dotisknuto z\addnbspace|dotisknuto z\addnbspace
27+reviewof|recenze|recenz\adddot
28+astitle|jako|jako
29+bypublisher||
30+page|strana|s\adddot
31+pages|strany|s\adddot
32+column|sloupec|sl\adddot
33+columns|sloupce|sl\adddot
34+section|sekce|\S
35+sections|sekce|\S\S
36+paragraph|odstavec|ods\adddot
37+paragraphs|odstavce|ods\adddot
38+pagetotal|strana|s\adddot
39+pagetotals|strany|s\adddot
40+columntotal|sloupec|sl\adddot
41+columntotals|sloupce|sl\adddot
42+sectiontotal|sekce|\S
43+sectiontotals|sekce|\S\S
44+paragraphtotal|odstavec|ods\adddot
45+paragraphtotals|odstavce|ods\adddot
46+in|in|in
47+inseries|in|in
48+ofseries|z|z
49+chapter|kapitola|kap\adddot
50+datacd|CD-ROM|CD-ROM
51+audiocd|audio CD|audio CD
52+version|verze|ver\adddot
53+url|URL|URL
54+inpress|v\addnbspace tisku|v\addnbspace tisku
55+idem|idem|idem
56+idemsm|idem|idem
57+idemsf|eadem|eadem
58+idemsn|idem|idem
59+idempm|eidem|eidem
60+idempf|eaedem|eaedem
61+idempn|eadem|eadem
62+idempp|eidem|eidem
63+ibidem|ibidem|ibid\adddot
64+opcit|op\adddotspace cit\adddot|op\adddotspace cit\adddot
65+loccit|loc\adddotspace cit\adddot|loc\adddotspace cit\adddot
66+confer|cf\adddot|cf\adddot
67+sequens|sq\adddot|sq\adddot
68+sequentes|sqq\adddot|sqq\adddot
69+passim|passim|pass\adddot
70+see|viz|viz
71+january|leden|led\adddot
72+april|duben|dub\adddot
73+august|srpen|srp\adddot
74+november|listopad|lis\adddot
75+december|prosinec|pros\adddot
76+langlatin|latina|lat\adddot
77+fromlatin|z\addnbspace latiny|z\addnbspace lat\adddot
78+countryfr|Francie|FR
79+patent|patent|pat\adddot
80+patentus|US patent|US pat\adddot
81+file|soubor|soub\adddot
82+library|knihovna|knih\adddot
83+abstract|abstrakt|abst\adddot
84+annotation|anotace|anot\adddot
85+annodomini|po Kristu|po Kr\adddot
86+circa|cirka|ca\adddot
87+spring|jaro|jaro
88+autumn|podzim|podzim
89+winter|zima|zima
90+am|AM|AM
91+pm|PM|PM
citeproc/biblatex-localization/danish.lbx.stringsnew file+106
@@ -0,0 +1,106 @@
1+bibliography|Bibliografi|Bibliografi
2+references|Litteraturhenvisninger|Litteratur
3+shorthands|Forkortelser|Forkortelser
4+editor|redakt\o r|red\adddot
5+editors|redakt\o rer|red\adddot
6+compiler|kompilator|kompilator
7+compilers|kompilatorer|kompilatorer
8+redactor|medredakt\o r|medred\adddot
9+redactors|medredakt\o rer|medred\adddot
10+reviser|revision|rev\adddot
11+revisers|revision|rev\adddot
12+founder|stifter|stifter
13+founders|stiftere|stiftere
14+continuator|videref\o rer|videref\adddot
15+continuators|videref\o rere|videref\adddot
16+collaborator|medarbejder|medarb\adddot
17+collaborators|medarbejdere|medarb\adddot
18+translator|overs\ae tter|overs\adddot
19+translators|overs\ae ttere|overs\adddot
20+commentator|kommentator|komm\adddot
21+commentators|kommentatorer|komm\adddot
22+annotator|kommentator|komm\adddot
23+annotators|kommentatorer|komm\adddot
24+commentary|kommentar|komm\adddot
25+annotations|annoteringer|ann\adddot
26+introduction|indledning|indl\adddot
27+foreword|forord|forord
28+afterword|efterord|efterord
29+organizer|organisator|org\adddot
30+organizers|organisatorer|org\adddot
31+byorganizer|organiseret af|org\adddotspace av
32+byauthor|af|af
33+byeditor|redigeret af|red\adddotspace af
34+bycompiler|kompileret af|komp\adddotspace af
35+byredactor|bearbejdet af|bearb\adddotspace af
36+byreviser|revideret af|rev\adddotspace af
37+byreviewer|bed\o mt af|bed\adddotspace af
38+byfounder|stiftet af|stiftet af
39+bycontinuator|videref\o rt af|videref\adddotspace af
40+bycollaborator|i samarbejde med|i samarb\adddotspace m\adddot
41+bycommentator|kommenteret af|komm\adddot\ af
42+byannotator|annoteret af|ann\adddot\ af
43+withcommentator|med kommentarer af|m\adddotspace komm\adddot\ af
44+withannotator|med annoteringer af|m\adddotspace ann\adddot\ af
45+withintroduction|med indledning af|m\adddotspace indl\adddot\ af
46+withforeword|med forord af|m\adddotspace forord af
47+withafterword|med efterord af|m\adddotspace efterord af
48+and|og|og
49+andothers|med flere|m.fl\adddot
50+andmore|med mere|m.m\adddot
51+volume|bind|bd\adddot
52+volumes|bind|bd\adddot
53+involumes|i|i
54+jourvol|\aa rgang|\aa rg\adddot
55+jourser|r\ae kke|rk\adddot
56+book|bog|bog
57+part|del|del
58+issue|nummer|nr\adddot
59+newseries|ny r\ae kke|ny rk\adddot
60+oldseries|gammel r\ae kke|gl. rk\adddot
61+edition|udgave|udg\adddot
62+reprint|genoptryk|genoptr\adddot
63+reprintof|genoptryk af|genoptr\adddot\ af
64+reprintas|genoptryk under titlen|genoptr\adddot\ under titlen
65+reprintfrom|genoptryk fra|genoptr\adddot\ fra
66+translationof|overs\ae ttelse af|overs\adddot\ af
67+translationas|oversat under titlen|overs\adddotspace\ under titlen
68+translationfrom|oversat fra|overs\adddotspace\ fra
69+reviewof|bed\o mmelse af|bed\adddotspace af
70+origpubas|oprindeligt udgivet som|opr\adddot\ udg\adddot\ som
71+origpubin|oprindeligt udgivet i|opr\adddot\ udg\adddot\ i
72+astitle|under titlen|under titlen
73+bypublisher|af|af
74+nodate|uden \aa rstal|u.\aa\adddot
75+page|side|s\adddot
76+pages|sider|s\adddot
77+column|spalte|sp\adddot
78+columns|spalter|sp\adddot
79+line|linje|l\adddot
80+lines|linjer|l\adddot
81+verse|vers|v\adddot
82+verses|vers|v\adddot
83+section|paragraf|par\adddot
84+sections|paragraffer|par\adddot
85+paragraph|afsnit|afsn\adddot
86+paragraphs|afsnit|afsn\adddot
87+pagetotal|side|s\adddot
88+pagetotals|sider|s\adddot
89+columntotal|spalte|sp\adddot
90+columntotals|spalter|sp\adddot
91+line|linje|l\adddot
92+lines|linjer|l\adddot
93+verse|vers|v\adddot
94+verses|vers|v\adddot
95+linetotal|linje|l\adddot
96+linetotals|linje|l\adddot
97+versetotal|vers|v\adddot
98+versetotals|vers|v\adddot
99+sectiontotal|paragraf|par\adddot
100+sectiontotals|paragraffer|par\adddot
101+paragraphtotal|afsnit|afsn\adddot
102+paragraphtotals|afsnit|afsn\adddot
103+in|i|i
104+inseries|i r\ae kken|i rk\adddot
105+ofseries|fra r\ae kken|fra rk\adddot
106+number|nummer|nr\adddot
citeproc/biblatex-localization/dutch.lbx.stringsnew file+23
@@ -0,0 +1,23 @@
1+bibliography|Bibliografie|Bibliografie
2+references|Referenties|Referenties
3+shorthands|Lijst van afkortingen|Afkortingen
4+editor|redacteur|red\adddot
5+editors|redacteurs|red\adddot
6+compiler|samensteller|samenst\adddot
7+compilers|samenstellers|samenst\adddot
8+founder|oprichter|opr\adddot
9+founders|oprichters|opr\adddot
10+continuator|opvolger|opv\adddot
11+continuators|opvolgers|opv\adddot
12+redactor|redacteur|red\adddot
13+redactors|redacteuren|red\adddot
14+reviser|revisor|rev\adddot
15+revisers|revisors|rev\adddot
16+collaborator|medewerker|med\adddot
17+collaborators|medewerkers|med\adddot
18+translator|vertaler|vert\adddot
19+translators|vertalers|vert\adddot
20+commentator|commentator|comm\adddot
21+commentators|commentatoren|comm\adddot
22+annotator|annotator|annot\adddot
23+annotators|annotatoren|annot\adddot
citeproc/biblatex-localization/english.lbx.stringsnew file+254
@@ -0,0 +1,254 @@
1+bibliography|Bibliography|Bibliography
2+references|References|References
3+shorthands|List of Abbreviations|Abbreviations
4+editor|editor|ed\adddot
5+editors|editors|eds\adddot
6+compiler|compiler|comp\adddot
7+compilers|compilers|comp\adddot
8+redactor|redactor|red\adddot
9+redactors|redactors|red\adddot
10+reviser|reviser|rev\adddot
11+revisers|revisers|rev\adddot
12+founder|founder|found\adddot
13+founders|founders|found\adddot
14+continuator|continued|cont\adddot
15+continuators|continued|cont\adddot
16+collaborator|collaborator|collab\adddot
17+collaborators|collaborators|collab\adddot
18+translator|translator|trans\adddot
19+translators|translators|trans\adddot
20+commentator|commentator|comm\adddot
21+commentators|commentators|comm\adddot
22+annotator|annotator|annot\adddot
23+annotators|annotators|annot\adddot
24+commentary|commentary|comm\adddot
25+annotations|annotations|annot\adddot
26+introduction|introduction|intro\adddot
27+foreword|foreword|forew\adddot
28+afterword|afterword|afterw\adddot
29+organizer|organizer|org\adddot
30+organizers|organizers|orgs\adddot
31+byorganizer|organized by|org\adddotspace by
32+byauthor|by|by
33+byeditor|edited by|ed\adddotspace by
34+bycompiler|compiled by|comp\adddotspace by
35+byredactor|redacted by|red\adddotspace by
36+byreviser|revised by|rev\adddotspace by
37+byreviewer|reviewed by|rev\adddotspace by
38+byfounder|founded by|found\adddotspace by
39+bycontinuator|continued by|cont\adddotspace by
40+bycollaborator|in collaboration with|in collab\adddotspace with
41+bytranslator|translated \lbx@lfromlang\ by|trans\adddot\ \lbx@sfromlang\ by
42+bycommentator|commented by|comm\adddot\ by
43+byannotator|annotated by|annot\adddot\ by
44+withcommentator|with a commentary by|with a comment\adddot\ by
45+withannotator|with annotations by|with annots\adddot\ by
46+withintroduction|with an introduction by|with an intro\adddot\ by
47+withforeword|with a foreword by|with a forew\adddot\ by
48+withafterword|with an afterword by|with an afterw\adddot\ by
49+and|and|and
50+andothers|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
51+andmore|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
52+volume|volume|vol\adddot
53+volumes|volumes|vols\adddot
54+involumes|in|in
55+jourvol|volume|vol\adddot
56+jourser|series|ser\adddot
57+book|book|book
58+part|part|part
59+issue|issue|issue
60+newseries|new series|new ser\adddot
61+oldseries|old series|old ser\adddot
62+edition|edition|ed\adddot
63+reprint|reprint|repr\adddot
64+reprintof|reprint of|repr\adddotspace of
65+reprintas|reprinted as|rpt\adddotspace as
66+reprintfrom|reprinted from|repr\adddotspace from
67+reviewof|review of|rev\adddotspace of
68+translationof|translation of|trans\adddotspace of
69+translationas|translated as|trans\adddotspace as
70+translationfrom|translated from|trans\adddotspace from
71+origpubas|originally published as|orig\adddotspace pub\adddotspace as
72+origpubin|originally published in|orig\adddotspace pub\adddotspace in
73+astitle|as|as
74+bypublisher|by|by
75+nodate|no date|n\adddot d\adddot
76+page|page|p\adddot
77+pages|pages|pp\adddot
78+column|column|col\adddot
79+columns|columns|cols\adddot
80+line|line|l\adddot
81+lines|lines|ll\adddot
82+verse|verse|v\adddot
83+verses|verses|vv\adddot
84+section|section|\S
85+sections|sections|\S\S
86+paragraph|paragraph|par\adddot
87+paragraphs|paragraphs|par\adddot
88+pagetotal|page|p\adddot
89+pagetotals|pages|pp\adddot
90+columntotal|column|col\adddot
91+columntotals|columns|cols\adddot
92+linetotal|line|l\adddot
93+linetotals|lines|ll\adddot
94+versetotal|verse|v\adddot
95+versetotals|verses|vv\adddot
96+sectiontotal|section|\S
97+sectiontotals|sections|\S\S
98+paragraphtotal|paragraph|par\adddot
99+paragraphtotals|paragraphs|par\adddot
100+in|in|in
101+inseries|in|in
102+ofseries|of|of
103+number|number|no\adddot
104+chapter|chapter|chap\adddot
105+bathesis|Bachelor's thesis|BA\addabbrvspace thesis
106+mathesis|Master's thesis|MA\addabbrvspace thesis
107+phdthesis|PhD\addabbrvspace thesis|PhD\addabbrvspace thesis
108+candthesis|Candidate thesis|Cand\adddotspace thesis
109+resreport|research report|research rep\adddot
110+techreport|technical report|tech\adddotspace rep\adddot
111+software|computer software|comp\adddotspace software
112+datacd|CD-ROM|CD-ROM
113+audiocd|audio CD|audio CD
114+version|version|version
115+url|address|address
116+urlfrom|available from|available from
117+urlseen|visited on|visited on
118+inpreparation|in preparation|in preparation
119+submitted|submitted|submitted
120+forthcoming|forthcoming|forthcoming
121+inpress|in press|in press
122+prepublished|pre-published|pre-published
123+citedas|henceforth cited as|henceforth cited as
124+thiscite|especially|esp\adddot
125+seenote|see note|see n\adddot
126+quotedin|quoted in|qtd\adddotspace in
127+idem|idem|idem
128+idemsm|idem|idem
129+idemsf|eadem|eadem
130+idemsn|idem|idem
131+idempm|eidem|eidem
132+idempf|eaedem|eaedem
133+idempn|eadem|eadem
134+idempp|eidem|eidem
135+ibidem|ibidem|ibid\adddot
136+opcit|op\adddotspace cit\adddot|op\adddotspace cit\adddot
137+loccit|loc\adddotspace cit\adddot|loc\adddotspace cit\adddot
138+confer|cf\adddot|cf\adddot
139+sequens|sq\adddot|sq\adddot
140+sequentes|sqq\adddot|sqq\adddot
141+passim|passim|pass\adddot
142+see|see|see
143+seealso|see also|see also
144+backrefpage|cited on page|cit\adddotspace on p\adddot
145+backrefpages|cited on pages|cit\adddotspace on pp\adddot
146+january|January|Jan\adddot
147+february|February|Feb\adddot
148+march|March|Mar\adddot
149+april|April|Apr\adddot
150+may|May|May
151+june|June|June
152+july|July|July
153+august|August|Aug\adddot
154+september|September|Sept\adddot
155+october|October|Oct\adddot
156+november|November|Nov\adddot
157+december|December|Dec\adddot
158+langamerican|American|American
159+langbrazilian|Brazilian|Brazilian
160+langbulgarian|Bulgarian|Bulgarian
161+langcatalan|Catalan|Catalan
162+langcroatian|Croatian|Croatian
163+langczech|Czech|Czech
164+langdanish|Danish|Danish
165+langdutch|Dutch|Dutch
166+langenglish|English|English
167+langestonian|Estonian|Estonian
168+langfinnish|Finnish|Finnish
169+langfrench|French|French
170+langgalician|Galician|Galician
171+langgerman|German|German
172+langgreek|Greek|Greek
173+langhungarian|Hungarian|Hungarian
174+langitalian|Italian|Italian
175+langjapanese|Japanese|Japanese
176+langlatin|Latin|Latin
177+langlatvian|Latvian|Latvian
178+langlithuanian|Lithuanian|Lithuanian
179+langnorwegian|Norwegian|Norwegian
180+langpolish|Polish|Polish
181+langportuguese|Portuguese|Portuguese
182+langrussian|Russian|Russian
183+langserbian|Serbian|Serbian
184+langslovak|Slovak|Slovak
185+langslovene|Slovene|Slovene
186+langspanish|Spanish|Spanish
187+langswedish|Swedish|Swedish
188+langturkish|Turkish|Turkish
189+langukrainian|Ukrainian|Ukrainian
190+fromamerican|from the American|from the American
191+frombrazilian|from the Brazilian|from the Brazilian
192+frombulgarian|from the Bulgarian|from the Bulgarian
193+fromcatalan|from the Catalan|from the Catalan
194+fromcroatian|from the Croatian|from the Croatian
195+fromczech|from the Czech|from the Czech
196+fromdanish|from the Danish|from the Danish
197+fromdutch|from the Dutch|from the Dutch
198+fromenglish|from the English|from the English
199+fromestonian|from the Estonian|from the Estonian
200+fromfinnish|from the Finnish|from the Finnish
201+fromfrench|from the French|from the French
202+fromgalician|from the Galician|from the Galician
203+fromgerman|from the German|from the German
204+fromgreek|from the Greek|from the Greek
205+fromhungarian|from the Hungarian|from the Hungarian
206+fromitalian|from the Italian|from the Italian
207+fromjapanese|from the Japanese|from the Japanese
208+fromlatin|from the Latin|from the Latin
209+fromlatvian|from the Latvian|from the Latvian
210+fromlithuanian|from the Lithuanian|from the Lithuanian
211+fromnorwegian|from the Norwegian|from the Norwegian
212+frompolish|from the Polish|from the Polish
213+fromportuguese|from the Portuguese|from the Portuguese
214+fromrussian|from the Russian|from the Russian
215+fromserbian|from the Serbian|from the Serbian
216+fromslovak|from the Slovak|from the Slovak
217+fromslovene|from the Slovene|from the Slovene
218+fromspanish|from the Spanish|from the Spanish
219+fromswedish|from the Swedish|from the Swedish
220+fromturkish|from the Turkish|from the Turkish
221+fromukrainian|from the Ukrainian|from the Ukrainian
222+countryde|Germany|DE
223+countryeu|European Union|EU
224+countryep|European Union|EP
225+countryfr|France|FR
226+countryuk|United Kingdom|GB
227+countryus|United States of America|US
228+patent|patent|pat\adddot
229+patentde|German patent|German pat\adddot
230+patenteu|European patent|European pat\adddot
231+patentfr|French patent|French pat\adddot
232+patentuk|British patent|British pat\adddot
233+patentus|U.S\adddotspace patent|U.S\adddotspace pat\adddot
234+patreq|patent request|pat\adddot\ req\adddot
235+patreqde|German patent request|German pat\adddot\ req\adddot
236+patreqeu|European patent request|European pat\adddot\ req\adddot
237+patreqfr|French patent request|French pat\adddot\ req\adddot
238+patrequk|British patent request|British pat\adddot\ req\adddot
239+patrequs|U.S\adddotspace patent request|U.S\adddotspace pat\adddot\ req\adddot
240+file|file|file
241+library|library|library
242+abstract|abstract|abstract
243+annotation|annotations|annotations
244+commonera|Common Era|CE
245+beforecommonera|Before Common Era|BCE
246+annodomini|Anno Domini|AD
247+beforechrist|Before Christ|BC
248+circa|circa|ca\adddot
249+spring|Spring|Spr\adddot
250+summer|Summer|Sum\adddot
251+autumn|Autumn|Aut\adddot
252+winter|Winter|Win\adddot
253+am|AM|AM
254+pm|PM|PM
citeproc/biblatex-localization/estonian.lbx.stringsnew file+178
@@ -0,0 +1,178 @@
1+bibliography|bibliograafia|bibliograafia
2+references|viited|viited
3+editor|toimetaja|toim\adddot
4+editors|toimetajad|toim\adddot
5+compiler|koostaja|koost\adddot
6+compilers|koostajad|koost\adddot
7+redactor|toimetaja|toim\adddot
8+redactors|toimetajad|toim\adddot
9+reviser|toimetaja|toim\adddot
10+revisers|toimetajad|toim\adddot
11+founder|asutaja|asutaja
12+founders|asutajad|asutajad
13+commentator|kommenteerija|kommenteerija
14+commentators|kommenteerijad|kommenteerijad
15+annotator|kommenteerija|kommenteerija
16+annotators|kommenteerijad|kommenteerijad
17+commentary|kommentaarid|kommentaarid
18+annotations|kommentaarid|kommentaarid
19+introduction|sissejuhatus|sissejuhatus
20+organizer|korraldaja|korraldaja
21+organizers|korraldajad|korraldajad
22+byorganizer|korraldanud|korraldanud
23+byauthor|kirjutanud|kirj\adddot
24+byeditor|toimetanud|toim\adddot
25+bycompiler|koostanud|koost\adddot
26+byredactor|toimetanud|toim\adddot
27+byreviewer|vaadanud|vaadanud
28+byfounder|asutanud|asutanud
29+bycommentator|kommenteerinud|kommenteerinud
30+byannotator|kommenteerinud|kommenteerinud
31+withcommentator|koos kommentaaridega|koos kommentaaridega
32+withannotator|koos kommentaaridega|koos kommentaaridega
33+withintroduction|koos tutvustusega|koos tutvustusega
34+and|ja|ja
35+involumes|osas|osas
36+jourser|seeria|seeria
37+book|raamat|raamat
38+part|osa|osa
39+issue|number|nr\adddot
40+newseries|uus seerias|uus seer\adddot
41+oldseries|vana seeria|vana seer\adddot
42+reviewof|arvustus teosest|arvustus teosest
43+origpubas|algselt avaldatud kui|algselt avaldatud kui
44+origpubin|algselt avaldatud aastal|algselt avaldatud aastal
45+astitle|pealkirjaga|pealkirjaga
46+column|veerg|veerg
47+columns|veerud|veerud
48+line|rida|rida
49+lines|read|read
50+verse|salm|salm
51+verses|salmid|salmid
52+section|jagu|jagu
53+sections|jaod|jaod
54+columntotal|veerge kokku|veerge kokku
55+columntotals|veergusid kokku|veergusid kokku
56+linetotal|ridu kokku|ridu kokku
57+linetotals|ridasid kokku|ridasid kokku
58+versetotal|salmi kokku|salmi kokku
59+versetotals|salmesid kokku|salmesid kokku
60+sectiontotal|jagusid kokku|jagusid kokku
61+sectiontotals|jagusid kokku|jagusid kokku
62+in|teoses|teoses
63+inseries|sarjas|sarjas
64+ofseries|sarjast|sarjast
65+number|number|nr
66+resreport|uuringuraport|uuringuraport
67+techreport|tehniline raport|tehniline raport
68+software|tarkvara|tarkvara
69+datacd|CD-ROM|CD-ROM
70+audiocd|audioplaat|audioplaat
71+version|versioon|versioon
72+url|aadress|aadress
73+urlfrom|saadaval|saadaval
74+urlseen|vaadatud|vaadatud
75+inpreparation|koostamisel|koostamisel
76+submitted|esitatud|esitatud
77+forthcoming|tulevases|tulevases
78+citedas|edaspidi viidatud kui|edaspidi viidatud kui
79+thiscite|eriti|eriti
80+quotedin|noteeritud|noteeritud
81+see|vaata|vt
82+seealso|vaata ka|vt ka
83+backrefpage|viidatud lehel|viidatud lehel
84+january|jaanuar|jaanuar
85+february|veebruar|veebruar
86+april|aprill|aprill
87+may|mai|mai
88+june|juuni|juuni
89+july|juuli|juuli
90+august|august|august
91+september|september|september
92+october|oktoober|oktoober
93+november|november|november
94+december|detsember|detsember
95+langamerican|Ameerika inglise keel|Ameerika inglise keel
96+langbrazilian|brasiilia keel|brasiilia keel
97+langbulgarian|bulgaaria keel|bulgaaria keel
98+langcatalan|katalaani keel|katalaani keel
99+langcroatian|horvaadi keel|horvaadi keel
100+langdanish|taani keel|taani keel
101+langdutch|hollandi keel|hollandi keel
102+langenglish|inglise keel|inglise keel
103+langestonian|eesti keel|eesti keel
104+langfinnish|soome keel|soome keel
105+langfrench|prantsuse keel|prantsuse keel
106+langgalician|galeegi keel|galeegi keel
107+langgerman|saksa keel|saksa keel
108+langgreek|kreeka keel|kreeka keel
109+langhungarian|ungari keel|ungari keel
110+langitalian|itaalia keel|itaalia keel
111+langjapanese|jaapani keel|jaapani keel
112+langlatin|ladina keel|ladina keel
113+langnorwegian|norra keel|norra keel
114+langpolish|poola keel|poola keel
115+langportuguese|portugali keel|portugali keel
116+langrussian|vene keel|vene keel
117+langslovak|slovakia keel|slovakia keel
118+langslovene|sloveeni keel|sloveeni keel
119+langspanish|hispaania keel|hispaania keel
120+langswedish|rootsi keel|rootsi keel
121+langukrainian|ukraina keel|ukraina keel
122+fromamerican|Ameerika inglise keelest|Ameerika inglise keelest
123+frombrazilian|brasiilia keelest|brasiilia keelest
124+frombulgarian|bulgaaria keelest|bulgaaria keelest
125+fromcatalan|katalani keelest|kalatalani keelest
126+fromcroatian|horvaadi keelest|horvaadi keelest
127+fromdanish|taani keelest|taani keelest
128+fromdutch|hollandi keelest|hollandi keelest
129+fromenglish|inglise keelest|inglise keelest
130+fromestonian|eesti keelest|eesti keelest
131+fromfinnish|soome keelest|soome keelest
132+fromfrench|prantsuse keelest|prantsuse keelest
133+fromgalician|galeegi keelest|galeegi keelest
134+fromgerman|saksa keelest|saksa keelest
135+fromgreek|kreeka keelest|kreeka keelest
136+fromhungarian|ungari keelest|ungari keelest
137+fromitalian|itaalia keelest|itaalia keelest
138+fromjapanese|jaapani keelest|jaapani keelest
139+fromlatin|ladina keelest|ladina keelest
140+fromnorwegian|norra keelest|norra keelest
141+fromportuguese|portugali keelest|portugali keelest
142+fromrussian|vene keelest|vene keelest
143+fromslovak|slovakia keelest|slovakia keelest
144+fromslovene|sloveenia keelest|sloveenia keelest
145+fromspanish|hispaania keelest|hispaania keelest
146+fromswedish|rootsi keelest|rootsi keelest
147+fromukrainian|ukraina keelest|ukraina keelest
148+countryde|Saksamaa|DE
149+countryeu|Euroopa Liit|EL
150+countryep|Euroopa Parlament|EP
151+countryfr|Prantsusmaa|FR
152+countryuk|Suurbritannia|GB
153+countryus|Ameerika|US
154+patent|patent|pat\adddot
155+patentde|Saksa patent|Saksa pat\adddot
156+patenteu|Euroopa patent|Euroopa pat\adddot
157+patentfr|Prantsuse patent|Prantsuse pat\adddot
158+patentuk|Briti patent|Briti pat\adddot
159+patentus|U.S\adddotspace patent|U.S\adddotspace pat\adddot
160+patreq|patendi taotlus|pat\adddotspace taotl\adddot
161+patreqde|Saksa patendi taotlus|Saksa pat\adddotspace taotl\adddot
162+patreqeu|Euroopa patendi taotlus|Euroopa pat\adddotspace taotl\adddot
163+patreqfr|Prantsuse patendi taotlus|Prantsuse pat\adddotspace taotl\adddot
164+patrequk|Briti patendi taotlus|Briti pat\adddotspace taotl\adddot
165+patrequs|U.S\adddotspace patendi taotlus.|U.S\adddotspace pat\adddotspace taotl\adddot
166+file|fail|fail
167+library|raamatukogu|raamatukogu
168+abstract|teesid|teesid
169+annotation|kommentaarid|kommentaarid
170+commonera|meie ajaarvamise j\"argi|m\adddot a\adddot j
171+beforecommonera|enne meie ajaarvamist|e\adddot m\adddot a
172+annodomini|p\"arast Kristust|pKr
173+beforechrist|enne Kristust|eKr
174+spring|kevadel|kevadel
175+summer|suvel|suvel
176+winter|talvel|talvel
177+am|AM|AM
178+pm|PM|PM
citeproc/biblatex-localization/finnish.lbx.stringsnew file+254
@@ -0,0 +1,254 @@
1+bibliography|Kirjallisuusluettelo|Kirjallisuus
2+references|Viitteet|Viitteet
3+shorthands|Lyhenteet|Lyhenteet
4+editor|toimittanut|toim\adddot
5+editors|toimittaneet|toim\adddot
6+compiler|koontanut|koontanut
7+compilers|koontaneet|koontaneet
8+redactor|toimittanut|toim\adddot
9+redactors|toimittaneet|toim\adddot
10+reviser|toimittanut|toim\adddot
11+revisers|toimittaneet|toim\adddot
12+founder|perustaja|perustaja
13+founders|perustajat|perustajat
14+continuator|jatkaja|jatkaja
15+continuators|jatkajat|jatkajat
16+collaborator|avustaja|avustaja
17+collaborators|avustajat|avustajat
18+translator|k\"a\"ant\"anyt|k\"a\"ant\adddot
19+translators|k\"a\"ant\"anyt|k\"a\"ant\adddot
20+commentator|kommentaarin kirjoittanut|kommentaarin kirjoittanut
21+commentators|kommentaarin kirjoittaneet|kommentaarin kirjoittaneet
22+annotator|selityksin varustanut|selityksin varustanut
23+annotators|selityksin varustaneet|selityksin varustaneet
24+commentary|kommentaari|kommentaari
25+annotations|selitykset|selitykset
26+introduction|johdanto|johdanto
27+foreword|esipuhe|esipuhe
28+afterword|j\"alkisanat|j\"alkisanat
29+organizer|toimittanut|toim\adddot
30+organizers|toimittaneet|toim\adddot
31+byorganizer|toimittanut|toim\adddot
32+byauthor|kirjoittanut|kirj\adddot
33+byeditor|toimittanut|toim\adddot
34+bycompiler|koontanut|koontanut
35+byredactor|toimittanut|toim\adddot
36+byreviser|toimittanut|toim\adddot
37+byreviewer|toimittanut|toim\adddot
38+byfounder|perustanut|perustanut
39+bycontinuator|jatkanut|jatkanut
40+bycollaborator|yhteisty\"oss\"a|yhteisty\"oss\"a
41+bytranslator|\lbx@lfromlang k\"a\"ant\"anyt|\lbx@sfromlang k\"a\"ant\adddot
42+bycommentator|kommentaarin kirjoittanut|kommentaarin kirjoittanut
43+byannotator|selityksin varustanut|selityksin varustanut
44+withcommentator|kommentaarin kirjoittanut|kommentaarin kirjoittanut
45+withannotator|selityksin varustanut|selityksin varustanut
46+withintroduction|johdannon kirjottanut|johdannon kirjottanut
47+withforeword|esipuheen kirjoittanut|esipuheen kirjoittanut
48+withafterword|j\"alkisanat kirjoittanut|j\"alkisanat kirjoittanut
49+and|ja|ja
50+andothers|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
51+andmore|jne\adddot|jne\adddot
52+volume|volyymi|vol\adddot
53+volumes|volyymit|vol\adddot
54+involumes||
55+jourvol|volyymi|vol\adddot
56+jourser|sarja|sarja
57+book|kirja|kirja
58+part|osa|osa
59+issue|numero|numero
60+newseries|uusi sarja|uusi sarja
61+oldseries|vanha sarja|vanha sarja
62+edition|painos|painos
63+reprint|j\"alkipainos|j\"alkipainos
64+reprintof|julkaistu aiemmin nimell\"a|julkaistu aiemmin nimell\"a
65+reprintas|julkaistu uudelleen nimell\"a|julkaistu uudelleen nimell\"a
66+reprintfrom|julkaistu aiemmin nimell\"a|julkaistu aiemmin nimell\"a
67+translationof|k\"a\"ann\"os teoksesta|k\"a\"ann\"os teoksesta
68+translationas|k\"a\"annetty nimell\"a|k\"a\"annetty nimell\"a
69+translationfrom|k\"a\"annetty kielest\"a|k\"a\"annetty kielest\"a
70+reviewof|arvostelu teoksesta|arvostelu teoksesta
71+origpubas|julkaistu ensi kerran nimell\"a|julkaistu ensi kerran nimell\"a
72+origpubin|julkaistu ensi kerran vuonna|julkaistu ensi kerran vuonna
73+astitle|nimell\"a|nimell\"a
74+bypublisher|julkaissut|julkaissut
75+page|sivu|s\adddot
76+pages|sivut|s\adddot
77+column|palsta|palsta
78+columns|palstat|palstat
79+line|rivi|rivi
80+lines|rivit|rivit
81+nodate|ei julkaisup\"aiv\"a\"a|ei julkaisup\"aiv\"a\"a
82+verse|s\"ae|s\"ae
83+verses|s\"akeet|s\"akeet
84+section|kohta|kohta
85+sections|kohdat|kohdat
86+paragraph|kappale|kappale
87+paragraphs|kappaleet|kappaleet
88+pagetotal|sivu|s\adddot
89+pagetotals|sivut|s\adddot
90+columntotal|palsta|palsta
91+columntotals|palstat|palstat
92+linetotal|rivi|rivi
93+linetotals|rivit|rivit
94+versetotal|s\"ae|s\"ae
95+versetotals|s\"akeet|s\"akeet
96+sectiontotal|kohta|kohta
97+sectiontotals|kohdat|kohdat
98+paragraphtotal|kappale|kappale
99+paragraphtotals|kappaleet|kappaleet
100+in|teoksessa|teoksessa
101+inseries|sarjassa|sarjassa
102+ofseries|sarjassa|sarjassa
103+number|numero|nro
104+chapter|luku|luku
105+bathesis|tutkielma|tutkielma
106+mathesis|tutkielma|tutkielma
107+phdthesis|tohtorinv\"ait\"oskirja|tohtorinv\"ait\"oskirja
108+candthesis|kanditaatintutkielma|kanditaatintutkielma
109+resreport|tutkimusraportti|tutkimusraportti
110+techreport|tekninen raportti|tekninen raportti
111+software|ohjelmisto|ohjelmisto
112+datacd|data-CD|data-CD
113+audiocd|\"a\"ani-CD|\"a\"ani-CD
114+version|versio|versio
115+url|url|url
116+urlfrom|saatavilla osoitteesta|saatavilla osoitteesta
117+urlseen|viitattu|viitattu
118+inpreparation|valmisteilla|valmisteilla
119+submitted|l\"ahetetty|l\"ahetetty
120+forthcoming|hyv\"aksytty julkaistavaksi|hyv\"aksytty julkaistavaksi
121+inpress|painossa|painossa
122+prepublished|esijulkaistu|esijulkaistu
123+citedas|jatkossa|jatkossa
124+thiscite|sama|sama
125+seenote|katso viite|katso viite
126+quotedin|lainattu teoksessa|lainattu teoksessa
127+idem|idem|id\adddot
128+idemsf|idem|id\adddot
129+idemsm|idem|id\adddot
130+idemsn|idem|id\adddot
131+idempf|idem|id\adddot
132+idempm|idem|id\adddot
133+idempn|idem|id\adddot
134+idempp|idem|id\adddot
135+ibidem|ibidem|ibid\adddot
136+opcit|op\adddotspace cit\adddot|op\adddotspace cit\adddot
137+loccit|loc\adddotspace cit\adddot|loc\adddotspace cit\adddot
138+confer|cf\adddot|cf\adddot
139+sequens|sq\adddot|sq\adddot
140+sequentes|sqq\adddot|sqq\adddot
141+passim|passim|pass\adddot
142+see|katso|ks\adddot
143+seealso|katso my\"os|katso my\"os
144+backrefpage|katso sivu|ks\adddotspace s\adddot
145+backrefpages|katso sivut|ks\adddotspace s\adddot
146+january|tammikuuta|tammikuuta
147+february|helmikuuta|helmikuuta
148+march|maaliskuuta|maaliskuuta
149+april|huhtikuuta|huhtikuuta
150+may|toukokuuta|toukokuuta
151+june|kes\"akuuta|kes\"akuuta
152+july|hein\"akuuta|hein\"akuuta
153+august|elokuuta|elokuuta
154+september|syyskuuta|syyskuuta
155+october|lokakuuta|lokakuuta
156+november|marraskuuta|marraskuuta
157+december|joulukuuta|joulukuuta
158+basicjanuary|tammikuu|tammikuu
159+basicfebruary|helmikuu|helmikuu
160+basicmarch|maaliskuu|maaliskuu
161+basicapril|huhtikuu|huhtikuu
162+basicmay|toukokuu|toukokuu
163+basicjune|kes\"akuu|kes\"akuu
164+basicjuly|hein\"akuu|hein\"akuu
165+basicaugust|elokuu|elokuu
166+basicseptember|syyskuu|syyskuu
167+basicoctober|lokakuu|lokakuu
168+basicnovember|marraskuu|marraskuu
169+basicdecember|joulukuu|joulukuu
170+langamerican|amerikanenglanti|amerikanenglanti
171+langbrazilian|brasilianportugali|brasilianportugali
172+langbulgarian|bulgaria|bulgaria
173+langcatalan|katalonia|katalonia
174+langcroatian|kroatia|kroatia
175+langdanish|tanska|tanska
176+langdutch|hollanti|hollanti
177+langenglish|englanti|englanti
178+langestonian|viro|viro
179+langfinnish|suomi|suomi
180+langfrench|ranska|ranska
181+langgalician|galicia|galicia
182+langgerman|saksa|saksa
183+langgreek|kreikka|kreikka
184+langhungarian|unkari|unkari
185+langitalian|italia|italia
186+langlatin|latina|latina
187+langlatvian|latvia|latvia
188+langnorwegian|norja|norja
189+langpolish|puola|puola
190+langportuguese|portugali|portugali
191+langrussian|ven\"aj\"a|ven\"aj\"a
192+langslovak|slovakia|slovakia
193+langslovene|slovenia|slovenia
194+langspanish|espanja|espanja
195+langswedish|ruotsi|ruotsi
196+fromamerican|englannin kielest\"a|englannin kielest\"a
197+frombrazilian|portugalin kielest\"a|portugalin kielest\"a
198+frombulgarian|bulgarian kielest\"a|bulgarian kielest\"a
199+fromcatalan|katalonian kielest\"a|katalonian kielest\"a
200+fromcroatian|kroatian kielest\"a|kroatian kielest\"a
201+fromdanish|tanskan kielest\"a|tanskan kielest\"a
202+fromdutch|hollannin kielest\"a|hollannin kielest\"a
203+fromenglish|englannin kielest\"a|englannin kielest\"a
204+fromestonian|viron kielest\"a|viron kielest\"a
205+fromfinnish|suomen kielest\"a|suomen kielest\"a
206+fromfrench|ranskan kielest\"a|ranskan kielest\"a
207+fromgalician|galician kielest\"a|galician kielest\"a
208+fromgerman|saksan kielest\"a|saksan kielest\"a
209+fromgreek|kreikan kielest\"a|kreikan kielest\"a
210+fromhungarian|unkarin kielest\"a|unkarin kielest\"a
211+fromitalian|italian kielest\"a|italian kielest\"a
212+fromlatin|latinan kielest\"a|latinan kielest\"a
213+fromlatvian|latvian kielest\"a|latvian kielest\"a
214+fromnorwegian|norjan kielest\"a|norjan kielest\"a
215+frompolish|puolan kielest\"a|puolan kielest\"a
216+fromportuguese|portugalin kielest\"a|portugalin kielest\"a
217+fromrussian|ven\"aj\"an kielest\"a|ven\"aj\"an kielest\"a
218+fromslovak|slovakian kielest\"a|slovakian kielest\"a
219+fromslovene|slovenian kielest\"a|slovenian kielest\"a
220+fromspanish|espanjan kielest\"a|espanjan kielest\"a
221+fromswedish|ruotsin kielest\"a|ruotsin kielest\"a
222+countryde|Saksa|DE
223+countryeu|Euroopan Unioni|EU
224+countryep|Euroopan Unioni|EP
225+countryfr|Ranska|FR
226+countryuk|Iso-Britannia|GB
227+countryus|Yhdysvallat|US
228+patent|patentti|pat\adddot
229+patentde|saksalainen patentti|saksalainen pat\adddot
230+patenteu|Euroopan Unionin patentti|Euroopan Unionin pat\adddot
231+patentfr|ranskalainen patentti|ranskalainen pat\adddot
232+patentuk|isobritannialainen patentti|isobritannialainen pat\adddot
233+patentus|yhdysvaltalainen patentti|yhdysvaltalainen pat\adddot
234+patreq|patenttihakemus|pat\adddot\ hak\adddot
235+patreqde|saksalainen patenttihakemus|saksalainen pat\adddot\ hak\adddot
236+patreqeu|Euroopan Unionin patenttihakemus|Euroopan Unionin pat\adddot\ hak\adddot
237+patreqfr|ranskalainen patenttihakemus|ranskalainen pat\adddot\ hak\adddot
238+patrequk|isobritannialainen patenttihakemus|isobritannialainen pat\adddot\ hak\adddot
239+patrequs|yhdysvaltalainen patenttihakemus|yhdysvaltalainen pat\adddot\ hak\adddot
240+file|tiedosto|tiedosto
241+library|kirjasto|kirjasto
242+abstract|tiivistelm\"a|tiivistelm\"a
243+annotation|selitykset|selitykset
244+commonera|j\"alkeen ajanlaskun alun|jaa\adddot
245+beforecommonera|ennen ajanlaskun alkua|eaa\adddot
246+annodomini|j\"alkeen Kristuksen syntym\"an|jKr\adddot
247+beforechrist|ennen Kristuksen syntym\"a\"a|eKr\adddot
248+circa|noin|n\adddot
249+spring|kev\"at|kev\"at
250+summer|kes\"a|kes\"a
251+autumn|syksy|syksy
252+winter|talvi|talvi
253+am|ap\adddot|ip\adddot
254+pm|ip\adddot|ip\adddot
citeproc/biblatex-localization/french.lbx.stringsnew file+245
@@ -0,0 +1,245 @@
1+bibliography|Bibliographie|Bibliographie
2+references|R\'ef\'erences|R\'ef\'erences
3+shorthands|Liste des abr\'eviations|Abr\'eviations
4+editor|\'editeur|\'ed\adddot
5+editors|\'editeurs|\'ed\adddot
6+compiler|compilateur|comp\adddot
7+compilers|compilateurs|comp\adddot
8+redactor|r\'edacteur|r\'ed\adddot
9+redactors|r\'edacteurs|r\'ed\adddot
10+reviser|r\'eviseur|r\'ev\adddot
11+revisers|r\'eviseurs|r\'ev\adddot
12+founder|fondateur|fond\adddot
13+founders|fondateurs|fond\adddot
14+continuator|continuateur|cont\adddot
15+continuators|continuateurs|cont\adddot
16+collaborator|collaborateur|coll\adddot
17+collaborators|collaborateurs|coll\adddot
18+translator|traducteur|trad\adddot
19+translators|traducteurs|trad\adddot
20+commentator|commentateur|comm\adddot
21+commentators|commentateurs|comm\adddot
22+annotator|annotateur|annot\adddot
23+annotators|annotateurs|annot\adddot
24+commentary|commentaires|comment\adddot
25+annotations|annotations|annot\adddot
26+introduction|introduction|introd\adddot
27+foreword|pr\'eface|pr\'ef\adddot
28+afterword|postface|postf\adddot
29+editortr|\'editeur et traducteur|\'ed\adddotspace et trad\adddot
30+editorstr|\'editeurs et traducteurs|\'ed\adddotspace et trad\adddot
31+organizer|organisateur|org\adddot
32+organizers|organisateurs|org\adddot
33+byorganizer|organis\'e par|org\adddotspace par
34+byauthor|par|par
35+byeditor|sous la direction \smartof|sous la dir\adddotspace\smartof
36+bycompiler|compil\'e par|comp\adddotspace par
37+byredactor|r\'edig\'e par|r\'ed\adddotspace par
38+byreviser|r\'evis\'e par|r\'ev\adddotspace par
39+byreviewer|examin\'e par|ex\adddotspace par
40+byfounder|d\'ecouvert par|d\'ecouv\adddotspace par
41+bycontinuator|continu\'e par|cont\adddotspace par
42+bytranslator|traduit \lbx@lfromlang\ par|trad\adddotspace \lbx@sfromlang\ par
43+bycommentator|comment\'e par|comm\adddotspace par
44+byannotator|annot\'e par|annot\adddotspace par
45+withcommentator|avec des commentaires \smartof|avec des comment\adddotspace\smartof
46+withannotator|avec des annotations \smartof|avec des annot\adddotspace\smartof
47+withintroduction|avec une introduction \smartof|avec une introd\adddotspace\smartof
48+withforeword|avec une pr\'eface \smartof|avec une pr\'ef\adddotspace\smartof
49+withafterword|avec une postface \smartof|avec une postf\adddotspace\smartof
50+and|et|et
51+andothers|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
52+andmore|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
53+volume|tome|t\adddot
54+volumes|tomes|t\adddot
55+involumes|en|en
56+jourvol|tome|t\adddot
57+jourser|s\'erie|s\'er\adddot
58+book|livre|livre
59+part|partie|partie
60+issue|\'edition|\'ed\adddot
61+newseries|nouvelle s\'erie|nouv\adddotspace s\'er\adddot
62+oldseries|ancienne s\'erie|anc\adddotspace s\'er\adddot
63+edition|\'edition|\'ed\adddot
64+reprint|r\'eimpression|r\'eimpr\adddot
65+reprintof|r\'eimpression de|r\'eimpr\adddotspace de
66+reprintas|r\'eimpression sous le titre|r\'eimpr\adddotspace sous le titre
67+reprintfrom|r\'eimpression \`a partir \smartof|r\'eimpr\adddotspace \`a part\adddotspace\smartof
68+translationof|traduction de|trad\adddotspace de
69+translationas|traduit sous le titre|trad\adddotspace sous le titre
70+translationfrom|traduit de|trad\adddotspace de
71+reviewof|critique de|crit.\adddotspace de
72+origpubas|publi\'e \`a l'origine sous le titre|pub\adddotspace \`a l'orig\adddotspace sous le titre
73+origpubin|publi\'e \`a l'origine en|pub\adddotspace \`a l'orig\adddotspace en
74+astitle|sous le titre|sous le titre
75+bypublisher|par|par
76+page|page|p\adddot
77+pages|pages|p\adddot
78+column|colonne|col\adddot
79+columns|colonnes|col\adddot
80+line|ligne|l\adddot
81+lines|lignes|l\adddot
82+verse|vers|v\adddot
83+verses|vers|v\adddot
84+section|section|sect\adddot
85+sections|sections|sect\adddot
86+paragraph|paragraphe|\S
87+paragraphs|paragraphes|\S
88+pagetotal|page|p\adddot
89+pagetotals|pages|p\adddot
90+columntotal|colonne|col\adddot
91+columntotals|colonnes|col\adddot
92+linetotal|ligne|l\adddot
93+linetotals|lignes|l\adddot
94+versetotal|vers|v\adddot
95+versetotals|vers|v\adddot
96+sectiontotal|section|sect\adddot
97+sectiontotals|sections|sect\adddot
98+paragraphtotal|paragraphe|\S
99+paragraphtotals|paragraphes|\S
100+in|in|in
101+inseries|in|in
102+ofseries|de|de
103+number|num\'ero|n\textsuperscript{o
104+chapter|chapitre|chap\adddot
105+bathesis|m\'emoire de bachelor|m\'em\adddotspace de bach\adddot
106+mathesis|m\'emoire de master|m\'em\adddotspace de mast\adddot
107+phdthesis|th\`ese de doctorat|th\`ese de doct\adddot
108+candthesis|th\`ese de candidature|th\`ese de cand\adddot
109+resreport|rapport scientifique|rapp\adddotspace scient\adddot
110+techreport|rapport technique|rapp\adddotspace tech\adddot
111+software|logiciel|logiciel
112+datacd|c\'ed\'erom|c\'ed\'erom
113+audiocd|disque compact audio|CD
114+version|version|version
115+url|adresse|adresse
116+urlfrom|disponible \`a l'adresse|disp\adddotspace \`a l'adr\adddot
117+urlseen|visit\'e le|visit\'e le
118+inpreparation|en pr\'eparation|en pr\'ep\adddot
119+submitted|soumis|soumis
120+inpress|sous presse|sous presse
121+prepublished|pr\'epubli\'e|pr\'epubl\adddot
122+citedas|d\'esign\'e ci-apr\`es par|ci-apr\`es
123+thiscite|sp\'ecialement|sp\'ec\adddot
124+seenote|voir note|cf\adddotspace note
125+quotedin|cit\'e dans|cit\'e dans
126+idem|idem|idem
127+idemsm|idem|idem
128+idemsf|eadem|eadem
129+idemsn|idem|idem
130+idempm|eidem|eidem
131+idempf|eaedem|eaedem
132+idempn|eadem|eadem
133+idempp|eidem|eidem
134+ibidem|ibidem|ibid\adddot
135+opcit|op\adddotspace cit\adddot|op\adddotspace cit\adddot
136+loccit|loc\adddotspace cit\adddot|loc\adddotspace cit\adddot
137+confer|cf\adddot|cf\adddot
138+sequens|sq\adddot|sq\adddot
139+sequentes|sqq\adddot|sqq\adddot
140+passim|passim|pass\adddot
141+see|cf\adddot|cf\adddot
142+seealso|cf\adddotspace aussi|cf\adddotspace aussi
143+backrefpage|cf\adddotspace page|cf\adddotspace p\adddot
144+backrefpages|cf\adddotspace pages|cf\adddotspace p\adddot
145+january|janvier|jan\adddot
146+february|f\'evrier|f\'ev\adddot
147+march|mars|mars
148+april|avril|avr\adddot
149+may|mai|mai
150+june|juin|juin
151+july|juillet|juill\adddot
152+august|ao\^ut|ao\^ut
153+september|septembre|sept\adddot
154+october|octobre|oct\adddot
155+november|novembre|nov\adddot
156+december|d\'ecembre|d\'ec\adddot
157+langamerican|am\'ericain|am\'ericain
158+langbrazilian|br\'esilien|br\'esilien
159+langbulgarian|bulgare|bulgare
160+langcatalan|catalan|catalan
161+langcroatian|croate|croate
162+langczech|tch\`eque|tch\`eque
163+langdanish|danois|danois
164+langdutch|n\'eerlandais|n\'eerlandais
165+langenglish|anglais|anglais
166+langestonian|estonien|estonien
167+langfinnish|finnois|finnois
168+langgalician|galicien|galicien
169+langgerman|allemand|allemand
170+langgreek|grec|grec
171+langhungarian|hongrois|hongrois
172+langitalian|italien|italien
173+langjapanese|japonais|japonais
174+langlatin|latin|latin
175+langlatvian|letton|letton
176+langnorwegian|norv\'egien|norv\'egien
177+langpolish|polonais|polonais
178+langportuguese|portugais|portugais
179+langrussian|russe|russe
180+langserbian|serbe|serbe
181+langslovak|slovaque|slovaque
182+langslovene|slov\`ene|slov\`ene
183+langspanish|espagnol|espagnol
184+langswedish|su\'edois|su\'edois
185+langukrainian|ukrainien|ukrainien
186+fromamerican|de l'am\'ericain|de l'am\'ericain
187+frombrazilian|du br\'esilien|du br\'esilien
188+frombulgarian|du bulgare|du bulgare
189+fromcatalan|du catalan|du catalan
190+fromcroatian|du croate|du croate
191+fromczech|du tch\`eque|du tch\`eque
192+fromdanish|du danois|du danois
193+fromdutch|du n\'eerlandais|du n\'eerlandais
194+fromenglish|de l'anglais|de l'anglais
195+fromestonian|de l'estonien|de l'estonien
196+fromfinnish|du finnois|du finnois
197+fromgalician|du galicien|du galicien
198+fromgerman|de l'allemand|de l'allemand
199+fromgreek|du grec|du grec
200+fromhungarian|du hongrois|du hongrois
201+fromitalian|de l'italien|de l'italien
202+fromjapanese|du japonais|du japonais
203+fromlatin|du latin|du latin
204+fromlatvian|du letton|du letton
205+fromnorwegian|du norv\'egien|du norv\'egien
206+frompolish|du polonais|du polonais
207+fromportuguese|du portugais|du portugais
208+fromrussian|du russe|du russe
209+fromserbian|du serbe|du serbe
210+fromslovak|du slovaque|du slovaque
211+fromslovene|du slov\`ene|du slov\`ene
212+fromspanish|de l'espagnol|de l'espagnol
213+fromswedish|du su\'edois|du su\'edois
214+fromukrainian|de l'ukrainien|de l'ukrainien
215+countryde|Allemagne|DE
216+countryeu|Union europ\'eenne|EU
217+countryep|Union europ\'eenne|EP
218+countryfr|France|FR
219+countryuk|Royaume-Uni|GB
220+countryus|\'Etats-Unis|US
221+patent|brevet|brev\adddot
222+patentde|brevet allemand|brev\adddotspace allem\adddot
223+patenteu|brevet europ\'een|brev\adddotspace europ\adddot
224+patentuk|brevet britannique|brev\adddotspace brit\adddot
225+patentus|brevet am\'ericain|brev\adddotspace am\'er\adddot
226+patreq|demande de brevet|demande de brev\adddot
227+patreqde|demande de brevet allemand|demande de brev\adddotspace allem\adddot
228+patreqeu|demande de brevet europ\'een|demande de brev\adddotspace europ\adddot
229+patrequk|demande de brevet britannique|demande de brev\adddotspace brit\adddot
230+patrequs|demande de brevet am\'ericain|demande de brev\adddotspace am\'er\adddot
231+file|fichier|fichier
232+library|biblioth\`eque|biblioth\adddot
233+abstract|r\'esum\'e|r\'es\adddot
234+annotation|annotations|annotations
235+commonera|de l'\`ere commune|EC
236+beforecommonera|avant l'\`ere commune|AEC
237+annodomini|apr\`es J\'esus-Christ|apr\adddotspace J\adddot-C\adddot
238+beforechrist|avant J\'esus-Christ|av\adddotspace J\adddot-C\adddot
239+circa|vers|vers
240+spring|printemps|printemps
241+summer|\'et\'e|\'et\'e
242+autumn|automne|automne
243+winter|hiver|hiver
244+am|AM|AM
245+pm|PM|PM
citeproc/biblatex-localization/galician.lbx.stringsnew file+28
@@ -0,0 +1,28 @@
1+bibliography|Bibliograf\'ia|Bibliograf\'ia
2+references|Referencias|Referencias
3+shorthands|Lista de abreviaturas|Abreviaturas
4+editor|editor|ed\adddot
5+editors|editores|eds\adddot
6+compiler|compilador|comp\adddot
7+compilers|compiladores|comp\adddot
8+redactor|redactor|red\adddot
9+redactors|redactores|red\adddot
10+reviser|revisor|rev\adddot
11+revisers|revisores|revs\adddot
12+founder|fundador|fund\adddot
13+founders|fundadores|fund\adddot
14+continuator|continuador|cont\adddot
15+continuators|continuadores|cont\adddot
16+collaborator|colaborador|col\adddot
17+collaborators|colaboradores|cols\adddot
18+translator|tradutor|trad\adddot
19+translators|tradutores|trads\adddot
20+commentator|comentador|coment\adddot
21+commentators|comentadores|coments\adddot
22+annotator|anotador|anot\adddot
23+annotators|anotadores|anots\adddot
24+commentary|comentario|coment\adddot
25+annotations|notas|notas
26+introduction|introduci\'on|introd\adddot
27+foreword|prefacio|pref\adddot
28+afterword|posfacio|posf\adddot
citeproc/biblatex-localization/german.lbx.stringsnew file+28
@@ -0,0 +1,28 @@
1+bibliography|Literaturverzeichnis|Literatur
2+references|Literaturverzeichnis|Literatur
3+shorthands|Sigelverzeichnis|Sigel
4+editor|Herausgeber|Hrsg\adddot
5+editors|Herausgeber|Hrsg\adddot
6+compiler|Kompilator|Komp\adddot
7+compilers|Kompilatoren|Komp\adddot
8+redactor|Bearbeiter|Bearb\adddot
9+redactors|Bearbeiter|Bearb\adddot
10+reviser|\"Uberarbeiter|\"Uberarb\adddot
11+revisers|\"Uberarbeiter|\"Uberarb\adddot
12+founder|Begr\"under|Begr\adddot
13+founders|Begr\"under|Begr\adddot
14+continuator|Fortf\"uhrer|Fortf\adddot
15+continuators|Fortf\"uhrer|Fortf\adddot
16+collaborator|Mitarbeiter|Mitarb\adddot
17+collaborators|Mitarbeiter|Mitarb\adddot
18+translator|\"Ubersetzer|\"Ubers\adddot
19+translators|\"Ubersetzer|\"Ubers\adddot
20+commentator|Kommentator|Komm\adddot
21+commentators|Kommentatoren|Komm\adddot
22+annotator|Kommentator|Komm\adddot
23+annotators|Kommentatoren|Komm\adddot
24+commentary|Kommentar|Komm\adddot
25+annotations|Erl\"auterungen|Erl\"aut\adddot
26+introduction|Einleitung|Einl\adddot
27+foreword|Vorwort|Vorw\adddot
28+afterword|Nachwort|Nachw\adddot
citeproc/biblatex-localization/greek.lbx.stringsnew file+9
@@ -0,0 +1,9 @@
1+bibliography|Βιβλιογραφία|Βιβλιογραφία
2+references|Αναφορές|Αναφορές
3+shorthands|Κατάλογος συντμήσεων|Συντμήσεις
4+editor|επιμελητής|επιμελητής
5+editors|επιμελητές|επιμελητές
6+compiler|συντάκτης|συντάκτης
7+compilers|συντάκτες|συντάκτες
8+redactor|συντάκτης|συντάκτης
9+redactors|συντάκτες|συντάκτες
citeproc/biblatex-localization/hungarian.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/icelandic.lbx.stringsnew file+7
@@ -0,0 +1,7 @@
1+bibliography|Heimildaskr\'a|Heimildaskr\'a
2+references|Heimildir|Heimildir
3+shorthands|Listi yfir skammstafanir|Skammstafanir
4+editor|ristj\'ori|ritstj\adddot
5+editors|ritstj\'orar|ritstj\adddot
6+compiler|samantekt|samantekt
7+compilers|samantekt|samantekt
citeproc/biblatex-localization/italian.lbx.stringsnew file+9
@@ -0,0 +1,9 @@
1+bibliography|Bibliografia|Bibliografia
2+references|Riferimenti bibliografici|Riferimenti bibliografici
3+shorthands|Elenco delle sigle|Sigle
4+editor|curatore|cur\adddot
5+editors|curatori|cur\adddot
6+compiler|compilatore|comp\adddot
7+compilers|compilatori|comp\adddot
8+redactor|redattore|red\adddot
9+redactors|redattori|red\adddot
citeproc/biblatex-localization/latvian.lbx.stringsnew file+75
@@ -0,0 +1,75 @@
1+redactor|redaktors|redakt\adddot
2+redactors|redaktori|radakt\adddot
3+reviser|revidents|revid\adddot
4+revisers|revidenti|revid\adddot
5+introduction|ievads|ievads
6+byeditor|izdevis|izdevis
7+bytranslator|tulkojis|tulk\adddot
8+withintroduction|ar ievadu no|ar ievadu no
9+byeditortr|izdevis un tulkojis|izdev\adddotspace un tulk\adddot
10+and|un|un
11+andothers|un citi|u\adddotspace c\adddot
12+jourvol|izdevums|izdev\adddot
13+issue|izdevums|izdev\adddot
14+edition|izdevums|izdev\adddot
15+translationof|tulkojums no|tulk\adddotspace no
16+translationfrom|tulkots no|tulk\adddotspace no
17+reviewof|recenzija|recenz\adddot
18+bypublisher|no|no
19+nodate|bez datuma|bez dat\adddot
20+page|lappuse|lpp\adddot
21+pages|lappuses|lpp\adddot
22+column|sleja|sleja
23+columns|slejas|slejas
24+line|rinda|rinda
25+lines|rindas|rindas
26+verse|pants|pants
27+verses|panti|panti
28+paragraph|rindkopa|rindk\adddot
29+paragraphs|rindkopas|rindk\adddot
30+pagetotal|lappuse|lpp\adddot
31+pagetotals|lappuses|lpp\adddot
32+columntotal|sleja|sleja
33+columntotals|slejas|slejas
34+linetotal|rinda|rinda
35+linetotals|rindas|rindas
36+versetotal|pants|pants
37+versetotals|panti|panti
38+paragraphtotal|rindkopa|rindk\adddot
39+paragraphtotals|rindkopas|rindk\adddot
40+in||
41+number|numurs|nr\adddot
42+datacd|datu CD|datu CD
43+audiocd|audio CD|audio CD
44+version|versija|versija
45+url|pieejams|pieejams
46+urlfrom|pieejams no|pieejams no
47+inpreparation|tiek gatavots|tiek gatavots
48+submitted|iesniegts|iesniegts
49+march|marts|marts
50+may|maijs|maijs
51+august|augusts|aug\adddot
52+september|septembris|sept\adddot
53+october|oktobris|okt\adddot
54+november|novembris|nov\adddot
55+december|decembris|dec\adddot
56+langfinnish|somu|somu
57+langrussian|krievu|krievu
58+langswedish|zviedru|zviedru
59+fromfinnish|no somu|no somu
60+fromrussian|no krievu|no krievu
61+fromswedish|no zviedru|no zviedru
62+countryep|Eiropas Parlaments|EP
63+countryfr|Francija|FR
64+patent|patents|patents
65+patenteu|Eiropas patents|Eiropas pat\adddot
66+patentus|ASV patents|ASV pat\adddot
67+file|fails|fails
68+circa|ap|ap
69+spring|pavasaris|pav\adddot
70+summer|vasara|vas\adddot
71+autumn|rudens|rud\adddot
72+winter|ziema|ziema
73+am|AM|AM
74+pm|PM|PM
75+dateyear|gada|g\adddot
citeproc/biblatex-localization/lithuanian.lbx.stringsnew file+31
@@ -0,0 +1,31 @@
1+bibliography|Bibliografija|Bibliografija
2+references|Literatūros sąrašas|Literatūra
3+shorthands|Santrumpų sąrašas|Santrumpos
4+editor|sudarytojas|sud\adddot
5+editors|sudarytojai|sud\adddot
6+compiler|parengėjas|pareng\adddot
7+compilers|parengėjai|pareng\adddot
8+redactor|redaktorius|red\adddot
9+redactors|redaktoriai|red\adddot
10+reviser|korektorius|kor\adddot
11+revisers|korektoriai|kor\adddot
12+founder|pradininkas|prad\adddot
13+founders|pradininkai|prad\adddot
14+continuator|tęsėjas|tęs\adddot
15+continuators|tęsėjai|tęs\adddot
16+collaborator|bendradarbis|bendr\adddot
17+collaborators|bendradarbiai|bendr\adddot
18+translator|vertėjas|vert\adddot
19+translators|vertėjai|vert\adddot
20+commentator|komentarų autorius|koment\adddotspace aut\adddot
21+commentators|komentarų autoriai|koment\adddotspace aut\adddot
22+annotator|paaiškinimų autorius|paaišk\adddotspace aut\adddot
23+annotators|paaiškinimų autoriai|paaišk\adddotspace aut\adddot
24+commentary|komentarai|koment\adddot
25+annotations|paaiškinimai|paaišk\adddot
26+introduction|įvadas|įv\adddot
27+foreword|pratarmė|prat\adddot
28+afterword|pabaigos žodis|pab\adddotspace žodis
29+organizer|organizatorius|org\adddot
30+organizers|organizatoriai|org\adddot
31+byorganizer|organizavo|org\adddot
citeproc/biblatex-localization/magyar.lbx.stringsnew file+29
@@ -0,0 +1,29 @@
1+bibliography|Irodalomjegyz\'ek|Irodalom
2+references|Hivatkoz\'asok|Hivatkoz\'asok
3+shorthands|R\"ovid\'it\'esek jegyz\'eke|R\"ovid\'it\'esek
4+compiler|\"ossze\'all\'it\'o|\"ossze\'all\adddot
5+compilers|\"ossze\'all\'it\'ok|\"ossze\'all\adddot
6+reviser|korrektor|korr\adddot
7+revisers|korrektorok|korr\adddot
8+founder|alap\'it\'o|alap\adddot
9+founders|alap\'it\'ok|alap\adddot
10+%continuator||
11+%continuators||
12+translator|ford\'it\'o|ford\adddot
13+translators|ford\'it\'ok|ford\adddot
14+commentator|komment\'ator|komm\adddot
15+commentators|komment\'atorok|komm\adddot
16+annotator|jegyzetek \'ir\'oja|jegyz\adddot
17+annotators|jegyzetek \'ir\'oi|jegyz\adddot
18+commentary|komment\'ar|komm\adddot
19+annotations|jegyzetek|jegyz\adddot
20+introduction|bevezet\'es|bev\adddot
21+afterword|ut\'osz\'o|ut\'osz\'o
22+byorganizer|szervezte|szerv\adddot
23+byauthor|\'irta|\'irta
24+byeditor|szerkesztette|szerk\adddot
25+bycompiler|\"ossze\'all\'itotta|\"ossze\'all\adddot
26+byredactor|sajt\'o al\'a rendezte|kiad\adddot
27+byreviser|jav\'itotta|jav\adddot
28+byreviewer|b\'ir\'alta|b\'ir\adddot
29+byfounder|alap\'itotta|alap\adddot
citeproc/biblatex-localization/naustrian.lbx.stringsnew file+2
@@ -0,0 +1,2 @@
1+citedas|im Folgenden zitiert als|im Folgenden zit\adddotspace als
2+january|J\"anner|J\"an\adddot
citeproc/biblatex-localization/newzealand.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/ngerman.lbx.stringsnew file+1
@@ -0,0 +1 @@
1+citedas|im Folgenden zitiert als|im Folgenden zit\adddotspace als
citeproc/biblatex-localization/norsk.lbx.stringsnew file+98
@@ -0,0 +1,98 @@
1+bibliography|Bibliografi|Bibliografi
2+references|Referanser|Referanser
3+shorthands|Forkortelser|Forkortelser
4+compiler|kompilator|komp\adddot
5+compilers|kompilatorer|komp\adddot
6+redactor|bearbeidelse|bearb\adddot
7+redactors|bearbeidelse|bearb\adddot
8+reviser|revisjon|rev\adddot
9+revisers|revisjon|rev\adddot
10+founder|grunnlegger|grunnl\adddot
11+founders|grunnleggere|grunnl\adddot
12+collaborator|samarbeid|samarb\adddot
13+collaborators|samarbeid|samarb\adddot
14+translator|oversetter|overs\adddot
15+translators|oversettere|overs\adddot
16+commentator|kommentarer|komm\adddot
17+commentators|kommentarer|komm\adddot
18+annotator|forklaringer|forkl\adddot
19+annotators|forklaringer|forkl\adddot
20+commentary|kommentarer|komm\adddot
21+annotations|forklaringer|forkl\adddot
22+introduction|innledning|innl\adddot
23+foreword|forord|forord
24+afterword|etterord|etterord
25+organizer|organisator|org\adddot
26+organizers|organisatorer|org\adddot
27+byorganizer|organisert av|org\adddotspace av
28+byauthor|av|av
29+byeditor|redigert av|red\adddotspace av
30+bycompiler|kompilert av|komp\adddotspace av
31+byredactor|bearbeidet av|bearb\adddotspace av
32+byreviser|revidert av|rev\adddotspace av
33+byreviewer|kritikk ved|krit\adddotspace ved
34+byfounder|grunnlagt av|grunnl\adddotspace av
35+bycollaborator|i samarbeid med|i samarb\adddotspace med
36+bytranslator|oversatt \lbx@lfromlang\ av|overs\adddot\ \lbx@sfromlang\ av
37+bycommentator|kommentert av|komm\adddot\ av
38+byannotator|forklart av|forkl\adddot\ av
39+withcommentator|med kommentarer av|med komm\adddot\ av
40+withannotator|med forklaringer av|med forkl\adddot\ av
41+withintroduction|med innledning av|med innl\adddot\ av
42+withforeword|med forord av|med forord av
43+withafterword|med etterord av|med etterord av
44+and|og|og
45+andothers|med flere|mfl\adddot
46+andmore|med mer|m.m\adddot
47+volume|bind|bd\adddot
48+volumes|bind|bd\adddot
49+involumes|i|i
50+jourser|serie|ser\adddot
51+book|bok|bok
52+part|del|del
53+issue|nummer|nr\adddot
54+newseries|ny serie|ny ser\adddot
55+oldseries|gammel serie|gl\adddotspace ser\adddot
56+edition|utgave|utg\adddot
57+reprint|opptrykk|opptr\adddot
58+reprintof|opptrykk av|opptr\adddotspace av
59+reprintas|trykt om som|tr\adddotspace om som
60+reprintfrom|opptrykk fra|opptr\adddotspace fra
61+translationof|oversettelse av|overs\adddotspace av
62+translationas|oversatt som|overs\adddotspace som
63+translationfrom|oversatt fra|overs\adddotspace fra
64+reviewof|kritikk av|krit\adddotspace av
65+origpubas|opprinnelig utgitt som|oppr\adddot\ utg\adddot\ som
66+origpubin|opprinnelig utgitt i|oppr\adddot\ utg\adddot\ i
67+astitle|som|som
68+bypublisher|av|av
69+nodate|udatert|udatert
70+page|side|s\adddot
71+pages|sider|s\adddot
72+column|spalte|sp\adddot
73+columns|spalter|sp\adddot
74+line|linje|l\adddot
75+lines|linjer|l\adddot
76+verse|vers|v\adddot
77+verses|vers|v\adddot
78+section|avsnitt|avsn\adddot
79+sections|avsnitt|avsn\adddot
80+paragraph|avsnitt|avsn\adddot
81+paragraphs|avsnitt|avsn\adddot
82+pagetotal|side|s\adddot
83+pagetotals|sider|s\adddot
84+columntotal|spalte|sp\adddot
85+columntotals|spalter|sp\adddot
86+linetotal|linje|l\adddot
87+linetotals|linjer|l\adddot
88+versetotal|vers|v\adddot
89+versetotals|vers|v\adddot
90+sectiontotal|avsnitt|avsn\adddot
91+sectiontotals|avsnitt|avsn\adddot
92+paragraphtotal|avsnitt|avsn\adddot
93+paragraphtotals|avsnitt|avsn\adddot
94+in|i|i
95+inseries|i|i
96+ofseries|av|av
97+number|nummer|nr\adddot
98+chapter|kapittel|kap\adddot
citeproc/biblatex-localization/nswissgerman.lbx.stringsnew file+2
@@ -0,0 +1,2 @@
1+citedas|im Folgenden zitiert als|im Folgenden zit\adddotspace als
2+countryuk|Grossbritannien|GB
citeproc/biblatex-localization/nynorsk.lbx.stringsnew file+28
@@ -0,0 +1,28 @@
1+references|Referansar|Referansar
2+shorthands|Forkortingar|Forkortingar
3+compilers|kompilatorar|komp\adddot
4+redactor|omarbeiding|omarb\adddot
5+redactors|omarbeiding|omarb\adddot
6+founder|grunnleggjar|grunnl\adddot
7+founders|grunnleggjarar|grunnl\adddot
8+translator|omsetjar|oms\adddot
9+translators|omsetjarar|oms\adddot
10+commentator|kommentarar|komm\adddot
11+commentators|kommentarar|komm\adddot
12+annotator|forklaringar|forkl\adddot
13+annotators|forklaringar|forkl\adddot
14+commentary|kommentarar|komm\adddot
15+annotations|forklaringar|forkl\adddot
16+introduction|innleiing|innl\adddot
17+organizers|organisatorar|org\adddot
18+byredactor|omarbeidd av|omarb\adddotspace av
19+withcommentator|med kommentarar av|med komm\adddot\ av
20+withannotator|med forklaringar av|med forkl\adddot\ av
21+withintroduction|med innleiing av|med innl\adddot\ av
22+andothers|med fleire|mfl\adddot
23+andmore|med meir|m.m\adddot
24+oldseries|gamal serie|gl\adddotspace ser\adddot
25+translationof|omsetjing av|oms\adddotspace av
26+translationas|omsett som|oms\adddotspace som
27+origpubas|opphavleg utgitt som|opph\adddot\ utg\adddot\ som
28+origpubin|opphavleg utgitt i|opph\adddot\ utg\adddot\ i
citeproc/biblatex-localization/polish.lbx.stringsnew file+100
@@ -0,0 +1,100 @@
1+bibliography|Bibliografia|Bibliografia
2+references|Bibliografia|Bibliografia
3+editor|redaktor|red\adddot
4+editors|redaktorzy|red\adddot
5+compiler|redaktor|red\adddot
6+compilers|redaktorzy|red\adddot
7+redactor|redaktor|red\adddot
8+redactors|redaktorzy|red\adddot
9+reviser|korektor|kor\adddot
10+revisers|korektorzy|kor\adddot
11+collaborator|uczestnik|ucz\adddot
12+collaborators|uczestnicy|ucz\adddot
13+translator|t\l umacz|t\l um\adddot
14+translators|t\l umacze|t\l um\adddot
15+commentator|komentator|kom\adddot
16+commentators|komentatorzy|kom\adddot
17+annotator|uwaga|uw\adddot
18+annotators|uwagi|uw\adddot
19+commentary|komentarz|kom\adddot
20+annotations|komentarze|kom\adddot
21+foreword|przedmowa|przedm\adddot
22+afterword|pos\l owie|pos\l \adddot
23+editortr|redaktor i t\l umacz|red\adddotspace i per\adddot
24+editorstr|redaktorzy i t\l umacze|red\adddotspace i per\adddot
25+editorco|redaktor i komentator|red\adddotspace i kom\adddot
26+translatorco|t\l umacz i komentator|t\l um\adddotspace i kom\adddot
27+translatorsco|t\l umacze i komentatorzy|t\l um\adddotspace i kom\adddot
28+organizer|organizator|org\adddot
29+organizers|organizatorzy|org\adddot
30+byorganizer|organizowane|org\adddot
31+byauthor|autorstwo|aut\adddot
32+byeditor|redagowa\l|red\adddot
33+byredactor|zredagowano|zred\adddot
34+byreviser|poprawione|popr\adddot
35+byreviewer|recenzja|rec\adddot
36+bytranslator|t\l umaczenie \lbx@lfromlang|t\l um\adddotspace \lbx@sfromlang
37+bycommentator|skomentowane przez|skom\adddot
38+byannotator|uwagi od|uw\adddot
39+withcommentator|komentarze|kom\adddot
40+withannotator|uwagi|uw\adddot
41+withforeword|przedmowa|przedm\adddot
42+withafterword|pos\l owie|pos\l \adddot
43+byeditoran|zredagowany i z uwagami|zredag\adddotspace i z uw\adddot
44+byeditoraf|zredagowany, z pos\l owiem|zred., z pos\l \adddot
45+byeditorcofo|zredagowany, komentarze i przedmowa|zred., kom\adddotspace i przedm\adddot
46+byeditorcoaf|zredagowany, komentarze i pos\l owie|zred., kom\adddotspace i pos\l \adddot
47+byeditoranfo|zredagowany, uwagi i przedmowa|zred., uw\adddotspace i przedm\adddot
48+byeditoranaf|zredagowany, uwagi i pos\l owie|zred., uw\adddotspace i pos\l \adddot
49+and|i|i
50+andothers|i inni|i in\adddot
51+andmore|i inni|i in\adddot
52+volume|tom|t\adddot
53+volumes|tomy|t\adddot
54+involumes|w|w
55+jourvol|tom|t\adddot
56+jourser|seria|ser\adddot
57+issue|wydanie|wyd\adddot
58+newseries|nowa seria|now\adddotspace ser\adddot
59+oldseries|stara seria|star\adddotspace ser\adddot
60+edition|wydruk|wyd\adddot
61+reprint|przedruk|przedr\adddot
62+reprintof|przedruk|przedr\adddot
63+reprintas|przedrukowano jako|przedr\adddotspace jako
64+reprintfrom|przedrukowano z|przedr\adddotspace z
65+translationof|t\l umaczenie|t\l um\adddot
66+translationas|t\l umaczenie jako|t\l um\adddotspace jako
67+translationfrom|t\l umaczenie z|t\l um\adddotspace z
68+reviewof|recenzja na\addcolon|rec\adddotspace na\addcolon
69+origpubin|pierwodruk wydano w|pierw\adddotspace wyd\adddotspace w
70+astitle|pod tytu\l em|pod tyt\adddot
71+page|strona|s\adddot
72+pages|strony|s\adddot
73+column|kolumna|kol\adddot
74+columns|kolumny|kol\adddot
75+line|linijka|l\adddot
76+lines|linijki|l\adddot
77+nodate|bez daty|b\adddot d\adddot
78+verse|werset|wer\adddot
79+verses|wersety|wer\adddot
80+section|paragraf|par\adddot
81+sections|paragrafy|par\adddot
82+paragraph|akapit|akap\adddot
83+paragraphs|akapity|akap\adddot
84+pagetotal|strona|s\adddot
85+pagetotals|strony|s\adddot
86+columntotal|kolumna|kol\adddot
87+columntotals|kolumny|kol\adddot
88+linetotal|wers|wer\adddot
89+linetotals|wersy|wer\adddot
90+versetotal|wiersz|wier\adddot
91+versetotals|wiersze|wier\adddot
92+sectiontotal|paragraf|par\adddot
93+sectiontotals|paragrafy|par\adddot
94+paragraphtotal|akapit|akap\adddot
95+paragraphtotals|akapit|akap\adddot
96+in|w|w
97+inseries|w|w
98+ofseries|z|z
99+number|numer|nr\adddot
100+chapter|rozdzia\l |rozd\adddot
citeproc/biblatex-localization/portuges.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/portuguese.lbx.stringsnew file+95
@@ -0,0 +1,95 @@
1+bibliography|Bibliografia|Bibliografia
2+references|Refer\^encias|Refer\^encias
3+shorthands|Lista de Abreviaturas|Abreviaturas
4+editor|editor|ed\adddot
5+editors|editores|eds\adddot
6+compiler|compilador|comp\adddot
7+compilers|compiladores|comp\adddot
8+redactor|redator|red\adddot
9+redactors|redatores|red\adddot
10+reviser|revisor|rev\adddot
11+revisers|revisores|rev\adddot
12+founder|fundador|fund\adddot
13+founders|fundadores|fund\adddot
14+continuator|continuador|cont\adddot
15+continuators|continuadores|cont\adddot
16+collaborator|colaborador|col\adddot
17+collaborators|colaboradores|col\adddot
18+translator|tradutor|trad\adddot
19+translators|tradutores|trad\adddot
20+commentator|comentador|coment\adddot
21+commentators|comentadores|coment\adddot
22+annotator|anotador|anot\adddot
23+annotators|anotadores|anot\adddot
24+commentary|coment\'ario|coment\adddot
25+annotations|notas|notas
26+foreword|pref\'acio|pref\adddot
27+afterword|posf\'acio|posf\adddot
28+organizer|organizador|org\adddot
29+organizers|organizadores|orgs\adddot
30+byorganizer|organizado por|org\adddotspace por
31+byauthor|por|por
32+byeditor|editado por|ed\adddotspace por
33+bycompiler|compilado por|comp\adddotspace por
34+byredactor|redigido por|red\adddotspace por
35+byreviser|revisto por|rev\adddotspace por
36+byreviewer|resenhado por|res\adddotspace por
37+byfounder|fundado por|fund\adddotspace por
38+bycontinuator|continuado por|cont\adddotspace por
39+bytranslator|traduzido \lbx@lfromlang\ por|trad\adddot\ \lbx@sfromlang\ por
40+bycommentator|comentado por|coment\adddot\ por
41+byannotator|notas de|notas de
42+withcommentator|com coment\'arios de|com coment\adddot\ de
43+withannotator|com notas de|com notas de
44+withforeword|com pref\'acio de|com pref\adddot\ de
45+withafterword|com posf\'acio de|com posf\adddot\ de
46+and|e|e
47+andothers|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
48+andmore|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
49+volume|volume|vol\adddot
50+volumes|volumes|vols\adddot
51+involumes|em|em
52+jourvol|volume|vol\adddot
53+jourser|s\'erie|s\'er\adddot
54+book|livro|livro
55+part|parte|parte
56+issue|n\'umero|n\'umero
57+newseries|nova s\'erie|nova s\'er\adddot
58+oldseries|s\'erie antiga|s\'er\adddot\ antiga
59+reprint|reimpress\~ao|reimpr\adddot
60+reprintof|reimpress\~ao de|reimpr\adddotspace de
61+reprintas|reimpresso como|reimpr\adddotspace como
62+reprintfrom|reimpresso|reimpr\adddot
63+translationas|traduzido como|trad\adddotspace como
64+translationfrom|traduzido do|trad\adddotspace do
65+reviewof|resenha de|res\adddotspace de
66+origpubas|originalmente publicado como|orig\adddotspace pub\adddotspace como
67+origpubin|originalmente publicado em|orig\adddotspace pub\adddotspace em
68+astitle|como|como
69+bypublisher|por|por
70+nodate|sem data|s\adddot d\adddot
71+page|p\'agina|p\adddot
72+pages|p\'aginas|pp\adddot
73+column|coluna|col\adddot
74+columns|colunas|cols\adddot
75+line|linha|l\adddot
76+lines|linhas|ll\adddot
77+verse|verso|v\adddot
78+verses|versos|vv\adddot
79+paragraph|par\'agrafo|par\adddot
80+paragraphs|par\'agrafo|par\adddot
81+pagetotal|p\'agina|p\adddot
82+pagetotals|p\'aginas|pp\adddot
83+columntotal|coluna|col\adddot
84+columntotals|colunas|cols\adddot
85+linetotal|linha|l\adddot
86+linetotals|linhas|ll\adddot
87+versetotal|verso|v\adddot
88+versetotals|versos|vv\adddot
89+paragraphtotal|par\'agrafo|par\adddot
90+paragraphtotals|par\'agrafo|par\adddot
91+in|em|em
92+inseries|em|em
93+ofseries|de|de
94+number|n\'umero|n\adddot\textordmasculine
95+chapter|cap\'\i tulo|cap\adddot
citeproc/biblatex-localization/russian.lbx.stringsnew file+102
@@ -0,0 +1,102 @@
1+bibliography|Список литературы|Список литературы
2+references|Список литературы|Список литературы
3+shorthands|Список сокращений|Сокращения
4+editor|редактор|ред\adddot
5+editors|редакторы|ред\adddot
6+compiler|составитель|сост\adddot
7+compilers|составители|сост\adddot
8+redactor|редактор|ред\adddot
9+redactors|редакторы|ред\adddot
10+reviser|ревизионный корректор|ревиз\adddotspace кор\adddot
11+revisers|ревизионные корректоры|ревиз\adddotspace кор\adddot
12+founder|основатель|осн\adddot
13+founders|основатели|осн\adddot
14+continuator|продолжатель|прод\adddot
15+continuators|продолжатели|прод\adddot
16+collaborator|участник|участ\adddot
17+collaborators|участники|участ\adddot
18+translator|переводчик|пер\adddot
19+translators|переводчики|пер\adddot
20+commentator|комментатор|коммент\adddot
21+commentators|комментаторы|коммент\adddot
22+annotator|примечания|примеч\adddot
23+annotators|примечания|примеч\adddot
24+commentary|комментарий|коммент\adddot
25+annotations|примечания|примеч\adddot
26+introduction|вступительная статья|вступ\adddotspace ст\adddot
27+foreword|предисловие|предисл\adddot
28+afterword|послесловие|послесл\adddot
29+organizer|организатор|орг\adddot
30+organizers|организаторы|орг\adddot
31+byorganizer|организатор|орг\adddot
32+byauthor||
33+byeditor|под редакцией|под\addabbrvspace ред\adddot
34+bycompiler|составитель|сост\adddot
35+byredactor|под редакцией|под\addabbrvspace ред\adddot
36+byreviser|исправлено|испр\adddot
37+byreviewer|рецензия|рец\adddot
38+byfounder|учредитель|учр\adddot
39+bycontinuator|продолжение|продолж\adddot
40+bycollaborator|при участии|при\addabbrvspace уч\adddot
41+bytranslator|перевод \lbx@lfromlang|пер\adddot\ \lbx@sfromlang
42+bycommentator|комментарии|коммент\adddot
43+byannotator|примечания|примеч\adddot
44+withcommentator|комментарии|коммент\adddot
45+withannotator|примечания|примеч\adddot
46+withintroduction|вступительная статья|вступ\adddotspace ст\adddot
47+withforeword|предисловие|предисл\adddot
48+withafterword|послесловие|послесл\adddot
49+and|и|и
50+andothers|и\addabbrvspace др\adddot|и\addabbrvspace др\adddot
51+andmore|и\addabbrvspace др\adddot|и\addabbrvspace др\adddot
52+volume|том|т\adddot
53+volumes|томах|т\adddot
54+involumes|в|в
55+jourvol|том|т\adddot
56+jourser|серия|сер\adddot
57+book|книга|кн\adddot
58+part|часть|ч\adddot
59+issue|выпуск|вып\adddot
60+newseries|новая серия|нов\adddotspace сер\adddot
61+oldseries|старая серия|стар\adddotspace сер\adddot
62+edition|издание|изд\adddot
63+reprint|переиздание|переизд\adddot
64+reprintof|переиздание|переизд\adddot
65+reprintas|переиздано как|переизд\adddotspace как
66+reprintfrom|переиздано с|переизд\adddotspace с
67+translationof|перевод по изданию\addcolon|пер\adddotspace по изд\adddot\addcolon
68+translationas|перевод\addcolon|пер\adddot\addcolon
69+translationfrom|перевод с|пер\adddotspace с
70+reviewof|рецензия на\addcolon|рец\adddotspace на\addcolon
71+astitle|\addcolon|\addcolon
72+bypublisher|\addcomma|\addcomma
73+nodate|б\adddot г\adddot|б\adddot г\adddot
74+page|страница|с\adddot
75+pages|страницы|с\adddot
76+column|колонка|кол\adddot
77+columns|колонки|кол\adddot
78+line|строка|строка
79+lines|строки|строка
80+verse|стих|стих
81+verses|стихи|стихи
82+section|параграф|\S
83+sections|параграфы|\S\S
84+paragraph|абзац|абз\adddot
85+paragraphs|абзацы|абз\adddot
86+pagetotal|страница|с\adddot
87+pagetotals|страницы|с\adddot
88+columntotal|колонка|кол\adddot
89+columntotals|колонки|кол\adddot
90+linetotal|строка|строка
91+linetotals|строки|строка
92+versetotal|стих|стих
93+versetotals|стихи|стихи
94+sectiontotal|параграф|\S
95+sectiontotals|параграфы|\S\S
96+paragraphtotal|абзац|абз\adddot
97+paragraphtotals|абзацы|абз\adddot
98+in|в|в
99+inseries|в|в
100+ofseries|из|из
101+number|номер|№
102+chapter|глава|гл\adddot
citeproc/biblatex-localization/serbian.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/serbianc.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/slovak.lbx.stringsnew file+82
@@ -0,0 +1,82 @@
1+references|Referencie|Referencie
2+shorthands|Zoznam skratiek|Skratky
3+editor|editor|ed\adddot
4+editors|editori|ed\adddot
5+compilers|zostavovatelia|zost\adddot
6+redactor|redaktor|red\adddot
7+redactors|redaktori|red\adddot
8+reviser|korektor|kor\adddot
9+revisers|korektori|kor\adddot
10+founders|zakladatelia|zakl\adddot
11+translators|prekladatelia|prekl\adddot
12+foreword|predhovor|predh\adddot
13+afterword|doslov|dosl\adddot
14+byauthor||
15+withforeword|s\addnbspace predhovorom od|s\addnbspace predh\adddot\ od
16+withafterword|s\addnbspace doslovom od|s\addnbspace dosl\adddot\ od
17+and|a|a
18+andothers|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
19+andmore|et\addabbrvspace al\adddot|et\addabbrvspace al\adddot
20+involumes|in|in
21+book|kniha|kniha
22+edition|vydanie|vyd\adddot
23+reviewof|recenzia|recenz\adddot
24+translationof|preklad|prekl\adddot
25+astitle|ako|ako
26+bypublisher||
27+page|strana|s\adddot
28+pages|strany|s\adddot
29+line|riadok|r\adddot
30+lines|riadky|r\adddot
31+section|sekcia|\S
32+sections|sekcie|\S\S
33+paragraph|odsek|ods\adddot
34+paragraphs|odseky|ods\adddot
35+pagetotal|strana|s\adddot
36+pagetotals|strany|s\adddot
37+linetotal|riadok|r\adddot
38+linetotals|riadky|r\adddot
39+sectiontotal|sekcia|\S
40+sectiontotals|sekcie|\S\S
41+paragraphtotal|odsek|ods\adddot
42+paragraphtotals|odseky|ods\adddot
43+in|in|in
44+inseries|in|in
45+ofseries|z|z
46+chapter|kapitola|kap\adddot
47+datacd|CD-ROM|CD-ROM
48+audiocd|audio CD|audio CD
49+version|verzia|ver\adddot
50+url|URL|URL
51+idem|idem|idem
52+idemsm|idem|idem
53+idemsf|eadem|eadem
54+idemsn|idem|idem
55+idempm|eidem|eidem
56+idempf|eaedem|eaedem
57+idempn|eadem|eadem
58+idempp|eidem|eidem
59+ibidem|ibidem|ibid\adddot
60+opcit|op\adddotspace cit\adddot|op\adddotspace cit\adddot
61+loccit|loc\adddotspace cit\adddot|loc\adddotspace cit\adddot
62+confer|cf\adddot|cf\adddot
63+sequens|sq\adddot|sq\adddot
64+sequentes|sqq\adddot|sqq\adddot
65+passim|passim|pass\adddot
66+march|marec|mar\adddot
67+august|august|aug\adddot
68+september|september|sept\adddot
69+november|november|nov\adddot
70+december|december|dec\adddot
71+countryde|Nemecko|DE
72+patent|patent|pat\adddot
73+patentus|US patent|US pat\adddot
74+abstract|abstrakt|abst\adddot
75+annodomini|po Kristovi|po Kr\adddot
76+beforechrist|pred Kristom|pred Kr\adddot
77+circa|cirka|ca\adddot
78+spring|jar|jar
79+summer|leto|leto
80+winter|zima|zima
81+am|AM|AM
82+pm|PM|PM
citeproc/biblatex-localization/slovene.lbx.stringsnew file+28
@@ -0,0 +1,28 @@
1+bibliography|Literatura|Literatura
2+references|Literatura|Literatura
3+shorthands|Kratice|Kratice
4+editor|urednik|ur\adddot
5+editors|uredniki|ur\adddot
6+compiler|sestavljalec|sest\adddot
7+compilers|sestavljalci|sest\adddot
8+redactor|redaktor|redaktor
9+redactors|redaktorji|redaktorji
10+reviser|korektor|korektor
11+revisers|korektorji|korektorji
12+founder|snovalec|snovalec
13+founders|snovalci|snovalci
14+continuator|nadaljevalec|nadaljevalec
15+continuators|nadaljevalci|nadaljevalci
16+collaborator|sodelavec|sod\adddot
17+collaborators|sodelavci|sod\adddot
18+translator|prevajalec|prev\adddot
19+translators|prevajalci|prev\adddot
20+commentator|komentator|komentator
21+commentators|komentatorji|komentatorji
22+annotator|anotator|anotator
23+annotators|anotatorji|anotatorji
24+commentary|komentar|komentar
25+annotations|opombe|op\adddot
26+introduction|uvod|uvod
27+foreword|predgovor|predg\adddot
28+afterword|spremna beseda|spr\adddotspace b\adddot
citeproc/biblatex-localization/slovenian.lbx.stringsnew file

No changes to the content.

citeproc/biblatex-localization/spanish.lbx.stringsnew file+190
@@ -0,0 +1,190 @@
1+references|Referencias|Referencias
2+shorthands|Lista de abreviaturas|Abreviaturas
3+editor|edici\'on|ed\adddot
4+editors|edici\'on|eds\adddot
5+commentator|comentario|com\adddot
6+commentators|comentarios|coms\adddot
7+annotator|anotaciones|anot\adddot
8+annotators|anotaciones|anots\adddot
9+commentary|comentario|com\adddot
10+annotations|notas|notas
11+introduction|introducci\'on|intr\adddot
12+foreword|pr\'ologo|pr\'ol\adddot
13+organizer|organizaci\'on|org\adddot
14+organizers|organizaci\'on|orgs\adddot
15+byorganizer|organizado por|org\adddotspace por
16+byauthor|de|de
17+byeditor|editado por|ed\adddotspace por
18+bycompiler|compilado por|comp\adddotspace por
19+byredactor|redacci\'on de|red\adddotspace de
20+byreviser|revisado por|rev\adddotspace por
21+byfounder|fundado por|fund\adddotspace por
22+bycontinuator|continuado por|cont\adddotspace por
23+bytranslator|traducido \lbx@lfromlang\ por|trad\adddot \lbx@sfromlang\ por
24+bycommentator|comentado por|com\adddotspace por
25+byannotator|anotado por|anot\adddotspace por
26+withcommentator|con comentario de|con com\adddotspace de
27+withannotator|con notas de|con notas de
28+withintroduction|con introduci\'on de|con intr\adddotspace de
29+withforeword|con pr\'ologo de|con pr\'ol\adddotspace de
30+and|y|y
31+andothers|y~col\adddot|y~col\adddot
32+andmore|et\adddotspace al\adddot|et\adddotspace al\adddot
33+volume|volumen|vol\adddot
34+volumes|vol\'umenes|vols\adddot
35+involumes|en|en
36+jourvol|volumen|vol\adddot
37+jourser|\'epoca|\'ep\adddot
38+book|libro|libro
39+part|parte|parte
40+issue|n\'umero|n\'um\adddot
41+newseries|nueva \'epoca|n\adddotspace \'ep\adddot
42+oldseries|antigua \'epoca|ant\adddotspace \'ep\adddot
43+edition|edici\'on|ed\adddot
44+reprintas|reimpreso como|reimp\adddotspace como
45+translationas|traducido como|trad\adddotspace como
46+translationfrom|traducido del|trad\adddotspace del
47+origpubas|publicado originalmente como|pub\adddotspace orig\adddotspace como
48+origpubin|publicado originalmente en|pub\adddot orig\adddot en
49+bypublisher|por la editorial|por la ed\adddot
50+page|p\'agina|p\'ag\adddot
51+pages|p\'aginas|p\'ags\adddot
52+column|columna|col\adddot
53+columns|columnas|cols\adddot
54+verse|verso|v\adddot
55+verses|versos|vv\adddot
56+sections|secciones|secs\adddot
57+pagetotal|p\'agina|p\'ag\adddot
58+pagetotals|p\'aginas|p\'ags\adddot
59+columntotal|columna|col\adddot
60+columntotals|columnas|cols\adddot
61+versetotal|verso|v\adddot
62+versetotals|versos|vv\adddot
63+sectiontotals|secciones|secs\adddot
64+in|en|en
65+inseries|en|en
66+ofseries|de|de
67+number|n\'umero|n\sptext{o
68+chapter|cap\'itulo|cap\adddot
69+bathesis|Tesis de licenciatura|Tesis de lic\adddot
70+phdthesis|Tesis doctoral|Tesis doct\adddot
71+candthesis|Tesis de candidatura doctoral|Tesis de cand\adddotspace doct\adddot
72+techreport|informe t\'ecnico|inf\adddotspace t\'ec\adddot
73+software|programa|prog\adddot
74+datacd|disco de datos|CD de datos
75+audiocd|disco de audio|CD de audio
76+version|versi\'on|ver\adddot
77+url|direcci\'on|direcci\'on
78+urlfrom|disponible desde|disp\adddotspace desde
79+urlseen|visitado|visitado
80+submitted|enviado|enviado
81+forthcoming|pr\'oximamente|prox\adddot
82+inpress|en prensa|en prensa
83+prepublished|previamente publicado|prepublicado
84+citedas|citado en adelante como|cit\adddotspace en adelante como
85+thiscite|especialmente|esp\adddot
86+seenote|ver nota|ver n\adddot
87+quotedin|citado en|cit\adddotspace en
88+loccit|loc\adddotspace cit\adddot|loc\adddot cit\adddot
89+confer|cf\adddot|cf\adddot
90+sequens|s\adddot|s\adddot
91+sequentes|ss\adddot|ss\adddot
92+passim|p\'assim|p\'assim
93+see|v\'ease|vid\adddot
94+seealso|v\'ease tambi\'en|vid\adddotspace tambi\'en
95+backrefpage|v\'ease p\'agina|vid\adddotspace p\'ag\adddot
96+backrefpages|v\'eanse p\'aginas|vid\adddotspace p\'ags\adddot
97+january|enero|ene\adddot
98+february|febrero|feb\adddot
99+march|marzo|mar\adddot
100+april|abril|abr\adddot
101+may|mayo|mayo
102+june|junio|jun\adddot
103+july|julio|jul\adddot
104+august|agosto|ago\adddot
105+september|septiembre|sep\adddot
106+october|octubre|oct\adddot
107+november|noviembre|nov\adddot
108+december|diciembre|dic\adddot
109+langbrazilian|brasile\~no|brasile\~no
110+langbulgarian|b\'ulgaro|b\'ulgaro
111+langcroatian|croata|croata
112+langczech|checo|checo
113+langdanish|dan\'es|dan\'es
114+langdutch|neerland\'es|neerland\'es
115+langenglish|ingl\'es|ingl\'es
116+langestonian|estonio|estonio
117+langfrench|franc\'es|franc\'es
118+langgalician|gallego|gallego
119+langgerman|alem\'an|alem\'an
120+langgreek|griego|griego
121+langhungarian|h\'ungaro|h\'ungaro
122+langitalian|italiano|italiano
123+langjapanese|japon\'es|japon\'es
124+langlatvian|lituano|lituano
125+langnorwegian|noruego|noruego
126+langpolish|polaco|polaco
127+langportuguese|portugu\'es|portugu\'es
128+langrussian|ruso|ruso
129+langslovak|eslovaco|eslovaco
130+langslovene|esloveno|esloveno
131+langspanish|espa\~nol|espa\~nol
132+langswedish|sueco|sueco
133+langukrainian|ucraniano|ucraniano
134+frombrazilian|del brasile\~no|del brasile\~no
135+frombulgarian|del b\'ulgaro|del b\'ulgaro
136+fromcroatian|del croata|del croata
137+fromczech|del checo|del checo
138+fromdanish|del dan\'es|del dan\'es
139+fromdutch|del neerland\'es|del neerland\'es
140+fromenglish|del ingl\'es|del ingl\'es
141+fromestonian|del estonio|del estonio
142+fromfrench|del franc\'es|del franc\'es
143+fromgalician|del gallego|del gallego
144+fromgerman|del alem\'an|del alem\'an
145+fromgreek|del griego|del griego
146+fromhungarian|del h\'ungaro|del h\'ungaro
147+fromitalian|del italiano|del italiano
148+fromjapanese|del japon\'es|del japon\'es
149+fromlatvian|del lituano|del lituano
150+fromnorwegian|del noruego|del noruego
151+frompolish|del polaco|del polaco
152+fromportuguese|del portugu\'es|del portugu\'es
153+fromrussian|del ruso|del ruso
154+fromslovak|del eslovaco|del eslovaco
155+fromslovene|del esloveno|del esloveno
156+fromspanish|del espa\~nol|del espa\~nol
157+fromswedish|del sueco|del sueco
158+fromukrainian|del ucraniano|del ucraniano
159+countryde|Alemania|DE
160+countryeu|Uni\'on Europea|EU
161+countryep|Uni\'on Europea|EP
162+countryfr|Francia|FR
163+countryuk|Reino Unido|GB
164+countryus|Estados Unidos|US
165+patent|patente|pat\adddot
166+patentde|patente alemana|pat\adddotspace alemana
167+patenteu|patente europea|pat\adddotspace europea
168+patentfr|patente francesa|pat\adddotspace francesa
169+patentuk|patente brit\'anica|pat\adddotspace brit\'anica
170+patentus|patente estadounidense|pat\adddotspace estadounidense
171+patreq|solicitud de patente|sol\adddotspace de pat\adddot
172+patreqde|solicitud de patente alemana|sol\adddotspace de pat\adddot alemana
173+patreqeu|solicitud de patente europea|sol\adddotspace de pat\adddot europea
174+patreqfr|solicitud de patente francesa|sol\adddotspace de pat\adddot francesa
175+patrequk|solicitud de patente brit\'anica|sol\adddotspace de pat\adddot brit\'anica
176+patrequs|solicitud de patente estadounidense|sol\adddotspace de pat\adddot estadounidense
177+file|archivo|archivo
178+library|biblioteca|bibl\adddot
179+abstract|resumen|resumen
180+commonera|era com\'un|e\adddotspace c\adddot
181+beforecommonera|antes de la era com\'un|a\adddotspace e\adddotspace c\adddot
182+annodomini|despu\'es de Cristo|d\adddotspace C\adddot
183+beforechrist|antes de Cristo|a\adddotspace C\adddot
184+circa|circa|ca\adddot
185+spring|primavera|prim\adddot
186+summer|verano|ver\adddot
187+autumn|oto\~no|ot\adddot
188+winter|invierno|inv\adddot
189+am|a\adddotspace m\adddot|a\adddot m\adddot
190+pm|p\adddotspace m\adddot|p\adddot m\adddot
citeproc/biblatex-localization/swedish.lbx.stringsnew file+9
@@ -0,0 +1,9 @@
1+bibliography|Litteraturf\"orteckning|Litteratur
2+references|Referenser|Referenser
3+shorthands|F\"orkortningar|F\"orkortningar
4+editor|utgivare|utg\adddot
5+editors|utgivare|utg\adddot
6+compiler|sammanst\"allare|sammanst\adddot
7+compilers|sammanst\"allare|sammanst\adddot
8+redactor|redakt\"or|red\adddot
9+redactors|redakt\"orer|red\adddot
citeproc/biblatex-localization/swissgerman.lbx.stringsnew file+1
@@ -0,0 +1 @@
1+countryuk|Grossbritannien|GB
citeproc/biblatex-localization/turkish.lbx.stringsnew file+157
@@ -0,0 +1,157 @@
1+references|Kaynaklar|Kaynaklar
2+shorthands|K\i saltmalar dizini|K\i saltmalar
3+compiler|derleyen|der\adddot
4+compilers|derleyenler|der\adddot
5+redactor|yay\i na haz\i rlayan|yay\adddot\ haz\adddot
6+redactors|yay\i na haz\i rlayanlar|yay\adddot\ haz\adddot
7+reviser|tashih eden|tashih\adddot
8+revisers|tashih edenler|tashih\adddot
9+founder|kurucu|kur\adddot
10+founders|kurucular|kur\adddot
11+continuator|tamamlayan|tam\adddot
12+continuators|tamamlayanlar|tam\adddot
13+collaborator|ortak|ortak
14+collaborators|ortaklar|ortaklar
15+commentator|yorumlayan|yrm\adddot
16+commentators|yorumlayanlar|yrm\adddot
17+commentary|yorum|yrm\adddot
18+byauthor|yazar|yazar
19+bycompiler|derleyen|der\adddot
20+byredactor|yay\i na haz\i rlayan|yay\adddot\ haz\adddot
21+byreviser|tashih|tashih
22+byfounder|kurucu|kur\adddot
23+bycontinuator|tamamlayan|tam\adddot
24+bycommentator|yorumlayan|yrm\adddot
25+withcommentator|yorumlar\i yla katk\i da bulunan|yrm\adddot\ kat\adddot\ bul\adddot
26+and|ve|ve
27+volume|cilt|c\adddot
28+volumes|cilt|c\adddot
29+jourvol|cilt|c\adddot
30+jourser|seri|seri
31+book|kitap|kitap
32+part|k\i s\i m|k\i s\i m
33+issue|say\i|say\i
34+newseries|yeni seri|yeni seri
35+oldseries|eski seri|eski seri
36+edition|bask\i|bs\adddot
37+reprint|yeni bask\i s\i|yeni bask\i s\i
38+reprintof|yeni bask\i s\i|yeni bask\i s\i
39+reprintas|yeni bask\i s\i|yeni bask\i s\i
40+reprintfrom|yeni bask\i s\i|yeni bask\i s\i
41+reviewof|derlenen eser|der\adddot\ eser
42+origpubas|as\i l eser|as\i l eser
43+origpubin|as\i l eser yay\i n tarihi|as\i l eser yay\i n tarihi
44+bypublisher|yay\i n evi|yay\i n evi
45+nodate|tarih yok|t\adddot y\adddot
46+page|sayfa|s\adddot
47+pages|sayfalar|ss\adddot
48+line|sat\i r|sat\adddot
49+lines|sat\i rlar|sat\adddot
50+verse|m\i sra|m\i s\adddot
51+verses|m\i sralar|m\i s\adddot
52+paragraph|paragraf|par\adddot
53+paragraphs|paragraflar|par\adddot
54+pagetotal|toplam sayfa|s\adddot
55+pagetotals|toplam sayfalar|ss\adddot
56+linetotal|toplam sat\i r|sat\adddot
57+linetotals|toplam sat\i rlar|sat\adddot
58+versetotal|toplam m\i sra|m\i s\adddot
59+versetotals|toplam m\i sralar|m\i s\adddot
60+paragraphtotal|toplam paragraf|par\adddot
61+paragraphtotals|toplam paragraflar|par\adddot
62+inseries|serilerde|serilerde
63+ofseries|serilerde|serilerde
64+number|numara|no\adddot
65+bathesis|lisans tezi|lis\adddot\ tezi
66+phdthesis|doktora tezi|dok\adddot\ tezi
67+candthesis|aday tezi|aday tezi
68+techreport|teknik rapor|tek\adddot\ rap\adddot
69+software|bilgisayar yaz\i l\i m\i|bilg\adddot\ yaz\adddot
70+datacd|CD|CD
71+audiocd|ses CD'si|ses CD'si
72+version|versiyon|ver\adddot
73+forthcoming|yak\i nda|yak\i nda
74+prepublished|taslak bas\i m\i|taslak bas\i m\i
75+citedas|at\i f olarak|at\i f olarak
76+seenote|nota bak\i n\i z|nota bkz\adddot
77+quotedin|al\i nt\i|al\i nt\i
78+idem|ayn\i|ayn\i
79+idemsm|ayn\i|ayn\i
80+idemsf|ayn\i|ayn\i
81+idemsn|ayn\i|ayn\i
82+idempm|ayn\i lar\i|ayn\i lar\i
83+idempf|ayn\i lar\i|ayn\i lar\i
84+idempn|ayn\i lar\i|ayn\i lar\i
85+idempp|ayn\i lar\i|ayn\i lar\i
86+loccit|at\i f yap\i lan yer|at\i f yap\adddot\ yer
87+sequens|takip eden|takip eden
88+sequentes|takip eden|takip eden
89+passim|rastgele|rastgele
90+see|bak\i n\i z|bkz\adddot
91+seealso|ayr\i ca bak\i n\i z|ayr\i ca bkz\adddot
92+january|Ocak|Ocak
93+march|Mart|Mar\adddot
94+april|Nisan|Nis\adddot
95+may|May\i s|May\adddot
96+june|Haziran|Haz\adddot
97+july|Temmuz|Tem\adddot
98+october|Ekim|Ekim
99+november|Kas\i m|Kas\adddot
100+december|Aral\i k|Ara\adddot
101+langamerican|Amerikanca|Amerikanca
102+langbrazilian|Brezilyanca|Brezilyanca
103+langbulgarian|Bulgarca|Bulgarca
104+langcatalan|Katalanca|Katalanca
105+langdanish|Danimarkanca|Danimarkanca
106+langestonian|Estonca|Estonca
107+langfinnish|Fince|Fince
108+langfrench|Frans\i zca|Frans\i zca
109+langgalician|Galce|Galce
110+langgerman|Almanca|Almanca
111+langgreek|Yunanca|Yunanca
112+langhungarian|Macarca|Macarca
113+langjapanese|Japonca|Japonca
114+langlatin|Latince|Latince
115+langlatvian|Letonca|Letonca
116+langlithuanian|Litvanca|Litvanca
117+langpolish|Polonyaca|Polonyaca
118+langportuguese|Portekizce|Portekizce
119+langslovene|Slovence|Slovence
120+langukrainian|Ukraynaca|Ukraynaca
121+fromamerican|Amerikanca'dan|Amerikanca'dan
122+frombrazilian|Brezilyanca'dan|Brezilyanca'dan
123+frombulgarian|Bulgarca'dan|Bulgarca'dan
124+fromcatalan|Katalanca'dan|Katalanca'dan
125+fromdanish|Danimarkanca'dan|Danimarkanca'dan
126+fromestonian|Estonyaca'dan|Estonyaca'dan
127+fromfinnish|Fince'den|Fince'den
128+fromfrench|Frans\i zca'dan|Frans\i zca'dan
129+fromgalician|Galyaca'dan|Galyaca'dan
130+fromgerman|Almanca'dan|Almanca'dan
131+fromgreek|Yunanca'dan|Yunanca'dan
132+fromhungarian|Macarca'dan|Macarca'dan
133+fromjapanese|Japonca'dan|Japonca'dan
134+fromlatin|Latince'den|Latince'den
135+fromlatvian|Latvianca'dan|Latvianca'dan
136+fromlithuanian|Litvanca'dan|Litvanca'dan
137+frompolish|Polonyaca'dan|Polonyaca'dan
138+fromportuguese|Portekizce'den|Portekizce'den
139+fromslovene|Slovence'den|Slovence'den
140+fromukrainian|Ukraynaca'dan|Ukraynaca'dan
141+countryde|Almanya|DE
142+countryfr|Fransa|FR
143+patent|patent|pat\adddot
144+patentde|Alman patenti|Alman pat\adddot
145+patenteu|Avrupa patenti|Avrupa pat\adddot
146+patentfr|Frans\i z patenti|Frans\i z pat\adddot
147+patentus|Amerika patenti|Amerika pat\adddot
148+patreq|patent beklemede|pat\adddot\ bek\adddot
149+patreqde|Alman patenti beklemede|Alman pat\adddot\ bek\adddot
150+patreqeu|Avrupa patenti beklemede|Avrupa pat\adddot\ bek\adddot
151+patreqfr|Frans\i z patenti beklemede|Frans\i z pat\adddot\ bek\adddot
152+patrequs|Amerika patenti beklemede|Amerika pat\adddot\ bek\adddot
153+file|dosya|dosya
154+commonera|milattan sonra|MS
155+annodomini|milattan sonra|MS
156+summer|Yaz|Yaz
157+autumn|Sonbahar|Sonbahar
citeproc/biblatex-localization/ukrainian.lbx.stringsnew file+102
@@ -0,0 +1,102 @@
1+bibliography|Перелік літератури|Література
2+references|Перелік літератури|Література
3+shorthands|Перелік скорочень|Скорочення
4+editor|редактор|ред\adddot
5+editors|редактори|ред\adddot
6+compiler|укладач|уклад\adddot
7+compilers|укладачі|уклад\adddot
8+redactor|редактор|ред\adddot
9+redactors|редактори|ред\adddot
10+reviser|ревізійний коректор|ревіз\adddotspace кор\adddot
11+revisers|ревізійні коректори|ревіз\adddotspace кор\adddot
12+founder|засновник|засн\adddot
13+founders|засновник|засн\adddot
14+continuator|продовжувач|прод\adddot
15+continuators|продовжувачі|прод\adddot
16+collaborator|учасник|учас\adddot
17+collaborators|учасники|учас\adddot
18+translator|перекладач|пер\adddot
19+translators|перекладачі|пер\adddot
20+commentator|коментатор|комент\adddot
21+commentators|коментатори|комент\adddot
22+annotator|примітки|прим\adddot
23+annotators|примітки|прим\adddot
24+commentary|коментар|комент\adddot
25+annotations|примітки|прим\adddot
26+introduction|вступна стаття|вступ\adddotspace ст\adddot
27+foreword|передмова|передм\adddot
28+afterword|післямова|післям\adddot
29+organizer|організатор|орг\adddot
30+organizers|організатори|орг\adddot
31+byorganizer|організатор|орг\adddot
32+byauthor|згідно автора|згідн\adddot авт\adddot
33+byeditor|за редакцією|за\addabbrvspace ред\adddot
34+bycompiler|укладач|уклад\adddot
35+byredactor|за редакцією|за\addabbrvspace ред\adddot
36+byreviser|виправлено|випр\adddot
37+byreviewer|рецензія|рец\adddot
38+byfounder|засновник|засн\adddot
39+bycontinuator|продовження|продовж\adddot
40+bycollaborator|за участю|за\addabbrvspace уч\adddot
41+bytranslator|переклад \lbx@lfromlang|пер\adddot\ \lbx@sfromlang
42+bycommentator|коментарі|комент\adddot
43+byannotator|примітки|прим\adddot
44+withcommentator|коментарі|комент\adddot
45+withannotator|примітки|прим\adddot
46+withintroduction|вступна стаття|вступ\adddotspace ст\adddot
47+withforeword|передмовие|передм\adddot
48+withafterword|післямовие|післям\adddot
49+and|та|та
50+andothers|та\addabbrvspace ін\adddot|та\addabbrvspace ін\adddot
51+andmore|та\addabbrvspace ін\adddot|та\addabbrvspace ін\adddot
52+volume|том|т\adddot
53+volumes|томах|т\adddot
54+involumes|в|в
55+jourvol|том|т\adddot
56+jourser|серія|сер\adddot
57+book|книга|кн\adddot
58+part|частина|ч\adddot
59+issue|випуск|вип\adddot
60+newseries|нова серія|нов\adddotspace сер\adddot
61+oldseries|стара серія|стар\adddotspace сер\adddot
62+edition|видання|вид\adddot
63+reprint|перевидання|перевид\adddot
64+reprintof|перевидання|перевид\adddot
65+reprintas|перевидано як|перевид\adddotspace як
66+reprintfrom|перевидано з|перевид\adddotspace з
67+translationof|переклад по виданню\addcolon|пер\adddotspace по вид\adddot\addcolon
68+translationas|переклад\addcolon|пер\adddot\addcolon
69+translationfrom|переклад з|пер\adddotspace з
70+reviewof|рецензія на\addcolon|рец\adddotspace на\addcolon
71+astitle|\addcolon|\addcolon
72+bypublisher|\addcomma|\addcomma
73+nodate|б\adddot р\adddot|б\adddot р\adddot
74+page|сторінка|с\adddot
75+pages|сторінки|с\adddot
76+column|колонка|кол\adddot
77+columns|колонки|кол\adddot
78+line|рядок|рядок
79+lines|рядки|рядки
80+verse|вірш|вірш
81+verses|вірші|вірші
82+section|параграф|\S
83+sections|параграфи|\S\S
84+paragraph|абзац|абз\adddot
85+paragraphs|абзаци|абз\adddot
86+pagetotal|сторінка|с\adddot
87+pagetotals|сторінки|с\adddot
88+columntotal|колонка|кол\adddot
89+columntotals|колонки|кол\adddot
90+linetotal|рядок|рядок
91+linetotals|рядки|рядки
92+versetotal|вірш|вірш
93+versetotals|вірші|вірші
94+sectiontotal|параграф|\S
95+sectiontotals|параграфи|\S\S
96+paragraphtotal|абзац|абз\adddot
97+paragraphtotals|абзаци|абз\adddot
98+in|в|в
99+inseries|в|в
100+ofseries|із|із
101+number|номер|№
102+chapter|глава|гл\adddot
data/default.cslnew file+648
@@ -0,0 +1,648 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="chicago">
3+ <info>
4+ <title>Chicago Manual of Style 17th edition (author-date)</title>
5+ <id>http://www.zotero.org/styles/chicago-author-date</id>
6+ <link href="http://www.zotero.org/styles/chicago-author-date" rel="self"/>
7+ <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
8+ <author>
9+ <name>Julian Onions</name>
10+ <email>julian.onions@gmail.com</email>
11+ </author>
12+ <contributor>
13+ <name>Sebastian Karcher</name>
14+ </contributor>
15+ <contributor>
16+ <name>Richard Karnesky</name>
17+ <email>karnesky+zotero@gmail.com</email>
18+ <uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
19+ </contributor>
20+ <contributor>
21+ <name>Andrew Dunning</name>
22+ <email>andrew.dunning@utoronto.ca</email>
23+ <uri>https://orcid.org/0000-0003-0464-5036</uri>
24+ </contributor>
25+ <contributor>
26+ <name>Matthew Roth</name>
27+ <email>matthew.g.roth@yale.edu</email>
28+ <uri> https://orcid.org/0000-0001-7902-6331</uri>
29+ </contributor>
30+ <category citation-format="author-date"/>
31+ <category field="generic-base"/>
32+ <summary>The author-date variant of the Chicago style</summary>
33+ <updated>2018-01-24T12:00:00+00:00</updated>
34+ <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
35+ </info>
36+ <locale xml:lang="en">
37+ <terms>
38+ <term name="editor" form="verb-short">ed.</term>
39+ <term name="container-author" form="verb">by</term>
40+ <term name="translator" form="verb-short">trans.</term>
41+ <term name="editortranslator" form="verb">edited and translated by</term>
42+ <term name="translator" form="short">trans.</term>
43+ </terms>
44+ </locale>
45+ <macro name="secondary-contributors">
46+ <choose>
47+ <if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="none">
48+ <group delimiter=". ">
49+ <names variable="editor translator" delimiter=". ">
50+ <label form="verb" text-case="capitalize-first" suffix=" "/>
51+ <name and="text" delimiter=", "/>
52+ </names>
53+ <names variable="director" delimiter=". ">
54+ <label form="verb" text-case="capitalize-first" suffix=" "/>
55+ <name and="text" delimiter=", "/>
56+ </names>
57+ </group>
58+ </if>
59+ </choose>
60+ </macro>
61+ <macro name="container-contributors">
62+ <choose>
63+ <if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
64+ <group prefix=", " delimiter=", ">
65+ <names variable="container-author" delimiter=", ">
66+ <label form="verb" suffix=" "/>
67+ <name and="text" delimiter=", "/>
68+ </names>
69+ <names variable="editor translator" delimiter=", ">
70+ <label form="verb" suffix=" "/>
71+ <name and="text" delimiter=", "/>
72+ </names>
73+ </group>
74+ </if>
75+ </choose>
76+ </macro>
77+ <macro name="editor">
78+ <names variable="editor">
79+ <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
80+ <label form="short" prefix=", "/>
81+ </names>
82+ </macro>
83+ <macro name="translator">
84+ <names variable="translator">
85+ <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
86+ <label form="short" prefix=", "/>
87+ </names>
88+ </macro>
89+ <macro name="recipient">
90+ <choose>
91+ <if type="personal_communication">
92+ <choose>
93+ <if variable="genre">
94+ <text variable="genre" text-case="capitalize-first"/>
95+ </if>
96+ <else>
97+ <text term="letter" text-case="capitalize-first"/>
98+ </else>
99+ </choose>
100+ </if>
101+ </choose>
102+ <names variable="recipient" delimiter=", ">
103+ <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
104+ <name and="text" delimiter=", "/>
105+ </names>
106+ </macro>
107+ <macro name="substitute-title">
108+ <choose>
109+ <if type="article-magazine article-newspaper review review-book" match="any">
110+ <text macro="container-title"/>
111+ </if>
112+ </choose>
113+ </macro>
114+ <macro name="contributors">
115+ <group delimiter=". ">
116+ <names variable="author">
117+ <name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
118+ <label form="short" prefix=", "/>
119+ <substitute>
120+ <names variable="editor"/>
121+ <names variable="translator"/>
122+ <names variable="director"/>
123+ <text macro="substitute-title"/>
124+ <text macro="title"/>
125+ </substitute>
126+ </names>
127+ <text macro="recipient"/>
128+ </group>
129+ </macro>
130+ <macro name="contributors-short">
131+ <names variable="author">
132+ <name form="short" and="text" delimiter=", " initialize-with=". "/>
133+ <substitute>
134+ <names variable="editor"/>
135+ <names variable="translator"/>
136+ <names variable="director"/>
137+ <text macro="substitute-title"/>
138+ <text macro="title"/>
139+ </substitute>
140+ </names>
141+ </macro>
142+ <macro name="interviewer">
143+ <names variable="interviewer" delimiter=", ">
144+ <label form="verb" prefix=" " text-case="capitalize-first" suffix=" "/>
145+ <name and="text" delimiter=", "/>
146+ </names>
147+ </macro>
148+ <macro name="archive">
149+ <group delimiter=". ">
150+ <text variable="archive_location" text-case="capitalize-first"/>
151+ <text variable="archive"/>
152+ <text variable="archive-place"/>
153+ </group>
154+ </macro>
155+ <macro name="access">
156+ <group delimiter=". ">
157+ <choose>
158+ <if type="graphic report" match="any">
159+ <text macro="archive"/>
160+ </if>
161+ <else-if type="article-journal bill book chapter legal_case legislation motion_picture paper-conference" match="none">
162+ <text macro="archive"/>
163+ </else-if>
164+ </choose>
165+ <choose>
166+ <if type="webpage post-weblog" match="any">
167+ <date variable="issued" form="text"/>
168+ </if>
169+ </choose>
170+ <choose>
171+ <if variable="issued" match="none">
172+ <group delimiter=" ">
173+ <text term="accessed" text-case="capitalize-first"/>
174+ <date variable="accessed" form="text"/>
175+ </group>
176+ </if>
177+ </choose>
178+ <choose>
179+ <if type="legal_case" match="none">
180+ <choose>
181+ <if variable="DOI">
182+ <text variable="DOI" prefix="https://doi.org/"/>
183+ </if>
184+ <else>
185+ <text variable="URL"/>
186+ </else>
187+ </choose>
188+ </if>
189+ </choose>
190+ </group>
191+ </macro>
192+ <macro name="title">
193+ <choose>
194+ <if variable="title" match="none">
195+ <choose>
196+ <if type="personal_communication" match="none">
197+ <text variable="genre" text-case="capitalize-first"/>
198+ </if>
199+ </choose>
200+ </if>
201+ <else-if type="bill book graphic legislation motion_picture song" match="any">
202+ <text variable="title" text-case="title" font-style="italic"/>
203+ <group prefix=" (" suffix=")" delimiter=" ">
204+ <text term="version"/>
205+ <text variable="version"/>
206+ </group>
207+ </else-if>
208+ <else-if variable="reviewed-author">
209+ <choose>
210+ <if variable="reviewed-title">
211+ <group delimiter=". ">
212+ <text variable="title" text-case="title" quotes="true"/>
213+ <group delimiter=", ">
214+ <text variable="reviewed-title" text-case="title" font-style="italic" prefix="Review of "/>
215+ <names variable="reviewed-author">
216+ <label form="verb-short" text-case="lowercase" suffix=" "/>
217+ <name and="text" delimiter=", "/>
218+ </names>
219+ </group>
220+ </group>
221+ </if>
222+ <else>
223+ <group delimiter=", ">
224+ <text variable="title" text-case="title" font-style="italic" prefix="Review of "/>
225+ <names variable="reviewed-author">
226+ <label form="verb-short" text-case="lowercase" suffix=" "/>
227+ <name and="text" delimiter=", "/>
228+ </names>
229+ </group>
230+ </else>
231+ </choose>
232+ </else-if>
233+ <else-if type="legal_case interview patent" match="any">
234+ <text variable="title"/>
235+ </else-if>
236+ <else>
237+ <text variable="title" text-case="title" quotes="true"/>
238+ </else>
239+ </choose>
240+ </macro>
241+ <macro name="edition">
242+ <choose>
243+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
244+ <choose>
245+ <if is-numeric="edition">
246+ <group delimiter=" " prefix=". ">
247+ <number variable="edition" form="ordinal"/>
248+ <text term="edition" form="short" strip-periods="true"/>
249+ </group>
250+ </if>
251+ <else>
252+ <text variable="edition" text-case="capitalize-first" prefix=". "/>
253+ </else>
254+ </choose>
255+ </if>
256+ <else-if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
257+ <choose>
258+ <if is-numeric="edition">
259+ <group delimiter=" " prefix=", ">
260+ <number variable="edition" form="ordinal"/>
261+ <text term="edition" form="short"/>
262+ </group>
263+ </if>
264+ <else>
265+ <text variable="edition" prefix=", "/>
266+ </else>
267+ </choose>
268+ </else-if>
269+ </choose>
270+ </macro>
271+ <macro name="locators">
272+ <choose>
273+ <if type="article-journal">
274+ <choose>
275+ <if variable="volume">
276+ <text variable="volume" prefix=" "/>
277+ <group prefix=" (" suffix=")">
278+ <choose>
279+ <if variable="issue">
280+ <text variable="issue"/>
281+ </if>
282+ <else>
283+ <date variable="issued">
284+ <date-part name="month"/>
285+ </date>
286+ </else>
287+ </choose>
288+ </group>
289+ </if>
290+ <else-if variable="issue">
291+ <group delimiter=" " prefix=", ">
292+ <text term="issue" form="short"/>
293+ <text variable="issue"/>
294+ <date variable="issued" prefix="(" suffix=")">
295+ <date-part name="month"/>
296+ </date>
297+ </group>
298+ </else-if>
299+ <else>
300+ <date variable="issued" prefix=", ">
301+ <date-part name="month"/>
302+ </date>
303+ </else>
304+ </choose>
305+ </if>
306+ <else-if type="legal_case">
307+ <text variable="volume" prefix=", "/>
308+ <text variable="container-title" prefix=" "/>
309+ <text variable="page" prefix=" "/>
310+ </else-if>
311+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
312+ <group prefix=". " delimiter=". ">
313+ <group>
314+ <text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
315+ <number variable="volume" form="numeric"/>
316+ </group>
317+ <group>
318+ <number variable="number-of-volumes" form="numeric"/>
319+ <text term="volume" form="short" prefix=" " plural="true"/>
320+ </group>
321+ </group>
322+ </else-if>
323+ <else-if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
324+ <choose>
325+ <if variable="page" match="none">
326+ <group prefix=". ">
327+ <text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
328+ <number variable="volume" form="numeric"/>
329+ </group>
330+ </if>
331+ </choose>
332+ </else-if>
333+ </choose>
334+ </macro>
335+ <macro name="locators-chapter">
336+ <choose>
337+ <if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
338+ <choose>
339+ <if variable="page">
340+ <group prefix=", ">
341+ <text variable="volume" suffix=":"/>
342+ <text variable="page"/>
343+ </group>
344+ </if>
345+ </choose>
346+ </if>
347+ </choose>
348+ </macro>
349+ <macro name="locators-article">
350+ <choose>
351+ <if type="article-newspaper">
352+ <group prefix=", " delimiter=", ">
353+ <group delimiter=" ">
354+ <text variable="edition"/>
355+ <text term="edition"/>
356+ </group>
357+ <group>
358+ <text term="section" form="short" suffix=" "/>
359+ <text variable="section"/>
360+ </group>
361+ </group>
362+ </if>
363+ <else-if type="article-journal">
364+ <choose>
365+ <if variable="volume issue" match="any">
366+ <text variable="page" prefix=": "/>
367+ </if>
368+ <else>
369+ <text variable="page" prefix=", "/>
370+ </else>
371+ </choose>
372+ </else-if>
373+ </choose>
374+ </macro>
375+ <macro name="point-locators">
376+ <choose>
377+ <if variable="locator">
378+ <choose>
379+ <if locator="page" match="none">
380+ <choose>
381+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
382+ <choose>
383+ <if variable="volume">
384+ <group>
385+ <text term="volume" form="short" suffix=" "/>
386+ <number variable="volume" form="numeric"/>
387+ <label variable="locator" form="short" prefix=", " suffix=" "/>
388+ </group>
389+ </if>
390+ <else>
391+ <label variable="locator" form="short" suffix=" "/>
392+ </else>
393+ </choose>
394+ </if>
395+ <else>
396+ <label variable="locator" form="short" suffix=" "/>
397+ </else>
398+ </choose>
399+ </if>
400+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
401+ <number variable="volume" form="numeric" suffix=":"/>
402+ </else-if>
403+ </choose>
404+ <text variable="locator"/>
405+ </if>
406+ </choose>
407+ </macro>
408+ <macro name="container-prefix">
409+ <text term="in" text-case="capitalize-first"/>
410+ </macro>
411+ <macro name="container-title">
412+ <choose>
413+ <if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
414+ <text macro="container-prefix" suffix=" "/>
415+ </if>
416+ </choose>
417+ <choose>
418+ <if type="webpage">
419+ <text variable="container-title" text-case="title"/>
420+ </if>
421+ <else-if type="legal_case" match="none">
422+ <group delimiter=" ">
423+ <text variable="container-title" text-case="title" font-style="italic"/>
424+ <choose>
425+ <if type="post-weblog">
426+ <text value="(blog)"/>
427+ </if>
428+ </choose>
429+ </group>
430+ </else-if>
431+ </choose>
432+ </macro>
433+ <macro name="publisher">
434+ <group delimiter=": ">
435+ <text variable="publisher-place"/>
436+ <text variable="publisher"/>
437+ </group>
438+ </macro>
439+ <macro name="date">
440+ <choose>
441+ <if variable="issued">
442+ <group delimiter=" ">
443+ <date variable="original-date" form="text" date-parts="year" prefix="(" suffix=")"/>
444+ <date variable="issued">
445+ <date-part name="year"/>
446+ </date>
447+ </group>
448+ </if>
449+ <else-if variable="status">
450+ <text variable="status" text-case="capitalize-first"/>
451+ </else-if>
452+ <else>
453+ <text term="no date" form="short"/>
454+ </else>
455+ </choose>
456+ </macro>
457+ <macro name="date-in-text">
458+ <choose>
459+ <if variable="issued">
460+ <group delimiter=" ">
461+ <date variable="original-date" form="text" date-parts="year" prefix="[" suffix="]"/>
462+ <date variable="issued">
463+ <date-part name="year"/>
464+ </date>
465+ </group>
466+ </if>
467+ <else-if variable="status">
468+ <text variable="status"/>
469+ </else-if>
470+ <else>
471+ <text term="no date" form="short"/>
472+ </else>
473+ </choose>
474+ </macro>
475+ <macro name="day-month">
476+ <date variable="issued">
477+ <date-part name="month"/>
478+ <date-part name="day" prefix=" "/>
479+ </date>
480+ </macro>
481+ <macro name="collection-title">
482+ <choose>
483+ <if match="none" type="article-journal">
484+ <choose>
485+ <if match="none" is-numeric="collection-number">
486+ <group delimiter=", ">
487+ <text variable="collection-title" text-case="title"/>
488+ <text variable="collection-number"/>
489+ </group>
490+ </if>
491+ <else>
492+ <group delimiter=" ">
493+ <text variable="collection-title" text-case="title"/>
494+ <text variable="collection-number"/>
495+ </group>
496+ </else>
497+ </choose>
498+ </if>
499+ </choose>
500+ </macro>
501+ <macro name="collection-title-journal">
502+ <choose>
503+ <if type="article-journal">
504+ <group delimiter=" ">
505+ <text variable="collection-title"/>
506+ <text variable="collection-number"/>
507+ </group>
508+ </if>
509+ </choose>
510+ </macro>
511+ <macro name="event">
512+ <group>
513+ <text term="presented at" suffix=" "/>
514+ <text variable="event"/>
515+ </group>
516+ </macro>
517+ <macro name="description">
518+ <choose>
519+ <if type="interview">
520+ <group delimiter=". ">
521+ <text macro="interviewer"/>
522+ <text variable="medium" text-case="capitalize-first"/>
523+ </group>
524+ </if>
525+ <else-if type="patent">
526+ <group delimiter=" " prefix=". ">
527+ <text variable="authority"/>
528+ <text variable="number"/>
529+ </group>
530+ </else-if>
531+ <else>
532+ <text variable="medium" text-case="capitalize-first" prefix=". "/>
533+ </else>
534+ </choose>
535+ <choose>
536+ <if variable="title" match="none"/>
537+ <else-if type="thesis personal_communication speech" match="any"/>
538+ <else>
539+ <group delimiter=" " prefix=". ">
540+ <text variable="genre" text-case="capitalize-first"/>
541+ <choose>
542+ <if type="report">
543+ <text variable="number"/>
544+ </if>
545+ </choose>
546+ </group>
547+ </else>
548+ </choose>
549+ </macro>
550+ <macro name="issue">
551+ <choose>
552+ <if type="legal_case">
553+ <text variable="authority" prefix=". "/>
554+ </if>
555+ <else-if type="speech">
556+ <group prefix=". " delimiter=", ">
557+ <group delimiter=" ">
558+ <text variable="genre" text-case="capitalize-first"/>
559+ <text macro="event"/>
560+ </group>
561+ <text variable="event-place"/>
562+ <text macro="day-month"/>
563+ </group>
564+ </else-if>
565+ <else-if type="article-newspaper article-magazine personal_communication" match="any">
566+ <date variable="issued" form="text" prefix=", "/>
567+ </else-if>
568+ <else-if type="patent">
569+ <group delimiter=", " prefix=", ">
570+ <group delimiter=" ">
571+ <!--Needs Localization-->
572+ <text value="filed"/>
573+ <date variable="submitted" form="text"/>
574+ </group>
575+ <group delimiter=" ">
576+ <choose>
577+ <if variable="issued submitted" match="all">
578+ <text term="and"/>
579+ </if>
580+ </choose>
581+ <!--Needs Localization-->
582+ <text value="issued"/>
583+ <date variable="issued" form="text"/>
584+ </group>
585+ </group>
586+ </else-if>
587+ <else-if type="article-journal" match="any"/>
588+ <else>
589+ <group prefix=". " delimiter=", ">
590+ <choose>
591+ <if type="thesis">
592+ <text variable="genre" text-case="capitalize-first"/>
593+ </if>
594+ </choose>
595+ <text macro="publisher"/>
596+ </group>
597+ </else>
598+ </choose>
599+ </macro>
600+ <citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name" collapse="year" after-collapse-delimiter="; ">
601+ <layout prefix="(" suffix=")" delimiter="; ">
602+ <group delimiter=", ">
603+ <choose>
604+ <if variable="issued accessed" match="any">
605+ <group delimiter=" ">
606+ <text macro="contributors-short"/>
607+ <text macro="date-in-text"/>
608+ </group>
609+ </if>
610+ <!---comma before forthcoming and n.d.-->
611+ <else>
612+ <group delimiter=", ">
613+ <text macro="contributors-short"/>
614+ <text macro="date-in-text"/>
615+ </group>
616+ </else>
617+ </choose>
618+ <text macro="point-locators"/>
619+ </group>
620+ </layout>
621+ </citation>
622+ <bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" subsequent-author-substitute="&#8212;&#8212;&#8212;" entry-spacing="0">
623+ <sort>
624+ <key macro="contributors"/>
625+ <key variable="issued"/>
626+ <key variable="title"/>
627+ </sort>
628+ <layout suffix=".">
629+ <group delimiter=". ">
630+ <text macro="contributors"/>
631+ <text macro="date"/>
632+ <text macro="title"/>
633+ </group>
634+ <text macro="description"/>
635+ <text macro="secondary-contributors" prefix=". "/>
636+ <text macro="container-title" prefix=". "/>
637+ <text macro="container-contributors"/>
638+ <text macro="edition"/>
639+ <text macro="locators-chapter"/>
640+ <text macro="collection-title-journal" prefix=", " suffix=", "/>
641+ <text macro="locators"/>
642+ <text macro="collection-title" prefix=". "/>
643+ <text macro="issue"/>
644+ <text macro="locators-article"/>
645+ <text macro="access" prefix=". "/>
646+ </layout>
647+ </bibliography>
648+</style>
data/templates/default.latex+19−4
@@ -368,10 +368,25 @@ $endif$
368368$if(csl-refs)$
369369\newlength{\cslhangindent}
370370\setlength{\cslhangindent}{1.5em}
371−\newenvironment{cslreferences}%
372− {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
373− \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
374− {\par}
371+\newlength{\csllabelwidth}
372+\setlength{\csllabelwidth}{3em}
373+\newenvironment{CSLReferences}[3] % #1 hanging-ident, #2 entry sp
374+ {% don't indent paragraphs
375+ \setlength{\parindent}{0pt}
376+ % turn on hanging indent if param 1 is 1
377+ \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
378+ % set line spacing
379+ % set entry spacing
380+ \ifnum #2 > 0
381+ \setlength{\parskip}{#3\baselineskip}
382+ \fi
383+ }%
384+ {}
385+\usepackage{calc} % for \widthof, \maxof
386+\newcommand{\CSLBlock}[1]{#1\hfill\break}
387+\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\maxof{\widthof{#1}}{\csllabelwidth}}{#1}}
388+\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth}{#1}}
389+\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
375390$endif$
376391
377392$if(title)$
data/templates/styles.html+24
@@ -121,3 +121,27 @@ $endif$
121121$if(displaymath-css)$
122122.display.math{display: block; text-align: center; margin: 0.5rem auto;}
123123$endif$
124+$if(csl-css)$
125+div.csl-bib-body { }
126+div.csl-entry {
127+ clear: both;
128+$if(csl-entry-spacing)$
129+ margin-bottom: $csl-entry-spacing$;
130+$endif$
131+}
132+.hanging div.csl-entry {
133+ margin-left:2em;
134+ text-indent:-2em;
135+}
136+div.csl-left-margin {
137+ min-width:2em;
138+ float:left;
139+}
140+div.csl-right-inline {
141+ margin-left:2em;
142+ padding-left:1em;
143+}
144+div.csl-indent {
145+ margin-left: 2em;
146+}
147+$endif$
linux/control.in+1−1
@@ -5,7 +5,7 @@ Priority: optional
55Architecture: ARCHITECTURE
66Installed-Size: INSTALLED_SIZE
77Depends: libc6 (>= 2.13), libgmp10, zlib1g (>= 1:1.1.4)
8−Replaces: pandoc-data, pandoc-citeproc
8+Replaces: pandoc-data
99Suggests: texlive-latex-recommended, texlive-xetex,
1010 texlive-fonts-recommended
1111Maintainer: John MacFarlane <jgm@berkeley.edu>
linux/make_artifacts.sh+5−15
@@ -16,10 +16,10 @@ ghc --version
1616
1717cabal v2-update
1818cabal v2-clean
19−cabal v2-configure --enable-tests -f-export-dynamic -fstatic -fembed_data_files -fbibutils --enable-executable-static --ghc-options '-optc-Os -optl=-pthread -split-sections' . pandoc-citeproc
20−cabal v2-build . pandoc-citeproc
21−cabal v2-test -j1 . pandoc-citeproc
22−for f in $(find dist-newstyle -name 'pandoc*' -type f -perm /400); do cp $f /artifacts/; done
19+cabal v2-configure --enable-tests -f-export-dynamic -fstatic -fembed_data_files -fbibutils --enable-executable-static --ghc-options '-optc-Os -optl=-pthread -split-sections' pandoc
20+cabal v2-build
21+cabal v2-test -j1
22+for f in $(find dist-newstyle -name 'pandoc' -type f -perm /400); do cp $f /artifacts/; done
2323
2424# make deb
2525
@@ -35,21 +35,14 @@ mkdir -p $DEST/bin
3535mkdir -p $DEST/share/man/man1
3636mkdir -p $DEST/share/doc/pandoc
3737
38−mkdir -p $DEST/share/doc/pandoc-citeproc
3938find $DIST -type d | xargs chmod 755
4039cp $ARTIFACTS/pandoc $DEST/bin/
41−cp $ARTIFACTS/pandoc-citeproc $DEST/bin/
4240strip $DEST/bin/pandoc
43−strip $DEST/bin/pandoc-citeproc
4441cp /mnt/man/pandoc.1 $DEST/share/man/man1/pandoc.1
45−$ARTIFACTS/pandoc-citeproc --man > $DEST/share/man/man1/pandoc-citeproc.1
4642gzip -9 $DEST/share/man/man1/pandoc.1
47−gzip -9 $DEST/share/man/man1/pandoc-citeproc.1
4843
4944cp /mnt/COPYRIGHT $COPYRIGHT
5045echo "" >> $COPYRIGHT
51−echo "pandoc-citeproc" >> $COPYRIGHT
52−$ARTIFACTS/pandoc-citeproc --license >> $COPYRIGHT
5346
5447INSTALLED_SIZE=$(du -k -s $DEST | awk '{print $1}')
5548mkdir $DIST/DEBIAN
@@ -70,13 +63,10 @@ cd $ARTIFACTS
7063rm -rf $TARGET
7164mkdir $TARGET
7265mkdir $TARGET/bin $TARGET/share $TARGET/share/man $TARGET/share/man/man1
73−./pandoc-citeproc --man > $TARGET/share/man/man1/pandoc-citeproc.1
7466cp /mnt/man/pandoc.1 $TARGET/share/man/man1
75−mv pandoc pandoc-citeproc $TARGET/bin
67+mv pandoc $TARGET/bin
7668strip $TARGET/bin/pandoc
77−strip $TARGET/bin/pandoc-citeproc
7869gzip -9 $TARGET/share/man/man1/pandoc.1
79−gzip -9 $TARGET/share/man/man1/pandoc-citeproc.1
8070
8171tar cvzf $TARGET-linux-amd64.tar.gz $TARGET
8272rm -r $TARGET
macos/Makefile+1−2
@@ -6,9 +6,8 @@ ALL=$(BASE)-macOS.pkg $(BASE)-macOS.zip
66all: $(ALL) notarize
77
88signed.txt: $(DEST)
9− chmod +x $(DEST)/bin/pandoc $(DEST)/bin/pandoc-citeproc
9+ chmod +x $(DEST)/bin/pandoc
1010 codesign --force --options runtime -s "5U2WKE6DES" $(DEST)/bin/pandoc
11− codesign --force --options runtime -s "5U2WKE6DES" $(DEST)/bin/pandoc-citeproc
1211 echo "SIGNED" > signed.txt
1312
1413pandoc.pkg: signed.txt
pandoc.cabal+19−2
@@ -180,6 +180,9 @@ data-files:
180180 data/bash_completion.tpl
181181 -- jats csl
182182 data/jats.csl
183+ -- citeproc
184+ data/default.csl
185+ citeproc/biblatex-localization/*.lbx.strings
183186 -- documentation
184187 MANUAL.txt, COPYRIGHT
185188extra-source-files:
@@ -201,6 +204,9 @@ extra-source-files:
201204 test/bodybg.gif
202205 test/*.native
203206 test/command/*.md
207+ test/command/*.csl
208+ test/command/biblio.bib
209+ test/command/biblatex-examples.bib
204210 test/command/A.txt
205211 test/command/B.txt
206212 test/command/C.txt
@@ -397,6 +403,7 @@ library
397403 blaze-markup >= 0.8 && < 0.9,
398404 bytestring >= 0.9 && < 0.11,
399405 case-insensitive >= 1.2 && < 1.3,
406+ citeproc >= 0.0 && < 0.1,
400407 commonmark >= 0.1.0.2 && < 0.2,
401408 commonmark-extensions >= 0.2 && < 0.3,
402409 commonmark-pandoc >= 0.2 && < 0.3,
@@ -409,6 +416,7 @@ library
409416 doctemplates >= 0.8.2 && < 0.9,
410417 emojis >= 0.1 && < 0.2,
411418 exceptions >= 0.8 && < 0.11,
419+ file-embed >= 0.0 && < 0.1,
412420 filepath >= 1.1 && < 1.5,
413421 haddock-library >= 1.8 && < 1.10,
414422 hslua >= 1.1 && < 1.3,
@@ -457,7 +465,6 @@ library
457465 build-depends: unix >= 2.4 && < 2.8
458466 if flag(embed_data_files)
459467 cpp-options: -DEMBED_DATA_FILES
460− build-depends: file-embed >= 0.0 && < 0.1
461468 other-modules: Text.Pandoc.Data
462469 if os(windows)
463470 cpp-options: -D_WINDOWS
@@ -495,6 +502,8 @@ library
495502 Text.Pandoc.Readers.Markdown,
496503 Text.Pandoc.Readers.CommonMark,
497504 Text.Pandoc.Readers.Creole,
505+ Text.Pandoc.Readers.BibTeX,
506+ Text.Pandoc.Readers.CslJson,
498507 Text.Pandoc.Readers.MediaWiki,
499508 Text.Pandoc.Readers.Vimwiki,
500509 Text.Pandoc.Readers.RST,
@@ -553,6 +562,7 @@ library
553562 Text.Pandoc.Writers.FB2,
554563 Text.Pandoc.Writers.TEI,
555564 Text.Pandoc.Writers.Muse,
565+ Text.Pandoc.Writers.CslJson,
556566 Text.Pandoc.Writers.Math,
557567 Text.Pandoc.Writers.Shared,
558568 Text.Pandoc.Writers.OOXML,
@@ -572,7 +582,8 @@ library
572582 Text.Pandoc.Emoji,
573583 Text.Pandoc.ImageSize,
574584 Text.Pandoc.BCP47,
575− Text.Pandoc.Class
585+ Text.Pandoc.Class,
586+ Text.Pandoc.Citeproc
576587 other-modules: Text.Pandoc.App.CommandLineOptions,
577588 Text.Pandoc.App.FormatHeuristics,
578589 Text.Pandoc.App.Opt,
@@ -651,6 +662,12 @@ library
651662 Text.Pandoc.Translations,
652663 Text.Pandoc.Slides,
653664 Text.Pandoc.Image,
665+ Text.Pandoc.Citeproc.BibTeX,
666+ Text.Pandoc.Citeproc.CslJson,
667+ Text.Pandoc.Citeproc.Data,
668+ Text.Pandoc.Citeproc.Locator,
669+ Text.Pandoc.Citeproc.MetaValue,
670+ Text.Pandoc.Citeproc.Util,
654671 Paths_pandoc
655672 autogen-modules: Paths_pandoc
656673 buildable: True
src/Text/Pandoc/App.hs+16−11
@@ -76,15 +76,6 @@ convertWithOpts opts = do
7676 mapM_ (UTF8.hPutStrLn stdout) (fromMaybe ["-"] $ optInputFiles opts)
7777 exitSuccess
7878
79− let isPandocCiteproc (JSONFilter f) = takeBaseName f == "pandoc-citeproc"
80− isPandocCiteproc _ = False
81− -- --bibliography implies -F pandoc-citeproc for backwards compatibility:
82− let needsCiteproc = isJust (lookupMeta "bibliography"
83− (optMetadata opts)) &&
84− optCiteMethod opts `notElem` [Natbib, Biblatex] &&
85− not (any isPandocCiteproc filters)
86− let filters' = filters ++ [ JSONFilter "pandoc-citeproc" | needsCiteproc ]
87−
8879 let sources = case optInputFiles opts of
8980 Just xs | not (optIgnoreArgs opts) -> xs
9081 _ -> ["-"]
@@ -170,7 +161,14 @@ convertWithOpts opts = do
170161 let writerName = outputWriterName outputSettings
171162 let writerOptions = outputWriterOptions outputSettings
172163
173− let standalone = optStandalone opts || not (isTextFormat format) || pdfOutput
164+ let bibOutput = writerName == "bibtex" ||
165+ writerName == "biblatex" ||
166+ writerName == "csljson"
167+
168+ let standalone = optStandalone opts ||
169+ not (isTextFormat format) ||
170+ pdfOutput ||
171+ bibOutput
174172
175173 -- We don't want to send output to the terminal if the user
176174 -- does 'pandoc -t docx input.txt'; though we allow them to
@@ -272,6 +270,13 @@ convertWithOpts opts = do
272270
273271 setNoCheckCertificate (optNoCheckCertificate opts)
274272
273+ let isPandocCiteproc (JSONFilter f) = takeBaseName f == "pandoc-citeproc"
274+ isPandocCiteproc _ = False
275+
276+ when (any isPandocCiteproc filters) $
277+ report $ Deprecated "pandoc-citeproc filter"
278+ "Use --citeproc instead."
279+
275280 doc <- sourceToDoc sources >>=
276281 ( (if isJust (optExtractMedia opts)
277282 then fillMediaBag
@@ -279,7 +284,7 @@ convertWithOpts opts = do
279284 >=> return . adjustMetadata (metadataFromFile <>)
280285 >=> return . adjustMetadata (<> metadata)
281286 >=> applyTransforms transforms
282− >=> applyFilters readerOpts filters' [T.unpack format]
287+ >=> applyFilters readerOpts filters [T.unpack format]
283288 >=> maybe return extractMedia (optExtractMedia opts)
284289 )
285290
src/Text/Pandoc/App/CommandLineOptions.hs+6
@@ -656,6 +656,12 @@ options =
656656 "all|none|best")
657657 "" -- "Starting number for sections, subsections, etc."
658658
659+ , Option "C" ["citeproc"]
660+ (NoArg
661+ (\opt -> return opt { optFilters =
662+ optFilters opt ++ [CiteprocFilter] }))
663+ "" -- "Process citations"
664+
659665 , Option "" ["bibliography"]
660666 (ReqArg
661667 (\arg opt -> return opt{ optMetadata =
src/Text/Pandoc/App/FormatHeuristics.hs+1
@@ -74,5 +74,6 @@ formatFromFilePath x =
7474 ".xhtml" -> Just "html"
7575 ".ipynb" -> Just "ipynb"
7676 ".csv" -> Just "csv"
77+ ".bib" -> Just "biblatex"
7778 ['.',y] | y `elem` ['1'..'9'] -> Just "man"
7879 _ -> Nothing
src/Text/Pandoc/App/Opt.hs+5
@@ -294,6 +294,11 @@ doOpt (k',v) = do
294294 parseYAML v >>= \x -> return (\o -> o{ optColumns = x })
295295 "filters" ->
296296 parseYAML v >>= \x -> return (\o -> o{ optFilters = optFilters o <> x })
297+ "citeproc" ->
298+ parseYAML v >>= \x ->
299+ if x
300+ then return (\o -> o{ optFilters = CiteprocFilter : optFilters o })
301+ else return id
297302 "email-obfuscation" ->
298303 parseYAML v >>= \x -> return (\o -> o{ optEmailObfuscation = x })
299304 "identifier-prefix" ->
src/Text/Pandoc/Citeproc.hsnew file+492
@@ -0,0 +1,492 @@
1+{-# LANGUAGE ScopedTypeVariables #-}
2+{-# LANGUAGE FlexibleContexts #-}
3+{-# LANGUAGE ViewPatterns #-}
4+{-# LANGUAGE StrictData #-}
5+{-# LANGUAGE MultiParamTypeClasses #-}
6+{-# LANGUAGE FlexibleInstances #-}
7+{-# LANGUAGE OverloadedStrings #-}
8+{-# LANGUAGE DeriveFunctor #-}
9+{-# LANGUAGE DeriveFoldable #-}
10+{-# LANGUAGE DeriveTraversable #-}
11+module Text.Pandoc.Citeproc
12+ ( processCitations )
13+where
14+
15+import Citeproc as Citeproc
16+import Citeproc.Pandoc ()
17+import Text.Pandoc.Citeproc.Locator (parseLocator)
18+import Text.Pandoc.Citeproc.CslJson (cslJsonToReferences)
19+import Text.Pandoc.Citeproc.BibTeX (readBibtexString, Variant(..))
20+import Text.Pandoc.Citeproc.MetaValue (metaValueToReference, metaValueToText)
21+import Data.ByteString (ByteString)
22+import qualified Data.ByteString.Lazy as L
23+import Text.Pandoc.Definition as Pandoc
24+import Text.Pandoc.Walk
25+import Text.Pandoc.Builder as B
26+import Text.Pandoc (PandocMonad(..), PandocError(..), readMarkdown,
27+ readDataFile, ReaderOptions(..), pandocExtensions,
28+ report, LogMessage(..), fetchItem)
29+import Text.Pandoc.Shared (stringify, ordNub, blocksToInlines)
30+import qualified Text.Pandoc.UTF8 as UTF8
31+import Data.Aeson (eitherDecode)
32+import Data.Default
33+import Data.Ord ()
34+import qualified Data.Map as M
35+import qualified Data.Set as Set
36+import Data.Char (isPunctuation)
37+import Data.Text (Text)
38+import qualified Data.Text as T
39+import Control.Monad.State
40+import qualified Data.Sequence as Seq
41+import qualified Data.Foldable as Foldable
42+import System.FilePath
43+import Control.Applicative
44+import Control.Monad.Except
45+import Data.Maybe (mapMaybe, fromMaybe)
46+import Safe (lastMay, initSafe)
47+-- import Debug.Trace as Trace (trace, traceShowId)
48+
49+
50+processCitations :: PandocMonad m => Pandoc -> m Pandoc
51+processCitations (Pandoc meta bs) = do
52+ let cslfile = (lookupMeta "csl" meta <|> lookupMeta "citation-style" meta)
53+ >>= metaValueToText
54+
55+ let getFile fp = catchError (fst <$> fetchItem fp)
56+ (\e -> catchError (readDataFile
57+ (T.unpack $ "csl/" <> fp))
58+ (\_ -> throwError e))
59+
60+ let getCslDefault = readDataFile "default.csl"
61+
62+ cslContents <- UTF8.toText <$> maybe getCslDefault getFile cslfile
63+
64+ let abbrevFile = lookupMeta "citation-abbreviations" meta >>= metaValueToText
65+
66+ mbAbbrevs <- case abbrevFile of
67+ Nothing -> return Nothing
68+ Just fp -> do
69+ rawAbbr <- getFile fp
70+ case eitherDecode (L.fromStrict rawAbbr) of
71+ Left err -> throwError $ PandocCiteprocError $
72+ CiteprocParseError $
73+ "Could not parse abbreviations file " <> fp
74+ <> "\n" <> T.pack err
75+ Right abbr -> return $ Just abbr
76+
77+ let getParentStyle url = UTF8.toText . fst <$> fetchItem url
78+
79+ -- TODO check .csl directory if not found
80+ styleRes <- Citeproc.parseStyle getParentStyle cslContents
81+ style <-
82+ case styleRes of
83+ Left err -> throwError $ PandocAppError $ prettyCiteprocError err
84+ Right style -> return style{ styleAbbreviations = mbAbbrevs }
85+ let mblang = parseLang <$>
86+ ((lookupMeta "lang" meta <|> lookupMeta "locale" meta) >>= metaValueToText)
87+ let locale = Citeproc.mergeLocales mblang style
88+ let getCiteId (Cite cs _) = Set.fromList $ map B.citationId cs
89+ getCiteId _ = mempty
90+ let metanocites = lookupMeta "nocite" meta
91+ let meta' = deleteMeta "nocite" meta
92+ let nocites = maybe mempty (query getCiteId) metanocites
93+ let citeIds = query getCiteId (Pandoc meta bs)
94+ let idpred = if "*" `Set.member` nocites
95+ then const True
96+ else (\c -> c `Set.member` citeIds ||
97+ c `Set.member` nocites)
98+ refs <- map (linkifyVariables . legacyDateRanges) <$>
99+ case lookupMeta "references" meta of
100+ Just (MetaList rs) -> return $ mapMaybe metaValueToReference rs
101+ _ ->
102+ case lookupMeta "bibliography" meta of
103+ Just (MetaList xs) ->
104+ mconcat <$>
105+ mapM (getRefsFromBib locale idpred)
106+ (mapMaybe metaValueToText xs)
107+ Just x ->
108+ case metaValueToText x of
109+ Just fp -> getRefsFromBib locale idpred fp
110+ Nothing -> return []
111+ Nothing -> return []
112+ let otherIdsMap = foldr (\ref m ->
113+ case T.words . extractText <$>
114+ M.lookup "other-ids" (referenceVariables ref) of
115+ Nothing -> m
116+ Just ids -> foldr
117+ (\id' ->
118+ M.insert id' (referenceId ref)) m ids)
119+ M.empty refs
120+ -- TODO: issue warning if no refs defined
121+ let citations = getCitations locale otherIdsMap $ Pandoc meta' bs
122+ let linkCites = maybe False truish $ lookupMeta "link-citations" meta
123+ let opts = defaultCiteprocOptions{ linkCitations = linkCites }
124+ let result = Citeproc.citeproc opts style (localeLanguage locale)
125+ refs citations
126+ mapM_ (report . CiteprocWarning) (resultWarnings result)
127+ let sopts = styleOptions style
128+ let classes = "references" : -- TODO remove this or keep for compatibility?
129+ "csl-bib-body" :
130+ ["hanging-indent" | styleHangingIndent sopts]
131+ let refkvs = (case styleEntrySpacing sopts of
132+ Just es | es > 0 -> (("entry-spacing",T.pack $ show es):)
133+ _ -> id) .
134+ (case styleLineSpacing sopts of
135+ Just ls | ls > 1 -> (("line-spacing",T.pack $ show ls):)
136+ _ -> id) $ []
137+ let bibs = mconcat $ map (\(ident, out) ->
138+ B.divWith ("ref-" <> ident,["csl-entry"],[]) . B.para $
139+ walk (convertQuotes locale) out)
140+ (resultBibliography result)
141+ let moveNotes = maybe True truish $
142+ lookupMeta "notes-after-punctuation" meta
143+ let cits = map (walk (convertQuotes locale)) $
144+ resultCitations result
145+
146+ let fixQuotes = case localePunctuationInQuote locale of
147+ Just True ->
148+ B.toList . movePunctuationInsideQuotes . B.fromList
149+ _ -> id
150+
151+ let Pandoc meta'' bs' =
152+ maybe id (setMeta "nocite") metanocites $
153+ walk (fixQuotes . mvPunct moveNotes locale) $ walk deNote $
154+ evalState (walkM insertResolvedCitations $ Pandoc meta' bs)
155+ $ cits
156+ return $ Pandoc meta'' $ insertRefs refkvs classes meta'' (B.toList bibs) bs'
157+
158+getRefsFromBib :: PandocMonad m
159+ => Locale -> (Text -> Bool) -> Text -> m [Reference Inlines]
160+getRefsFromBib locale idpred t = do
161+ let fp = T.unpack t
162+ raw <- readFileStrict fp
163+ case formatFromExtension fp of
164+ Just f -> getRefs locale f idpred raw
165+ Nothing -> throwError $ PandocAppError $
166+ "Could not deterine bibliography format for " <> t
167+
168+getRefs :: PandocMonad m
169+ => Locale
170+ -> BibFormat
171+ -> (Text -> Bool)
172+ -> ByteString
173+ -> m [Reference Inlines]
174+getRefs locale format idpred raw =
175+ case format of
176+ Format_bibtex ->
177+ either (throwError . PandocAppError . T.pack . show) return .
178+ readBibtexString Bibtex locale idpred . UTF8.toText $ raw
179+ Format_biblatex ->
180+ either (throwError . PandocAppError . T.pack . show) return .
181+ readBibtexString Biblatex locale idpred . UTF8.toText $ raw
182+ Format_json ->
183+ either (throwError . PandocAppError . T.pack)
184+ (return . filter (idpred . unItemId . referenceId)) .
185+ cslJsonToReferences $ raw
186+ Format_yaml -> do
187+ Pandoc meta _ <-
188+ readMarkdown
189+ def{ readerExtensions = pandocExtensions }
190+ (UTF8.toText raw)
191+ case lookupMeta "references" meta of
192+ Just (MetaList rs) ->
193+ return $ filter (idpred . unItemId . referenceId)
194+ $ mapMaybe metaValueToReference rs
195+ _ -> throwError $ PandocAppError "No references field"
196+
197+-- localized quotes
198+convertQuotes :: Locale -> Inline -> Inline
199+convertQuotes locale (Quoted qt ils) =
200+ case (M.lookup openterm terms, M.lookup closeterm terms) of
201+ (Just ((_,oq):_), Just ((_,cq):_)) ->
202+ Span ("",[],[]) (Str oq : ils ++ [Str cq])
203+ _ -> Quoted qt ils
204+ where
205+ terms = localeTerms locale
206+ openterm = case qt of
207+ DoubleQuote -> "open-quote"
208+ SingleQuote -> "open-inner-quote"
209+ closeterm = case qt of
210+ DoubleQuote -> "close-quote"
211+ SingleQuote -> "close-inner-quote"
212+convertQuotes _ x = x
213+
214+-- assumes we walk in same order as query
215+insertResolvedCitations :: Inline -> State [Inlines] Inline
216+insertResolvedCitations (Cite cs ils) = do
217+ resolved <- get
218+ case resolved of
219+ [] -> return (Cite cs ils)
220+ (x:xs) -> do
221+ put xs
222+ return $ Cite cs (B.toList x)
223+insertResolvedCitations x = return x
224+
225+getCitations :: Locale
226+ -> M.Map Text ItemId
227+ -> Pandoc
228+ -> [Citeproc.Citation Inlines]
229+getCitations locale otherIdsMap = Foldable.toList . query getCitation
230+ where
231+ getCitation (Cite cs _fallback) = Seq.singleton $
232+ Citeproc.Citation { Citeproc.citationId = Nothing
233+ , Citeproc.citationNoteNumber =
234+ case cs of
235+ [] -> Nothing
236+ (Pandoc.Citation{ Pandoc.citationNoteNum = n }:
237+ _) | n > 0 -> Just n
238+ | otherwise -> Nothing
239+ , Citeproc.citationItems =
240+ fromPandocCitations locale otherIdsMap cs
241+ }
242+ getCitation _ = mempty
243+
244+fromPandocCitations :: Locale
245+ -> M.Map Text ItemId
246+ -> [Pandoc.Citation]
247+ -> [CitationItem Inlines]
248+fromPandocCitations locale otherIdsMap = concatMap go
249+ where
250+ go c =
251+ let (loclab, suffix) = parseLocator locale (citationSuffix c)
252+ (mblab, mbloc) = case loclab of
253+ Just (loc, lab) -> (Just loc, Just lab)
254+ Nothing -> (Nothing, Nothing)
255+ cit = CitationItem
256+ { citationItemId = fromMaybe
257+ (ItemId $ Pandoc.citationId c)
258+ (M.lookup (Pandoc.citationId c) otherIdsMap)
259+ , citationItemLabel = mblab
260+ , citationItemLocator = mbloc
261+ , citationItemType = NormalCite
262+ , citationItemPrefix = case citationPrefix c of
263+ [] -> Nothing
264+ ils -> Just $ B.fromList ils <>
265+ B.space
266+ , citationItemSuffix = case suffix of
267+ [] -> Nothing
268+ ils -> Just $ B.fromList ils
269+ }
270+ in if Pandoc.citationId c == "*"
271+ then []
272+ else
273+ case citationMode c of
274+ AuthorInText -> [ cit{ citationItemType = AuthorOnly
275+ , citationItemSuffix = Nothing }
276+ , cit{ citationItemType =
277+ Citeproc.SuppressAuthor
278+ , citationItemPrefix = Nothing } ]
279+ NormalCitation -> [ cit ]
280+ Pandoc.SuppressAuthor
281+ -> [ cit{ citationItemType =
282+ Citeproc.SuppressAuthor } ]
283+
284+
285+
286+data BibFormat =
287+ Format_biblatex
288+ | Format_bibtex
289+ | Format_json
290+ | Format_yaml
291+ deriving (Show, Eq, Ord)
292+
293+formatFromExtension :: FilePath -> Maybe BibFormat
294+formatFromExtension fp = case dropWhile (== '.') $ takeExtension fp of
295+ "biblatex" -> Just Format_biblatex
296+ "bibtex" -> Just Format_bibtex
297+ "bib" -> Just Format_biblatex
298+ "json" -> Just Format_json
299+ "yaml" -> Just Format_yaml
300+ _ -> Nothing
301+
302+
303+isNote :: Inline -> Bool
304+isNote (Note _) = True
305+isNote (Cite _ [Note _]) = True
306+ -- the following allows citation styles that are "in-text" but use superscript
307+ -- references to be treated as if they are "notes" for the purposes of moving
308+ -- the citations after trailing punctuation (see <https://github.com/jgm/pandoc-citeproc/issues/382>):
309+isNote (Cite _ [Superscript _]) = True
310+isNote _ = False
311+
312+isSpacy :: Inline -> Bool
313+isSpacy Space = True
314+isSpacy SoftBreak = True
315+isSpacy _ = False
316+
317+
318+mvPunct :: Bool -> Locale -> [Inline] -> [Inline]
319+mvPunct moveNotes locale (x : xs)
320+ | isSpacy x = x : mvPunct moveNotes locale xs
321+-- 'x [^1],' -> 'x,[^1]'
322+mvPunct moveNotes locale (q : s : x : ys)
323+ | isSpacy s
324+ , isNote x
325+ = let spunct = T.takeWhile isPunctuation $ stringify ys
326+ in if moveNotes
327+ then if T.null spunct
328+ then q : x : mvPunct moveNotes locale ys
329+ else q : Str spunct : x : mvPunct moveNotes locale
330+ (B.toList
331+ (dropTextWhile isPunctuation (B.fromList ys)))
332+ else q : x : mvPunct moveNotes locale ys
333+-- 'x[^1],' -> 'x,[^1]'
334+mvPunct moveNotes locale (Cite cs ils : ys)
335+ | not (null ils)
336+ , isNote (last ils)
337+ , startWithPunct ys
338+ , moveNotes
339+ = let s = stringify ys
340+ spunct = T.takeWhile isPunctuation s
341+ in Cite cs (init ils
342+ ++ [Str spunct | not (endWithPunct False (init ils))]
343+ ++ [last ils]) :
344+ mvPunct moveNotes locale
345+ (B.toList (dropTextWhile isPunctuation (B.fromList ys)))
346+mvPunct moveNotes locale (s : x : ys) | isSpacy s, isNote x =
347+ x : mvPunct moveNotes locale ys
348+mvPunct moveNotes locale (s : x@(Cite _ (Superscript _ : _)) : ys)
349+ | isSpacy s = x : mvPunct moveNotes locale ys
350+mvPunct moveNotes locale (Cite cs ils : Str "." : ys)
351+ | "." `T.isSuffixOf` (stringify ils)
352+ = Cite cs ils : mvPunct moveNotes locale ys
353+mvPunct moveNotes locale (x:xs) = x : mvPunct moveNotes locale xs
354+mvPunct _ _ [] = []
355+
356+endWithPunct :: Bool -> [Inline] -> Bool
357+endWithPunct _ [] = False
358+endWithPunct onlyFinal xs@(_:_) =
359+ case reverse (T.unpack $ stringify xs) of
360+ [] -> True
361+ -- covers .), .", etc.:
362+ (d:c:_) | isPunctuation d
363+ && not onlyFinal
364+ && isEndPunct c -> True
365+ (c:_) | isEndPunct c -> True
366+ | otherwise -> False
367+ where isEndPunct c = c `elem` (".,;:!?" :: String)
368+
369+
370+
371+startWithPunct :: [Inline] -> Bool
372+startWithPunct ils =
373+ case T.uncons (stringify ils) of
374+ Just (c,_) -> c `elem` (".,;:!?" :: [Char])
375+ Nothing -> False
376+
377+truish :: MetaValue -> Bool
378+truish (MetaBool t) = t
379+truish (MetaString s) = isYesValue (T.toLower s)
380+truish (MetaInlines ils) = isYesValue (T.toLower (stringify ils))
381+truish (MetaBlocks [Plain ils]) = isYesValue (T.toLower (stringify ils))
382+truish _ = False
383+
384+isYesValue :: Text -> Bool
385+isYesValue "t" = True
386+isYesValue "true" = True
387+isYesValue "yes" = True
388+isYesValue _ = False
389+
390+-- if document contains a Div with id="refs", insert
391+-- references as its contents. Otherwise, insert references
392+-- at the end of the document in a Div with id="refs"
393+insertRefs :: [(Text,Text)] -> [Text] -> Meta -> [Block] -> [Block] -> [Block]
394+insertRefs _ _ _ [] bs = bs
395+insertRefs refkvs refclasses meta refs bs =
396+ if isRefRemove meta
397+ then bs
398+ else case runState (walkM go bs) False of
399+ (bs', True) -> bs'
400+ (_, False)
401+ -> case refTitle meta of
402+ Nothing ->
403+ case reverse bs of
404+ Header lev (id',classes,kvs) ys : xs ->
405+ reverse xs ++
406+ [Header lev (id',addUnNumbered classes,kvs) ys,
407+ Div ("refs",refclasses,refkvs) refs]
408+ _ -> bs ++ [refDiv]
409+ Just ils -> bs ++
410+ [Header 1 ("bibliography", ["unnumbered"], []) ils,
411+ refDiv]
412+ where
413+ refDiv = Div ("refs", refclasses, refkvs) refs
414+ addUnNumbered cs = "unnumbered" : [c | c <- cs, c /= "unnumbered"]
415+ go :: Block -> State Bool Block
416+ go (Div ("refs",cs,kvs) xs) = do
417+ put True
418+ -- refHeader isn't used if you have an explicit references div
419+ let cs' = ordNub $ cs ++ refclasses
420+ return $ Div ("refs",cs',kvs) (xs ++ refs)
421+ go x = return x
422+
423+refTitle :: Meta -> Maybe [Inline]
424+refTitle meta =
425+ case lookupMeta "reference-section-title" meta of
426+ Just (MetaString s) -> Just [Str s]
427+ Just (MetaInlines ils) -> Just ils
428+ Just (MetaBlocks [Plain ils]) -> Just ils
429+ Just (MetaBlocks [Para ils]) -> Just ils
430+ _ -> Nothing
431+
432+isRefRemove :: Meta -> Bool
433+isRefRemove meta =
434+ maybe False truish $ lookupMeta "suppress-bibliography" meta
435+
436+legacyDateRanges :: Reference Inlines -> Reference Inlines
437+legacyDateRanges ref =
438+ ref{ referenceVariables = M.map go $ referenceVariables ref }
439+ where
440+ go (DateVal d)
441+ | null (dateParts d)
442+ , Just lit <- dateLiteral d
443+ = case T.splitOn "_" lit of
444+ [x,y] -> case Citeproc.rawDateEDTF (x <> "/" <> y) of
445+ Just d' -> DateVal d'
446+ Nothing -> DateVal d
447+ _ -> DateVal d
448+ go x = x
449+
450+linkifyVariables :: Reference Inlines -> Reference Inlines
451+linkifyVariables ref =
452+ ref{ referenceVariables = M.mapWithKey go $ referenceVariables ref }
453+ where
454+ go "URL" x = tolink "https://" x
455+ go "DOI" x = tolink "https://doi.org/" x
456+ go "ISBN" x = tolink "https://worldcat.org/isbn/" x
457+ go "PMID" x = tolink "https://www.ncbi.nlm.nih.gov/pubmed/" x
458+ go "PMCID" x = tolink "https://www.ncbi.nlm.nih.gov/pmc/articles/" x
459+ go _ x = x
460+ tolink pref x = let x' = extractText x
461+ x'' = if "://" `T.isInfixOf` x'
462+ then x'
463+ else pref <> x'
464+ in FancyVal (B.link x'' "" (B.str x'))
465+
466+extractText :: Val Inlines -> Text
467+extractText (TextVal x) = x
468+extractText (FancyVal x) = toText x
469+extractText (NumVal n) = T.pack (show n)
470+extractText _ = mempty
471+
472+deNote :: Inline -> Inline
473+deNote (Note bs) = Note $ walk go bs
474+ where
475+ go (Note bs')
476+ = Span ("",[],[]) (Space : Str "(" :
477+ (removeFinalPeriod
478+ (blocksToInlines bs')) ++ [Str ")"])
479+ go x = x
480+deNote x = x
481+
482+-- Note: we can't use dropTextWhileEnd because this would
483+-- remove the final period on abbreviations like Ibid.
484+-- But removing a final Str "." is safe.
485+removeFinalPeriod :: [Inline] -> [Inline]
486+removeFinalPeriod ils =
487+ case lastMay ils of
488+ Just (Str ".") -> initSafe ils
489+ _ -> ils
490+
491+
492+
src/Text/Pandoc/Citeproc/BibTeX.hsnew file+1237
@@ -0,0 +1,1237 @@
1+{-# LANGUAGE ViewPatterns #-}
2+{-# LANGUAGE OverloadedStrings #-}
3+{-# LANGUAGE ScopedTypeVariables #-}
4+{-# LANGUAGE FlexibleContexts #-}
5+{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
6+-----------------------------------------------------------------------------
7+-- |
8+-- Module : Text.CSL.Input.Bibtex
9+-- Copyright : (c) John MacFarlane
10+-- License : BSD-style (see LICENSE)
11+--
12+-- Maintainer : John MacFarlane <fiddlosopher@gmail.com>
13+-- Stability : unstable-- Portability : unportable
14+--
15+-----------------------------------------------------------------------------
16+
17+module Text.Pandoc.Citeproc.BibTeX
18+ ( Variant(..)
19+ , readBibtexString
20+ )
21+ where
22+
23+import Text.Pandoc.Definition
24+import Text.Pandoc.Builder as B
25+import Text.Pandoc.Readers.LaTeX (readLaTeX)
26+import Text.Pandoc.Extensions (Extension(..), extensionsFromList)
27+import Text.Pandoc.Options (ReaderOptions(..))
28+import Text.Pandoc.Class (runPure)
29+import Text.Pandoc.Error (PandocError)
30+import Text.Pandoc.Shared (stringify)
31+import qualified Text.Pandoc.Walk as Walk
32+import Citeproc.Types
33+import Citeproc.CaseTransform (withSentenceCase)
34+import Citeproc.Pandoc (caseTransform)
35+import Text.Pandoc.Citeproc.Util (toIETF)
36+import Text.Pandoc.Citeproc.Data (biblatexStringMap)
37+import Data.Default
38+import Data.Text (Text)
39+import qualified Data.Text as T
40+import qualified Data.Map as Map
41+import Data.Maybe
42+import Text.Parsec hiding (State, many, (<|>))
43+import Control.Applicative
44+import Data.List.Split (splitOn, splitWhen, wordsBy)
45+import Control.Monad.RWS hiding ((<>))
46+import qualified Data.Sequence as Seq
47+import Data.Char (isAlphaNum, isDigit, isLetter,
48+ isUpper, toLower, toUpper,
49+ isLower, isPunctuation)
50+import Data.List (foldl', intercalate)
51+import Safe (readMay)
52+
53+data Variant = Bibtex | Biblatex
54+ deriving (Show, Eq, Ord)
55+
56+-- | Parse BibTeX or BibLaTeX into a list of 'Reference's.
57+readBibtexString :: Variant -- ^ bibtex or biblatex
58+ -> Locale -- ^ Locale
59+ -> (Text -> Bool) -- ^ Filter on citation ids
60+ -> Text -- ^ bibtex/biblatex text
61+ -> Either ParseError [Reference Inlines]
62+readBibtexString variant locale idpred contents = do
63+ case runParser (((resolveCrossRefs variant <$> bibEntries) <* eof) >>=
64+ mapM (itemToReference locale variant) .
65+ filter (idpred . identifier))
66+ (fromMaybe defaultLang $ localeLanguage locale, Map.empty)
67+ "" contents of
68+ Left err -> Left err
69+ Right xs -> return xs
70+
71+defaultLang :: Lang
72+defaultLang = Lang "en" (Just "US")
73+
74+-- a map of bibtex "string" macros
75+type StringMap = Map.Map Text Text
76+
77+type BibParser = Parsec Text (Lang, StringMap)
78+
79+data Item = Item{ identifier :: Text
80+ , sourcePos :: SourcePos
81+ , entryType :: Text
82+ , fields :: Map.Map Text Text
83+ }
84+ deriving (Show, Ord, Eq)
85+
86+itemToReference :: Locale -> Variant -> Item -> BibParser (Reference Inlines)
87+itemToReference locale variant item = do
88+ setPosition (sourcePos item)
89+ bib item $ do
90+ let lang = fromMaybe defaultLang $ localeLanguage locale
91+ modify $ \st -> st{ localeLang = lang,
92+ untitlecase = case lang of
93+ (Lang "en" _) -> True
94+ _ -> False }
95+
96+ id' <- asks identifier
97+ otherIds <- (Just <$> getRawField "ids")
98+ <|> return Nothing
99+ (reftype, genre) <- getTypeAndGenre
100+ -- hyphenation:
101+ let getLangId = do
102+ langid <- T.strip . T.toLower <$> getRawField "langid"
103+ idopts <- T.strip . T.toLower . stringify <$>
104+ getField "langidopts" <|> return ""
105+ case (langid, idopts) of
106+ ("english","variant=british") -> return "british"
107+ ("english","variant=american") -> return "american"
108+ ("english","variant=us") -> return "american"
109+ ("english","variant=usmax") -> return "american"
110+ ("english","variant=uk") -> return "british"
111+ ("english","variant=australian") -> return "australian"
112+ ("english","variant=newzealand") -> return "newzealand"
113+ (x,_) -> return x
114+ hyphenation <- (Just . toIETF . T.toLower <$>
115+ (getLangId <|> getRawField "hyphenation"))
116+ <|> return Nothing
117+ modify $ \s -> s{ untitlecase = untitlecase s &&
118+ case hyphenation of
119+ Just x -> "en-" `T.isPrefixOf` x
120+ _ -> True }
121+
122+
123+ opts <- (parseOptions <$> getRawField "options") <|> return []
124+
125+ et <- asks entryType
126+
127+ -- titles
128+ let isArticle = et `elem`
129+ ["article", "periodical", "suppperiodical", "review"]
130+ let isPeriodical = et == "periodical"
131+ let isChapterlike = et `elem`
132+ ["inbook","incollection","inproceedings","inreference","bookinbook"]
133+
134+ let getFieldMaybe f = (Just <$> getField f) <|> return Nothing
135+
136+ -- names
137+ let getNameList' f = Just <$>
138+ getNameList (("bibtex", case variant of
139+ Bibtex -> "true"
140+ Biblatex -> "false") : opts) f
141+
142+ author' <- getNameList' "author" <|> return Nothing
143+ containerAuthor' <- getNameList' "bookauthor" <|> return Nothing
144+ translator' <- getNameList' "translator" <|> return Nothing
145+ editortype <- getRawField "editortype" <|> return mempty
146+ editor'' <- getNameList' "editor" <|> return Nothing
147+ director'' <- getNameList' "director" <|> return Nothing
148+ let (editor', director') = case editortype of
149+ "director" -> (Nothing, editor'')
150+ _ -> (editor'', director'')
151+ -- FIXME: add same for editora, editorb, editorc
152+
153+ -- dates
154+ issued' <- (Just <$> (getDate "date" <|> getOldDate mempty)) <|>
155+ return Nothing
156+ eventDate' <- (Just <$> (getDate "eventdate" <|> getOldDate "event")) <|>
157+ return Nothing
158+ origDate' <- (Just <$> (getDate "origdate" <|> getOldDate "orig")) <|>
159+ return Nothing
160+ accessed' <- (Just <$> (getDate "urldate" <|> getOldDate "url")) <|>
161+ return Nothing
162+
163+ -- locators
164+ pages' <- getFieldMaybe "pages"
165+ volume' <- getFieldMaybe "volume"
166+ part' <- getFieldMaybe "part"
167+ volumes' <- getFieldMaybe "volumes"
168+ pagetotal' <- getFieldMaybe "pagetotal"
169+ chapter' <- getFieldMaybe "chapter"
170+ edition' <- getFieldMaybe "edition"
171+ version' <- getFieldMaybe "version"
172+ (number', collectionNumber', issue') <-
173+ (getField "number" >>= \x ->
174+ if et `elem` ["book","collection","proceedings","reference",
175+ "mvbook","mvcollection","mvproceedings", "mvreference",
176+ "bookinbook","inbook", "incollection","inproceedings",
177+ "inreference", "suppbook","suppcollection"]
178+ then return (Nothing, Just x, Nothing)
179+ else if isArticle
180+ then (getField "issue" >>= \y ->
181+ return (Nothing, Nothing, Just $ concatWith ',' [x,y]))
182+ <|> return (Nothing, Nothing, Just x)
183+ else return (Just x, Nothing, Nothing))
184+ <|> return (Nothing, Nothing, Nothing)
185+
186+ -- titles
187+ hasMaintitle <- (True <$ getRawField "maintitle") <|> return False
188+
189+ title' <- Just <$>
190+ ((guard isPeriodical >> getTitle "issuetitle")
191+ <|> (guard hasMaintitle >>
192+ guard (not isChapterlike) >>
193+ getTitle "maintitle")
194+ <|> getTitle "title")
195+ <|> return Nothing
196+
197+ subtitle' <- (guard isPeriodical >> getTitle "issuesubtitle")
198+ <|> (guard hasMaintitle >>
199+ guard (not isChapterlike) >>
200+ getTitle "mainsubtitle")
201+ <|> getTitle "subtitle"
202+ <|> return mempty
203+ titleaddon' <- (guard hasMaintitle >>
204+ guard (not isChapterlike) >>
205+ getTitle "maintitleaddon")
206+ <|> getTitle "titleaddon"
207+ <|> return mempty
208+
209+ volumeTitle' <- Just <$>
210+ ((guard hasMaintitle >>
211+ guard (not isChapterlike) >>
212+ getTitle "title")
213+ <|> (guard hasMaintitle >>
214+ guard isChapterlike >>
215+ getTitle "booktitle"))
216+ <|> return Nothing
217+ volumeSubtitle' <- (guard hasMaintitle >>
218+ guard (not isChapterlike) >>
219+ getTitle "subtitle")
220+ <|> (guard hasMaintitle >>
221+ guard isChapterlike >>
222+ getTitle "booksubtitle")
223+ <|> return mempty
224+ volumeTitleAddon' <- (guard hasMaintitle >>
225+ guard (not isChapterlike) >>
226+ getTitle "titleaddon")
227+ <|> (guard hasMaintitle >>
228+ guard isChapterlike >>
229+ getTitle "booktitleaddon")
230+ <|> return mempty
231+
232+ containerTitle' <- Just <$>
233+ ((guard isPeriodical >> getPeriodicalTitle "title")
234+ <|> (guard isChapterlike >> getTitle "maintitle")
235+ <|> (guard isChapterlike >> getTitle "booktitle")
236+ <|> getPeriodicalTitle "journaltitle"
237+ <|> getPeriodicalTitle "journal")
238+ <|> return Nothing
239+ containerSubtitle' <- (guard isPeriodical >> getPeriodicalTitle "subtitle")
240+ <|> (guard isChapterlike >> getTitle "mainsubtitle")
241+ <|> (guard isChapterlike >> getTitle "booksubtitle")
242+ <|> getPeriodicalTitle "journalsubtitle"
243+ <|> return mempty
244+ containerTitleAddon' <- (guard isPeriodical >>
245+ getPeriodicalTitle "titleaddon")
246+ <|> (guard isChapterlike >>
247+ getTitle "maintitleaddon")
248+ <|> (guard isChapterlike >>
249+ getTitle "booktitleaddon")
250+ <|> return mempty
251+ containerTitleShort' <- Just <$>
252+ ((guard isPeriodical >>
253+ guard (not hasMaintitle) >>
254+ getField "shorttitle")
255+ <|> getPeriodicalTitle "shortjournal")
256+ <|> return Nothing
257+
258+ -- change numerical series title to e.g. 'series 3'
259+ let fixSeriesTitle [Str xs] | isNumber xs =
260+ [Str (ordinalize locale xs), Space, Str (resolveKey' lang "jourser")]
261+ fixSeriesTitle xs = xs
262+ seriesTitle' <- (Just . B.fromList . fixSeriesTitle .
263+ B.toList . resolveKey lang <$>
264+ getTitle "series") <|>
265+ return Nothing
266+ shortTitle' <- Just <$>
267+ ((guard (not hasMaintitle || isChapterlike) >>
268+ getTitle "shorttitle")
269+ <|> if (subtitle' /= mempty || titleaddon' /= mempty) &&
270+ not hasMaintitle
271+ then getShortTitle False "title"
272+ else getShortTitle True "title")
273+ <|> return Nothing
274+
275+ eventTitle' <- Just <$> getTitle "eventtitle" <|> return Nothing
276+ origTitle' <- Just <$> getTitle "origtitle" <|> return Nothing
277+
278+ -- publisher
279+ pubfields <- mapM (\f -> Just `fmap`
280+ (if variant == Bibtex || f == "howpublished"
281+ then getField f
282+ else getLiteralList' f)
283+ <|> return Nothing)
284+ ["school","institution","organization", "howpublished","publisher"]
285+ let publisher' = case catMaybes pubfields of
286+ [] -> Nothing
287+ xs -> Just $ concatWith ';' xs
288+ origpublisher' <- (Just <$> getField "origpublisher") <|> return Nothing
289+
290+ -- places
291+ venue' <- (Just <$> getField "venue") <|> return Nothing
292+ address' <- Just <$>
293+ (if variant == Bibtex
294+ then getField "address"
295+ else getLiteralList' "address"
296+ <|> (guard (et /= "patent") >>
297+ getLiteralList' "location"))
298+ <|> return Nothing
299+ origLocation' <- Just <$>
300+ (if variant == Bibtex
301+ then getField "origlocation"
302+ else getLiteralList' "origlocation")
303+ <|> return Nothing
304+ jurisdiction' <- if reftype == "patent"
305+ then Just <$>
306+ (concatWith ';' . map (resolveKey lang) <$>
307+ getLiteralList "location") <|> return Nothing
308+ else return Nothing
309+
310+ -- url, doi, isbn, etc.:
311+ -- note that with eprinttype = arxiv, we take eprint to be a partial url
312+ -- archivePrefix is an alias for eprinttype
313+ url' <- (guard (et == "online" || lookup "url" opts /= Just "false")
314+ >> Just <$> getRawField "url")
315+ <|> (do etype <- getRawField "eprinttype"
316+ eprint <- getRawField "eprint"
317+ let baseUrl =
318+ case T.toLower etype of
319+ "arxiv" -> "http://arxiv.org/abs/"
320+ "jstor" -> "http://www.jstor.org/stable/"
321+ "pubmed" -> "http://www.ncbi.nlm.nih.gov/pubmed/"
322+ "googlebooks" -> "http://books.google.com?id="
323+ _ -> ""
324+ if T.null baseUrl
325+ then mzero
326+ else return $ Just $ baseUrl <> eprint)
327+ <|> return Nothing
328+ doi' <- (guard (lookup "doi" opts /= Just "false") >>
329+ Just <$> getRawField "doi")
330+ <|> return Nothing
331+ isbn' <- Just <$> getRawField "isbn" <|> return Nothing
332+ issn' <- Just <$> getRawField "issn" <|> return Nothing
333+ pmid' <- Just <$> getRawField "pmid" <|> return Nothing
334+ pmcid' <- Just <$> getRawField "pmcid" <|> return Nothing
335+ callNumber' <- Just <$> getRawField "library" <|> return Nothing
336+
337+ -- notes
338+ annotation' <- Just <$>
339+ (getField "annotation" <|> getField "annote")
340+ <|> return Nothing
341+ abstract' <- Just <$> getField "abstract" <|> return Nothing
342+ keywords' <- Just <$> getField "keywords" <|> return Nothing
343+ note' <- if et == "periodical"
344+ then return Nothing
345+ else Just <$> getField "note" <|> return Nothing
346+ addendum' <- if variant == Bibtex
347+ then return Nothing
348+ else Just <$> getField "addendum"
349+ <|> return Nothing
350+ pubstate' <- ( (Just . resolveKey lang <$> getField "pubstate")
351+ <|> case dateLiteral <$> issued' of
352+ Just (Just "forthcoming") ->
353+ return $ Just $ B.str "forthcoming"
354+ _ -> return Nothing
355+ )
356+
357+
358+
359+
360+ let addField (_, Nothing) = id
361+ addField (f, Just x) = Map.insert f x
362+ let vars = foldr addField mempty
363+ [ ("other-ids", TextVal <$> otherIds)
364+ , ("genre", TextVal <$> genre)
365+ , ("language", TextVal <$> hyphenation)
366+ -- dates
367+ , ("accessed", DateVal <$> accessed')
368+ , ("event-date", DateVal <$> eventDate')
369+ , ("issued", DateVal <$> issued')
370+ , ("original-date", DateVal <$> origDate')
371+ -- names
372+ , ("author", NamesVal <$> author')
373+ , ("editor", NamesVal <$> editor')
374+ , ("translator", NamesVal <$> translator')
375+ , ("director", NamesVal <$> director')
376+ , ("container-author", NamesVal <$> containerAuthor')
377+ -- locators
378+ , ("page", FancyVal . Walk.walk convertEnDash <$> pages')
379+ , ("number-of-pages", FancyVal <$> pagetotal')
380+ , ("volume", case (volume', part') of
381+ (Nothing, Nothing) -> Nothing
382+ (Just v, Nothing) -> Just $ FancyVal v
383+ (Nothing, Just p) -> Just $ FancyVal p
384+ (Just v, Just p) ->
385+ Just $ FancyVal $ v <> B.str "." <> p)
386+ , ("number-of-volumes", FancyVal <$> volumes')
387+ , ("chapter-number", FancyVal <$> chapter')
388+ , ("edition", FancyVal <$> edition')
389+ , ("version", FancyVal <$> version')
390+ , ("number", FancyVal <$> number')
391+ , ("collection-number", FancyVal <$> collectionNumber')
392+ , ("issue", FancyVal <$> issue')
393+ -- title
394+ , ("original-title", FancyVal <$> origTitle')
395+ , ("event", FancyVal <$> eventTitle')
396+ , ("title", case title' of
397+ Just t -> Just $ FancyVal $
398+ concatWith '.' [
399+ concatWith ':' [t, subtitle']
400+ , titleaddon' ]
401+ Nothing -> Nothing)
402+ , ("volume-title",
403+ case volumeTitle' of
404+ Just t -> Just $ FancyVal $
405+ concatWith '.' [
406+ concatWith ':' [t, volumeSubtitle']
407+ , volumeTitleAddon' ]
408+ Nothing -> Nothing)
409+ , ("container-title",
410+ case containerTitle' of
411+ Just t -> Just $ FancyVal $
412+ concatWith '.' [
413+ concatWith ':' [t,
414+ containerSubtitle']
415+ , containerTitleAddon' ]
416+ Nothing -> Nothing)
417+ , ("container-title-short", FancyVal <$> containerTitleShort')
418+ , ("collection-title", FancyVal <$> seriesTitle')
419+ , ("title-short", FancyVal <$> shortTitle')
420+ -- publisher
421+ , ("publisher", FancyVal <$> publisher')
422+ , ("original-publisher", FancyVal <$> origpublisher')
423+ -- places
424+ , ("jurisdiction", FancyVal <$> jurisdiction')
425+ , ("event-place", FancyVal <$> venue')
426+ , ("publisher-place", FancyVal <$> address')
427+ , ("original-publisher-place", FancyVal <$> origLocation')
428+ -- urls
429+ , ("url", TextVal <$> url')
430+ , ("doi", TextVal <$> doi')
431+ , ("isbn", TextVal <$> isbn')
432+ , ("issn", TextVal <$> issn')
433+ , ("pmcid", TextVal <$> pmcid')
434+ , ("pmid", TextVal <$> pmid')
435+ , ("call-number", TextVal <$> callNumber')
436+ -- notes
437+ , ("note", case catMaybes [note', addendum'] of
438+ [] -> Nothing
439+ xs -> return $ FancyVal $ concatWith '.' xs)
440+ , ("annote", FancyVal <$> annotation')
441+ , ("abstract", FancyVal <$> abstract')
442+ , ("keyword", FancyVal <$> keywords')
443+ , ("status", FancyVal <$> pubstate')
444+ ]
445+ return $ Reference
446+ { referenceId = ItemId id'
447+ , referenceType = reftype
448+ , referenceDisambiguation = Nothing
449+ , referenceVariables = vars }
450+
451+
452+bib :: Item -> Bib a -> BibParser a
453+bib entry m = fst <$> evalRWST m entry (BibState True (Lang "en" (Just "US")))
454+
455+resolveCrossRefs :: Variant -> [Item] -> [Item]
456+resolveCrossRefs variant entries =
457+ map (resolveCrossRef variant entries) entries
458+
459+resolveCrossRef :: Variant -> [Item] -> Item -> Item
460+resolveCrossRef variant entries entry =
461+ Map.foldrWithKey go entry (fields entry)
462+ where go key val entry' =
463+ if key == "crossref" || key == "xdata"
464+ then entry'{ fields = fields entry' <>
465+ Map.fromList (getXrefFields variant
466+ entry entries val) }
467+ else entry'
468+
469+getXrefFields :: Variant -> Item -> [Item] -> Text -> [(Text, Text)]
470+getXrefFields variant baseEntry entries keys = do
471+ let keys' = splitKeys keys
472+ xrefEntry <- [e | e <- entries, identifier e `elem` keys']
473+ (k, v) <- Map.toList $ fields xrefEntry
474+ if k == "crossref" || k == "xdata"
475+ then do
476+ xs <- mapM (getXrefFields variant baseEntry entries)
477+ (splitKeys v)
478+ (x, y) <- xs
479+ guard $ isNothing $ Map.lookup x $ fields xrefEntry
480+ return (x, y)
481+ else do
482+ k' <- case variant of
483+ Bibtex -> return k
484+ Biblatex -> transformKey
485+ (entryType xrefEntry) (entryType baseEntry) k
486+ guard $ isNothing $ Map.lookup k' $ fields baseEntry
487+ return (k',v)
488+
489+
490+
491+data BibState = BibState{
492+ untitlecase :: Bool
493+ , localeLang :: Lang
494+ }
495+
496+type Bib = RWST Item () BibState BibParser
497+
498+blocksToInlines :: [Block] -> Inlines
499+blocksToInlines bs =
500+ case bs of
501+ [Plain xs] -> B.fromList xs
502+ [Para xs] -> B.fromList xs
503+ _ -> B.fromList $ Walk.query (:[]) bs
504+
505+adjustSpans :: Lang -> Inline -> Inline
506+adjustSpans lang (RawInline (Format "latex") s)
507+ | s == "\\hyphen" || s == "\\hyphen " = Str "-"
508+ | otherwise = parseRawLaTeX lang s
509+adjustSpans _ SoftBreak = Space
510+adjustSpans _ x = x
511+
512+parseRawLaTeX :: Lang -> Text -> Inline
513+parseRawLaTeX lang t@(T.stripPrefix "\\" -> Just xs) =
514+ case parseLaTeX lang contents of
515+ Right [Para ys] -> f command ys
516+ Right [Plain ys] -> f command ys
517+ Right [] -> f command []
518+ _ -> RawInline (Format "latex") t
519+ where (command', contents') = T.break (\c -> c =='{' || c =='\\') xs
520+ command = T.strip command'
521+ contents = T.drop 1 $ T.dropEnd 1 contents'
522+ f "mkbibquote" ils = Span nullAttr [Quoted DoubleQuote ils]
523+ f "mkbibemph" ils = Span nullAttr [Emph ils]
524+ f "mkbibitalic" ils = Span nullAttr [Emph ils]
525+ f "mkbibbold" ils = Span nullAttr [Strong ils]
526+ f "mkbibparens" ils = Span nullAttr $
527+ [Str "("] ++ ils ++ [Str ")"]
528+ f "mkbibbrackets" ils = Span nullAttr $
529+ [Str "["] ++ ils ++ [Str "]"]
530+ -- ... both should be nestable & should work in year fields
531+ f "autocap" ils = Span nullAttr ils
532+ -- TODO: should work in year fields
533+ f "textnormal" ils = Span ("",["nodecor"],[]) ils
534+ f "bibstring" [Str s] = Str $ resolveKey' lang s
535+ f "adddot" [] = Str "."
536+ f "adddotspace" [] = Span nullAttr [Str ".", Space]
537+ f "addabbrvspace" [] = Space
538+ f _ ils = Span nullAttr ils
539+parseRawLaTeX _ t = RawInline (Format "latex") t
540+
541+latex' :: Text -> Bib [Block]
542+latex' t = do
543+ lang <- gets localeLang
544+ case parseLaTeX lang t of
545+ Left _ -> mzero
546+ Right bs -> return bs
547+
548+parseLaTeX :: Lang -> Text -> Either PandocError [Block]
549+parseLaTeX lang t =
550+ case runPure (readLaTeX
551+ def{ readerExtensions =
552+ extensionsFromList [Ext_raw_tex, Ext_smart] } t) of
553+ Left e -> Left e
554+ Right (Pandoc _ bs) -> Right $ Walk.walk (adjustSpans lang) bs
555+
556+latex :: Text -> Bib Inlines
557+latex = fmap blocksToInlines . latex' . T.strip
558+
559+type Options = [(Text, Text)]
560+
561+parseOptions :: Text -> Options
562+parseOptions = map breakOpt . T.splitOn ","
563+ where breakOpt x = case T.break (=='=') x of
564+ (w,v) -> (T.toLower $ T.strip w,
565+ T.toLower $ T.strip $ T.drop 1 v)
566+
567+bibEntries :: BibParser [Item]
568+bibEntries = do
569+ skipMany nonEntry
570+ many (bibItem <* skipMany nonEntry)
571+ where nonEntry = bibSkip <|>
572+ try (char '@' >>
573+ (bibComment <|> bibPreamble <|> bibString))
574+
575+bibSkip :: BibParser ()
576+bibSkip = skipMany1 (satisfy (/='@'))
577+
578+bibComment :: BibParser ()
579+bibComment = do
580+ cistring "comment"
581+ spaces
582+ void inBraces <|> bibSkip <|> return ()
583+
584+bibPreamble :: BibParser ()
585+bibPreamble = do
586+ cistring "preamble"
587+ spaces
588+ void inBraces
589+
590+bibString :: BibParser ()
591+bibString = do
592+ cistring "string"
593+ spaces
594+ char '{'
595+ spaces
596+ (k,v) <- entField
597+ char '}'
598+ updateState (\(l,m) -> (l, Map.insert k v m))
599+ return ()
600+
601+inBraces :: BibParser Text
602+inBraces = try $ do
603+ char '{'
604+ res <- manyTill
605+ ( (T.pack <$> many1 (noneOf "{}\\"))
606+ <|> (char '\\' >> ( (char '{' >> return "\\{")
607+ <|> (char '}' >> return "\\}")
608+ <|> return "\\"))
609+ <|> (braced <$> inBraces)
610+ ) (char '}')
611+ return $ T.concat res
612+
613+braced :: Text -> Text
614+braced = T.cons '{' . flip T.snoc '}'
615+
616+inQuotes :: BibParser Text
617+inQuotes = do
618+ char '"'
619+ T.concat <$> manyTill
620+ ( (T.pack <$> many1 (noneOf "\"\\{"))
621+ <|> (char '\\' >> T.cons '\\' . T.singleton <$> anyChar)
622+ <|> braced <$> inBraces
623+ ) (char '"')
624+
625+fieldName :: BibParser Text
626+fieldName = resolveAlias . T.toLower . T.pack
627+ <$> many1 (letter <|> digit <|> oneOf "-_:+")
628+
629+isBibtexKeyChar :: Char -> Bool
630+isBibtexKeyChar c =
631+ isAlphaNum c || c `elem` (".:;?!`'()/*@_+=-[]*&" :: [Char])
632+
633+bibItem :: BibParser Item
634+bibItem = do
635+ char '@'
636+ pos <- getPosition
637+ enttype <- map toLower <$> many1 letter
638+ spaces
639+ char '{'
640+ spaces
641+ entid <- many1 (satisfy isBibtexKeyChar)
642+ spaces
643+ char ','
644+ spaces
645+ entfields <- entField `sepEndBy` (char ',' >> spaces)
646+ spaces
647+ char '}'
648+ return $ Item (T.pack entid) pos (T.pack enttype) (Map.fromList entfields)
649+
650+entField :: BibParser (Text, Text)
651+entField = do
652+ k <- fieldName
653+ spaces
654+ char '='
655+ spaces
656+ vs <- (expandString <|> inQuotes <|> inBraces <|> rawWord) `sepBy`
657+ try (spaces >> char '#' >> spaces)
658+ spaces
659+ return (k, T.concat vs)
660+
661+resolveAlias :: Text -> Text
662+resolveAlias "archiveprefix" = "eprinttype"
663+resolveAlias "primaryclass" = "eprintclass"
664+resolveAlias s = s
665+
666+rawWord :: BibParser Text
667+rawWord = T.pack <$> many1 alphaNum
668+
669+expandString :: BibParser Text
670+expandString = do
671+ k <- fieldName
672+ (lang, strs) <- getState
673+ case Map.lookup k strs of
674+ Just v -> return v
675+ Nothing -> return $ resolveKey' lang k
676+
677+cistring :: Text -> BibParser Text
678+cistring s = try (go s)
679+ where go t = case T.uncons t of
680+ Nothing -> return ""
681+ Just (c,cs) -> do
682+ x <- char (toLower c) <|> char (toUpper c)
683+ xs <- go cs
684+ return (T.cons x xs)
685+
686+splitKeys :: Text -> [Text]
687+splitKeys = filter (not . T.null) . T.split (\c -> c == ' ' || c == ',')
688+
689+-- Biblatex Localization Keys (see Biblatex manual)
690+-- Currently we only map a subset likely to be used in Biblatex *databases*
691+-- (in fields such as `type`, and via `\bibstring{}` commands).
692+
693+parseMonth :: Text -> Maybe Int
694+parseMonth s =
695+ case T.toLower s of
696+ "jan" -> Just 1
697+ "feb" -> Just 2
698+ "mar" -> Just 3
699+ "apr" -> Just 4
700+ "may" -> Just 5
701+ "jun" -> Just 6
702+ "jul" -> Just 7
703+ "aug" -> Just 8
704+ "sep" -> Just 9
705+ "oct" -> Just 10
706+ "nov" -> Just 11
707+ "dec" -> Just 12
708+ _ -> readMay (T.unpack s)
709+
710+notFound :: Text -> Bib a
711+notFound f = Prelude.fail $ T.unpack f ++ " not found"
712+
713+getField :: Text -> Bib Inlines
714+getField f = do
715+ fs <- asks fields
716+ case Map.lookup f fs of
717+ Just x -> latex x
718+ Nothing -> notFound f
719+
720+
721+getPeriodicalTitle :: Text -> Bib Inlines
722+getPeriodicalTitle f = do
723+ ils <- getField f
724+ return ils
725+
726+protectCase :: (Inlines -> Inlines) -> (Inlines -> Inlines)
727+protectCase f = Walk.walk unprotect . f . Walk.walk protect
728+ where
729+ protect (Span ("",[],[]) xs) = Span ("",["nocase"],[]) xs
730+ protect x = x
731+ unprotect (Span ("",["nocase"],[]) xs)
732+ | hasLowercaseWord xs = Span ("",["nocase"],[]) xs
733+ | otherwise = Span ("",[],[]) xs
734+ unprotect x = x
735+ hasLowercaseWord = any startsWithLowercase . splitStrWhen isPunctuation
736+ startsWithLowercase (Str (T.uncons -> Just (x,_))) = isLower x
737+ startsWithLowercase _ = False
738+
739+unTitlecase :: Maybe Lang -> Inlines -> Inlines
740+unTitlecase mblang = protectCase (caseTransform (withSentenceCase mblang))
741+
742+getTitle :: Text -> Bib Inlines
743+getTitle f = do
744+ ils <- getField f
745+ utc <- gets untitlecase
746+ lang <- gets localeLang
747+ let processTitle = if utc then unTitlecase (Just lang) else id
748+ return $ processTitle ils
749+
750+getShortTitle :: Bool -> Text -> Bib Inlines
751+getShortTitle requireColon f = do
752+ ils <- splitStrWhen (==':') . B.toList <$> getTitle f
753+ if not requireColon || containsColon ils
754+ then return $ B.fromList $ upToColon ils
755+ else return mempty
756+
757+containsColon :: [Inline] -> Bool
758+containsColon xs = Str ":" `elem` xs
759+
760+upToColon :: [Inline] -> [Inline]
761+upToColon xs = takeWhile (/= Str ":") xs
762+
763+isNumber :: Text -> Bool
764+isNumber t = case T.uncons t of
765+ Just ('-', ds) -> T.all isDigit ds
766+ Just _ -> T.all isDigit t
767+ Nothing -> False
768+
769+getDate :: Text -> Bib Date
770+getDate f = do
771+ -- the ~ can used for approx dates, but the latex reader
772+ -- parses this as a nonbreaking space, so we need to convert it back!
773+ let nbspToTilde '\160' = '~'
774+ nbspToTilde c = c
775+ mbd <- rawDateEDTF . T.map nbspToTilde <$> getRawField f
776+ case mbd of
777+ Nothing -> Prelude.fail "expected date"
778+ Just d -> return d
779+
780+-- A negative (BC) year might be written with -- or --- in bibtex:
781+fixLeadingDash :: Text -> Text
782+fixLeadingDash t = case T.uncons t of
783+ Just (c, ds) | (c == '–' || c == '—') && firstIsDigit ds -> T.cons '–' ds
784+ _ -> t
785+ where firstIsDigit = maybe False (isDigit . fst) . T.uncons
786+
787+getOldDate :: Text -> Bib Date
788+getOldDate prefix = do
789+ year' <- (readMay . T.unpack . fixLeadingDash . stringify
790+ <$> getField (prefix <> "year")) <|> return Nothing
791+ month' <- (parseMonth <$> getRawField (prefix <> "month"))
792+ <|> return Nothing
793+ day' <- (readMay . T.unpack <$> getRawField (prefix <> "day"))
794+ <|> return Nothing
795+ endyear' <- (readMay . T.unpack . fixLeadingDash . stringify
796+ <$> getField (prefix <> "endyear")) <|> return Nothing
797+ endmonth' <- (parseMonth . stringify
798+ <$> getField (prefix <> "endmonth")) <|> return Nothing
799+ endday' <- (readMay . T.unpack . stringify <$>
800+ getField (prefix <> "endday")) <|> return Nothing
801+ let toDateParts (y', m', d') =
802+ DateParts $
803+ case y' of
804+ Nothing -> []
805+ Just y ->
806+ case m' of
807+ Nothing -> [y]
808+ Just m ->
809+ case d' of
810+ Nothing -> [y,m]
811+ Just d -> [y,m,d]
812+ let dateparts = filter (\x -> x /= DateParts [])
813+ $ map toDateParts [(year',month',day'),
814+ (endyear',endmonth',endday')]
815+ literal <- if null dateparts
816+ then Just <$> getRawField (prefix <> "year")
817+ else return Nothing
818+ return $
819+ Date { dateParts = dateparts
820+ , dateCirca = False
821+ , dateSeason = Nothing
822+ , dateLiteral = literal }
823+
824+getRawField :: Text -> Bib Text
825+getRawField f =
826+ (stringify <$> getField f)
827+ <|> do fs <- asks fields
828+ case Map.lookup f fs of
829+ Just x -> return x
830+ Nothing -> notFound f
831+
832+getLiteralList :: Text -> Bib [Inlines]
833+getLiteralList f = do
834+ fs <- asks fields
835+ case Map.lookup f fs of
836+ Just x -> latex' x >>= toLiteralList
837+ Nothing -> notFound f
838+
839+-- separates items with semicolons
840+getLiteralList' :: Text -> Bib Inlines
841+getLiteralList' f = do
842+ fs <- asks fields
843+ case Map.lookup f fs of
844+ Just x -> do
845+ x' <- latex' x
846+ case x' of
847+ [Para xs] ->
848+ return $ B.fromList
849+ $ intercalate [Str ";", Space]
850+ $ splitByAnd xs
851+ [Plain xs] ->
852+ return $ B.fromList
853+ $ intercalate [Str ";", Space]
854+ $ splitByAnd xs
855+ _ -> mzero
856+ Nothing -> notFound f
857+
858+splitByAnd :: [Inline] -> [[Inline]]
859+splitByAnd = splitOn [Space, Str "and", Space]
860+
861+toLiteralList :: [Block] -> Bib [Inlines]
862+toLiteralList [Para xs] =
863+ return $ map B.fromList $ splitByAnd xs
864+toLiteralList [Plain xs] = toLiteralList [Para xs]
865+toLiteralList _ = mzero
866+
867+concatWith :: Char -> [Inlines] -> Inlines
868+concatWith sep = foldl' go mempty
869+ where go :: Inlines -> Inlines -> Inlines
870+ go accum s
871+ | s == mempty = accum
872+ | otherwise =
873+ case Seq.viewr (B.unMany accum) of
874+ Seq.EmptyR -> s
875+ _ Seq.:> Str x
876+ | not (T.null x) &&
877+ T.last x `elem` ("!?.,:;" :: String)
878+ -> accum <> B.space <> s
879+ _ -> accum <> B.str (T.singleton sep) <>
880+ B.space <> s
881+
882+
883+getNameList :: Options -> Text -> Bib [Name]
884+getNameList opts f = do
885+ fs <- asks fields
886+ case Map.lookup f fs of
887+ Just x -> latexNames opts x
888+ Nothing -> notFound f
889+
890+toNameList :: Options -> [Block] -> Bib [Name]
891+toNameList opts [Para xs] =
892+ filter (/= emptyName) <$> mapM (toName opts . addSpaceAfterPeriod)
893+ (splitByAnd xs)
894+toNameList opts [Plain xs] = toNameList opts [Para xs]
895+toNameList _ _ = mzero
896+
897+latexNames :: Options -> Text -> Bib [Name]
898+latexNames opts t = latex' (T.strip t) >>= toNameList opts
899+
900+-- see issue 392 for motivation. We want to treat
901+-- "J.G. Smith" and "J. G. Smith" the same.
902+addSpaceAfterPeriod :: [Inline] -> [Inline]
903+addSpaceAfterPeriod = go . splitStrWhen (=='.')
904+ where
905+ go [] = []
906+ go (Str (T.unpack -> [c]):Str ".":Str (T.unpack -> [d]):xs)
907+ | isLetter d
908+ , isLetter c
909+ , isUpper c
910+ , isUpper d
911+ = Str (T.singleton c):Str ".":Space:go (Str (T.singleton d):xs)
912+ go (x:xs) = x:go xs
913+
914+emptyName :: Name
915+emptyName =
916+ Name { nameFamily = Nothing
917+ , nameGiven = Nothing
918+ , nameDroppingParticle = Nothing
919+ , nameNonDroppingParticle = Nothing
920+ , nameSuffix = Nothing
921+ , nameLiteral = Nothing
922+ , nameCommaSuffix = False
923+ , nameStaticOrdering = False
924+ }
925+
926+toName :: Options -> [Inline] -> Bib Name
927+toName _ [Str "others"] =
928+ return emptyName{ nameLiteral = Just "others" }
929+toName _ [Span ("",[],[]) ils] = -- corporate author
930+ return emptyName{ nameLiteral = Just $ stringify ils }
931+ -- extended BibLaTeX name format - see #266
932+toName _ ils@(Str ys:_) | T.any (== '=') ys = do
933+ let commaParts = splitWhen (== Str ",")
934+ . splitStrWhen (\c -> c == ',' || c == '=' || c == '\160')
935+ $ ils
936+ let addPart ag (Str "given" : Str "=" : xs) =
937+ ag{ nameGiven = case nameGiven ag of
938+ Nothing -> Just $ stringify xs
939+ Just t -> Just $ t <> " " <> stringify xs }
940+ addPart ag (Str "family" : Str "=" : xs) =
941+ ag{ nameFamily = Just $ stringify xs }
942+ addPart ag (Str "prefix" : Str "=" : xs) =
943+ ag{ nameDroppingParticle = Just $ stringify xs }
944+ addPart ag (Str "useprefix" : Str "=" : Str "true" : _) =
945+ ag{ nameNonDroppingParticle = nameDroppingParticle ag
946+ , nameDroppingParticle = Nothing }
947+ addPart ag (Str "suffix" : Str "=" : xs) =
948+ ag{ nameSuffix = Just $ stringify xs }
949+ addPart ag (Space : xs) = addPart ag xs
950+ addPart ag _ = ag
951+ return $ foldl' addPart emptyName commaParts
952+-- First von Last
953+-- von Last, First
954+-- von Last, Jr ,First
955+-- NOTE: biblatex and bibtex differ on:
956+-- Drummond de Andrade, Carlos
957+-- bibtex takes "Drummond de" as the von;
958+-- biblatex takes the whole as a last name.
959+-- See https://github.com/plk/biblatex/issues/236
960+-- Here we implement the more sensible biblatex behavior.
961+toName opts ils = do
962+ let useprefix = optionSet "useprefix" opts
963+ let usecomma = optionSet "juniorcomma" opts
964+ let bibtex = optionSet "bibtex" opts
965+ let words' = wordsBy (\x -> x == Space || x == Str "\160")
966+ let commaParts = map words' $ splitWhen (== Str ",")
967+ $ splitStrWhen
968+ (\c -> c == ',' || c == '\160') ils
969+ let (first, vonlast, jr) =
970+ case commaParts of
971+ --- First is the longest sequence of white-space separated
972+ -- words starting with an uppercase and that is not the
973+ -- whole string. von is the longest sequence of whitespace
974+ -- separated words whose last word starts with lower case
975+ -- and that is not the whole string.
976+ [fvl] -> let (caps', rest') = span isCapitalized fvl
977+ in if null rest' && not (null caps')
978+ then (init caps', [last caps'], [])
979+ else (caps', rest', [])
980+ [vl,f] -> (f, vl, [])
981+ (vl:j:f:_) -> (f, vl, j )
982+ [] -> ([], [], [])
983+
984+ let (von, lastname) =
985+ if bibtex
986+ then case span isCapitalized $ reverse vonlast of
987+ ([],w:ws) -> (reverse ws, [w])
988+ (vs, ws) -> (reverse ws, reverse vs)
989+ else case break isCapitalized vonlast of
990+ (vs@(_:_), []) -> (init vs, [last vs])
991+ (vs, ws) -> (vs, ws)
992+ let prefix = T.unwords $ map stringify von
993+ let family = T.unwords $ map stringify lastname
994+ let suffix = T.unwords $ map stringify jr
995+ let given = T.unwords $ map stringify first
996+ return
997+ Name { nameFamily = if T.null family
998+ then Nothing
999+ else Just family
1000+ , nameGiven = if T.null given
1001+ then Nothing
1002+ else Just given
1003+ , nameDroppingParticle = if useprefix || T.null prefix
1004+ then Nothing
1005+ else Just prefix
1006+ , nameNonDroppingParticle = if useprefix && not (T.null prefix)
1007+ then Just prefix
1008+ else Nothing
1009+ , nameSuffix = if T.null suffix
1010+ then Nothing
1011+ else Just suffix
1012+ , nameLiteral = Nothing
1013+ , nameCommaSuffix = usecomma
1014+ , nameStaticOrdering = False
1015+ }
1016+
1017+splitStrWhen :: (Char -> Bool) -> [Inline] -> [Inline]
1018+splitStrWhen _ [] = []
1019+splitStrWhen p (Str xs : ys) = map Str (go xs) ++ splitStrWhen p ys
1020+ where go s =
1021+ let (w,z) = T.break p s
1022+ in if T.null z
1023+ then if T.null w
1024+ then []
1025+ else [w]
1026+ else if T.null w
1027+ then (T.take 1 z : go (T.drop 1 z))
1028+ else (w : T.take 1 z : go (T.drop 1 z))
1029+splitStrWhen p (x : ys) = x : splitStrWhen p ys
1030+
1031+ordinalize :: Locale -> Text -> Text
1032+ordinalize locale n =
1033+ let terms = localeTerms locale
1034+ pad0 t = case T.length t of
1035+ 0 -> "00"
1036+ 1 -> "0" <> t
1037+ _ -> t
1038+ in case Map.lookup ("ordinal-" <> pad0 n) terms <|>
1039+ Map.lookup "ordinal" terms of
1040+ Nothing -> n
1041+ Just [] -> n
1042+ Just (t:_) -> n <> snd t
1043+
1044+isCapitalized :: [Inline] -> Bool
1045+isCapitalized (Str (T.uncons -> Just (c,cs)) : rest)
1046+ | isUpper c = True
1047+ | isDigit c = isCapitalized (Str cs : rest)
1048+ | otherwise = False
1049+isCapitalized (_:rest) = isCapitalized rest
1050+isCapitalized [] = True
1051+
1052+optionSet :: Text -> Options -> Bool
1053+optionSet key opts = case lookup key opts of
1054+ Just "true" -> True
1055+ Just s -> s == mempty
1056+ _ -> False
1057+
1058+getTypeAndGenre :: Bib (Text, Maybe Text)
1059+getTypeAndGenre = do
1060+ lang <- gets localeLang
1061+ et <- asks entryType
1062+ guard $ et /= "xdata"
1063+ reftype' <- resolveKey' lang <$> getRawField "type"
1064+ <|> return mempty
1065+ st <- getRawField "entrysubtype" <|> return mempty
1066+ isEvent <- (True <$ (getRawField "eventdate"
1067+ <|> getRawField "eventtitle"
1068+ <|> getRawField "venue")) <|> return False
1069+ let reftype =
1070+ case et of
1071+ "article"
1072+ | st == "magazine" -> "article-magazine"
1073+ | st == "newspaper" -> "article-newspaper"
1074+ | otherwise -> "article-journal"
1075+ "book" -> "book"
1076+ "booklet" -> "pamphlet"
1077+ "bookinbook" -> "chapter"
1078+ "collection" -> "book"
1079+ "dataset" -> "dataset"
1080+ "electronic" -> "webpage"
1081+ "inbook" -> "chapter"
1082+ "incollection" -> "chapter"
1083+ "inreference" -> "entry-encyclopedia"
1084+ "inproceedings" -> "paper-conference"
1085+ "manual" -> "book"
1086+ "mastersthesis" -> "thesis"
1087+ "misc" -> ""
1088+ "mvbook" -> "book"
1089+ "mvcollection" -> "book"
1090+ "mvproceedings" -> "book"
1091+ "mvreference" -> "book"
1092+ "online" -> "webpage"
1093+ "patent" -> "patent"
1094+ "periodical"
1095+ | st == "magazine" -> "article-magazine"
1096+ | st == "newspaper" -> "article-newspaper"
1097+ | otherwise -> "article-journal"
1098+ "phdthesis" -> "thesis"
1099+ "proceedings" -> "book"
1100+ "reference" -> "book"
1101+ "report" -> "report"
1102+ "software" -> "book" -- no "software" type in CSL
1103+ "suppbook" -> "chapter"
1104+ "suppcollection" -> "chapter"
1105+ "suppperiodical"
1106+ | st == "magazine" -> "article-magazine"
1107+ | st == "newspaper" -> "article-newspaper"
1108+ | otherwise -> "article-journal"
1109+ "techreport" -> "report"
1110+ "thesis" -> "thesis"
1111+ "unpublished" -> if isEvent then "speech" else "manuscript"
1112+ "www" -> "webpage"
1113+ -- biblatex, "unsupported"
1114+ "artwork" -> "graphic"
1115+ "audio" -> "song" -- for audio *recordings*
1116+ "commentary" -> "book"
1117+ "image" -> "graphic" -- or "figure" ?
1118+ "jurisdiction" -> "legal_case"
1119+ "legislation" -> "legislation" -- or "bill" ?
1120+ "legal" -> "treaty"
1121+ "letter" -> "personal_communication"
1122+ "movie" -> "motion_picture"
1123+ "music" -> "song" -- for musical *recordings*
1124+ "performance" -> "speech"
1125+ "review" -> "review" -- or "review-book" ?
1126+ "standard" -> "legislation"
1127+ "video" -> "motion_picture"
1128+ -- biblatex-apa:
1129+ "data" -> "dataset"
1130+ "letters" -> "personal_communication"
1131+ "newsarticle" -> "article-newspaper"
1132+ _ -> ""
1133+
1134+ let refgenre =
1135+ case et of
1136+ "mastersthesis" -> if T.null reftype'
1137+ then Just $ resolveKey' lang "mathesis"
1138+ else Just reftype'
1139+ "phdthesis" -> if T.null reftype'
1140+ then Just $ resolveKey' lang "phdthesis"
1141+ else Just reftype'
1142+ _ -> if T.null reftype'
1143+ then Nothing
1144+ else Just reftype'
1145+ return (reftype, refgenre)
1146+
1147+
1148+-- transformKey source target key
1149+-- derived from Appendix C of bibtex manual
1150+transformKey :: Text -> Text -> Text -> [Text]
1151+transformKey _ _ "ids" = []
1152+transformKey _ _ "crossref" = []
1153+transformKey _ _ "xref" = []
1154+transformKey _ _ "entryset" = []
1155+transformKey _ _ "entrysubtype" = []
1156+transformKey _ _ "execute" = []
1157+transformKey _ _ "label" = []
1158+transformKey _ _ "options" = []
1159+transformKey _ _ "presort" = []
1160+transformKey _ _ "related" = []
1161+transformKey _ _ "relatedoptions" = []
1162+transformKey _ _ "relatedstring" = []
1163+transformKey _ _ "relatedtype" = []
1164+transformKey _ _ "shorthand" = []
1165+transformKey _ _ "shorthandintro" = []
1166+transformKey _ _ "sortkey" = []
1167+transformKey x y "author"
1168+ | x `elem` ["mvbook", "book"] &&
1169+ y `elem` ["inbook", "bookinbook", "suppbook"] = ["bookauthor", "author"]
1170+-- note: this next clause is not in the biblatex manual, but it makes
1171+-- sense in the context of CSL conversion:
1172+transformKey x y "author"
1173+ | x == "mvbook" && y == "book" = ["bookauthor", "author"]
1174+transformKey "mvbook" y z
1175+ | y `elem` ["book", "inbook", "bookinbook", "suppbook"] = standardTrans z
1176+transformKey x y z
1177+ | x `elem` ["mvcollection", "mvreference"] &&
1178+ y `elem` ["collection", "reference", "incollection", "inreference",
1179+ "suppcollection"] = standardTrans z
1180+transformKey "mvproceedings" y z
1181+ | y `elem` ["proceedings", "inproceedings"] = standardTrans z
1182+transformKey "book" y z
1183+ | y `elem` ["inbook", "bookinbook", "suppbook"] = bookTrans z
1184+transformKey x y z
1185+ | x `elem` ["collection", "reference"] &&
1186+ y `elem` ["incollection", "inreference", "suppcollection"] = bookTrans z
1187+transformKey "proceedings" "inproceedings" z = bookTrans z
1188+transformKey "periodical" y z
1189+ | y `elem` ["article", "suppperiodical"] =
1190+ case z of
1191+ "title" -> ["journaltitle"]
1192+ "subtitle" -> ["journalsubtitle"]
1193+ "shorttitle" -> []
1194+ "sorttitle" -> []
1195+ "indextitle" -> []
1196+ "indexsorttitle" -> []
1197+ _ -> [z]
1198+transformKey _ _ x = [x]
1199+
1200+standardTrans :: Text -> [Text]
1201+standardTrans z =
1202+ case z of
1203+ "title" -> ["maintitle"]
1204+ "subtitle" -> ["mainsubtitle"]
1205+ "titleaddon" -> ["maintitleaddon"]
1206+ "shorttitle" -> []
1207+ "sorttitle" -> []
1208+ "indextitle" -> []
1209+ "indexsorttitle" -> []
1210+ _ -> [z]
1211+
1212+bookTrans :: Text -> [Text]
1213+bookTrans z =
1214+ case z of
1215+ "title" -> ["booktitle"]
1216+ "subtitle" -> ["booksubtitle"]
1217+ "titleaddon" -> ["booktitleaddon"]
1218+ "shorttitle" -> []
1219+ "sorttitle" -> []
1220+ "indextitle" -> []
1221+ "indexsorttitle" -> []
1222+ _ -> [z]
1223+
1224+resolveKey :: Lang -> Inlines -> Inlines
1225+resolveKey lang ils = Walk.walk go ils
1226+ where go (Str s) = Str $ resolveKey' lang s
1227+ go x = x
1228+
1229+resolveKey' :: Lang -> Text -> Text
1230+resolveKey' lang@(Lang l _) k =
1231+ case Map.lookup l biblatexStringMap >>= Map.lookup (T.toLower k) of
1232+ Nothing -> k
1233+ Just (x, _) -> either (const k) stringify $ parseLaTeX lang x
1234+
1235+convertEnDash :: Inline -> Inline
1236+convertEnDash (Str s) = Str (T.map (\c -> if c == '–' then '-' else c) s)
1237+convertEnDash x = x
src/Text/Pandoc/Citeproc/CslJson.hsnew file+37
@@ -0,0 +1,37 @@
1+{-# LANGUAGE OverloadedStrings #-}
2+module Text.Pandoc.Citeproc.CslJson
3+ ( cslJsonToReferences )
4+where
5+
6+import Citeproc.CslJson
7+import Citeproc.Types
8+import Control.Monad.Identity (runIdentity)
9+import Data.Aeson (eitherDecodeStrict')
10+import Data.ByteString (ByteString)
11+import Text.Pandoc.Builder as B
12+import Data.Text (Text)
13+
14+fromCslJson :: CslJson Text -> Inlines
15+fromCslJson (CslText t) = B.text t
16+fromCslJson CslEmpty = mempty
17+fromCslJson (CslConcat x y) = fromCslJson x <> fromCslJson y
18+fromCslJson (CslQuoted x) = B.doubleQuoted (fromCslJson x)
19+fromCslJson (CslItalic x) = B.emph (fromCslJson x)
20+fromCslJson (CslNormal x) = fromCslJson x -- TODO?
21+fromCslJson (CslBold x) = B.strong (fromCslJson x)
22+fromCslJson (CslUnderline x) = B.underline (fromCslJson x)
23+fromCslJson (CslNoDecoration x) =
24+ B.spanWith ("",["nodecoration"],[]) (fromCslJson x)
25+fromCslJson (CslSmallCaps x) = B.smallcaps (fromCslJson x)
26+fromCslJson (CslBaseline x) = fromCslJson x
27+fromCslJson (CslSub x) = B.subscript (fromCslJson x)
28+fromCslJson (CslSup x) = B.superscript (fromCslJson x)
29+fromCslJson (CslNoCase x) = B.spanWith ("",["nocase"],[]) (fromCslJson x)
30+fromCslJson (CslDiv t x) = B.spanWith ("",["csl-" <> t],[]) (fromCslJson x)
31+
32+cslJsonToReferences :: ByteString -> Either String [Reference Inlines]
33+cslJsonToReferences raw =
34+ case eitherDecodeStrict' raw of
35+ Left e -> Left e
36+ Right cslrefs -> Right $
37+ map (runIdentity . traverse (return . fromCslJson)) cslrefs
src/Text/Pandoc/Citeproc/Data.hsnew file+31
@@ -0,0 +1,31 @@
1+{-# LANGUAGE OverloadedStrings #-}
2+{-# LANGUAGE TemplateHaskell #-}
3+module Text.Pandoc.Citeproc.Data
4+ (biblatexStringMap)
5+where
6+import Data.FileEmbed
7+import Data.ByteString (ByteString)
8+import qualified Data.Map as M
9+import qualified Data.Text.Encoding as TE
10+import qualified Data.Text as T
11+import Data.Text (Text)
12+import Text.Pandoc.Citeproc.Util (toIETF)
13+import Citeproc (Lang(..), parseLang)
14+
15+biblatexLocalizations :: [(FilePath, ByteString)]
16+biblatexLocalizations = $(embedDir "citeproc/biblatex-localization")
17+
18+-- biblatex localization keys, from files at
19+-- http://github.com/plk/biblatex/tree/master/tex/latex/biblatex/lbx
20+biblatexStringMap :: M.Map Text (M.Map Text (Text, Text))
21+biblatexStringMap = foldr go mempty biblatexLocalizations
22+ where
23+ go (fp, bs) =
24+ let Lang lang _ = parseLang (toIETF $ T.takeWhile (/= '.') $ T.pack fp)
25+ ls = T.lines $ TE.decodeUtf8 bs
26+ in if length ls > 4
27+ then M.insert lang (toStringMap $ map (T.splitOn "|") ls)
28+ else id
29+ toStringMap = foldr go' mempty
30+ go' [term, x, y] = M.insert term (x, y)
31+ go' _ = id
src/Text/Pandoc/Citeproc/Locator.hsnew file+279
@@ -0,0 +1,279 @@
1+{-# LANGUAGE TupleSections #-}
2+{-# LANGUAGE ViewPatterns #-}
3+{-# LANGUAGE OverloadedStrings #-}
4+module Text.Pandoc.Citeproc.Locator
5+ ( parseLocator )
6+where
7+import Citeproc.Types
8+import Data.Text (Text)
9+import qualified Data.Text as T
10+import Text.Parsec
11+import Text.Pandoc.Definition
12+import Text.Pandoc.Parsing (romanNumeral)
13+import Text.Pandoc.Shared (stringify)
14+import Control.Monad (mzero)
15+import qualified Data.Map as M
16+import Data.Char (isSpace, isPunctuation, isDigit)
17+
18+parseLocator :: Locale -> [Inline] -> (Maybe (Text, Text), [Inline])
19+parseLocator locale inp =
20+ case parse (pLocatorWords (toLocatorMap locale)) "suffix" $ splitInp inp of
21+ Right r -> r
22+ Left _ -> (Nothing, inp)
23+
24+splitInp :: [Inline] -> [Inline]
25+splitInp = splitStrWhen (\c -> isSpace c || (isPunctuation c && c /= ':'))
26+
27+--
28+-- Locator parsing
29+--
30+
31+type LocatorParser = Parsec [Inline] ()
32+
33+pLocatorWords :: LocatorMap
34+ -> LocatorParser (Maybe (Text, Text), [Inline])
35+pLocatorWords locMap = do
36+ optional $ pMatchChar "," (== ',')
37+ optional pSpace
38+ (la, lo) <- pLocatorDelimited locMap <|> pLocatorIntegrated locMap
39+ s <- getInput -- rest is suffix
40+ -- need to trim, otherwise "p. 9" and "9" will have 'different' locators later on
41+ -- i.e. the first one will be " 9"
42+ return $
43+ if T.null la && T.null lo
44+ then (Nothing, s)
45+ else (Just (la, T.strip lo), s)
46+
47+pLocatorDelimited :: LocatorMap -> LocatorParser (Text, Text)
48+pLocatorDelimited locMap = try $ do
49+ _ <- pMatchChar "{" (== '{')
50+ skipMany pSpace -- gobble pre-spaces so label doesn't try to include them
51+ (la, _) <- pLocatorLabelDelimited locMap
52+ -- we only care about balancing {} and [] (because of the outer [] scope);
53+ -- the rest can be anything
54+ let inner = do { t <- anyToken; return (True, stringify t) }
55+ gs <- many (pBalancedBraces [('{','}'), ('[',']')] inner)
56+ _ <- pMatchChar "}" (== '}')
57+ let lo = T.concat $ map snd gs
58+ return (la, lo)
59+
60+pLocatorLabelDelimited :: LocatorMap -> LocatorParser (Text, Bool)
61+pLocatorLabelDelimited locMap
62+ = pLocatorLabel' locMap lim <|> return ("page", True)
63+ where
64+ lim = stringify <$> anyToken
65+
66+pLocatorIntegrated :: LocatorMap -> LocatorParser (Text, Text)
67+pLocatorIntegrated locMap = try $ do
68+ (la, wasImplicit) <- pLocatorLabelIntegrated locMap
69+ -- if we got the label implicitly, we have presupposed the first one is
70+ -- going to have a digit, so guarantee that. You _can_ have p. (a)
71+ -- because you specified it.
72+ let modifier = if wasImplicit
73+ then requireDigits
74+ else requireRomansOrDigits
75+ g <- try $ pLocatorWordIntegrated (not wasImplicit) >>= modifier
76+ gs <- many (try $ pLocatorWordIntegrated False >>= modifier)
77+ let lo = T.concat (g:gs)
78+ return (la, lo)
79+
80+pLocatorLabelIntegrated :: LocatorMap -> LocatorParser (Text, Bool)
81+pLocatorLabelIntegrated locMap
82+ = pLocatorLabel' locMap lim <|> (lookAhead digital >> return ("page", True))
83+ where
84+ lim = try $ pLocatorWordIntegrated True >>= requireRomansOrDigits
85+ digital = try $ pLocatorWordIntegrated True >>= requireDigits
86+
87+pLocatorLabel' :: LocatorMap -> LocatorParser Text
88+ -> LocatorParser (Text, Bool)
89+pLocatorLabel' locMap lim = go ""
90+ where
91+ -- grow the match string until we hit the end
92+ -- trying to find the largest match for a label
93+ go acc = try $ do
94+ -- advance at least one token each time
95+ -- the pathological case is "p.3"
96+ t <- anyToken
97+ ts <- manyTill anyToken (try $ lookAhead lim)
98+ let s = acc <> stringify (t:ts)
99+ case M.lookup (T.strip s) locMap of
100+ -- try to find a longer one, or return this one
101+ Just l -> go s <|> return (l, False)
102+ Nothing -> go s
103+
104+-- hard requirement for a locator to have some real digits in it
105+requireDigits :: (Bool, Text) -> LocatorParser Text
106+requireDigits (_, s) = if not (T.any isDigit s)
107+ then Prelude.fail "requireDigits"
108+ else return s
109+
110+-- soft requirement for a sequence with some roman or arabic parts
111+-- (a)(iv) -- because iv is roman
112+-- 1(a) -- because 1 is an actual digit
113+-- NOT: a, (a)-(b), hello, (some text in brackets)
114+requireRomansOrDigits :: (Bool, Text) -> LocatorParser Text
115+requireRomansOrDigits (d, s) = if not d
116+ then Prelude.fail "requireRomansOrDigits"
117+ else return s
118+
119+pLocatorWordIntegrated :: Bool -> LocatorParser (Bool, Text)
120+pLocatorWordIntegrated isFirst = try $ do
121+ punct <- if isFirst
122+ then return ""
123+ else (stringify <$> pLocatorSep) <|> return ""
124+ sp <- option "" (pSpace >> return " ")
125+ (dig, s) <- pBalancedBraces [('(',')'), ('[',']'), ('{','}')] pPageSeq
126+ return (dig, punct <> sp <> s)
127+
128+-- we want to capture: 123, 123A, C22, XVII, 33-44, 22-33; 22-11
129+-- 34(1), 34A(A), 34(1)(i)(i), (1)(a)
130+-- [17], [17]-[18], '591 [84]'
131+-- (because CSL cannot pull out individual pages/sections
132+-- to wrap in braces on a per-style basis)
133+pBalancedBraces :: [(Char, Char)]
134+ -> LocatorParser (Bool, Text)
135+ -> LocatorParser (Bool, Text)
136+pBalancedBraces braces p = try $ do
137+ ss <- many1 surround
138+ return $ anyWereDigitLike ss
139+ where
140+ except = notFollowedBy pBraces >> p
141+ -- outer and inner
142+ surround = foldl (\a (open, close) -> sur open close except <|> a)
143+ except
144+ braces
145+
146+ isc c = stringify <$> pMatchChar [c] (== c)
147+
148+ sur c c' m = try $ do
149+ (d, mid) <- between (isc c) (isc c') (option (False, "") m)
150+ return (d, T.cons c . flip T.snoc c' $ mid)
151+
152+ flattened = concatMap (\(o, c) -> [o, c]) braces
153+ pBraces = pMatchChar "braces" (`elem` flattened)
154+
155+
156+-- YES 1, 1.2, 1.2.3
157+-- NO 1., 1.2. a.6
158+-- can't use sepBy because we want to leave trailing .s
159+pPageSeq :: LocatorParser (Bool, Text)
160+pPageSeq = oneDotTwo <|> withPeriod
161+ where
162+ oneDotTwo = do
163+ u <- pPageUnit
164+ us <- many withPeriod
165+ return $ anyWereDigitLike (u:us)
166+ withPeriod = try $ do
167+ -- .2
168+ p <- pMatchChar "." (== '.')
169+ u <- try pPageUnit
170+ return (fst u, stringify p <> snd u)
171+
172+anyWereDigitLike :: [(Bool, Text)] -> (Bool, Text)
173+anyWereDigitLike as = (any fst as, T.concat $ map snd as)
174+
175+pPageUnit :: LocatorParser (Bool, Text)
176+pPageUnit = roman <|> plainUnit
177+ where
178+ -- roman is a 'digit'
179+ roman = (True,) <$> pRoman
180+ plainUnit = do
181+ ts <- many1 (notFollowedBy pSpace >>
182+ notFollowedBy pLocatorPunct >>
183+ anyToken)
184+ let s = stringify ts
185+ -- otherwise look for actual digits or -s
186+ return (T.any isDigit s, s)
187+
188+pRoman :: LocatorParser Text
189+pRoman = try $ do
190+ tok <- anyToken
191+ case tok of
192+ Str t -> case parse (romanNumeral True *> eof)
193+ "roman numeral" (T.toUpper t) of
194+ Left _ -> mzero
195+ Right () -> return t
196+ _ -> mzero
197+
198+pLocatorPunct :: LocatorParser Inline
199+pLocatorPunct = pMatchChar "punctuation" isLocatorPunct
200+
201+pLocatorSep :: LocatorParser Inline
202+pLocatorSep = pMatchChar "locator separator" isLocatorSep
203+
204+pMatchChar :: String -> (Char -> Bool) -> LocatorParser Inline
205+pMatchChar msg f = satisfyTok f' <?> msg
206+ where
207+ f' (Str (T.unpack -> [c])) = f c
208+ f' _ = False
209+
210+pSpace :: LocatorParser Inline
211+pSpace = satisfyTok (\t -> isSpacey t || t == Str "\160") <?> "space"
212+
213+satisfyTok :: (Inline -> Bool) -> LocatorParser Inline
214+satisfyTok f = tokenPrim show (\sp _ _ -> sp) (\tok -> if f tok
215+ then Just tok
216+ else Nothing)
217+
218+isSpacey :: Inline -> Bool
219+isSpacey Space = True
220+isSpacey SoftBreak = True
221+isSpacey _ = False
222+
223+isLocatorPunct :: Char -> Bool
224+isLocatorPunct '-' = False -- page range
225+isLocatorPunct '–' = False -- page range, en dash
226+isLocatorPunct ':' = False -- vol:page-range hack
227+isLocatorPunct c = isPunctuation c -- includes [{()}]
228+
229+isLocatorSep :: Char -> Bool
230+isLocatorSep ',' = True
231+isLocatorSep ';' = True
232+isLocatorSep _ = False
233+
234+splitStrWhen :: (Char -> Bool) -> [Inline] -> [Inline]
235+splitStrWhen _ [] = []
236+splitStrWhen p (Str xs : ys) = go (T.unpack xs) ++ splitStrWhen p ys
237+ where
238+ go [] = []
239+ go s = case break p s of
240+ ([],[]) -> []
241+ (zs,[]) -> [Str $ T.pack zs]
242+ ([],w:ws) -> Str (T.singleton w) : go ws
243+ (zs,w:ws) -> Str (T.pack zs) : Str (T.singleton w) : go ws
244+splitStrWhen p (x : ys) = x : splitStrWhen p ys
245+
246+--
247+-- Locator Map
248+--
249+
250+type LocatorMap = M.Map Text Text
251+
252+toLocatorMap :: Locale -> LocatorMap
253+toLocatorMap locale =
254+ foldr go mempty locatorTerms
255+ where
256+ go tname locmap =
257+ case M.lookup tname (localeTerms locale) of
258+ Nothing -> locmap
259+ Just ts -> foldr (\x -> M.insert (snd x) tname) locmap ts
260+
261+locatorTerms :: [Text]
262+locatorTerms =
263+ [ "book"
264+ , "chapter"
265+ , "column"
266+ , "figure"
267+ , "folio"
268+ , "issue"
269+ , "line"
270+ , "note"
271+ , "opus"
272+ , "page"
273+ , "number-of-pages"
274+ , "paragraph"
275+ , "part"
276+ , "section"
277+ , "sub verbo"
278+ , "verse"
279+ , "volume" ]
src/Text/Pandoc/Citeproc/MetaValue.hsnew file+252
@@ -0,0 +1,252 @@
1+{-# LANGUAGE OverloadedStrings #-}
2+module Text.Pandoc.Citeproc.MetaValue
3+ ( referenceToMetaValue
4+ , metaValueToReference
5+ , metaValueToText
6+ , metaValueToPath
7+ )
8+where
9+
10+import Citeproc.Types
11+import Text.Pandoc.Definition
12+import Text.Pandoc.Builder as B
13+import Text.Pandoc.Walk (query)
14+import Text.Pandoc.Shared (stringify)
15+import Data.Maybe
16+import Safe
17+import qualified Data.Set as Set
18+import qualified Data.Map as M
19+import qualified Data.Text as T
20+import Data.Text (Text)
21+import Text.Printf (printf)
22+import Control.Applicative ((<|>))
23+
24+metaValueToText :: MetaValue -> Maybe Text
25+metaValueToText (MetaString t) = Just t
26+metaValueToText (MetaInlines ils) = Just $ stringify ils
27+metaValueToText (MetaBlocks bls) = Just $ stringify bls
28+metaValueToText (MetaList xs) = T.unwords <$> mapM metaValueToText xs
29+metaValueToText _ = Nothing
30+
31+metaValueToPath :: MetaValue -> Maybe FilePath
32+metaValueToPath = fmap T.unpack . metaValueToText
33+
34+metaValueToBool :: MetaValue -> Maybe Bool
35+metaValueToBool (MetaBool b) = Just b
36+metaValueToBool (MetaString "true") = Just True
37+metaValueToBool (MetaString "false") = Just False
38+metaValueToBool (MetaInlines ils) =
39+ metaValueToBool (MetaString (stringify ils))
40+metaValueToBool _ = Nothing
41+
42+referenceToMetaValue :: Reference Inlines -> MetaValue
43+referenceToMetaValue ref =
44+ let ItemId id' = referenceId ref
45+ type' = referenceType ref
46+ in MetaMap $ M.insert "id" (MetaString id')
47+ $ M.insert "type" (MetaString type')
48+ $ M.map valToMetaValue
49+ $ M.mapKeys fromVariable
50+ $ referenceVariables ref
51+
52+
53+valToMetaValue :: Val Inlines -> MetaValue
54+valToMetaValue (TextVal t) = MetaString t
55+valToMetaValue (FancyVal ils) = MetaInlines (B.toList ils)
56+valToMetaValue (NumVal n) = MetaString (T.pack $ show n)
57+valToMetaValue (NamesVal ns) = MetaList $ map nameToMetaValue ns
58+valToMetaValue (DateVal d) = dateToMetaValue d
59+
60+nameToMetaValue :: Name -> MetaValue
61+nameToMetaValue name =
62+ MetaMap $
63+ (maybe id (M.insert "family" . MetaString) (nameFamily name)) .
64+ (maybe id (M.insert "given" . MetaString) (nameGiven name)) .
65+ (maybe id (M.insert "dropping-particle" . MetaString)
66+ (nameDroppingParticle name)) .
67+ (maybe id (M.insert "non-dropping-particle" . MetaString)
68+ (nameNonDroppingParticle name)) .
69+ (maybe id (M.insert "suffix" . MetaString) (nameSuffix name)) .
70+ (maybe id (M.insert "literal" . MetaString) (nameLiteral name)) .
71+ (if nameCommaSuffix name
72+ then M.insert "comma-suffix" (MetaBool True)
73+ else id) .
74+ (if nameStaticOrdering name
75+ then M.insert "static-ordering" (MetaBool True)
76+ else id)
77+ $ mempty
78+
79+dateToMetaValue :: Date -> MetaValue
80+dateToMetaValue date =
81+ MetaString $
82+ (case dateLiteral date of
83+ Just l -> l
84+ Nothing -> T.intercalate "/" $ map datePartsToEDTF $ dateParts date)
85+ <> (if dateCirca date then "~" else "")
86+ where
87+ datePartsToEDTF (DateParts dps) =
88+ T.pack $
89+ (case dps of
90+ (y:_) | y > 9999 || y < -10000 -> ('y':)
91+ _ -> id) $
92+ case dps of
93+ (y:m:d:_)
94+ | y < -1 -> printf "%05d-%02d-%02d" (y+1) m d
95+ | otherwise -> printf "%04d-%02d-%02d" y m d
96+ (y:m:[])
97+ | y < -1 -> printf "%05d-%02d" (y+1) m
98+ | otherwise -> printf "%04d-%02d" y m
99+ (y:[])
100+ | y < -1 -> printf "%05d" (y+1)
101+ | otherwise -> printf "%04d" y
102+ _ -> mempty
103+
104+metaValueToReference :: MetaValue -> Maybe (Reference Inlines)
105+metaValueToReference (MetaMap m) = do
106+ let m' = M.mapKeys normalizeKey m
107+ id' <- M.lookup "id" m' >>= metaValueToText
108+ type' <- (M.lookup "type" m' >>= metaValueToText) <|> pure ""
109+ let m'' = M.delete "id" $ M.delete "type" m'
110+ let vars = M.mapKeys toVariable $ M.mapWithKey metaValueToVal m''
111+ return $ Reference { referenceId = ItemId id'
112+ , referenceType = type'
113+ , referenceDisambiguation = Nothing
114+ , referenceVariables = vars }
115+metaValueToReference _ = Nothing
116+
117+metaValueToVal :: Text -> MetaValue -> Val Inlines
118+metaValueToVal k v
119+ | k `Set.member` dateVariables
120+ = DateVal $ metaValueToDate v
121+ | k `Set.member` nameVariables
122+ = NamesVal $ metaValueToNames v
123+ | k == "other-ids"
124+ = TextVal $ fromMaybe mempty $ metaValueToText v
125+ -- will create space-separated list
126+ | otherwise =
127+ case v of
128+ MetaString t -> TextVal t
129+ MetaInlines ils -> FancyVal (B.fromList ils)
130+ MetaBlocks bs -> FancyVal (B.fromList $ query id bs)
131+ MetaBool b -> TextVal (if b then "true" else "false")
132+ MetaList _ -> TextVal mempty
133+ MetaMap _ -> TextVal mempty
134+
135+metaValueToDate :: MetaValue -> Date
136+metaValueToDate (MetaMap m) =
137+ Date
138+ { dateParts = dateparts
139+ , dateCirca = circa
140+ , dateSeason = season
141+ , dateLiteral = literal }
142+ where
143+ dateparts = case M.lookup "date-parts" m of
144+ Just (MetaList xs) ->
145+ mapMaybe metaValueToDateParts xs
146+ Just _ -> []
147+ Nothing ->
148+ maybe [] (:[]) $ metaValueToDateParts (MetaMap m)
149+ circa = fromMaybe False $
150+ M.lookup "circa" m >>= metaValueToBool
151+ season = M.lookup "season" m >>= metaValueToInt
152+ literal = M.lookup "literal" m >>= metaValueToText
153+metaValueToDate (MetaList xs) =
154+ Date{ dateParts = mapMaybe metaValueToDateParts xs
155+ , dateCirca = False
156+ , dateSeason = Nothing
157+ , dateLiteral = Nothing }
158+metaValueToDate x =
159+ fromMaybe emptyDate $ metaValueToText x >>= rawDateEDTF
160+
161+
162+metaValueToInt :: MetaValue -> Maybe Int
163+metaValueToInt x = metaValueToText x >>= readMay . T.unpack
164+
165+metaValueToDateParts :: MetaValue -> Maybe DateParts
166+metaValueToDateParts (MetaList xs) =
167+ Just $ DateParts $ map (fromMaybe 0 . metaValueToInt) xs
168+metaValueToDateParts (MetaMap m) =
169+ case (M.lookup "year" m >>= metaValueToInt,
170+ ((M.lookup "month" m >>= metaValueToInt)
171+ <|>
172+ ((+ 20) <$> (M.lookup "season" m >>= metaValueToInt))),
173+ M.lookup "day" m >>= metaValueToInt) of
174+ (Just y, Just mo, Just d) -> Just $ DateParts [y, mo, d]
175+ (Just y, Just mo, Nothing) -> Just $ DateParts [y, mo]
176+ (Just y, Nothing, _) -> Just $ DateParts [y]
177+ _ -> Nothing
178+metaValueToDateParts _ = Nothing
179+
180+emptyDate :: Date
181+emptyDate = Date { dateParts = []
182+ , dateCirca = False
183+ , dateSeason = Nothing
184+ , dateLiteral = Nothing }
185+
186+metaValueToNames :: MetaValue -> [Name]
187+metaValueToNames (MetaList xs) = mapMaybe metaValueToName xs
188+metaValueToNames x = maybeToList $ metaValueToName x
189+
190+metaValueToName :: MetaValue -> Maybe Name
191+metaValueToName (MetaMap m) = extractParticles <$>
192+ Just Name
193+ { nameFamily = family
194+ , nameGiven = given
195+ , nameDroppingParticle = dropping
196+ , nameNonDroppingParticle = nondropping
197+ , nameSuffix = suffix
198+ , nameCommaSuffix = commasuffix
199+ , nameStaticOrdering = staticordering
200+ , nameLiteral = literal
201+ }
202+ where
203+ family = M.lookup "family" m >>= metaValueToText
204+ given = M.lookup "given" m >>= metaValueToText
205+ dropping = M.lookup "dropping-particle" m
206+ >>= metaValueToText
207+ nondropping = M.lookup "non-dropping-particle" m
208+ >>= metaValueToText
209+ suffix = M.lookup "suffix" m >>= metaValueToText
210+ commasuffix = fromMaybe False $
211+ M.lookup "comma-suffix" m >>= metaValueToBool
212+ staticordering = fromMaybe False $
213+ M.lookup "static-ordering" m >>= metaValueToBool
214+ literal = M.lookup "literal" m >>= metaValueToText
215+metaValueToName x = extractParticles <$>
216+ case metaValueToText x of
217+ Nothing -> Nothing
218+ Just lit -> Just Name
219+ { nameFamily = Nothing
220+ , nameGiven = Nothing
221+ , nameDroppingParticle = Nothing
222+ , nameNonDroppingParticle = Nothing
223+ , nameSuffix = Nothing
224+ , nameCommaSuffix = False
225+ , nameStaticOrdering = False
226+ , nameLiteral = Just lit }
227+
228+dateVariables :: Set.Set Text
229+dateVariables = Set.fromList
230+ [ "accessed", "container", "event-date", "issued",
231+ "original-date", "submitted" ]
232+
233+nameVariables :: Set.Set Text
234+nameVariables = Set.fromList
235+ [ "author", "collection-editor", "composer",
236+ "container-author", "director", "editor",
237+ "editorial-director", "illustrator",
238+ "interviewer", "original-author",
239+ "recipient", "reviewed-author",
240+ "translator" ]
241+
242+normalizeKey :: Text -> Text
243+normalizeKey k =
244+ case T.toLower k of
245+ "doi" -> "DOI"
246+ "isbn" -> "ISBN"
247+ "issn" -> "ISSN"
248+ "pmcid" -> "PMCID"
249+ "pmid" -> "PMID"
250+ "url" -> "URL"
251+ x -> x
252+
src/Text/Pandoc/Citeproc/Util.hsnew file+70
@@ -0,0 +1,70 @@
1+{-# LANGUAGE FlexibleContexts #-}
2+{-# LANGUAGE OverloadedStrings #-}
3+module Text.Pandoc.Citeproc.Util
4+ ( toIETF )
5+where
6+import Data.Text (Text)
7+
8+toIETF :: Text -> Text
9+toIETF "english" = "en-US" -- "en-EN" unavailable in CSL
10+toIETF "usenglish" = "en-US"
11+toIETF "american" = "en-US"
12+toIETF "british" = "en-GB"
13+toIETF "ukenglish" = "en-GB"
14+toIETF "canadian" = "en-US" -- "en-CA" unavailable in CSL
15+toIETF "australian" = "en-GB" -- "en-AU" unavailable in CSL
16+toIETF "newzealand" = "en-GB" -- "en-NZ" unavailable in CSL
17+toIETF "afrikaans" = "af-ZA"
18+toIETF "arabic" = "ar"
19+toIETF "basque" = "eu"
20+toIETF "bulgarian" = "bg-BG"
21+toIETF "catalan" = "ca-AD"
22+toIETF "croatian" = "hr-HR"
23+toIETF "czech" = "cs-CZ"
24+toIETF "danish" = "da-DK"
25+toIETF "dutch" = "nl-NL"
26+toIETF "estonian" = "et-EE"
27+toIETF "finnish" = "fi-FI"
28+toIETF "canadien" = "fr-CA"
29+toIETF "acadian" = "fr-CA"
30+toIETF "french" = "fr-FR"
31+toIETF "francais" = "fr-FR"
32+toIETF "austrian" = "de-AT"
33+toIETF "naustrian" = "de-AT"
34+toIETF "german" = "de-DE"
35+toIETF "germanb" = "de-DE"
36+toIETF "ngerman" = "de-DE"
37+toIETF "greek" = "el-GR"
38+toIETF "polutonikogreek" = "el-GR"
39+toIETF "hebrew" = "he-IL"
40+toIETF "hungarian" = "hu-HU"
41+toIETF "icelandic" = "is-IS"
42+toIETF "italian" = "it-IT"
43+toIETF "japanese" = "ja-JP"
44+toIETF "latvian" = "lv-LV"
45+toIETF "lithuanian" = "lt-LT"
46+toIETF "magyar" = "hu-HU"
47+toIETF "mongolian" = "mn-MN"
48+toIETF "norsk" = "nb-NO"
49+toIETF "nynorsk" = "nn-NO"
50+toIETF "farsi" = "fa-IR"
51+toIETF "polish" = "pl-PL"
52+toIETF "brazil" = "pt-BR"
53+toIETF "brazilian" = "pt-BR"
54+toIETF "portugues" = "pt-PT"
55+toIETF "portuguese" = "pt-PT"
56+toIETF "romanian" = "ro-RO"
57+toIETF "russian" = "ru-RU"
58+toIETF "serbian" = "sr-RS"
59+toIETF "serbianc" = "sr-RS"
60+toIETF "slovak" = "sk-SK"
61+toIETF "slovene" = "sl-SL"
62+toIETF "spanish" = "es-ES"
63+toIETF "swedish" = "sv-SE"
64+toIETF "thai" = "th-TH"
65+toIETF "turkish" = "tr-TR"
66+toIETF "ukrainian" = "uk-UA"
67+toIETF "vietnamese" = "vi-VN"
68+toIETF "latin" = "la"
69+toIETF x = x
70+
src/Text/Pandoc/Class/PandocMonad.hs+2−2
@@ -553,7 +553,7 @@ getDefaultReferencePptx = do
553553 mapM pathToEntry paths
554554
555555-- | Read file from user data directory or,
556−-- if not found there, from Cabal data directory.
556+-- if not found there, from the default data files.
557557readDataFile :: PandocMonad m => FilePath -> m B.ByteString
558558readDataFile fname = do
559559 datadir <- getUserDataDir
@@ -565,7 +565,7 @@ readDataFile fname = do
565565 then readFileStrict (userDir </> fname)
566566 else readDefaultDataFile fname
567567
568−-- | Read file from from Cabal data directory.
568+-- | Read file from from the default data files.
569569readDefaultDataFile :: PandocMonad m => FilePath -> m B.ByteString
570570readDefaultDataFile "reference.docx" =
571571 B.concat . BL.toChunks . fromArchive <$> getDefaultReferenceDocx
src/Text/Pandoc/Error.hs+4
@@ -32,6 +32,7 @@ import Text.Printf (printf)
3232import Text.Parsec.Error
3333import Text.Parsec.Pos hiding (Line)
3434import Text.Pandoc.Shared (tshow)
35+import Citeproc (CiteprocError, prettyCiteprocError)
3536
3637type Input = Text
3738
@@ -60,6 +61,7 @@ data PandocError = PandocIOError Text IOError
6061 | PandocUnknownReaderError Text
6162 | PandocUnknownWriterError Text
6263 | PandocUnsupportedExtensionError Text Text
64+ | PandocCiteprocError CiteprocError
6365 deriving (Show, Typeable, Generic)
6466
6567instance Exception PandocError
@@ -139,6 +141,8 @@ handleError (Left e) =
139141 PandocUnsupportedExtensionError ext f -> err 23 $
140142 "The extension " <> ext <> " is not supported " <>
141143 "for " <> f
144+ PandocCiteprocError e' -> err 24 $
145+ prettyCiteprocError e'
142146
143147err :: Int -> Text -> IO a
144148err exitCode msg = do
src/Text/Pandoc/Filter.hs+12−3
@@ -26,6 +26,7 @@ import Text.Pandoc.Class.PandocMonad (report, getVerbosity)
2626import Text.Pandoc.Definition (Pandoc)
2727import Text.Pandoc.Options (ReaderOptions)
2828import Text.Pandoc.Logging
29+import Text.Pandoc.Citeproc (processCitations)
2930import qualified Text.Pandoc.Filter.JSON as JSONFilter
3031import qualified Text.Pandoc.Filter.Lua as LuaFilter
3132import qualified Text.Pandoc.Filter.Path as Path
@@ -39,6 +40,7 @@ import Control.Monad (foldM, when)
3940-- | Type of filter and path to filter file.
4041data Filter = LuaFilter FilePath
4142 | JSONFilter FilePath
43+ | CiteprocFilter -- built-in citeproc
4244 deriving (Show, Generic)
4345
4446instance FromYAML Filter where
@@ -47,15 +49,19 @@ instance FromYAML Filter where
4749 ty <- m .: "type"
4850 fp <- m .: "path"
4951 case ty of
52+ "citeproc" -> return CiteprocFilter
5053 "lua" -> return $ LuaFilter $ T.unpack fp
5154 "json" -> return $ JSONFilter $ T.unpack fp
5255 _ -> fail $ "Unknown filter type " ++ show (ty :: T.Text)) node
5356 <|>
5457 (withStr "Filter" $ \t -> do
5558 let fp = T.unpack t
56− case takeExtension fp of
57− ".lua" -> return $ LuaFilter fp
58− _ -> return $ JSONFilter fp) node
59+ if fp == "citeproc"
60+ then return CiteprocFilter
61+ else return $
62+ case takeExtension fp of
63+ ".lua" -> LuaFilter fp
64+ _ -> JSONFilter fp) node
5965
6066-- | Modify the given document using a filter.
6167applyFilters :: ReaderOptions
@@ -71,6 +77,8 @@ applyFilters ropts filters args d = do
7177 withMessages f $ JSONFilter.apply ropts args f doc
7278 applyFilter doc (LuaFilter f) =
7379 withMessages f $ LuaFilter.apply ropts args f doc
80+ applyFilter doc CiteprocFilter =
81+ processCitations doc
7482 withMessages f action = do
7583 verbosity <- getVerbosity
7684 when (verbosity == INFO) $ report $ RunningFilter f
@@ -85,5 +93,6 @@ applyFilters ropts filters args d = do
8593expandFilterPath :: Filter -> PandocIO Filter
8694expandFilterPath (LuaFilter fp) = LuaFilter <$> Path.expandFilterPath fp
8795expandFilterPath (JSONFilter fp) = JSONFilter <$> Path.expandFilterPath fp
96+expandFilterPath CiteprocFilter = return CiteprocFilter
8897
8998$(deriveJSON defaultOptions ''Filter)
src/Text/Pandoc/Logging.hs+5
@@ -98,6 +98,7 @@ data LogMessage =
9898 | CouldNotDeduceFormat [Text.Text] Text.Text
9999 | RunningFilter FilePath
100100 | FilterCompleted FilePath Integer
101+ | CiteprocWarning Text.Text
101102 deriving (Show, Eq, Data, Ord, Typeable, Generic)
102103
103104instance ToJSON LogMessage where
@@ -227,6 +228,8 @@ instance ToJSON LogMessage where
227228 FilterCompleted fp ms ->
228229 ["path" .= Text.pack fp
229230 ,"milliseconds" .= Text.pack (show ms) ]
231+ CiteprocWarning msg ->
232+ ["message" .= msg]
230233
231234showPos :: SourcePos -> Text.Text
232235showPos pos = Text.pack $ sn ++ "line " ++
@@ -338,6 +341,7 @@ showLogMessage msg =
338341 RunningFilter fp -> "Running filter " <> Text.pack fp
339342 FilterCompleted fp ms -> "Completed filter " <> Text.pack fp <>
340343 " in " <> Text.pack (show ms) <> " ms"
344+ CiteprocWarning ms -> "Citeproc: " <> ms
341345
342346messageVerbosity :: LogMessage -> Verbosity
343347messageVerbosity msg =
@@ -383,3 +387,4 @@ messageVerbosity msg =
383387 CouldNotDeduceFormat{} -> WARNING
384388 RunningFilter{} -> INFO
385389 FilterCompleted{} -> INFO
390+ CiteprocWarning{} -> WARNING
src/Text/Pandoc/Readers.hs+8
@@ -51,6 +51,9 @@ module Text.Pandoc.Readers
5151 , readFB2
5252 , readIpynb
5353 , readCSV
54+ , readCslJson
55+ , readBibTeX
56+ , readBibLaTeX
5457 -- * Miscellaneous
5558 , getReader
5659 , getDefaultExtensions
@@ -95,6 +98,8 @@ import Text.Pandoc.Readers.Txt2Tags
9598import Text.Pandoc.Readers.Vimwiki
9699import Text.Pandoc.Readers.Man
97100import Text.Pandoc.Readers.CSV
101+import Text.Pandoc.Readers.CslJson
102+import Text.Pandoc.Readers.BibTeX
98103import qualified Text.Pandoc.UTF8 as UTF8
99104import Text.Parsec.Error
100105
@@ -138,6 +143,9 @@ readers = [ ("native" , TextReader readNative)
138143 ,("fb2" , TextReader readFB2)
139144 ,("ipynb" , TextReader readIpynb)
140145 ,("csv" , TextReader readCSV)
146+ ,("csljson" , TextReader readCslJson)
147+ ,("bibtex" , TextReader readBibTeX)
148+ ,("biblatex" , TextReader readBibLaTeX)
141149 ]
142150
143151-- | Retrieve reader, extensions based on formatSpec (format+extensions).
src/Text/Pandoc/Readers/BibTeX.hsnew file+70
@@ -0,0 +1,70 @@
1+{-# LANGUAGE OverloadedStrings #-}
2+{- |
3+ Module : Text.Pandoc.Readers.BibTeX
4+ Copyright : Copyright (C) 2020 John MacFarlane
5+ License : GNU GPL, version 2 or above
6+
7+ Maintainer : John MacFarlane <jgm@berkeley.edu>
8+ Stability : alpha
9+ Portability : portable
10+
11+Parses BibTeX or BibLaTeX bibliographies into a Pandoc document
12+with empty body and `references` and `nocite` fields
13+in the metadata. A wildcard `nocite` is used so that
14+if the document is rendered in another format, the
15+entire bibliography will be printed.
16+-}
17+module Text.Pandoc.Readers.BibTeX
18+ ( readBibTeX
19+ , readBibLaTeX
20+ )
21+where
22+
23+import Text.Pandoc.Options
24+import Text.Pandoc.Definition
25+import Text.Pandoc.Builder (setMeta, cite, str)
26+import Data.Text (Text)
27+import Citeproc (Lang(..), parseLang)
28+import Citeproc.Locale (getLocale)
29+import Data.Maybe (fromMaybe)
30+import Text.Pandoc.Error (PandocError(..))
31+import Text.Pandoc.Class (PandocMonad, lookupEnv)
32+import Text.Pandoc.Citeproc.BibTeX as BibTeX
33+import Text.Pandoc.Citeproc.MetaValue (referenceToMetaValue)
34+import Control.Monad.Except (throwError)
35+
36+-- | Read BibTeX from an input string and return a Pandoc document.
37+-- The document will have only metadata, with an empty body.
38+-- The metadata will contain a `references` field with the
39+-- bibliography entries, and a `nocite` field with the wildcard `[@*]`.
40+readBibTeX :: PandocMonad m => ReaderOptions -> Text -> m Pandoc
41+readBibTeX = readBibTeX' BibTeX.Bibtex
42+
43+-- | Read BibLaTeX from an input string and return a Pandoc document.
44+-- The document will have only metadata, with an empty body.
45+-- The metadata will contain a `references` field with the
46+-- bibliography entries, and a `nocite` field with the wildcard `[@*]`.
47+readBibLaTeX :: PandocMonad m => ReaderOptions -> Text -> m Pandoc
48+readBibLaTeX = readBibTeX' BibTeX.Biblatex
49+
50+readBibTeX' :: PandocMonad m => Variant -> ReaderOptions -> Text -> m Pandoc
51+readBibTeX' variant _opts t = do
52+ lang <- fromMaybe (Lang "en" (Just "US")) . fmap parseLang
53+ <$> lookupEnv "LANG"
54+ locale <- case getLocale lang of
55+ Left e -> throwError $ PandocCiteprocError e
56+ Right l -> return l
57+ case BibTeX.readBibtexString variant locale (const True) t of
58+ Left e -> throwError $ PandocParsecError t e
59+ Right refs -> return $ setMeta "references"
60+ (map referenceToMetaValue refs)
61+ . setMeta "nocite"
62+ (cite [Citation {citationId = "*"
63+ , citationPrefix = []
64+ , citationSuffix = []
65+ , citationMode = NormalCitation
66+ , citationNoteNum = 0
67+ , citationHash = 0}]
68+ (str "[@*]"))
69+ $ Pandoc nullMeta []
70+
src/Text/Pandoc/Readers/CslJson.hsnew file+53
@@ -0,0 +1,53 @@
1+{-# LANGUAGE OverloadedStrings #-}
2+{- |
3+ Module : Text.Pandoc.Readers.CslJson
4+ Copyright : Copyright (C) 2020 John MacFarlane
5+ License : GNU GPL, version 2 or above
6+
7+ Maintainer : John MacFarlane <jgm@berkeley.edu>
8+ Stability : alpha
9+ Portability : portable
10+
11+Parses CSL JSON bibliographies into a Pandoc document
12+with empty body and `references` and `nocite` fields
13+in the metadata. A wildcard `nocite` is used so that
14+if the document is rendered in another format, the
15+entire bibliography will be printed.
16+
17+<https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html>.
18+-}
19+module Text.Pandoc.Readers.CslJson
20+ ( readCslJson )
21+where
22+
23+import Text.Pandoc.Options
24+import Text.Pandoc.Definition
25+import Text.Pandoc.Builder (setMeta, cite, str)
26+import qualified Text.Pandoc.UTF8 as UTF8
27+import Data.Text (Text)
28+import qualified Data.Text as T
29+import Text.Pandoc.Error (PandocError(..))
30+import Text.Pandoc.Class (PandocMonad)
31+import Text.Pandoc.Citeproc.CslJson (cslJsonToReferences)
32+import Text.Pandoc.Citeproc.MetaValue (referenceToMetaValue)
33+import Control.Monad.Except (throwError)
34+
35+-- | Read CSL JSON from an input string and return a Pandoc document.
36+-- The document will have only metadata, with an empty body.
37+-- The metadata will contain a `references` field with the
38+-- bibliography entries, and a `nocite` field with the wildcard `[@*]`.
39+readCslJson :: PandocMonad m => ReaderOptions -> Text -> m Pandoc
40+readCslJson _opts t =
41+ case cslJsonToReferences (UTF8.fromText t) of
42+ Left e -> throwError $ PandocParseError $ T.pack e
43+ Right refs -> return $ setMeta "references"
44+ (map referenceToMetaValue refs)
45+ . setMeta "nocite"
46+ (cite [Citation {citationId = "*"
47+ , citationPrefix = []
48+ , citationSuffix = []
49+ , citationMode = NormalCitation
50+ , citationNoteNum = 0
51+ , citationHash = 0}]
52+ (str "[@*]"))
53+ $ Pandoc nullMeta []
src/Text/Pandoc/Readers/Markdown.hs+1
@@ -1665,6 +1665,7 @@ str = do
16651665 abbrevs <- getOption readerAbbreviations
16661666 if not (T.null result) && T.last result == '.' && result `Set.member` abbrevs
16671667 then try (do ils <- whitespace
1668+ notFollowedBy (() <$ cite <|> () <$ note)
16681669 -- ?? lookAhead alphaNum
16691670 -- replace space after with nonbreaking space
16701671 -- if softbreak, move before abbrev if possible (#4635)
src/Text/Pandoc/Templates.hs+1
@@ -80,6 +80,7 @@ getDefaultTemplate writer = do
8080 let format = T.takeWhile (`notElem` ("+-" :: String)) writer -- strip off extensions
8181 case format of
8282 "native" -> return ""
83+ "csljson" -> return ""
8384 "json" -> return ""
8485 "docx" -> return ""
8586 "fb2" -> return ""
src/Text/Pandoc/Writers.hs+3
@@ -24,6 +24,7 @@ module Text.Pandoc.Writers
2424 , writeCommonMark
2525 , writeConTeXt
2626 , writeCustom
27+ , writeCslJson
2728 , writeDZSlides
2829 , writeDocbook4
2930 , writeDocbook5
@@ -86,6 +87,7 @@ import Text.Pandoc.Error
8687import Text.Pandoc.Writers.AsciiDoc
8788import Text.Pandoc.Writers.CommonMark
8889import Text.Pandoc.Writers.ConTeXt
90+import Text.Pandoc.Writers.CslJson
8991import Text.Pandoc.Writers.Custom
9092import Text.Pandoc.Writers.Docbook
9193import Text.Pandoc.Writers.Docx
@@ -182,6 +184,7 @@ writers = [
182184 ,("gfm" , TextWriter writeCommonMark)
183185 ,("tei" , TextWriter writeTEI)
184186 ,("muse" , TextWriter writeMuse)
187+ ,("csljson" , TextWriter writeCslJson)
185188 ]
186189
187190-- | Retrieve writer, extensions based on formatSpec (format+extensions).
src/Text/Pandoc/Writers/CslJson.hsnew file+87
@@ -0,0 +1,87 @@
1+{-# LANGUAGE OverloadedStrings #-}
2+{- |
3+ Module : Text.Pandoc.Writers.CslJson
4+ Copyright : Copyright (C) 2020 John MacFarlane
5+ License : GNU GPL, version 2 or above
6+
7+ Maintainer : John MacFarlane <jgm@berkeley.edu>
8+ Stability : alpha
9+ Portability : portable
10+
11+Conversion of references from 'Pandoc' metadata to CSL JSON:
12+<https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html>.
13+
14+Note that this writer ignores everything in the body of the
15+document and everything in the metadata except `references`.
16+It assumes that the `references` field is a list with the structure
17+of a CSL JSON bibliography.
18+-}
19+module Text.Pandoc.Writers.CslJson ( writeCslJson )
20+where
21+import Data.Text (Text)
22+import qualified Data.Text as T
23+import qualified Text.Pandoc.UTF8 as UTF8
24+import Text.Pandoc.Error
25+import Text.Pandoc.Class
26+import Control.Monad.Except (throwError)
27+import Data.ByteString.Lazy (toStrict)
28+import Data.ByteString (ByteString)
29+import Text.Pandoc.Definition
30+import Text.Pandoc.Builder as B
31+import Text.Pandoc.Citeproc.MetaValue (metaValueToReference, metaValueToText)
32+import Citeproc (parseLang, Locale, Reference(..), Lang(..))
33+import Control.Monad.Identity
34+import Citeproc.Locale (getLocale)
35+import Citeproc.CslJson
36+import Text.Pandoc.Options (WriterOptions)
37+import Data.Maybe (fromMaybe, mapMaybe)
38+import Data.Aeson.Encode.Pretty (Config (..), Indent (Spaces),
39+ NumberFormat (Generic),
40+ defConfig, encodePretty')
41+
42+writeCslJson :: PandocMonad m => WriterOptions -> Pandoc -> m Text
43+writeCslJson _opts (Pandoc meta _) = do
44+ let lang = fromMaybe (Lang "en" (Just "US")) $
45+ parseLang <$> (lookupMeta "lang" meta >>= metaValueToText)
46+ locale <- case getLocale lang of
47+ Left e -> throwError $ PandocCiteprocError e
48+ Right l -> return l
49+ case lookupMeta "references" meta of
50+ Just (MetaList rs) -> return $ (UTF8.toText $
51+ toCslJson locale (mapMaybe metaValueToReference rs)) <> "\n"
52+ _ -> throwError $ PandocAppError "No references field"
53+
54+fromInlines :: [Inline] -> CslJson Text
55+fromInlines = foldMap fromInline . B.fromList
56+
57+fromInline :: Inline -> CslJson Text
58+fromInline (Str t) = CslText t
59+fromInline (Emph ils) = CslItalic (fromInlines ils)
60+fromInline (Strong ils) = CslBold (fromInlines ils)
61+fromInline (Underline ils) = CslUnderline (fromInlines ils)
62+fromInline (Strikeout ils) = fromInlines ils
63+fromInline (Superscript ils) = CslSup (fromInlines ils)
64+fromInline (Subscript ils) = CslSub (fromInlines ils)
65+fromInline (SmallCaps ils) = CslSmallCaps (fromInlines ils)
66+fromInline (Quoted _ ils) = CslQuoted (fromInlines ils)
67+fromInline (Cite _ ils) = fromInlines ils
68+fromInline (Code _ t) = CslText t
69+fromInline Space = CslText " "
70+fromInline SoftBreak = CslText " "
71+fromInline LineBreak = CslText "\n"
72+fromInline (Math _ t) = CslText t
73+fromInline (RawInline _ _) = CslEmpty
74+fromInline (Link _ ils _) = fromInlines ils
75+fromInline (Image _ ils _) = fromInlines ils
76+fromInline (Note _) = CslEmpty
77+fromInline (Span (_,[cl],_) ils)
78+ | "csl-" `T.isPrefixOf` cl = CslDiv cl (fromInlines ils)
79+fromInline (Span _ ils) = fromInlines ils
80+
81+toCslJson :: Locale -> [Reference Inlines] -> ByteString
82+toCslJson locale = toStrict .
83+ encodePretty' defConfig{ confIndent = Spaces 2
84+ , confCompare = compare
85+ , confNumFormat = Generic }
86+ . map (runIdentity . traverse (return . renderCslJson locale . foldMap fromInline))
87+
src/Text/Pandoc/Writers/Docx.hs+12
@@ -1184,6 +1184,18 @@ inlineToOpenXML' _ (Str str) =
11841184 formattedString str
11851185inlineToOpenXML' opts Space = inlineToOpenXML opts (Str " ")
11861186inlineToOpenXML' opts SoftBreak = inlineToOpenXML opts (Str " ")
1187+inlineToOpenXML' opts (Span ("",["csl-block"],[]) ils) =
1188+ inlinesToOpenXML opts ils
1189+inlineToOpenXML' opts (Span ("",["csl-left-margin"],[]) ils) =
1190+ inlinesToOpenXML opts ils
1191+inlineToOpenXML' opts (Span ("",["csl-right-inline"],[]) ils) =
1192+ ([mknode "w:r" []
1193+ (mknode "w:t"
1194+ [("xml:space","preserve")]
1195+ ("\t" :: String))] ++)
1196+ <$> inlinesToOpenXML opts ils
1197+inlineToOpenXML' opts (Span ("",["csl-indent"],[]) ils) =
1198+ inlinesToOpenXML opts ils
11871199inlineToOpenXML' _ (Span (ident,["comment-start"],kvs) ils) = do
11881200 -- prefer the "id" in kvs, since that is the one produced by the docx
11891201 -- reader.
src/Text/Pandoc/Writers/HTML.hs+58−21
@@ -86,6 +86,8 @@ data WriterState = WriterState
8686 , stSlideLevel :: Int -- ^ Slide level
8787 , stInSection :: Bool -- ^ Content is in a section (revealjs)
8888 , stCodeBlockNum :: Int -- ^ Number of code block
89+ , stCsl :: Bool -- ^ Has CSL references
90+ , stCslEntrySpacing :: Maybe Int -- ^ CSL entry spacing
8991 }
9092
9193defaultWriterState :: WriterState
@@ -96,7 +98,9 @@ defaultWriterState = WriterState {stNotes= [], stMath = False, stQuotes = False,
9698 stSlideVariant = NoSlides,
9799 stSlideLevel = 1,
98100 stInSection = False,
99− stCodeBlockNum = 0}
101+ stCodeBlockNum = 0,
102+ stCsl = False,
103+ stCslEntrySpacing = Nothing}
100104
101105-- Helpers to render HTML with the appropriate function.
102106
@@ -316,39 +320,48 @@ pandocToHtml opts (Pandoc meta blocks) = do
316320 Just sty -> defField "highlighting-css"
317321 (T.pack $ styleToCss sty)
318322 Nothing -> id
319− else id) $
323+ else id) .
324+ (if stCsl st
325+ then defField "csl-css" True .
326+ (case stCslEntrySpacing st of
327+ Nothing -> id
328+ Just 0 -> id
329+ Just n ->
330+ defField "csl-entry-spacing"
331+ (tshow n <> "em"))
332+ else id) .
320333 (if stMath st
321334 then defField "math" (renderHtml' math)
322− else id) $
335+ else id) .
323336 (case writerHTMLMathMethod opts of
324337 MathJax u -> defField "mathjax" True .
325338 defField "mathjaxurl"
326339 (T.takeWhile (/='?') u)
327− _ -> defField "mathjax" False) $
340+ _ -> defField "mathjax" False) .
328341 (case writerHTMLMathMethod opts of
329342 PlainMath -> defField "displaymath-css" True
330343 WebTeX _ -> defField "displaymath-css" True
331− _ -> id) $
332− defField "document-css" (isNothing mCss && slideVariant == NoSlides) $
333− defField "quotes" (stQuotes st) $
344+ _ -> id) .
345+ defField "document-css" (isNothing mCss && slideVariant == NoSlides) .
346+ defField "quotes" (stQuotes st) .
334347 -- for backwards compatibility we populate toc
335348 -- with the contents of the toc, rather than a
336349 -- boolean:
337− maybe id (defField "toc") toc $
338− maybe id (defField "table-of-contents") toc $
339− defField "author-meta" authsMeta $
350+ maybe id (defField "toc") toc .
351+ maybe id (defField "table-of-contents") toc .
352+ defField "author-meta" authsMeta .
340353 maybe id (defField "date-meta")
341− (normalizeDate dateMeta) $
354+ (normalizeDate dateMeta) .
342355 defField "pagetitle"
343− (stringifyHTML . docTitle $ meta) $
344− defField "idprefix" (writerIdentifierPrefix opts) $
356+ (stringifyHTML . docTitle $ meta) .
357+ defField "idprefix" (writerIdentifierPrefix opts) .
345358 -- these should maybe be set in pandoc.hs
346359 defField "slidy-url"
347− ("https://www.w3.org/Talks/Tools/Slidy2" :: Text) $
348− defField "slideous-url" ("slideous" :: Text) $
360+ ("https://www.w3.org/Talks/Tools/Slidy2" :: Text) .
361+ defField "slideous-url" ("slideous" :: Text) .
349362 defField "revealjs-url" ("https://unpkg.com/reveal.js@^4/" :: Text) $
350− defField "s5-url" ("s5/default" :: Text) $
351− defField "html5" (stHtml5 st)
363+ defField "s5-url" ("s5/default" :: Text) .
364+ defField "html5" (stHtml5 st) $
352365 metadata
353366 return (thebody, context)
354367
@@ -743,12 +756,17 @@ blockToHtml opts (Div (ident, "section":dclasses, dkvs)
743756blockToHtml opts (Div attr@(ident, classes, kvs') bs) = do
744757 html5 <- gets stHtml5
745758 slideVariant <- gets stSlideVariant
759+ let isCslBibBody = ident == "refs" || "csl-bib-body" `elem` classes
760+ when isCslBibBody $ modify $ \st -> st{ stCsl = True
761+ , stCslEntrySpacing =
762+ lookup "entry-spacing" kvs' >>=
763+ safeRead }
764+ let isCslBibEntry = "csl-entry" `elem` classes
746765 let kvs = [(k,v) | (k,v) <- kvs', k /= "width"] ++
747766 [("style", "width:" <> w <> ";") | "column" `elem` classes,
748767 ("width", w) <- kvs'] ++
749− [("role", "doc-bibliography") | ident == "refs" && html5] ++
750− [("role", "doc-biblioentry")
751− | "ref-" `T.isPrefixOf` ident && html5]
768+ [("role", "doc-bibliography") | isCslBibBody && html5] ++
769+ [("role", "doc-biblioentry") | isCslBibEntry && html5]
752770 let speakerNotes = "notes" `elem` classes
753771 -- we don't want incremental output inside speaker notes, see #1394
754772 let opts' = if | speakerNotes -> opts{ writerIncremental = False }
@@ -765,7 +783,9 @@ blockToHtml opts (Div attr@(ident, classes, kvs') bs) = do
765783 -- a newline between the column divs, which throws
766784 -- off widths! see #4028
767785 mconcat <$> mapM (blockToHtml opts) bs
768− else blockListToHtml opts' bs
786+ else if isCslBibEntry
787+ then mconcat <$> mapM (cslEntryToHtml opts') bs
788+ else blockListToHtml opts' bs
769789 let contents' = nl opts >> contents >> nl opts
770790 let (divtag, classes'') = if html5 && "section" `elem` classes'
771791 then (H5.section, filter (/= "section") classes')
@@ -1439,6 +1459,23 @@ blockListToNote opts ref blocks = do
14391459 _ -> noteItem
14401460 return $ nl opts >> noteItem'
14411461
1462+cslEntryToHtml :: PandocMonad m
1463+ => WriterOptions
1464+ -> Block
1465+ -> StateT WriterState m Html
1466+cslEntryToHtml opts (Para xs) = do
1467+ html5 <- gets stHtml5
1468+ let inDiv :: Text -> Html -> Html
1469+ inDiv cls x = ((if html5 then H5.div else H.div)
1470+ x ! A.class_ (toValue cls))
1471+ let go (Span ("",[cls],[]) ils)
1472+ | cls == "csl-block" || cls == "csl-left-margin" ||
1473+ cls == "csl-right-inline" || cls == "csl-indent"
1474+ = inDiv cls <$> inlineListToHtml opts ils
1475+ go il = inlineToHtml opts il
1476+ mconcat <$> mapM go xs
1477+cslEntryToHtml opts x = blockToHtml opts x
1478+
14421479isMathEnvironment :: Text -> Bool
14431480isMathEnvironment s = "\\begin{" `T.isPrefixOf` s &&
14441481 envName `elem` mathmlenvs
src/Text/Pandoc/Writers/LaTeX.hs+32−11
@@ -71,7 +71,6 @@ data WriterState =
7171 , stBeamer :: Bool -- produce beamer
7272 , stEmptyLine :: Bool -- true if no content on line
7373 , stHasCslRefs :: Bool -- has a Div with class refs
74− , stCslHangingIndent :: Bool -- use hanging indent for bib
7574 , stIsFirstInDefinition :: Bool -- first block in a defn list
7675 }
7776
@@ -103,7 +102,6 @@ startingState options = WriterState {
103102 , stBeamer = False
104103 , stEmptyLine = True
105104 , stHasCslRefs = False
106− , stCslHangingIndent = False
107105 , stIsFirstInDefinition = False }
108106
109107-- | Convert Pandoc to LaTeX.
@@ -243,7 +241,6 @@ pandocToLaTeX options (Pandoc meta blocks) = do
243241 else defField "dir" ("ltr" :: Text)) $
244242 defField "section-titles" True $
245243 defField "csl-refs" (stHasCslRefs st) $
246− defField "csl-hanging-indent" (stCslHangingIndent st) $
247244 defField "geometry" geometryFromMargins $
248245 (case T.uncons . render Nothing <$>
249246 getField "papersize" metadata of
@@ -541,16 +538,23 @@ blockToLaTeX (Div (identifier,classes,kvs) bs) = do
541538 then modify $ \st -> st{ stIncremental = True }
542539 else when (beamer && "nonincremental" `elem` classes) $
543540 modify $ \st -> st { stIncremental = False }
544− result <- if identifier == "refs"
541+ result <- if identifier == "refs" || -- <- for backwards compatibility
542+ "csl-bib-body" `elem` classes
545543 then do
544+ modify $ \st -> st{ stHasCslRefs = True }
546545 inner <- blockListToLaTeX bs
547− modify $ \st -> st{ stHasCslRefs = True
548− , stCslHangingIndent =
549− "hanging-indent" `elem` classes }
550− return $ "\\begin{cslreferences}" $$
551− inner $$
552− "\\end{cslreferences}"
553− else blockListToLaTeX bs
546+ return $ "\\begin{CSLReferences}" <>
547+ (if "hanging-indent" `elem` classes
548+ then braces "1"
549+ else braces "0") <>
550+ (case lookup "entry-spacing" kvs of
551+ Nothing -> braces "0"
552+ Just s -> braces (literal s))
553+ $$ inner
554+ $+$ "\\end{CSLReferences}"
555+ else if "csl-entry" `elem` classes
556+ then vcat <$> mapM cslEntryToLaTeX bs
557+ else blockListToLaTeX bs
554558 modify $ \st -> st{ stIncremental = oldIncremental }
555559 linkAnchor' <- hypertarget True identifier empty
556560 -- see #2704 for the motivation for adding \leavevmode:
@@ -1151,6 +1155,23 @@ isQuoted :: Inline -> Bool
11511155isQuoted (Quoted _ _) = True
11521156isQuoted _ = False
11531157
1158+cslEntryToLaTeX :: PandocMonad m
1159+ => Block
1160+ -> LW m (Doc Text)
1161+cslEntryToLaTeX (Para xs) =
1162+ mconcat <$> mapM go xs
1163+ where
1164+ go (Span ("",["csl-block"],[]) ils) =
1165+ (cr <>) . inCmd "CSLBlock" <$> inlineListToLaTeX ils
1166+ go (Span ("",["csl-left-margin"],[]) ils) =
1167+ inCmd "CSLLeftMargin" <$> inlineListToLaTeX ils
1168+ go (Span ("",["csl-right-inline"],[]) ils) =
1169+ (cr <>) . inCmd "CSLRightInline" <$> inlineListToLaTeX ils
1170+ go (Span ("",["csl-indent"],[]) ils) =
1171+ (cr <>) . inCmd "CSLIndent" <$> inlineListToLaTeX ils
1172+ go il = inlineToLaTeX il
1173+cslEntryToLaTeX x = blockToLaTeX x
1174+
11541175-- | Convert inline element to LaTeX
11551176inlineToLaTeX :: PandocMonad m
11561177 => Inline -- ^ Inline to convert
src/Text/Pandoc/Writers/Ms.hs+59−5
@@ -110,16 +110,37 @@ blockToMs :: PandocMonad m
110110 -> Block -- ^ Block element
111111 -> MS m (Doc Text)
112112blockToMs _ Null = return empty
113−blockToMs opts (Div (ident,_,_) bs) = do
113+blockToMs opts (Div (ident,cls,kvs) bs) = do
114114 let anchor = if T.null ident
115115 then empty
116116 else nowrap $
117117 literal ".pdfhref M "
118118 <> doubleQuotes (literal (toAscii ident))
119− setFirstPara
120− res <- blockListToMs opts bs
121− setFirstPara
122− return $ anchor $$ res
119+ case cls of
120+ _ | "csl-entry" `elem` cls ->
121+ (".CSLENTRY" $$) . vcat <$> mapM (cslEntryToMs True opts) bs
122+ | "csl-bib-body" `elem` cls -> do
123+ res <- blockListToMs opts bs
124+ return $ anchor $$
125+ -- so that XP paragraphs are indented:
126+ ".nr PI 3n" $$
127+ -- space between entries
128+ ".de CSLENTRY" $$
129+ (case lookup "entry-spacing" kvs >>= safeRead of
130+ Just n | n > (0 :: Int) -> ".sp"
131+ _ -> mempty) $$
132+ ".." $$
133+ ".de CSLP" $$
134+ (if "hanging-indent" `elem` cls
135+ then ".XP"
136+ else ".LP") $$
137+ ".." $$
138+ res
139+ _ -> do
140+ setFirstPara
141+ res <- blockListToMs opts bs
142+ setFirstPara
143+ return $ anchor $$ res
123144blockToMs opts (Plain inlines) =
124145 liftM vcat $ mapM (inlineListToMs' opts) $ splitSentences inlines
125146blockToMs opts (Para [Image attr alt (src,_tit)])
@@ -440,6 +461,39 @@ inlineToMs _ (Note contents) = do
440461 modify $ \st -> st{ stNotes = contents : stNotes st }
441462 return $ literal "\\**"
442463
464+cslEntryToMs :: PandocMonad m
465+ => Bool
466+ -> WriterOptions
467+ -> Block
468+ -> MS m (Doc Text)
469+cslEntryToMs atStart opts (Para xs) =
470+ case xs of
471+ (Span ("",["csl-left-margin"],[]) lils :
472+ rest@(Span ("",["csl-right-inline"],[]) _ : _))
473+ -> do lils' <- inlineListToMs' opts lils
474+ ((cr <> literal ".IP " <>
475+ doubleQuotes (nowrap lils') <>
476+ literal " 5") $$)
477+ <$> cslEntryToMs False opts (Para rest)
478+ (Span ("",["csl-block"],[]) ils : rest)
479+ -> ((cr <> literal ".LP") $$)
480+ <$> cslEntryToMs False opts (Para (ils ++ rest))
481+ (Span ("",["csl-left-margin"],[]) ils : rest)
482+ -> ((cr <> literal ".LP") $$)
483+ <$> cslEntryToMs False opts (Para (ils ++ rest))
484+ (Span ("",["csl-indented"],[]) ils : rest)
485+ -> ((cr <> literal ".LP") $$)
486+ <$> cslEntryToMs False opts (Para (ils ++ rest))
487+ _ | atStart
488+ -> (".CSLP" $$) <$> cslEntryToMs False opts (Para xs)
489+ | otherwise
490+ -> case xs of
491+ [] -> return mempty
492+ (x:rest) -> (<>) <$> (inlineToMs opts x)
493+ <*> (cslEntryToMs False opts (Para rest))
494+cslEntryToMs _ opts x = blockToMs opts x
495+
496+
443497handleNotes :: PandocMonad m => WriterOptions -> Doc Text -> MS m (Doc Text)
444498handleNotes opts fallback = do
445499 notes <- gets stNotes
stack.yaml+2−8
@@ -3,15 +3,11 @@ flags:
33 trypandoc: false
44 embed_data_files: true
55 static: false
6− pandoc-citeproc:
7− bibutils: true
8− embed_data_files: true
9− unicode_collation: false
10− test_citeproc: false
11− debug: false
126packages:
137- '.'
148extra-deps:
9+- git: https://github.com/jgm/citeproc
10+ commit: e3695de4f34f33e32c6d3c33e8cdcf3fa96f6a5b
1511- pandoc-types-1.22
1612- texmath-0.12.0.3
1713- rfc5051-0.2
@@ -28,8 +24,6 @@ extra-deps:
2824- commonmark-0.1.0.2
2925- commonmark-extensions-0.2.0.1
3026- commonmark-pandoc-0.2.0.1
31−- git: https://github.com/jgm/pandoc-citeproc
32− commit: 159bbb566858c0bc522e6404eb989671cd7236fd
3327
3428ghc-options:
3529 "$locals": -fhide-source-paths -Wno-missing-home-modules
test/command/5541-localLink.md+1−1
@@ -146,4 +146,4 @@ if you can read this text, [and it's linked]{#spanner} - all good!
146146 </Properties>
147147 </Hyperlink>
148148</Document>
149−```
149+```
test/command/5541-nesting.md+1−1
@@ -94,4 +94,4 @@
9494 </Story>
9595
9696</Document>
97−```
97+```
test/command/5541-urlLink.md+1−1
@@ -109,4 +109,4 @@ some more text that [links to](https://www.pandoc.org) Pandoc.
109109 </Properties>
110110 </Hyperlink>
111111</Document>
112−```
112+```
test/command/5849-prefix.md+5−6
@@ -2,31 +2,30 @@
22% pandoc -t latex --biblatex
33[e.g. @a1;@a2;@a3; but also @b1;@b2;@b3]
44^D
5−\autocites[e.g.~][]{a1,a2,a3}[but also][]{b1,b2,b3}
5+\autocites[e.g.][]{a1,a2,a3}[but also][]{b1,b2,b3}
66```
77```
88% pandoc -t latex --biblatex
99[e.g. @a1; e.g. @a2;@a3; but also @b1;@b2;but also @b3]
1010^D
11−\autocites[e.g.~][]{a1}[e.g.~][]{a2,a3}[but also][]{b1,b2}[but
12−also][]{b3}
11+\autocites[e.g.][]{a1}[e.g.][]{a2,a3}[but also][]{b1,b2}[but also][]{b3}
1312```
1413```
1514% pandoc -t latex --biblatex
1615[e.g. @a1, ch.3 and elsewhere;@a2;@a3; but also @a4;@a5]
1716^D
18−\autocites[e.g.~][ch.3 and elsewhere]{a1}{a2,a3}[but also][]{a4,a5}
17+\autocites[e.g.][ch.3 and elsewhere]{a1}{a2,a3}[but also][]{a4,a5}
1918```
2019```
2120% pandoc -t latex --biblatex
2221[e.g. @a1;@a2, ch.3 and elsewhere;@a3; but also @a4;@a5]
2322^D
24−\autocites[e.g.~][ch.3 and elsewhere]{a1,a2}{a3}[but also][]{a4,a5}
23+\autocites[e.g.][ch.3 and elsewhere]{a1,a2}{a3}[but also][]{a4,a5}
2524```
2625```
2726% pandoc -t latex --biblatex
2827[e.g. @a1, blah;@a2, ch.3 and elsewhere;@a3; but also @b4;@b5]
2928^D
30−\autocites[e.g.~][blah]{a1}[ch.3 and elsewhere]{a2}{a3}[but
29+\autocites[e.g.][blah]{a1}[ch.3 and elsewhere]{a2}{a3}[but
3130also][]{b4,b5}
3231```
test/command/6675.md+1−1
@@ -131,4 +131,4 @@ and some text that [links to](#header-1) the first header
131131 </Properties>
132132 </Hyperlink>
133133</Document>
134−```
134+```
test/command/advanced-optical-materials.cslnew file+155
@@ -0,0 +1,155 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
3+ <info>
4+ <title>Advanced Optical Materials</title>
5+ <id>http://www.zotero.org/styles/advanced-optical-materials</id>
6+ <link href="http://www.zotero.org/styles/advanced-optical-materials" rel="self"/>
7+ <link href="http://www.zotero.org/styles/small" rel="template"/>
8+ <link href="http://onlinelibrary.wiley.com/journal/10.1002/(ISSN)2195-1071/homepage/2298_forauthors.html" rel="documentation"/>
9+ <author>
10+ <name>Martin F. Schumann</name>
11+ <email>mfs@mfs.name</email>
12+ </author>
13+ <category citation-format="numeric"/>
14+ <category field="engineering"/>
15+ <eissn>2195-1071</eissn>
16+ <summary>A style for Wiley's Advanced Optical Materials</summary>
17+ <updated>2017-02-16T15:37:41+00:00</updated>
18+ <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
19+ </info>
20+ <macro name="author">
21+ <names variable="author">
22+ <name initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
23+ <label form="short" prefix=", " text-case="capitalize-first" suffix=" "/>
24+ <substitute>
25+ <names variable="editor"/>
26+ <names variable="translator"/>
27+ </substitute>
28+ </names>
29+ </macro>
30+ <macro name="editor">
31+ <names variable="editor">
32+ <label form="short" text-case="capitalize-first" suffix=".: " strip-periods="true"/>
33+ <name initialize-with="." delimiter=", " delimiter-precedes-last="always"/>
34+ </names>
35+ </macro>
36+ <macro name="year-date">
37+ <group font-weight="bold">
38+ <choose>
39+ <if variable="issued">
40+ <date variable="issued">
41+ <date-part name="year"/>
42+ </date>
43+ </if>
44+ <else>
45+ <text term="no date" form="short"/>
46+ </else>
47+ </choose>
48+ </group>
49+ </macro>
50+ <macro name="access-date">
51+ <group delimiter=", ">
52+ <date variable="accessed">
53+ <date-part name="month" prefix="accessed: " suffix=", " form="short"/>
54+ <date-part name="year"/>
55+ </date>
56+ </group>
57+ </macro>
58+ <macro name="access">
59+ <choose>
60+ <if variable="page" match="none">
61+ <choose>
62+ <if variable="DOI">
63+ <text variable="DOI" prefix="DOI: "/>
64+ </if>
65+ </choose>
66+ <choose>
67+ <if type="webpage">
68+ <text variable="URL"/>
69+ </if>
70+ </choose>
71+ </if>
72+ </choose>
73+ </macro>
74+ <macro name="publisher">
75+ <group delimiter=", ">
76+ <text variable="publisher" text-case="capitalize-all"/>
77+ <text variable="publisher-place" text-case="title"/>
78+ </group>
79+ </macro>
80+ <macro name="pages">
81+ <label variable="page" form="short" suffix=" "/>
82+ <text variable="page"/>
83+ </macro>
84+ <citation collapse="citation-number">
85+ <sort>
86+ <key variable="citation-number"/>
87+ </sort>
88+ <layout prefix="[" suffix="]" delimiter="," vertical-align="sup">
89+ <text variable="citation-number"/>
90+ </layout>
91+ </citation>
92+ <bibliography entry-spacing="0" second-field-align="flush" line-spacing="2">
93+ <layout suffix=".">
94+ <text variable="citation-number" prefix="[" suffix="]"/>
95+ <text macro="author" suffix=", "/>
96+ <choose>
97+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
98+ <group delimiter=", ">
99+ <text variable="title" text-case="title" font-style="italic"/>
100+ <text macro="publisher"/>
101+ <text macro="year-date"/>
102+ </group>
103+ </if>
104+ <else-if type="chapter paper-conference" match="any">
105+ <group delimiter=", ">
106+ <group delimiter=" ">
107+ <text term="in"/>
108+ <text variable="container-title" form="short" text-case="title" font-style="italic"/>
109+ <text macro="editor" prefix="(" suffix=")"/>
110+ </group>
111+ <text macro="publisher"/>
112+ <text macro="year-date"/>
113+ <group delimiter=" ">
114+ <text macro="pages"/>
115+ </group>
116+ </group>
117+ </else-if>
118+ <else-if type="patent">
119+ <group delimiter=", ">
120+ <text variable="number" font-style="italic"/>
121+ <text macro="year-date"/>
122+ </group>
123+ </else-if>
124+ <else-if type="thesis">
125+ <group delimiter=", ">
126+ <text variable="title" text-case="title"/>
127+ <text variable="genre"/>
128+ <text variable="publisher"/>
129+ <text macro="year-date"/>
130+ </group>
131+ </else-if>
132+ <else-if type="webpage">
133+ <group delimiter=", ">
134+ <text variable="title"/>
135+ <text macro="access"/>
136+ <text macro="access-date"/>
137+ </group>
138+ </else-if>
139+ <else>
140+ <group delimiter=" ">
141+ <text variable="container-title" form="short" font-style="italic"/>
142+ <group delimiter=", ">
143+ <text macro="year-date"/>
144+ <group>
145+ <text variable="volume" font-style="italic"/>
146+ </group>
147+ <text variable="page-first"/>
148+ </group>
149+ </group>
150+ <text macro="access" prefix=", "/>
151+ </else>
152+ </choose>
153+ </layout>
154+ </bibliography>
155+</style>
test/command/annales.cslnew file+334
@@ -0,0 +1,334 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<style xmlns="http://purl.org/net/xbiblio/csl" class="note" default-locale="fr-FR" version="1.0" page-range-format="expanded" demote-non-dropping-particle="sort-only">
3+ <info>
4+ <title>Annales. Histoire, Sciences sociales (French)</title>
5+ <id>http://www.zotero.org/styles/annales</id>
6+ <link href="http://www.zotero.org/styles/annales" rel="self"/>
7+ <link href="http://annales.ehess.fr/?lang=en/" rel="documentation"/>
8+ <author>
9+ <name>Franziska Heimburger</name>
10+ <email>zotero@franziska.fr</email>
11+ </author>
12+ <category citation-format="note"/>
13+ <category field="social_science"/>
14+ <issn>0395-2649</issn>
15+ <updated>2013-08-29T04:18:55+00:00</updated>
16+ <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
17+ </info>
18+ <locale xml:lang="fr">
19+ <terms>
20+ <term name="ordinal-01">ère</term>
21+ <term name="ordinal-02">e</term>
22+ <term name="ordinal-03">e</term>
23+ <term name="ordinal-04">e</term>
24+ <term name="cited">op.&#160;cit.</term>
25+ <term name="page" form="short">
26+ <single>p.</single>
27+ <multiple>p.</multiple>
28+ </term>
29+ <term name="editor" form="short">
30+ <single>dir.</single>
31+ <multiple>dir.</multiple>
32+ </term>
33+ </terms>
34+ </locale>
35+ <macro name="author">
36+ <names variable="author">
37+ <name form="long" and="text" delimiter-precedes-last="never">
38+ <name-part name="family" font-variant="small-caps"/>
39+ </name>
40+ <label form="short" prefix="&#160;(" suffix=")"/>
41+ <substitute>
42+ <names variable="editor"/>
43+ <names variable="translator"/>
44+ <text macro="title"/>
45+ </substitute>
46+ </names>
47+ </macro>
48+ <macro name="author-short">
49+ <names variable="author">
50+ <name form="long" and="text" initialize-with=". " delimiter-precedes-last="never">
51+ <name-part name="family" font-variant="small-caps"/>
52+ </name>
53+ <label form="short" prefix="&#160;(" suffix=")"/>
54+ <substitute>
55+ <names variable="editor"/>
56+ <names variable="translator"/>
57+ <text macro="title"/>
58+ </substitute>
59+ </names>
60+ </macro>
61+ <macro name="editor">
62+ <names variable="editor">
63+ <name form="long" and="text" delimiter-precedes-last="never" sort-separator=" " font-style="normal">
64+ </name>
65+ <label form="short" prefix="&#160;(" suffix=".)"/>
66+ </names>
67+ </macro>
68+ <macro name="translator">
69+ <names variable="translator">
70+ <name form="long" and="text" delimiter-precedes-last="never" sort-separator=" " font-style="normal" prefix=" trad. fr. ">
71+ <name-part name="family" font-variant="small-caps"/>
72+ </name>
73+ </names>
74+ </macro>
75+ <macro name="title">
76+ <choose>
77+ <if type="bill book graphic legal_case motion_picture report song" match="any">
78+ <text variable="title" text-case="capitalize-first" font-style="italic"/>
79+ </if>
80+ <else-if type="article-journal article-newspaper article-magazine" match="any">
81+ <group delimiter=", ">
82+ <text variable="title" text-case="capitalize-first" quotes="true" font-style="normal"/>
83+ <text variable="container-title" font-style="italic"/>
84+ </group>
85+ </else-if>
86+ <else-if type="thesis" match="any">
87+ <group>
88+ <text variable="title" text-case="capitalize-first" quotes="true" font-style="normal"/>
89+ <text variable="genre" suffix=", " prefix=" "/>
90+ <text variable="publisher"/>
91+ </group>
92+ </else-if>
93+ <else-if type="manuscript" match="any">
94+ <group delimiter=",">
95+ <text variable="title" text-case="capitalize-first" quotes="true" font-style="normal"/>
96+ <text variable="genre" prefix=" "/>
97+ </group>
98+ </else-if>
99+ <else-if type="chapter entry-dictionary entry-encyclopedia" match="any">
100+ <group>
101+ <text variable="title" text-case="capitalize-first" quotes="true" suffix=","/>
102+ <text value="in" font-style="italic" suffix=" " prefix=" "/>
103+ <text macro="editor" suffix=", "/>
104+ <text variable="container-title" text-case="capitalize-first" font-style="italic"/>
105+ </group>
106+ </else-if>
107+ <else-if type="webpage" match="any">
108+ <group>
109+ <text variable="title" text-case="capitalize-first" font-style="italic" suffix=", "/>
110+ <text variable="URL" text-decoration="underline"/>
111+ </group>
112+ </else-if>
113+ <else>
114+ <text variable="title" quotes="true"/>
115+ </else>
116+ </choose>
117+ </macro>
118+ <macro name="pub-place">
119+ <choose>
120+ <if type="bill book chapter entry-dictionary entry-encyclopedia thesis graphic legal_case manuscript motion_picture paper-conference report song" match="any">
121+ <text variable="publisher-place"/>
122+ </if>
123+ </choose>
124+ </macro>
125+ <macro name="publisher">
126+ <choose>
127+ <if type="bill book chapter entry-dictionary entry-encyclopedia graphic legal_case motion_picture paper-conference report song" match="any">
128+ <text variable="publisher"/>
129+ </if>
130+ </choose>
131+ </macro>
132+ <macro name="yearpage">
133+ <choose>
134+ <if type="bill book graphic legal_case motion_picture paper-conference manuscript report song thesis" match="any">
135+ <group delimiter=", " font-style="normal">
136+ <date variable="issued">
137+ <date-part name="year"/>
138+ </date>
139+ <group delimiter=" ">
140+ <text term="volume" form="short"/>
141+ <text variable="volume"/>
142+ </group>
143+ <group delimiter="&#8239;">
144+ <label variable="locator" form="short"/>
145+ <text variable="locator"/>
146+ </group>
147+ </group>
148+ </if>
149+ <else-if type="chapter entry-dictionary entry-encyclopedia" match="any">
150+ <group delimiter=" " font-style="normal">
151+ <date variable="issued">
152+ <date-part name="year" suffix=", "/>
153+ </date>
154+ <group>
155+ <text term="volume" form="short" suffix="."/>
156+ <text variable="number-of-volumes" prefix=". " suffix="/"/>
157+ <text variable="volume" suffix=","/>
158+ </group>
159+ <label variable="page" form="short"/>
160+ <group delimiter=", ">
161+ <text variable="page"/>
162+ <group delimiter="&#8239;">
163+ <label variable="locator" form="short"/>
164+ <text variable="locator"/>
165+ </group>
166+ </group>
167+ </group>
168+ </else-if>
169+ <else-if type="article-journal" match="any">
170+ <group delimiter=" " font-style="normal">
171+ <label variable="page" form="short"/>
172+ <group delimiter=", ">
173+ <text variable="page"/>
174+ <group delimiter="&#8239;">
175+ <label variable="locator" form="short"/>
176+ <text variable="locator"/>
177+ </group>
178+ </group>
179+ </group>
180+ </else-if>
181+ <else-if type="article-newspaper article-magazine" match="any">
182+ <group delimiter=" " font-style="normal">
183+ <date variable="issued" form="numeric">
184+ <date-part name="day"/>
185+ <date-part name="month"/>
186+ <date-part name="year"/>
187+ </date>
188+ <group delimiter=" " font-style="normal">
189+ <choose>
190+ <if variable="locator" match="any">
191+ <group delimiter="&#8239;">
192+ <label variable="locator" form="short"/>
193+ <text variable="locator"/>
194+ </group>
195+ </if>
196+ <else-if variable="locator" match="none">
197+ <label variable="page" form="short"/>
198+ </else-if>
199+ </choose>
200+ </group>
201+ </group>
202+ </else-if>
203+ <else-if type="webpage" match="any">
204+ <group delimiter=" " font-style="normal">
205+ <text value="consulté le" suffix=" " prefix=" "/>
206+ <date variable="accessed" form="text">
207+ <date-part name="day"/>
208+ <date-part name="month"/>
209+ <date-part name="year"/>
210+ </date>
211+ </group>
212+ </else-if>
213+ </choose>
214+ </macro>
215+ <macro name="edition">
216+ <choose>
217+ <if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
218+ <choose>
219+ <if is-numeric="edition">
220+ <group delimiter=" ">
221+ <number variable="edition" form="ordinal"/>
222+ <text term="edition" form="short"/>
223+ </group>
224+ </if>
225+ <else>
226+ <text variable="edition" text-case="capitalize-first" suffix="."/>
227+ </else>
228+ </choose>
229+ </if>
230+ <else-if type="article-journal article-magazine" match="any">
231+ <group font-style="normal">
232+ <choose>
233+ <if variable="issued">
234+ <date variable="issued">
235+ <date-part name="year"/>
236+ </date>
237+ <text macro="volume" prefix=", "/>
238+ </if>
239+ <else>
240+ <text macro="volume" text-case="capitalize-first"/>
241+ </else>
242+ </choose>
243+ </group>
244+ </else-if>
245+ </choose>
246+ <text macro="issue" prefix=", "/>
247+ </macro>
248+ <macro name="volume">
249+ <choose>
250+ <if is-numeric="volume">
251+ <text term="volume" form="short" suffix=".&#160;"/>
252+ <text variable="volume"/>
253+ </if>
254+ <else>
255+ <text variable="volume"/>
256+ </else>
257+ </choose>
258+ </macro>
259+ <macro name="issue">
260+ <choose>
261+ <if is-numeric="issue">
262+ <text term="issue" form="short" suffix="&#160;"/>
263+ <text variable="issue"/>
264+ </if>
265+ <else>
266+ <text variable="issue"/>
267+ </else>
268+ </choose>
269+ </macro>
270+ <citation>
271+ <layout suffix="." delimiter="&#160;; ">
272+ <choose>
273+ <if position="ibid-with-locator">
274+ <group delimiter=", ">
275+ <text term="ibid" text-case="capitalize-first" font-style="italic" suffix="."/>
276+ <group delimiter="&#8239;">
277+ <label variable="locator" form="short"/>
278+ <text variable="locator"/>
279+ </group>
280+ </group>
281+ </if>
282+ <else-if position="ibid">
283+ <text term="ibid" text-case="capitalize-first" font-style="italic"/>
284+ </else-if>
285+ <else-if position="subsequent">
286+ <group delimiter=", ">
287+ <text macro="author-short"/>
288+ <choose>
289+ <if type="bill book graphic legal_case motion_picture report song thesis" match="any">
290+ <text variable="title" form="short" font-style="italic"/>
291+ </if>
292+ <else>
293+ <text variable="title" text-case="capitalize-first" form="short" quotes="true" font-style="normal"/>
294+ </else>
295+ </choose>
296+ <text term="cited" font-style="italic" suffix="."/>
297+ <group delimiter="&#8239;">
298+ <label variable="locator" form="short"/>
299+ <text variable="locator"/>
300+ </group>
301+ </group>
302+ </else-if>
303+ <else>
304+ <group delimiter=", ">
305+ <text macro="author"/>
306+ <text macro="title"/>
307+ <text macro="translator"/>
308+ <text macro="edition"/>
309+ <text macro="pub-place"/>
310+ <text macro="publisher"/>
311+ <text macro="yearpage"/>
312+ </group>
313+ </else>
314+ </choose>
315+ </layout>
316+ </citation>
317+ <bibliography>
318+ <sort>
319+ <key macro="author" names-min="3" names-use-first="3"/>
320+ <key variable="issued" sort="descending"/>
321+ </sort>
322+ <layout suffix=".">
323+ <group delimiter=", ">
324+ <text macro="author"/>
325+ <text macro="title"/>
326+ <text macro="translator"/>
327+ <text macro="edition"/>
328+ <text macro="pub-place"/>
329+ <text macro="publisher"/>
330+ <text macro="yearpage"/>
331+ </group>
332+ </layout>
333+ </bibliography>
334+</style>
test/command/apa.cslnew file+474
@@ -0,0 +1,474 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never">
3+ <!-- This style was edited with the Visual CSL Editor (http://steveridout.com/csl/visualEditor/) -->
4+ <info>
5+ <title>American Psychological Association 6th edition</title>
6+ <title-short>APA</title-short>
7+ <id>http://www.zotero.org/styles/apa</id>
8+ <link href="http://www.zotero.org/styles/apa" rel="self"/>
9+ <link href="http://owl.english.purdue.edu/owl/resource/560/01/" rel="documentation"/>
10+ <author>
11+ <name>Simon Kornblith</name>
12+ <email>simon@simonster.com</email>
13+ </author>
14+ <contributor>
15+ <name>Bruce D'Arcus</name>
16+ </contributor>
17+ <contributor>
18+ <name>Curtis M. Humphrey</name>
19+ </contributor>
20+ <contributor>
21+ <name>Richard Karnesky</name>
22+ <email>karnesky+zotero@gmail.com</email>
23+ <uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
24+ </contributor>
25+ <contributor>
26+ <name>Sebastian Karcher</name>
27+ </contributor>
28+ <category citation-format="author-date"/>
29+ <category field="psychology"/>
30+ <category field="generic-base"/>
31+ <updated>2014-04-12T01:20:52+00:00</updated>
32+ <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
33+ </info>
34+ <locale xml:lang="en">
35+ <terms>
36+ <term name="editortranslator" form="short">
37+ <single>ed. &amp; trans.</single>
38+ <multiple>eds. &amp; trans.</multiple>
39+ </term>
40+ <term name="translator" form="short">
41+ <single>trans.</single>
42+ <multiple>trans.</multiple>
43+ </term>
44+ </terms>
45+ </locale>
46+ <macro name="container-contributors">
47+ <choose>
48+ <if type="chapter paper-conference" match="any">
49+ <names variable="editor translator container-author" delimiter=", " suffix=", ">
50+ <name and="symbol" initialize-with=". " delimiter=", "/>
51+ <label form="short" prefix=" (" text-case="title" suffix=")"/>
52+ </names>
53+ </if>
54+ </choose>
55+ </macro>
56+ <macro name="secondary-contributors">
57+ <choose>
58+ <if type="article-journal chapter paper-conference" match="none">
59+ <names variable="translator editor container-author" delimiter=", " prefix=" (" suffix=")">
60+ <name and="symbol" initialize-with=". " delimiter=", "/>
61+ <label form="short" prefix=", " text-case="title"/>
62+ </names>
63+ </if>
64+ </choose>
65+ </macro>
66+ <macro name="author">
67+ <names variable="author">
68+ <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
69+ <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
70+ <substitute>
71+ <names variable="editor"/>
72+ <names variable="translator"/>
73+ <choose>
74+ <if type="report">
75+ <text variable="publisher"/>
76+ <text macro="title"/>
77+ </if>
78+ <else>
79+ <text macro="title"/>
80+ </else>
81+ </choose>
82+ </substitute>
83+ </names>
84+ </macro>
85+ <macro name="author-short">
86+ <names variable="author">
87+ <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
88+ <substitute>
89+ <names variable="editor"/>
90+ <names variable="translator"/>
91+ <choose>
92+ <if type="report">
93+ <text variable="publisher"/>
94+ <text variable="title" form="short" font-style="italic"/>
95+ </if>
96+ <else-if type="legal_case">
97+ <text variable="title" font-style="italic"/>
98+ </else-if>
99+ <else-if type="bill book graphic legislation motion_picture song" match="any">
100+ <text variable="title" form="short" font-style="italic"/>
101+ </else-if>
102+ <else>
103+ <text variable="title" form="short" quotes="true"/>
104+ </else>
105+ </choose>
106+ </substitute>
107+ </names>
108+ </macro>
109+ <macro name="access">
110+ <choose>
111+ <if type="thesis">
112+ <choose>
113+ <if variable="archive" match="any">
114+ <group>
115+ <text term="retrieved" text-case="capitalize-first" suffix=" "/>
116+ <text term="from" suffix=" "/>
117+ <text variable="archive" suffix="."/>
118+ <text variable="archive_location" prefix=" (" suffix=")"/>
119+ </group>
120+ </if>
121+ <else>
122+ <group>
123+ <text term="retrieved" text-case="capitalize-first" suffix=" "/>
124+ <text term="from" suffix=" "/>
125+ <text variable="URL"/>
126+ </group>
127+ </else>
128+ </choose>
129+ </if>
130+ <else>
131+ <choose>
132+ <if variable="DOI">
133+ <text variable="DOI" prefix="doi:"/>
134+ </if>
135+ <else>
136+ <choose>
137+ <if type="webpage">
138+ <group delimiter=" ">
139+ <text term="retrieved" text-case="capitalize-first" suffix=" "/>
140+ <group>
141+ <date variable="accessed" form="text" suffix=", "/>
142+ </group>
143+ <text term="from"/>
144+ <text variable="URL"/>
145+ </group>
146+ </if>
147+ <else>
148+ <group>
149+ <text term="retrieved" text-case="capitalize-first" suffix=" "/>
150+ <text term="from" suffix=" "/>
151+ <text variable="URL"/>
152+ </group>
153+ </else>
154+ </choose>
155+ </else>
156+ </choose>
157+ </else>
158+ </choose>
159+ </macro>
160+ <macro name="title">
161+ <choose>
162+ <if type="report thesis" match="any">
163+ <text variable="title" font-style="italic"/>
164+ <group prefix=" (" suffix=")" delimiter=" ">
165+ <text variable="genre"/>
166+ <text variable="number" prefix="No. "/>
167+ </group>
168+ </if>
169+ <else-if type="book graphic motion_picture report song manuscript speech" match="any">
170+ <!---This is a hack until we have a computer program type -->
171+ <choose>
172+ <if variable="version">
173+ <group delimiter=" ">
174+ <text variable="title"/>
175+ <group delimiter=" " prefix="(" suffix=")">
176+ <text term="version" text-case="capitalize-first"/>
177+ <text variable="version"/>
178+ </group>
179+ </group>
180+ </if>
181+ <else>
182+ <text variable="title" font-style="italic"/>
183+ </else>
184+ </choose>
185+ </else-if>
186+ <else>
187+ <text variable="title"/>
188+ </else>
189+ </choose>
190+ </macro>
191+ <macro name="publisher">
192+ <choose>
193+ <if type="report" match="any">
194+ <group delimiter=": ">
195+ <text variable="publisher-place"/>
196+ <text variable="publisher"/>
197+ </group>
198+ </if>
199+ <else-if type="thesis" match="any">
200+ <group delimiter=", ">
201+ <text variable="publisher"/>
202+ <text variable="publisher-place"/>
203+ </group>
204+ </else-if>
205+ <else>
206+ <group delimiter=", ">
207+ <choose>
208+ <if variable="event" match="none">
209+ <text variable="genre"/>
210+ </if>
211+ </choose>
212+ <choose>
213+ <if type="article-journal article-magazine" match="none">
214+ <group delimiter=": ">
215+ <text variable="publisher-place"/>
216+ <text variable="publisher"/>
217+ </group>
218+ </if>
219+ </choose>
220+ </group>
221+ </else>
222+ </choose>
223+ </macro>
224+ <macro name="event">
225+ <choose>
226+ <if variable="container-title" match="none">
227+ <choose>
228+ <if variable="event">
229+ <choose>
230+ <if variable="genre" match="none">
231+ <text term="presented at" text-case="capitalize-first" suffix=" "/>
232+ <text variable="event"/>
233+ </if>
234+ <else>
235+ <group delimiter=" ">
236+ <text variable="genre" text-case="capitalize-first"/>
237+ <text term="presented at"/>
238+ <text variable="event"/>
239+ </group>
240+ </else>
241+ </choose>
242+ </if>
243+ </choose>
244+ </if>
245+ </choose>
246+ </macro>
247+ <macro name="issued">
248+ <choose>
249+ <if type="bill legal_case legislation" match="none">
250+ <choose>
251+ <if variable="issued">
252+ <group prefix=" (" suffix=")">
253+ <date variable="issued">
254+ <date-part name="year"/>
255+ </date>
256+ <text variable="year-suffix"/>
257+ <choose>
258+ <if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="none">
259+ <date variable="issued">
260+ <date-part prefix=", " name="month"/>
261+ <date-part prefix=" " name="day"/>
262+ </date>
263+ </if>
264+ </choose>
265+ </group>
266+ </if>
267+ <else>
268+ <group prefix=" (" suffix=")">
269+ <text term="no date" form="short"/>
270+ <text variable="year-suffix" prefix="-"/>
271+ </group>
272+ </else>
273+ </choose>
274+ </if>
275+ </choose>
276+ </macro>
277+ <macro name="issued-sort">
278+ <choose>
279+ <if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="none">
280+ <date variable="issued">
281+ <date-part name="year"/>
282+ <date-part name="month"/>
283+ <date-part name="day"/>
284+ </date>
285+ </if>
286+ <else>
287+ <date variable="issued">
288+ <date-part name="year"/>
289+ </date>
290+ </else>
291+ </choose>
292+ </macro>
293+ <macro name="issued-year">
294+ <choose>
295+ <if variable="issued">
296+ <date variable="issued">
297+ <date-part name="year"/>
298+ </date>
299+ <text variable="year-suffix"/>
300+ </if>
301+ <else>
302+ <text term="no date" form="short"/>
303+ <text variable="year-suffix" prefix="-"/>
304+ </else>
305+ </choose>
306+ </macro>
307+ <macro name="edition">
308+ <choose>
309+ <if is-numeric="edition">
310+ <group delimiter=" ">
311+ <number variable="edition" form="ordinal"/>
312+ <text term="edition" form="short"/>
313+ </group>
314+ </if>
315+ <else>
316+ <text variable="edition" suffix="."/>
317+ </else>
318+ </choose>
319+ </macro>
320+ <macro name="locators">
321+ <choose>
322+ <if type="article-journal article-magazine" match="any">
323+ <group prefix=", " delimiter=", ">
324+ <group>
325+ <text variable="volume" font-style="italic"/>
326+ <text variable="issue" prefix="(" suffix=")"/>
327+ </group>
328+ <text variable="page"/>
329+ </group>
330+ </if>
331+ <else-if type="article-newspaper">
332+ <group delimiter=" " prefix=", ">
333+ <label variable="page" form="short"/>
334+ <text variable="page"/>
335+ </group>
336+ </else-if>
337+ <else-if type="book graphic motion_picture report song chapter paper-conference" match="any">
338+ <group prefix=" (" suffix=")" delimiter=", ">
339+ <text macro="edition"/>
340+ <group>
341+ <text term="volume" form="short" plural="true" text-case="capitalize-first" suffix=" "/>
342+ <number variable="number-of-volumes" form="numeric" prefix="1-"/>
343+ </group>
344+ <group>
345+ <text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
346+ <number variable="volume" form="numeric"/>
347+ </group>
348+ <group>
349+ <label variable="page" form="short" suffix=" "/>
350+ <text variable="page"/>
351+ </group>
352+ </group>
353+ </else-if>
354+ <else-if type="legal_case">
355+ <group prefix=" (" suffix=")" delimiter=" ">
356+ <text variable="authority"/>
357+ <date variable="issued" form="text"/>
358+ </group>
359+ </else-if>
360+ <else-if type="bill legislation" match="any">
361+ <date variable="issued" prefix=" (" suffix=")">
362+ <date-part name="year"/>
363+ </date>
364+ </else-if>
365+ </choose>
366+ </macro>
367+ <macro name="citation-locator">
368+ <group>
369+ <choose>
370+ <if locator="chapter">
371+ <label variable="locator" form="long" text-case="capitalize-first"/>
372+ </if>
373+ <else>
374+ <label variable="locator" form="short"/>
375+ </else>
376+ </choose>
377+ <text variable="locator" prefix=" "/>
378+ </group>
379+ </macro>
380+ <macro name="container">
381+ <group>
382+ <choose>
383+ <if type="chapter paper-conference entry-encyclopedia" match="any">
384+ <text term="in" text-case="capitalize-first" suffix=" "/>
385+ </if>
386+ </choose>
387+ <text macro="container-contributors"/>
388+ <text macro="secondary-contributors"/>
389+ <text macro="container-title"/>
390+ </group>
391+ </macro>
392+ <macro name="container-title">
393+ <choose>
394+ <if type="article article-journal article-magazine article-newspaper" match="any">
395+ <text variable="container-title" font-style="italic" text-case="title"/>
396+ </if>
397+ <else-if type="bill legal_case legislation" match="none">
398+ <text variable="container-title" font-style="italic"/>
399+ </else-if>
400+ </choose>
401+ </macro>
402+ <macro name="legal-cites">
403+ <choose>
404+ <if type="bill legal_case legislation" match="any">
405+ <group delimiter=" " prefix=", ">
406+ <choose>
407+ <if variable="container-title">
408+ <text variable="volume"/>
409+ <text variable="container-title"/>
410+ <group delimiter=" ">
411+ <!--change to label variable="section" as that becomes available -->
412+ <text term="section" form="symbol"/>
413+ <text variable="section"/>
414+ </group>
415+ <text variable="page"/>
416+ </if>
417+ <else>
418+ <choose>
419+ <if type="legal_case">
420+ <text variable="number" prefix="No. "/>
421+ </if>
422+ <else>
423+ <text variable="number" prefix="Pub. L. No. "/>
424+ <group delimiter=" ">
425+ <!--change to label variable="section" as that becomes available -->
426+ <text term="section" form="symbol"/>
427+ <text variable="section"/>
428+ </group>
429+ </else>
430+ </choose>
431+ </else>
432+ </choose>
433+ </group>
434+ </if>
435+ </choose>
436+ </macro>
437+ <citation et-al-min="6" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name">
438+ <sort>
439+ <key macro="author"/>
440+ <key macro="issued-sort"/>
441+ </sort>
442+ <layout prefix="(" suffix=")" delimiter="; ">
443+ <group delimiter=", ">
444+ <text macro="author-short"/>
445+ <text macro="issued-year"/>
446+ <text macro="citation-locator"/>
447+ </group>
448+ </layout>
449+ </citation>
450+ <bibliography hanging-indent="true" et-al-min="8" et-al-use-first="6" et-al-use-last="true" entry-spacing="0" line-spacing="2">
451+ <sort>
452+ <key macro="author"/>
453+ <key macro="issued-sort" sort="ascending"/>
454+ <key macro="title"/>
455+ </sort>
456+ <layout>
457+ <group suffix=".">
458+ <group delimiter=". ">
459+ <text macro="author"/>
460+ <text macro="issued"/>
461+ <text macro="title" prefix=" "/>
462+ <text macro="container"/>
463+ </group>
464+ <text macro="legal-cites"/>
465+ <text macro="locators"/>
466+ <group delimiter=", " prefix=". ">
467+ <text macro="event"/>
468+ <text macro="publisher"/>
469+ </group>
470+ </group>
471+ <text macro="access" prefix=" "/>
472+ </layout>
473+ </bibliography>
474+</style>
test/command/archeologie-medievale.cslnew file+291
@@ -0,0 +1,291 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="note" demote-non-dropping-particle="display-and-sort" default-locale="fr-FR" page-range-format="expanded">
3+ <info>
4+ <title>Archéologie médiévale (French)</title>
5+ <id>http://www.zotero.org/styles/archeologie-medievale</id>
6+ <link href="http://www.zotero.org/styles/archeologie-medievale" rel="self"/>
7+ <link href="http://www.unicaen.fr/crahm/archeomed/spip.php?article80" rel="documentation"/>
8+ <author>
9+ <name>Nicolas Monteix</name>
10+ <email>nicolas.monteix@univ-rouen.fr</email>
11+ </author>
12+ <category citation-format="note"/>
13+ <category field="history"/>
14+ <category field="anthropology"/>
15+ <issn>0153-9337</issn>
16+ <summary>Style auteur-date en note pour Archéologie médiévale. NB: les sources éditées doivent être considérées comme des livres ayant un auteur (médiéval) et un éditeur (contemporain). Pour les sources éditées ne disposant pas d'auteur (médiéval), il est nécessaire de transformer le (dir.) en (éd.). Pour les archives (type=manuscrit), le "lieu" correspond au dépôt d'archives, l' "archive" au fonds, la "loc. dans l'archive" à la cote.</summary>
17+ <updated>2014-08-17T23:30:36+00:00</updated>
18+ <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
19+ </info>
20+ <locale xml:lang="fr">
21+ <terms>
22+ <term name="editor" form="short">dir.</term>
23+ <term name="in">dans</term>
24+ <term name="anonymous">anonyme</term>
25+ <term name="anonymous" form="short">anon.</term>
26+ <term name="accessed">consulté le</term>
27+ <term name="no date">sans date</term>
28+ <term name="no date" form="short">s.&#160;d.</term>
29+ </terms>
30+ </locale>
31+ <macro name="author">
32+ <names variable="author" delimiter=" ">
33+ <name name-as-sort-order="all" font-variant="small-caps" sort-separator=" " initialize-with="." delimiter-precedes-last="never" and="text" delimiter=", "/>
34+ <substitute>
35+ <text macro="editor"/>
36+ </substitute>
37+ </names>
38+ </macro>
39+ <macro name="editor">
40+ <names variable="editor">
41+ <name name-as-sort-order="all" font-variant="small-caps" sort-separator=" " initialize-with="." delimiter-precedes-last="never" and="text" delimiter=", "/>
42+ <label form="short" font-variant="normal" text-case="lowercase" prefix=" (" suffix=")"/>
43+ </names>
44+ </macro>
45+ <macro name="pages">
46+ <group>
47+ <text variable="page" prefix="p.&#160;"/>
48+ </group>
49+ </macro>
50+ <macro name="author-short">
51+ <names variable="author">
52+ <name form="short" delimiter-precedes-last="never" and="text" delimiter=", "/>
53+ <et-al font-variant="normal" font-style="italic"/>
54+ <substitute>
55+ <text macro="editor-short"/>
56+ </substitute>
57+ </names>
58+ </macro>
59+ <macro name="editor-short">
60+ <names variable="editor">
61+ <name form="short" delimiter-precedes-last="never" and="text" delimiter=", "/>
62+ <et-al font-variant="normal" font-style="italic"/>
63+ </names>
64+ </macro>
65+ <macro name="URLaccess">
66+ <group prefix="(" suffix=")">
67+ <text variable="URL"/>
68+ <text macro="access"/>
69+ </group>
70+ </macro>
71+ <macro name="access">
72+ <group prefix=" [" suffix="]">
73+ <text term="accessed" suffix=" "/>
74+ <date variable="accessed">
75+ <date-part name="day" suffix=" "/>
76+ <date-part name="month" suffix=" "/>
77+ <date-part name="year"/>
78+ </date>
79+ </group>
80+ </macro>
81+ <macro name="editor-text">
82+ <group>
83+ <names variable="editor" suffix=" (éd.), ">
84+ <name name-as-sort-order="all" font-variant="small-caps" sort-separator=" " initialize-with="." delimiter-precedes-last="never" and="text" delimiter=", "/>
85+ </names>
86+ <text macro="publisher" suffix=", "/>
87+ <text macro="year-date"/>
88+ </group>
89+ </macro>
90+ <macro name="editor-text-short">
91+ <group>
92+ <names variable="editor" suffix=" (éd.), ">
93+ <name name-as-sort-order="all" form="short" font-variant="small-caps" delimiter-precedes-last="never" and="text" delimiter=", "/>
94+ </names>
95+ <text macro="year-date"/>
96+ </group>
97+ </macro>
98+ <macro name="title">
99+ <choose>
100+ <if type="book" match="any">
101+ <text variable="title" font-style="italic"/>
102+ </if>
103+ <else-if type="webpage" match="any">
104+ <text variable="title"/>
105+ </else-if>
106+ <else-if variable="container-title" match="none">
107+ <text variable="title" font-style="italic"/>
108+ </else-if>
109+ <else>
110+ <text variable="title"/>
111+ </else>
112+ </choose>
113+ </macro>
114+ <macro name="publisher">
115+ <group delimiter=", ">
116+ <text variable="publisher-place"/>
117+ <text variable="publisher"/>
118+ </group>
119+ </macro>
120+ <macro name="year-date">
121+ <choose>
122+ <if variable="issued">
123+ <date variable="issued">
124+ <date-part name="year"/>
125+ </date>
126+ </if>
127+ <else>
128+ <text term="no date" form="short"/>
129+ </else>
130+ </choose>
131+ <choose>
132+ <if is-numeric="edition">
133+ <group vertical-align="sup">
134+ <number variable="edition"/>
135+ </group>
136+ </if>
137+ <else>
138+ <text variable="edition"/>
139+ </else>
140+ </choose>
141+ </macro>
142+ <macro name="type-sorting">
143+ <choose>
144+ <if type="book" variable="editor author" match="all">
145+ <text value="1"/>
146+ </if>
147+ <else-if type="manuscript">
148+ <text value="2"/>
149+ </else-if>
150+ <else>
151+ <text value="3"/>
152+ </else>
153+ </choose>
154+ </macro>
155+ <macro name="locator">
156+ <choose>
157+ <if locator="paragraph">
158+ <text variable="locator" prefix=", § "/>
159+ </if>
160+ <else-if locator="folio">
161+ <text variable="locator" prefix=",&#160;fol.&#160;"/>
162+ </else-if>
163+ <else>
164+ <group prefix=",&#160;">
165+ <label variable="locator" form="short" suffix=".&#160;"/>
166+ <text variable="locator"/>
167+ </group>
168+ </else>
169+ </choose>
170+ </macro>
171+ <citation et-al-min="4" et-al-use-first="3" delimiter-precedes-et-al="never" disambiguate-add-year-suffix="true">
172+ <sort>
173+ <key variable="issued"/>
174+ </sort>
175+ <layout delimiter="&#160;; ">
176+ <choose>
177+ <if position="ibid-with-locator">
178+ <group>
179+ <text term="ibid" text-case="capitalize-first" font-style="italic"/>
180+ <text macro="locator"/>
181+ </group>
182+ </if>
183+ <else-if position="ibid">
184+ <text term="ibid" text-case="capitalize-first" font-style="italic"/>
185+ </else-if>
186+ <else-if type="book" variable="editor author" match="all">
187+ <group suffix=".">
188+ <text macro="author-short" font-variant="small-caps" suffix=", "/>
189+ <text macro="title" suffix=", "/>
190+ <text macro="editor-text-short"/>
191+ <text macro="locator"/>
192+ </group>
193+ </else-if>
194+ <else-if type="manuscript">
195+ <group delimiter=", ">
196+ <text variable="publisher-place"/>
197+ <text variable="archive_location"/>
198+ <text macro="locator"/>
199+ </group>
200+ </else-if>
201+ <else>
202+ <text macro="author-short" suffix="&#160;" font-variant="small-caps"/>
203+ <text macro="year-date"/>
204+ <text macro="locator"/>
205+ </else>
206+ </choose>
207+ </layout>
208+ </citation>
209+ <bibliography subsequent-author-substitute="">
210+ <sort>
211+ <key macro="type-sorting"/>
212+ <key macro="author"/>
213+ <key variable="issued"/>
214+ <key variable="title"/>
215+ </sort>
216+ <layout suffix=".">
217+ <choose>
218+ <if type="book" variable="editor author" match="all">
219+ <group suffix=".">
220+ <text macro="author" suffix=", "/>
221+ <text macro="title" suffix=", "/>
222+ <text macro="editor-text"/>
223+ </group>
224+ </if>
225+ <else-if type="manuscript">
226+ <group delimiter=", ">
227+ <text variable="archive_location"/>
228+ <text variable="archive"/>
229+ <text variable="title" font-style="italic"/>
230+ </group>
231+ <group prefix=" (" suffix=")">
232+ <date variable="issued">
233+ <date-part name="year"/>
234+ </date>
235+ </group>
236+ </else-if>
237+ <else>
238+ <group display="block">
239+ <text macro="author" suffix="&#9;"/>
240+ </group>
241+ <group display="left-margin">
242+ <text macro="year-date" suffix=", "/>
243+ <choose>
244+ <if type="thesis">
245+ <group delimiter=", " suffix=".">
246+ <text macro="title" font-style="italic"/>
247+ <text variable="genre"/>
248+ <text variable="publisher"/>
249+ <text variable="publisher-place"/>
250+ </group>
251+ </if>
252+ <else-if type="webpage">
253+ <group delimiter=" ">
254+ <text macro="title" font-style="italic"/>
255+ <text macro="URLaccess"/>
256+ </group>
257+ </else-if>
258+ <else-if type="article-journal article-magazine article-newspaper broadcast personal_communication thesis entry-dictionary entry-encyclopedia" match="any">
259+ <group delimiter=", " suffix=".">
260+ <text macro="title" quotes="true"/>
261+ <text variable="container-title" font-style="italic"/>
262+ <text variable="volume"/>
263+ <text variable="issue"/>
264+ <text macro="pages"/>
265+ </group>
266+ </else-if>
267+ <else-if type="book graphic" match="any">
268+ <group suffix=".">
269+ <text macro="title" suffix=", "/>
270+ <text macro="publisher"/>
271+ </group>
272+ </else-if>
273+ <else-if type="chapter paper-conference" match="any">
274+ <text macro="title" quotes="true" suffix=", "/>
275+ <group delimiter=", ">
276+ <group delimiter=" ">
277+ <text term="in"/>
278+ <text macro="editor"/>
279+ </group>
280+ <text variable="container-title" font-style="italic"/>
281+ <text macro="publisher"/>
282+ <text macro="pages"/>
283+ </group>
284+ </else-if>
285+ </choose>
286+ </group>
287+ </else>
288+ </choose>
289+ </layout>
290+ </bibliography>
291+</style>
test/command/biblatex-266.mdnew file+34
@@ -0,0 +1,34 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@book{goethe2005,
4+ langid = {german},
5+ location = {{Frankfurt am Main}},
6+ title = {Not A Real Book},
7+ date = {2005},
8+ author = {family=Goethe, given=Johann Wolfgang, prefix=von, useprefix=false and given=Antonie, prefix=van, family=Leeuwenhoek, useprefix=true}, editor = {Schöne, Albrecht}
9+}
10+
11+^D
12+---
13+nocite: '[@*]'
14+references:
15+- author:
16+ - dropping-particle: von
17+ family: Goethe
18+ given: Johann Wolfgang
19+ - family: Leeuwenhoek
20+ given: Antonie
21+ non-dropping-particle: van
22+ editor:
23+ - family: Schöne
24+ given: Albrecht
25+ id: goethe2005
26+ issued: 2005
27+ language: 'de-DE'
28+ publisher-place: Frankfurt am Main
29+ title: Not A Real Book
30+ type: book
31+---
32+
33+
34+```
test/command/biblatex-aksin.mdnew file+78
@@ -0,0 +1,78 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Aksin et al. 2006)
11+
12+Aksin, Özge, Hayati Türkmen, Levent Artok, Bekir Çetinkaya, Chaoying Ni,
13+Orhan Büyükgüngör, and Erhan Özkal. 2006. “Effect of Immobilization on
14+Catalytic Characteristics of Saturated Pd-N-heterocyclic Carbenes in
15+Mizoroki-Heck Reactions.” *J. Organomet. Chem.* 691 (13): 3027–3036.
16+
17+
18+Formatted with pandoc and apa.csl, 2013-10-23:
19+
20+(Aksin et al., 2006)
21+
22+Aksin, Ö., Türkmen, H., Artok, L., Çetinkaya, B., Ni, C., Büyükgüngör,
23+O., & Özkal, E. (2006). Effect of immobilization on catalytic
24+characteristics of saturated Pd-N-heterocyclic carbenes in Mizoroki-Heck
25+reactions. *J. Organomet. Chem.*, *691*(13), 3027–3036.
26+
27+
28+}
29+
30+@string{ jomch = {J.~Organomet. Chem.} }
31+
32+@Article{aksin,
33+ author = {Aks{\i}n, {\"O}zge and T{\"u}rkmen, Hayati and Artok, Levent
34+ and {\c{C}}etinkaya, Bekir and Ni, Chaoying and
35+ B{\"u}y{\"u}kg{\"u}ng{\"o}r, Orhan and {\"O}zkal, Erhan},
36+ title = {Effect of immobilization on catalytic characteristics of
37+ saturated {Pd-N}-heterocyclic carbenes in {Mizoroki-Heck}
38+ reactions},
39+ journaltitle = jomch,
40+ date = 2006,
41+ volume = 691,
42+ number = 13,
43+ pages = {3027-3036},
44+ indextitle = {Effect of immobilization on catalytic characteristics},
45+}
46+
47+^D
48+---
49+nocite: '[@*]'
50+references:
51+- author:
52+ - family: Aksın
53+ given: Özge
54+ - family: Türkmen
55+ given: Hayati
56+ - family: Artok
57+ given: Levent
58+ - family: Çetinkaya
59+ given: Bekir
60+ - family: Ni
61+ given: Chaoying
62+ - family: Büyükgüngör
63+ given: Orhan
64+ - family: Özkal
65+ given: Erhan
66+ container-title: J. Organomet. Chem.
67+ id: aksin
68+ issue: 13
69+ issued: 2006
70+ page: '3027-3036'
71+ title: 'Effect of immobilization on catalytic characteristics of
72+ saturated Pd-N-heterocyclic carbenes in Mizoroki-Heck reactions'
73+ type: 'article-journal'
74+ volume: 691
75+---
76+
77+
78+```
test/command/biblatex-almendro.mdnew file+71
@@ -0,0 +1,71 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Almendro et al. 1998)
11+
12+Almendro, José L., Jacinto Martín, Alberto Sánchez, and Fernando Nozal.
13+1998. “Elektromagnetisches Signalhorn.”
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Almendro, Martín, Sánchez, & Nozal, 1998)
19+
20+Almendro, J. L., Martín, J., Sánchez, A., & Nozal, F. (1998).
21+Elektromagnetisches Signalhorn.
22+
23+
24+NOTES:
25+
26+- CSL styles’ handling of patent items needs to be improved
27+
28+}
29+
30+@Patent{almendro,
31+ author = {Almendro, Jos{\'e} L. and Mart{\'i}n, Jacinto and S{\'a}nchez,
32+ Alberto and Nozal, Fernando},
33+ title = {Elektromagnetisches Signalhorn},
34+ number = {EU-29702195U},
35+ date = 1998,
36+ location = {countryfr and countryuk and countryde},
37+ hyphenation = {german},
38+ annotation = {This is a patent entry with a location
39+ field. The number is given in the number field. Note
40+ the format of the location field in the database
41+ file. Compare laufenberg, sorace, and
42+ kowalik},
43+}
44+
45+^D
46+---
47+nocite: '[@*]'
48+references:
49+- annote: 'This is a patent entry with a location field. The number is
50+ given in the number field. Note the format of the location field in
51+ the database file. Compare laufenberg, sorace, and kowalik'
52+ author:
53+ - family: Almendro
54+ given: José L.
55+ - family: Martín
56+ given: Jacinto
57+ - family: Sánchez
58+ given: Alberto
59+ - family: Nozal
60+ given: Fernando
61+ id: almendro
62+ issued: 1998
63+ jurisdiction: France; United Kingdom; Germany
64+ language: 'de-DE'
65+ number: 'EU-29702195U'
66+ title: Elektromagnetisches Signalhorn
67+ type: patent
68+---
69+
70+
71+```
test/command/biblatex-angenendt.mdnew file+66
@@ -0,0 +1,66 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Angenendt 2002)
11+
12+Angenendt, Arnold. 2002. “In Honore Salvatoris – Vom Sinn und Unsinn der
13+Patrozinienkunde.” *Revue d’Histoire Ecclésiastique* 97: 431–456,
14+791–823.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Angenendt, 2002)
20+
21+Angenendt, A. (2002). In Honore Salvatoris – Vom Sinn und Unsinn der
22+Patrozinienkunde. *Revue d’Histoire Ecclésiastique*, *97*, 431–456,
23+791–823.
24+
25+
26+}
27+
28+@Article{angenendt,
29+ author = {Angenendt, Arnold},
30+ title = {In Honore Salvatoris~-- Vom Sinn und Unsinn der
31+ Patrozinienkunde},
32+ journaltitle = {Revue d'Histoire Eccl{\'e}siastique},
33+ date = 2002,
34+ volume = 97,
35+ pages = {431--456, 791--823},
36+ hyphenation = {german},
37+ indextitle = {In Honore Salvatoris},
38+ shorttitle = {In Honore Salvatoris},
39+ annotation = {A German article in a French journal. Apart from that, a
40+ typical article entry. Note the indextitle
41+ field},
42+}
43+
44+^D
45+---
46+nocite: '[@*]'
47+references:
48+- annote: 'A German article in a French journal. Apart from that, a
49+ typical article entry. Note the indextitle field'
50+ author:
51+ - family: Angenendt
52+ given: Arnold
53+ container-title: 'Revue d''Histoire Ecclésiastique'
54+ id: angenendt
55+ issued: 2002
56+ language: 'de-DE'
57+ page: '431-456, 791-823'
58+ title: 'In Honore Salvatoris -- Vom Sinn und Unsinn der
59+ Patrozinienkunde'
60+ title-short: In Honore Salvatoris
61+ type: 'article-journal'
62+ volume: 97
63+---
64+
65+
66+```
test/command/biblatex-aristotle-anima.mdnew file+62
@@ -0,0 +1,62 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Aristotle 1907)
11+
12+Aristotle. 1907. *De Anima*. Edited by Robert Drew Hicks. Cambridge:
13+Cambridge University Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Aristotle, 1907)
19+
20+Aristotle. (1907). *De anima*. (R. D. Hicks, Ed.). Cambridge: Cambridge
21+University Press.
22+
23+
24+}
25+
26+@string{ cup = {Cambridge University Press} }
27+
28+@Book{aristotle:anima,
29+ author = {Aristotle},
30+ title = {De Anima},
31+ date = 1907,
32+ editor = {Hicks, Robert Drew},
33+ publisher = cup,
34+ location = {Cambridge},
35+ keywords = {primary},
36+ hyphenation = {british},
37+ annotation = {A book entry with an author and an
38+ editor},
39+}
40+
41+^D
42+---
43+nocite: '[@*]'
44+references:
45+- annote: A book entry with an author and an editor
46+ author:
47+ - family: Aristotle
48+ editor:
49+ - family: Hicks
50+ given: Robert Drew
51+ id: 'aristotle:anima'
52+ issued: 1907
53+ keyword: primary
54+ language: 'en-GB'
55+ publisher: Cambridge University Press
56+ publisher-place: Cambridge
57+ title: De anima
58+ type: book
59+---
60+
61+
62+```
test/command/biblatex-aristotle-physics.mdnew file+63
@@ -0,0 +1,63 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Aristotle 1929)
11+
12+Aristotle. 1929. *Physics*. Translated by P. H. Wicksteed and F. M.
13+Cornford. New York: G. P. Putnam.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Aristotle, 1929)
19+
20+Aristotle. (1929). *Physics*. (P. H. Wicksteed & F. M. Cornford,
21+Trans.). New York: G. P. Putnam.
22+
23+
24+}
25+
26+@Book{aristotle:physics,
27+ author = {Aristotle},
28+ title = {Physics},
29+ date = 1929,
30+ translator = {Wicksteed, P. H. and Cornford, F. M.},
31+ publisher = {G. P. Putnam},
32+ location = {New York},
33+ keywords = {primary},
34+ hyphenation = {american},
35+ shorttitle = {Physics},
36+ annotation = {A book entry with a translator field},
37+}
38+
39+^D
40+---
41+nocite: '[@*]'
42+references:
43+- annote: A book entry with a translator field
44+ author:
45+ - family: Aristotle
46+ id: 'aristotle:physics'
47+ issued: 1929
48+ keyword: primary
49+ language: 'en-US'
50+ publisher: G. P. Putnam
51+ publisher-place: New York
52+ title: Physics
53+ title-short: Physics
54+ translator:
55+ - family: Wicksteed
56+ given: P. H.
57+ - family: Cornford
58+ given: F. M.
59+ type: book
60+---
61+
62+
63+```
test/command/biblatex-aristotle-poetics.mdnew file+65
@@ -0,0 +1,65 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Aristotle 1968)
11+
12+Aristotle. 1968. *Poetics*. Edited by D. W. Lucas. Clarendon Aristotle.
13+Oxford: Clarendon Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Aristotle, 1968)
19+
20+Aristotle. (1968). *Poetics*. (D. W. Lucas, Ed.). Oxford: Clarendon
21+Press.
22+
23+
24+}
25+
26+@Book{aristotle:poetics,
27+ author = {Aristotle},
28+ title = {Poetics},
29+ date = 1968,
30+ editor = {Lucas, D. W.},
31+ series = {Clarendon {Aristotle}},
32+ publisher = {Clarendon Press},
33+ location = {Oxford},
34+ keywords = {primary},
35+ hyphenation = {british},
36+ shorttitle = {Poetics},
37+ annotation = {A book entry with an author and an
38+ editor as well as a series field},
39+}
40+
41+^D
42+---
43+nocite: '[@*]'
44+references:
45+- annote: A book entry with an author and an editor as well as a series
46+ field
47+ author:
48+ - family: Aristotle
49+ collection-title: Clarendon Aristotle
50+ editor:
51+ - family: Lucas
52+ given: D. W.
53+ id: 'aristotle:poetics'
54+ issued: 1968
55+ keyword: primary
56+ language: 'en-GB'
57+ publisher: Clarendon Press
58+ publisher-place: Oxford
59+ title: Poetics
60+ title-short: Poetics
61+ type: book
62+---
63+
64+
65+```
test/command/biblatex-aristotle-rhetoric.mdnew file+80
@@ -0,0 +1,80 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Aristotle 1877)
11+
12+Aristotle. 1877. *The Rhetoric of Aristotle with a Commentary by the
13+Late Edward Meredith Cope*. Edited by Edward Meredith Cope. 3. Cambridge
14+University Press.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Aristotle, 1877)
20+
21+Aristotle. (1877). *The rhetoric of Aristotle with a commentary by the
22+late Edward Meredith Cope*. (E. M. Cope, Ed.) (1-3). Cambridge
23+University Press.
24+
25+
26+NOTES:
27+
28+- biblio2yaml
29+ - commentator has no counterpart in CSL
30+
31+}
32+
33+@string{ cup = {Cambridge University Press} }
34+
35+@Book{aristotle:rhetoric,
36+ author = {Aristotle},
37+ title = {The Rhetoric of {Aristotle} with a commentary by the late {Edward
38+ Meredith Cope}},
39+ date = 1877,
40+ editor = {Cope, Edward Meredith},
41+ commentator = {Cope, Edward Meredith},
42+ volumes = 3,
43+ publisher = cup,
44+ keywords = {primary},
45+ hyphenation = {british},
46+ sorttitle = {Rhetoric of Aristotle},
47+ indextitle = {Rhetoric of {Aristotle}, The},
48+ shorttitle = {Rhetoric},
49+ annotation = {A commented edition. Note the concatenation of the
50+ editor and commentator fields as well as the
51+ volumes, sorttitle, and indextitle
52+ fields},
53+}
54+
55+^D
56+---
57+nocite: '[@*]'
58+references:
59+- annote: 'A commented edition. Note the concatenation of the editor and
60+ commentator fields as well as the volumes, sorttitle, and indextitle
61+ fields'
62+ author:
63+ - family: Aristotle
64+ editor:
65+ - family: Cope
66+ given: Edward Meredith
67+ id: 'aristotle:rhetoric'
68+ issued: 1877
69+ keyword: primary
70+ language: 'en-GB'
71+ number-of-volumes: 3
72+ publisher: Cambridge University Press
73+ title: The rhetoric of Aristotle with a commentary by the late Edward
74+ Meredith Cope
75+ title-short: Rhetoric
76+ type: book
77+---
78+
79+
80+```
test/command/biblatex-article.mdnew file+128
@@ -0,0 +1,128 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+ - contains:
5+ - an article entry with just the required fields
6+ - an article entry with required and all optional fields
7+ - notes:
8+ - year, month to be ignored if date is present
9+ - journal to be ignored if journaltitle is present
10+ - editortype, editoratype, editorbtype, editorctype, pubstate,
11+series contain keys which, unless corresponding CSL terms exist, require
12+locale-specific expansion
13+ - limitations:
14+ - annotator, commentator, eid, eprint, eprintclass, eprinttype,
15+issuetitle, issuesubtitle, language, origlanguage have no matching
16+counterparts in CSL
17+ - for editor, editora, editorb, editorc (plus editortype,
18+editoratype, editorbtype, editorctype) only a subset, editor and director,
19+has matching counterparts in CSL
20+ - kludges:
21+ - note + addendum -> CSL note
22+ - number + issue -> CSL issue
23+ - handling of titleaddon
24+ - handling of (journal) series
25+ - done properly, this should be mapped to some CSL variable
26+(version? edition? collection-number?), CSL styles would have to be adapted
27+ - slightly better kludge would map integer to ordinal + "ser."
28+("3" -> "3rd ser."); localization keys "newseries" -> "new ser.",
29+"oldseries" -> "old ser."; and print all other values as is -- but still
30+wouldn't fit all styles or locales.
31+ }
32+
33+@article{article-req,
34+ Author = {Author, Ann},
35+ Date = {2013-07-29},
36+ Hyphenation = {english},
37+ Journaltitle = {The Journaltitle},
38+ Title = {An Article Entry with Just the Required Fields}}
39+
40+@article{article-opt,
41+ Addendum = {The Addendum},
42+ Annotator = {Annotator, A.},
43+ Author = {Author, Jr., Ann A.},
44+ Commentator = {Commentator, C.},
45+ Date = {2008-12-31},
46+ Doi = {10.1086/520976},
47+ Editor = {Editor, Edward},
48+ Editora = {Editor, A.},
49+ Editorb = {Editor, B.},
50+ Editorc = {Editor, C.},
51+ Eid = {eid},
52+ Eprint = {eprint},
53+ Eprintclass = {eprintclass},
54+ Eprinttype = {eprinttype},
55+ Hyphenation = {english},
56+ Issn = {issn},
57+ Issue = {issue},
58+ Issuesubtitle = {The Issuesubtitle},
59+ Issuetitle = {The Issuetitle},
60+ Journalsubtitle = {The Journalsubtitle},
61+ Journaltitle = {The Journaltitle},
62+ Journal = {The Journal},
63+ Language = {language},
64+ Month = {08},
65+ Year = {2007},
66+ Note = {The Note},
67+ Number = {number},
68+ Origlanguage = {origlanguage},
69+ Pages = {pages},
70+ Pubstate = {inpress},
71+ Series = {newseries},
72+ Subtitle = {The Subtitle},
73+ Title = {An Article Entry with the Required and All Optional Fields},
74+ Titleaddon = {The Titleaddon},
75+ Translator = {Translator, Ted},
76+ Url = {http://foo.bar.baz/},
77+ Urldate = {2013-07-29},
78+ Version = {version},
79+ Volume = {volume},
80+}
81+
82+^D
83+---
84+nocite: '[@*]'
85+references:
86+- author:
87+ - family: Author
88+ given: Ann
89+ container-title: The Journaltitle
90+ id: 'article-req'
91+ issued: '2013-07-29'
92+ language: 'en-US'
93+ title: An article entry with just the required fields
94+ type: 'article-journal'
95+- accessed: '2013-07-29'
96+ author:
97+ - family: Author
98+ given: Ann A.
99+ suffix: Jr.
100+ collection-title: new series
101+ container-title: 'The Journaltitle: The Journalsubtitle'
102+ doi: 10.1086/520976
103+ editor:
104+ - family: Editor
105+ given: Edward
106+ id: 'article-opt'
107+ issn: issn
108+ issue: 'number, issue'
109+ issued: '2008-12-31'
110+ language: 'en-US'
111+ note: The Note. The Addendum
112+ page: pages
113+ status: in press
114+ title: 'An article entry with the required and all optional fields:
115+ The subtitle. The titleaddon'
116+ title-short: An article entry with the required and all optional
117+ fields
118+ translator:
119+ - family: Translator
120+ given: Ted
121+ type: 'article-journal'
122+ url: 'http://foo.bar.baz/'
123+ version: version
124+ volume: volume
125+---
126+
127+
128+```
test/command/biblatex-augustine.mdnew file+56
@@ -0,0 +1,56 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Augustine 1995)
11+
12+Augustine, Robert L. 1995. *Heterogeneous Catalysis for the Synthetic
13+Chemist*. New York: Marcel Dekker.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Augustine, 1995)
19+
20+Augustine, R. L. (1995). *Heterogeneous catalysis for the synthetic
21+chemist*. New York: Marcel Dekker.
22+
23+
24+}
25+
26+@Book{augustine,
27+ author = {Augustine, Robert L.},
28+ title = {Heterogeneous catalysis for the synthetic chemist},
29+ date = 1995,
30+ publisher = {Marcel Dekker},
31+ location = {New York},
32+ hyphenation = {american},
33+ shorttitle = {Heterogeneous catalysis},
34+ annotation = {A plain book entry},
35+}
36+
37+^D
38+---
39+nocite: '[@*]'
40+references:
41+- annote: A plain book entry
42+ author:
43+ - family: Augustine
44+ given: Robert L.
45+ id: augustine
46+ issued: 1995
47+ language: 'en-US'
48+ publisher: Marcel Dekker
49+ publisher-place: New York
50+ title: Heterogeneous catalysis for the synthetic chemist
51+ title-short: Heterogeneous catalysis
52+ type: book
53+---
54+
55+
56+```
test/command/biblatex-averroes-bland.mdnew file+85
@@ -0,0 +1,85 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Averroes 1982)
10+
11+Averroes. 1982. *The Epistle on the Possibility of Conjunction with the
12+Active Intellect by Ibn Rushd with the Commentary of Moses Narboni*.
13+Kalman P. Bland. Moreshet: Studies in Jewish History, Literature and
14+Thought 7. New York: Jewish Theological Seminary of America.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Averroes, 1982)
20+
21+Averroes. (1982). *The epistle on the possibility of conjunction with
22+the active intellect by Ibn Rushd with the commentary of Moses Narboni*.
23+(K. P. Bland). New York: Jewish Theological Seminary of America.
24+
25+
26+NOTES:
27+
28+- citeproc
29+ - term "edited and translated by" missing
30+
31+}
32+
33+@Book{averroes-bland,
34+ author = {Averroes},
35+ title = {The Epistle on the Possibility of Conjunction with the Active
36+ Intellect by {Ibn Rushd} with the Commentary of {Moses Narboni}},
37+ date = 1982,
38+ editor = {Bland, Kalman P.},
39+ translator = {Bland, Kalman P.},
40+ series = {Moreshet: {Studies} in {Jewish} History, Literature and Thought},
41+ number = 7,
42+ publisher = {Jewish Theological Seminary of America},
43+ location = {New York},
44+ keywords = {primary},
45+ hyphenation = {american},
46+ indextitle = {Epistle on the Possibility of Conjunction, The},
47+ shorttitle = {Possibility of Conjunction},
48+ annotation = {A book entry with a series and a
49+ number. Note the concatenation of the editor
50+ and translator fields as well as the
51+ indextitle field},
52+}
53+
54+^D
55+---
56+nocite: '[@*]'
57+references:
58+- annote: A book entry with a series and a number. Note the
59+ concatenation of the editor and translator fields as well as the
60+ indextitle field
61+ author:
62+ - family: Averroes
63+ collection-number: 7
64+ collection-title: 'Moreshet: Studies in Jewish history, literature and
65+ thought'
66+ editor:
67+ - family: Bland
68+ given: Kalman P.
69+ id: 'averroes-bland'
70+ issued: 1982
71+ keyword: primary
72+ language: 'en-US'
73+ publisher: Jewish Theological Seminary of America
74+ publisher-place: New York
75+ title: The epistle on the possibility of conjunction with the active
76+ intellect by Ibn Rushd with the commentary of Moses Narboni
77+ title-short: Possibility of conjunction
78+ translator:
79+ - family: Bland
80+ given: Kalman P.
81+ type: book
82+---
83+
84+
85+```
test/command/biblatex-averroes-hannes.mdnew file+84
@@ -0,0 +1,84 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Averroes 1892)
10+
11+Averroes. 1892. *Des Averroës Abhandlung: “Über die Möglichkeit der
12+Conjunktion” oder “Über den materiellen Intellekt”*. Ludwig Hannes.
13+Halle an der Saale: C. A. Kaemmerer.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Averroes, 1892)
19+
20+Averroes. (1892). *Des Averroës Abhandlung: “Über die Möglichkeit der
21+Conjunktion” oder “Über den materiellen Intellekt”*. (L. Hannes). Halle
22+an der Saale: C. A. Kaemmerer.
23+
24+
25+NOTES:
26+
27+- citeproc
28+ - term "edited and translated by" missing
29+
30+}
31+
32+@Book{averroes-hannes,
33+ author = {Averroes},
34+ title = {Des Averro{\"e}s Abhandlung: \mkbibquote{{\"U}ber die
35+ M{\"o}glichkeit der Conjunktion} oder \mkbibquote{{\"U}ber den
36+ materiellen Intellekt}},
37+ date = 1892,
38+ editor = {Hannes, Ludwig},
39+ translator = {Hannes, Ludwig},
40+ annotator = {Hannes, Ludwig},
41+ publisher = {C.~A. Kaemmerer},
42+ location = {Halle an der Saale},
43+ keywords = {primary},
44+ hyphenation = {german},
45+ sorttitle = {Uber die Moglichkeit der Conjunktion},
46+ indexsorttitle= {Uber die Moglichkeit der Conjunktion},
47+ indextitle = {{\"U}ber die M{\"o}glichkeit der Conjunktion},
48+ shorttitle = {{\"U}ber die M{\"o}glichkeit der Conjunktion},
49+ annotation = {An annotated edition. Note the concatenation of the
50+ editor, translator, and annotator
51+ fields. Also note the shorttitle,
52+ indextitle, sorttitle, and
53+ indexsorttitle fields},
54+}
55+
56+^D
57+---
58+nocite: '[@*]'
59+references:
60+- annote: 'An annotated edition. Note the concatenation of the editor,
61+ translator, and annotator fields. Also note the shorttitle,
62+ indextitle, sorttitle, and indexsorttitle fields'
63+ author:
64+ - family: Averroes
65+ editor:
66+ - family: Hannes
67+ given: Ludwig
68+ id: 'averroes-hannes'
69+ issued: 1892
70+ keyword: primary
71+ language: 'de-DE'
72+ publisher: C. A. Kaemmerer
73+ publisher-place: Halle an der Saale
74+ title: 'Des Averroës Abhandlung: "Über die Möglichkeit der
75+ Conjunktion" oder "Über den materiellen Intellekt"'
76+ title-short: Über die Möglichkeit der Conjunktion
77+ translator:
78+ - family: Hannes
79+ given: Ludwig
80+ type: book
81+---
82+
83+
84+```
test/command/biblatex-averroes-hercz.mdnew file+85
@@ -0,0 +1,85 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Averroes 1869)
11+
12+Averroes. 1869. *Drei Abhandlungen über die Conjunction des separaten
13+Intellects mit dem Menschen: Von Averroes (Vater und Sohn), aus dem
14+Arabischen übersetzt von Samuel Ibn Tibbon*. J. Hercz. Berlin:
15+S. Hermann.
16+
17+
18+Formatted with pandoc and apa.csl, 2013-10-23:
19+
20+(Averroes, 1869)
21+
22+Averroes. (1869). *Drei Abhandlungen über die Conjunction des separaten
23+Intellects mit dem Menschen: Von Averroes (Vater und Sohn), aus dem
24+Arabischen übersetzt von Samuel Ibn Tibbon*. (J. Hercz). Berlin:
25+S. Hermann.
26+
27+
28+NOTES:
29+
30+- citeproc
31+ - term "edited and translated by" missing
32+
33+}
34+
35+@Book{averroes-hercz,
36+ author = {Averroes},
37+ title = {Drei Abhandlungen {\"u}ber die Conjunction des separaten
38+ Intellects mit dem Menschen},
39+ date = 1869,
40+ editor = {Hercz, J.},
41+ translator = {Hercz, J.},
42+ publisher = {S.~Hermann},
43+ location = {Berlin},
44+ keywords = {primary},
45+ hyphenation = {german},
46+ indexsorttitle= {Drei Abhandlungen uber die Conjunction},
47+ indextitle = {Drei Abhandlungen {\"u}ber die Conjunction},
48+ subtitle = {Von Averroes (Vater und Sohn), aus dem Arabischen
49+ {\"u}bersetzt von Samuel Ibn Tibbon},
50+ shorttitle = {Drei Abhandlungen},
51+ annotation = {A book entry. Note the concatenation of the
52+ editor and translator fields as well as the
53+ indextitle and indexsorttitle fields},
54+}
55+
56+^D
57+---
58+nocite: '[@*]'
59+references:
60+- annote: A book entry. Note the concatenation of the editor and
61+ translator fields as well as the indextitle and indexsorttitle
62+ fields
63+ author:
64+ - family: Averroes
65+ editor:
66+ - family: Hercz
67+ given: J.
68+ id: 'averroes-hercz'
69+ issued: 1869
70+ keyword: primary
71+ language: 'de-DE'
72+ publisher: S. Hermann
73+ publisher-place: Berlin
74+ title: 'Drei Abhandlungen über die Conjunction des separaten
75+ Intellects mit dem Menschen: Von Averroes (Vater und Sohn), aus dem
76+ Arabischen übersetzt von Samuel Ibn Tibbon'
77+ title-short: Drei Abhandlungen
78+ translator:
79+ - family: Hercz
80+ given: J.
81+ type: book
82+---
83+
84+
85+```
test/command/biblatex-baez-article.mdnew file+76
@@ -0,0 +1,76 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Baez and Lauda 2004)
10+
11+Baez, John C., and Aaron D. Lauda. 2004. “Higher-dimensional Algebra V:
12+2-groups” (version 3). *Theory and Applications of Categories* 12:
13+423–491.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Baez & Lauda, 2004)
19+
20+Baez, J. C., & Lauda, A. D. (2004). Higher-dimensional algebra V:
21+2-groups. *Theory and Applications of Categories*, *12*, 423–491.
22+
23+
24+NOTES:
25+
26+- biblio2yaml
27+ - eprint: see baez-online
28+
29+}
30+
31+@Article{baez-article,
32+ author = {Baez, John C. and Lauda, Aaron D.},
33+ title = {Higher-Dimensional Algebra {V}: 2-Groups},
34+ journaltitle = {Theory and Applications of Categories},
35+ date = 2004,
36+ volume = 12,
37+ pages = {423-491},
38+ version = 3,
39+ eprint = {math/0307200v3},
40+ eprinttype = {arxiv},
41+ hyphenation = {american},
42+ annotation = {An article with eprint and
43+ eprinttype fields. Note that the arXiv reference is
44+ transformed into a clickable link if hyperref support
45+ has been enabled. Compare baez\slash online, which
46+ is the same item given as an online entry},
47+}
48+
49+^D
50+---
51+nocite: '[@*]'
52+references:
53+- annote: 'An article with eprint and eprinttype fields. Note that the
54+ arXiv reference is transformed into a clickable link if hyperref
55+ support has been enabled. Compare baez/online, which is the same
56+ item given as an online entry'
57+ author:
58+ - family: Baez
59+ given: John C.
60+ - family: Lauda
61+ given: Aaron D.
62+ container-title: Theory and Applications of Categories
63+ id: 'baez-article'
64+ issued: 2004
65+ language: 'en-US'
66+ page: '423-491'
67+ title: 'Higher-dimensional algebra V: 2-groups'
68+ title-short: 'Higher-dimensional algebra V'
69+ type: 'article-journal'
70+ url: 'http://arxiv.org/abs/math/0307200v3'
71+ version: 3
72+ volume: 12
73+---
74+
75+
76+```
test/command/biblatex-baez-online.mdnew file+69
@@ -0,0 +1,69 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Baez and Lauda 2004)
10+
11+Baez, John C., and Aaron D. Lauda. 2004. “Higher-dimensional Algebra V:
12+2-groups” (version 3). October 27.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Baez & Lauda, 2004)
18+
19+Baez, J. C., & Lauda, A. D. (2004, October 27). Higher-dimensional
20+algebra V: 2-groups.
21+
22+
23+NOTES:
24+
25+- biblio2yaml:
26+ - eprinttype = {arxiv}, eprint = {math/0307200v3},
27+ should be converted to a url: http://arxiv.org/abs/math/0307200v3
28+ (prefix http://arxiv.org/abs/ seems to work for all arxiv material)
29+
30+}
31+
32+@Online{baez-online,
33+ author = {Baez, John C. and Lauda, Aaron D.},
34+ title = {Higher-Dimensional Algebra {V}: 2-Groups},
35+ date = {2004-10-27},
36+ version = 3,
37+ hyphenation = {american},
38+ eprinttype = {arxiv},
39+ eprint = {math/0307200v3},
40+ annotation = {An online reference from arXiv. Note the
41+ eprint and eprinttype fields. Compare
42+ baez\slash article which is the same item given as an
43+ article entry with eprint information},
44+}
45+
46+^D
47+---
48+nocite: '[@*]'
49+references:
50+- annote: An online reference from arXiv. Note the eprint and eprinttype
51+ fields. Compare baez/article which is the same item given as an
52+ article entry with eprint information
53+ author:
54+ - family: Baez
55+ given: John C.
56+ - family: Lauda
57+ given: Aaron D.
58+ id: 'baez-online'
59+ issued: '2004-10-27'
60+ language: 'en-US'
61+ title: 'Higher-dimensional algebra V: 2-groups'
62+ title-short: 'Higher-dimensional algebra V'
63+ type: webpage
64+ url: 'http://arxiv.org/abs/math/0307200v3'
65+ version: 3
66+---
67+
68+
69+```
test/command/biblatex-basic.mdnew file+69
@@ -0,0 +1,69 @@
1+@Book{item1,
2+author="John Doe",
3+title="First Book",
4+year="2005",
5+address="Cambridge",
6+publisher="Cambridge University Press"
7+}
8+
9+@Article{item2,
10+author="John Doe",
11+title="Article",
12+year="2006",
13+journal="Journal of Generic Studies",
14+volume="6",
15+pages="33-34"
16+}
17+
18+@InCollection{пункт3,
19+author="John Doe and Jenny Roe",
20+title="Why Water Is Wet",
21+booktitle="Third Book",
22+editor="Sam Smith",
23+publisher="Oxford University Press",
24+address="Oxford",
25+year="2007"
26+}
27+
28+^D
29+---
30+nocite: '[@*]'
31+references:
32+- author:
33+ - family: Doe
34+ given: John
35+ id: item1
36+ issued: 2005
37+ publisher: Cambridge University Press
38+ publisher-place: Cambridge
39+ title: First book
40+ type: book
41+- author:
42+ - family: Doe
43+ given: John
44+ container-title: Journal of Generic Studies
45+ id: item2
46+ issued: 2006
47+ page: '33-34'
48+ title: Article
49+ type: 'article-journal'
50+ volume: 6
51+- author:
52+ - family: Doe
53+ given: John
54+ - family: Roe
55+ given: Jenny
56+ container-title: Third book
57+ editor:
58+ - family: Smith
59+ given: Sam
60+ id: пункт3
61+ issued: 2007
62+ publisher: Oxford University Press
63+ publisher-place: Oxford
64+ title: Why water is wet
65+ type: chapter
66+---
67+
68+
69+```
test/command/biblatex-bertram.mdnew file+66
@@ -0,0 +1,66 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Bertram and Wentworth 1996)
11+
12+Bertram, Aaron, and Richard Wentworth. 1996. “Gromov Invariants for
13+Holomorphic Maps on Riemann Surfaces.” *J. Amer. Math. Soc.* 9 (2):
14+529–571.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Bertram & Wentworth, 1996)
20+
21+Bertram, A., & Wentworth, R. (1996). Gromov invariants for holomorphic
22+maps on Riemann surfaces. *J. Amer. Math. Soc.*, *9*(2), 529–571.
23+
24+
25+}
26+
27+@string{ jams = {J.~Amer. Math. Soc.} }
28+
29+@Article{bertram,
30+ author = {Bertram, Aaron and Wentworth, Richard},
31+ title = {Gromov invariants for holomorphic maps on {Riemann} surfaces},
32+ journaltitle = jams,
33+ date = 1996,
34+ volume = 9,
35+ number = 2,
36+ pages = {529-571},
37+ hyphenation = {american},
38+ shorttitle = {Gromov invariants},
39+ annotation = {An article entry with a volume and a
40+ number field},
41+}
42+
43+^D
44+---
45+nocite: '[@*]'
46+references:
47+- annote: An article entry with a volume and a number field
48+ author:
49+ - family: Bertram
50+ given: Aaron
51+ - family: Wentworth
52+ given: Richard
53+ container-title: J. Amer. Math. Soc.
54+ id: bertram
55+ issue: 2
56+ issued: 1996
57+ language: 'en-US'
58+ page: '529-571'
59+ title: Gromov invariants for holomorphic maps on Riemann surfaces
60+ title-short: Gromov invariants
61+ type: 'article-journal'
62+ volume: 9
63+---
64+
65+
66+```
test/command/biblatex-bibstring-resolution.mdnew file+20
@@ -0,0 +1,20 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@book{item1,
4+ Title = {The Title: \bibstring{newseries}},
5+ Hyphenation = {english}
6+}
7+
8+^D
9+---
10+nocite: '[@*]'
11+references:
12+- id: item1
13+ language: 'en-US'
14+ title: 'The title: New series'
15+ title-short: The title
16+ type: book
17+---
18+
19+
20+```
test/command/biblatex-book-averroes.mdnew file+128
@@ -0,0 +1,128 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib
5+
6+@book{averroes/bland,
7+ Annotation = {A book entry with a series and a number. Note the concatenation of the editor and translator fields as well as the indextitle field},
8+ Author = {Averroes},
9+ Date = 1982,
10+ Editor = {Bland, Kalman P.},
11+ Hyphenation = {american},
12+ Indextitle = {Epistle on the Possibility of Conjunction, The},
13+ Keywords = {primary},
14+ Location = {New York},
15+ Number = 7,
16+ Publisher = {Jewish Theological Seminary of America},
17+ Series = {{Moreshet: Studies in Jewish History, Literature and Thought}},
18+ Shorttitle = {Possibility of Conjunction},
19+ Title = {The Epistle on the Possibility of Conjunction with the Active Intellect by {Ibn Rushd} with the Commentary of {Moses Narboni}},
20+ Translator = {Bland, Kalman P.}}
21+
22+@book{averroes/hannes,
23+ Annotation = {An annotated edition. Note the concatenation of the editor, translator, and annotator fields. Also note the shorttitle, indextitle, sorttitle, and indexsorttitle fields},
24+ Annotator = {Hannes, Ludwig},
25+ Author = {Averroes},
26+ Date = 1892,
27+ Editor = {Hannes, Ludwig},
28+ Hyphenation = {german},
29+ Indexsorttitle = {Uber die Moglichkeit der Conjunktion},
30+ Indextitle = {Über die Möglichkeit der Conjunktion},
31+ Keywords = {primary},
32+ Location = {Halle an der Saale},
33+ Publisher = {C.~A. Kaemmerer},
34+ Shorttitle = {Über die Möglichkeit der Conjunktion},
35+ Sorttitle = {Uber die Moglichkeit der Conjunktion},
36+ Title = {Des Averroës Abhandlung: \mkbibquote{Über die Möglichkeit der Conjunktion} oder \mkbibquote{Über den materiellen Intellekt}},
37+ Translator = {Hannes, Ludwig}}
38+
39+@book{averroes/hercz,
40+ Annotation = {A book entry. Note the concatenation of the editor and translator fields as well as the indextitle and indexsorttitle fields},
41+ Author = {Averroes},
42+ Date = 1869,
43+ Editor = {Hercz, J.},
44+ Hyphenation = {german},
45+ Indexsorttitle = {Drei Abhandlungen uber die Conjunction},
46+ Indextitle = {Drei Abhandlungen über die Conjunction},
47+ Keywords = {primary},
48+ Location = {Berlin},
49+ Publisher = {S.~Hermann},
50+ Shorttitle = {Drei Abhandlungen},
51+ Subtitle = {Von Averroes (Vater und Sohn), aus dem Arabischen übersetzt von Samuel Ibn Tibbon},
52+ Title = {Drei Abhandlungen über die Conjunction des separaten Intellects mit dem Menschen},
53+ Translator = {Hercz, J.}}
54+^D
55+---
56+nocite: '[@*]'
57+references:
58+- annote: A book entry with a series and a number. Note the
59+ concatenation of the editor and translator fields as well as the
60+ indextitle field
61+ author:
62+ - family: Averroes
63+ collection-number: 7
64+ collection-title: '[Moreshet: Studies in Jewish History, Literature
65+ and Thought]{.nocase}'
66+ editor:
67+ - family: Bland
68+ given: Kalman P.
69+ id: averroes/bland
70+ issued: 1982
71+ keyword: primary
72+ language: 'en-US'
73+ publisher: Jewish Theological Seminary of America
74+ publisher-place: New York
75+ title: The epistle on the possibility of conjunction with the active
76+ intellect by Ibn Rushd with the commentary of Moses Narboni
77+ title-short: Possibility of conjunction
78+ translator:
79+ - family: Bland
80+ given: Kalman P.
81+ type: book
82+- annote: 'An annotated edition. Note the concatenation of the editor,
83+ translator, and annotator fields. Also note the shorttitle,
84+ indextitle, sorttitle, and indexsorttitle fields'
85+ author:
86+ - family: Averroes
87+ editor:
88+ - family: Hannes
89+ given: Ludwig
90+ id: averroes/hannes
91+ issued: 1892
92+ keyword: primary
93+ language: 'de-DE'
94+ publisher: C. A. Kaemmerer
95+ publisher-place: Halle an der Saale
96+ title: 'Des Averroës Abhandlung: "Über die Möglichkeit der
97+ Conjunktion" oder "Über den materiellen Intellekt"'
98+ title-short: Über die Möglichkeit der Conjunktion
99+ translator:
100+ - family: Hannes
101+ given: Ludwig
102+ type: book
103+- annote: A book entry. Note the concatenation of the editor and
104+ translator fields as well as the indextitle and indexsorttitle
105+ fields
106+ author:
107+ - family: Averroes
108+ editor:
109+ - family: Hercz
110+ given: J.
111+ id: averroes/hercz
112+ issued: 1869
113+ keyword: primary
114+ language: 'de-DE'
115+ publisher: S. Hermann
116+ publisher-place: Berlin
117+ title: 'Drei Abhandlungen über die Conjunction des separaten
118+ Intellects mit dem Menschen: Von Averroes (Vater und Sohn), aus dem
119+ Arabischen übersetzt von Samuel Ibn Tibbon'
120+ title-short: Drei Abhandlungen
121+ translator:
122+ - family: Hercz
123+ given: J.
124+ type: book
125+---
126+
127+
128+```
test/command/biblatex-book-coleridge.mdnew file+59
@@ -0,0 +1,59 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib
4+
5+TODO (as a stopgap):
6+Combine biblatex “volume = 7” and “part = 2” to CSL “volume: 7.2”
7+
8+}
9+
10+@book{coleridge,
11+ Annotation = {One (partial) volume of a multivolume book. This is a book entry with a volume and a part field which explicitly refers to the second (physical) part of the seventh (logical) volume. Also note the series and number fields},
12+ Author = {Coleridge, Samuel Taylor},
13+ Date = 1983,
14+ Editor = {Coburn, Kathleen and Engell, James and Bate, W. Jackson},
15+ Hyphenation = {british},
16+ Indextitle = {Biographia literaria},
17+ Location = {London},
18+ Maintitle = {The collected works of {Samuel Taylor Coleridge}},
19+ Number = 75,
20+ Part = 2,
21+ Publisher = {Routledge {and} Kegan Paul},
22+ Series = {Bollingen Series},
23+ Shorttitle = {Biographia literaria},
24+ Title = {Biographia literaria, or {Biographical} sketches of my literary life and opinions},
25+ Volume = 7}
26+^D
27+---
28+nocite: '[@*]'
29+references:
30+- annote: One (partial) volume of a multivolume book. This is a book
31+ entry with a volume and a part field which explicitly refers to the
32+ second (physical) part of the seventh (logical) volume. Also note
33+ the series and number fields
34+ author:
35+ - family: Coleridge
36+ given: Samuel Taylor
37+ collection-number: 75
38+ collection-title: Bollingen series
39+ editor:
40+ - family: Coburn
41+ given: Kathleen
42+ - family: Engell
43+ given: James
44+ - family: Bate
45+ given: W. Jackson
46+ id: coleridge
47+ issued: 1983
48+ language: 'en-GB'
49+ publisher: Routledge and Kegan Paul
50+ publisher-place: London
51+ title: The collected works of Samuel Taylor Coleridge
52+ type: book
53+ volume: 7.2
54+ volume-title: 'Biographia literaria, or Biographical sketches of my
55+ literary life and opinions'
56+---
57+
58+
59+```
test/command/biblatex-book-title-maintitle-series.mdnew file+39
@@ -0,0 +1,39 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@book{item1,
4+ Author = {Author, Al},
5+ Date = {2013},
6+ Hyphenation = {french},
7+ Location = {Location},
8+ Mainsubtitle = {Mainsubtitle},
9+ Maintitle = {Maintitle},
10+ Maintitleaddon = {Maintitleaddon},
11+ Number = {3},
12+ Publisher = {Publisher},
13+ Series = {Series},
14+ Subtitle = {Subtitle},
15+ Title = {Title of the Book},
16+ Titleaddon = {Titleaddon},
17+}
18+
19+^D
20+---
21+nocite: '[@*]'
22+references:
23+- author:
24+ - family: Author
25+ given: Al
26+ collection-number: 3
27+ collection-title: Series
28+ id: item1
29+ issued: 2013
30+ language: 'fr-FR'
31+ publisher: Publisher
32+ publisher-place: Location
33+ title: 'Maintitle: Mainsubtitle. Maintitleaddon'
34+ type: book
35+ volume-title: 'Title of the Book: Subtitle. Titleaddon'
36+---
37+
38+
39+```
test/command/biblatex-book-vazques-de-parga.mdnew file+48
@@ -0,0 +1,48 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{excerpted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib
4+
5+Note handling of Author = {Vázques{ de }Parga, Luis}
6+
7+}
8+
9+@book{vazques-de-parga,
10+ Annotation = {A multivolume book cited as a whole. This is a book entry with volumes, note, sorttitle, and indextitle fields},
11+ Author = {Vázques{ de }Parga, Luis and Lacarra, José María and Uría Ríu, Juan},
12+ Date = 1993,
13+ Hyphenation = {spanish},
14+ Indextitle = {Peregrinaciones a Santiago de Compostela, Las},
15+ Location = {Pamplona},
16+ Note = {Ed. facs. de la realizada en 1948--49},
17+ Publisher = {Iberdrola},
18+ Shorttitle = {Peregrinaciones},
19+ Sorttitle = {Peregrinaciones a Santiago de Compostela},
20+ Title = {Las Peregrinaciones a Santiago de Compostela},
21+ Volumes = 3}
22+^D
23+---
24+nocite: '[@*]'
25+references:
26+- annote: 'A multivolume book cited as a whole. This is a book entry
27+ with volumes, note, sorttitle, and indextitle fields'
28+ author:
29+ - family: Vázques de Parga
30+ given: Luis
31+ - family: Lacarra
32+ given: José María
33+ - family: Uría Ríu
34+ given: Juan
35+ id: 'vazques-de-parga'
36+ issued: 1993
37+ language: 'es-ES'
38+ note: 'Ed. facs. de la realizada en 1948--49'
39+ number-of-volumes: 3
40+ publisher: Iberdrola
41+ publisher-place: Pamplona
42+ title: Las Peregrinaciones a Santiago de Compostela
43+ title-short: Peregrinaciones
44+ type: book
45+---
46+
47+
48+```
test/command/biblatex-brandt.mdnew file+88
@@ -0,0 +1,88 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Brandt and Hoffmann 1987)
11+
12+Brandt, Ahasver von, and Erich Hoffmann. 1987. “Die nordischen Länder
13+von der Mitte des 11. Jahrhunderts bis 1448.” In *Europa im Hoch- und
14+Spätmittelalter*, edited by Ferdinand Seibt, 884–917. Handbuch der
15+europäischen Geschichte 2. Stuttgart: Klett-Cotta.
16+
17+
18+Formatted with pandoc and apa.csl, 2013-10-23:
19+
20+(Brandt & Hoffmann, 1987)
21+
22+Brandt, A. von, & Hoffmann, E. (1987). Die nordischen Länder von der
23+Mitte des 11. Jahrhunderts bis 1448. In F. Seibt (ed.), *Europa im Hoch-
24+und Spätmittelalter* (pp. 884–917). Stuttgart: Klett-Cotta.
25+
26+
27+}
28+
29+@InCollection{brandt,
30+ author = {von Brandt, Ahasver and Erich Hoffmann},
31+ editor = {Ferdinand Seibt},
32+ title = {Die nordischen L{\"a}nder von der Mitte des 11.~Jahrhunderts
33+ bis 1448},
34+ date = 1987,
35+ booktitle = {Europa im Hoch- und Sp{\"a}tmittelalter},
36+ series = {Handbuch der europ{\"a}ischen Geschichte},
37+ number = 2,
38+ publisher = {Klett-Cotta},
39+ location = {Stuttgart},
40+ pages = {884-917},
41+ options = {useprefix=false},
42+ hyphenation = {german},
43+ indexsorttitle= {Nordischen Lander von der Mitte des 11. Jahrhunderts bis
44+ 1448},
45+ indextitle = {Nordischen L{\"a}nder von der Mitte des 11.~Jahrhunderts bis
46+ 1448, Die},
47+ shorttitle = {Die nordischen L{\"a}nder},
48+ annotation = {An incollection entry with a series and a
49+ number. Note the format of the printed name and
50+ compare the useprefix option in the options
51+ field as well as vangennep. Also note the
52+ indextitle, and indexsorttitle fields},
53+}
54+
55+^D
56+---
57+nocite: '[@*]'
58+references:
59+- annote: 'An incollection entry with a series and a number. Note the
60+ format of the printed name and compare the useprefix option in the
61+ options field as well as vangennep. Also note the indextitle, and
62+ indexsorttitle fields'
63+ author:
64+ - dropping-particle: von
65+ family: Brandt
66+ given: Ahasver
67+ - family: Hoffmann
68+ given: Erich
69+ collection-number: 2
70+ collection-title: Handbuch der europäischen Geschichte
71+ container-title: 'Europa im Hoch- und Spätmittelalter'
72+ editor:
73+ - family: Seibt
74+ given: Ferdinand
75+ id: brandt
76+ issued: 1987
77+ language: 'de-DE'
78+ page: '884-917'
79+ publisher: 'Klett-Cotta'
80+ publisher-place: Stuttgart
81+ title: Die nordischen Länder von der Mitte des 11. Jahrhunderts bis
82+ 1448
83+ title-short: Die nordischen Länder
84+ type: chapter
85+---
86+
87+
88+```
test/command/biblatex-britannica.mdnew file+85
@@ -0,0 +1,85 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Preece 2003)
10+
11+Preece, Warren E., ed. 2003. *The New EncyclopæDia Britannica*. 15th ed.
12+32. Chicago, Ill.: Encyclopædia Britannica.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Preece, 2003)
18+
19+Preece, W. E. (Ed.). (2003). *The new encyclopædia Britannica* (15th
20+ed., 1-32). Chicago, Ill.: Encyclopædia Britannica.
21+
22+
23+NOTES:
24+
25+- biblio2yaml
26+ - spurious <span> in Encyclopædia
27+ - options = {useeditor=false} has no equivalent in CSL, so citing and alphabetizing by title even though there is an editor does not seem to be possible
28+
29+- citeproc
30+ - incorrect camel case: "EncyclopæDia"
31+ - term "vols." missing
32+
33+}
34+
35+@Collection{britannica,
36+ editor = {Preece, Warren E.},
37+ title = {The New Encyclop{\ae}dia {Britannica}},
38+ date = 2003,
39+ edition = 15,
40+ volumes = 32,
41+ publisher = {Encyclop{\ae}dia Britannica},
42+ location = {Chicago, Ill.},
43+ options = {useeditor=false},
44+ label = {EB},
45+ hyphenation = {british},
46+ sorttitle = {Encyclop{\ae}dia Britannica},
47+ indextitle = {Encyclop{\ae}dia Britannica, The New},
48+ shorttitle = {Encyclop{\ae}dia {Britannica}},
49+ annotation = {This is a collection entry for an encyclopedia. Note
50+ the useeditor option in the options field as
51+ well as the sorttitle field. We want this entry to be
52+ cited and alphabetized by title even though there is an
53+ editor. In addition to that, we want the title to be
54+ alphabetized under \enquote*{E} rather than \enquote*{T}. Also
55+ note the label field which is provided for
56+ author-year citation styles},
57+}
58+
59+^D
60+---
61+nocite: '[@*]'
62+references:
63+- annote: 'This is a collection entry for an encyclopedia. Note the
64+ useeditor option in the options field as well as the sorttitle
65+ field. We want this entry to be cited and alphabetized by title even
66+ though there is an editor. In addition to that, we want the title to
67+ be alphabetized under ''E'' rather than ''T''. Also note the label field
68+ which is provided for author-year citation styles'
69+ edition: 15
70+ editor:
71+ - family: Preece
72+ given: Warren E.
73+ id: britannica
74+ issued: 2003
75+ language: 'en-GB'
76+ number-of-volumes: 32
77+ publisher: Encyclopædia Britannica
78+ publisher-place: 'Chicago, Ill.'
79+ title: The new encyclopædia Britannica
80+ title-short: Encyclopædia Britannica
81+ type: book
82+---
83+
84+
85+```
test/command/biblatex-chiu.mdnew file+77
@@ -0,0 +1,77 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Chiu and Chow 1978)
11+
12+Chiu, Willy W., and We Min Chow. 1978. “A Hybrid Hierarchical Model of a
13+Multiple Virtual Storage (MVS) Operating System.” Research report
14+RC-6947. IBM.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Chiu & Chow, 1978)
20+
21+Chiu, W. W., & Chow, W. M. (1978). *A hybrid hierarchical model of a
22+multiple virtual storage (MVS) operating system* (research report No.
23+RC-6947). IBM.
24+
25+
26+NOTES:
27+
28+- biblio2yaml
29+ - "MVS", when not wrapped in {}, gives "mVS", which is probably never intended, or useful (latex converts the whole word to lowercase if unprotected ("MVS" -> "mvs"))
30+
31+}
32+
33+@Report{chiu,
34+ author = {Chiu, Willy W. and Chow, We Min},
35+ title = {A Hybrid Hierarchical Model of a Multiple Virtual Storage
36+ ({MVS}) Operating System},
37+ type = {resreport},
38+ institution = {IBM},
39+ date = 1978,
40+ number = {RC-6947},
41+ hyphenation = {american},
42+ sorttitle = {Hybrid Hierarchical Model of a Multiple Virtual Storage (MVS)
43+ Operating System},
44+ indextitle = {Hybrid Hierarchical Model, A},
45+ annotation = {This is a report entry for a research report. Note
46+ the format of the type field in the database file
47+ which uses a localization key. The number of the report is
48+ given in the number field. Also note the
49+ sorttitle and indextitle fields},
50+}
51+
52+^D
53+---
54+nocite: '[@*]'
55+references:
56+- annote: This is a report entry for a research report. Note the format
57+ of the type field in the database file which uses a localization
58+ key. The number of the report is given in the number field. Also
59+ note the sorttitle and indextitle fields
60+ author:
61+ - family: Chiu
62+ given: Willy W.
63+ - family: Chow
64+ given: We Min
65+ genre: research report
66+ id: chiu
67+ issued: 1978
68+ language: 'en-US'
69+ number: 'RC-6947'
70+ publisher: IBM
71+ title: A hybrid hierarchical model of a multiple virtual storage (MVS)
72+ operating system
73+ type: report
74+---
75+
76+
77+```
test/command/biblatex-cicero.mdnew file+82
@@ -0,0 +1,82 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Cicero 1995)
11+
12+Cicero, Marcus Tullius. 1995. *De natura deorum. Über das Wesen der
13+Götter*. Ursula Blank-Sangmeister. Stuttgart: Reclam.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Cicero, 1995)
19+
20+Cicero, M. T. (1995). *De natura deorum. Über das Wesen der Götter*. (U.
21+Blank-Sangmeister). Stuttgart: Reclam.
22+
23+
24+NOTES:
25+
26+- biblio2yaml
27+ - afterword, language: no CSL variables available
28+
29+- citeproc:
30+ - term such as "edited and translated by" should appear
31+
32+}
33+
34+@Book{cicero,
35+ author = {Cicero, Marcus Tullius},
36+ title = {De natura deorum. {\"U}ber das Wesen der G{\"o}tter},
37+ date = 1995,
38+ editor = {Blank-Sangmeister, Ursula},
39+ translator = {Blank-Sangmeister, Ursula},
40+ afterword = {Thraede, Klaus},
41+ language = {langlatin and langgerman},
42+ publisher = {Reclam},
43+ location = {Stuttgart},
44+ hyphenation = {german},
45+ indextitle = {De natura deorum},
46+ shorttitle = {De natura deorum},
47+ annotation = {A bilingual edition of Cicero's \emph{De natura deorum}, with
48+ a German translation. Note the format of the language
49+ field in the database file, the concatenation of the
50+ editor and translator fields, and the
51+ afterword field},
52+}
53+
54+^D
55+---
56+nocite: '[@*]'
57+references:
58+- annote: 'A bilingual edition of Cicero''s *De natura deorum*, with a
59+ German translation. Note the format of the language field in the
60+ database file, the concatenation of the editor and translator
61+ fields, and the afterword field'
62+ author:
63+ - family: Cicero
64+ given: Marcus Tullius
65+ editor:
66+ - family: 'Blank-Sangmeister'
67+ given: Ursula
68+ id: cicero
69+ issued: 1995
70+ language: 'de-DE'
71+ publisher: Reclam
72+ publisher-place: Stuttgart
73+ title: De natura deorum. Über das Wesen der Götter
74+ title-short: De natura deorum
75+ translator:
76+ - family: 'Blank-Sangmeister'
77+ given: Ursula
78+ type: book
79+---
80+
81+
82+```
test/command/biblatex-cms.mdnew file+81
@@ -0,0 +1,81 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(*The Chicago Manual of Style: The Essential Guide for Writers, Editors,
10+and Publishers* 2003)
11+
12+*The Chicago Manual of Style: The Essential Guide for Writers, Editors,
13+and Publishers*. 2003. 15th ed. Chicago, Ill.: University of Chicago
14+Press.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(*Chicago manual of style*, 2003)
20+
21+*The Chicago manual of style: The essential guide for writers, editors,
22+and publishers*. (2003) (15th ed.). Chicago, Ill.: University of Chicago
23+Press.
24+
25+
26+NOTES:
27+
28+- chicago-author-date.csl should have as in-text citation:
29+ (*Chicago Manual of Style* 2003)
30+ Same behaviour in Zotero; most probably a style file issue.
31+
32+}
33+
34+@Manual{cms,
35+ title = {The {Chicago} Manual of Style},
36+ date = 2003,
37+ subtitle = {The Essential Guide for Writers, Editors, and Publishers},
38+ edition = 15,
39+ publisher = {University of Chicago Press},
40+ location = {Chicago, Ill.},
41+ isbn = {0-226-10403-6},
42+ label = {CMS},
43+ hyphenation = {american},
44+ sorttitle = {Chicago Manual of Style},
45+ indextitle = {Chicago Manual of Style, The},
46+ shorttitle = {Chicago Manual of Style},
47+ annotation = {This is a manual entry without an author or
48+ editor. Note the label field in the database
49+ file which is provided for author-year citation styles. Also
50+ note the sorttitle and indextitle fields. By
51+ default, all entries without an author or
52+ editor are alphabetized by title but we want
53+ this entry to be alphabetized under \enquote*{C} rather than
54+ \enquote*{T}. There's also an isbn field},
55+}
56+
57+^D
58+---
59+nocite: '[@*]'
60+references:
61+- annote: 'This is a manual entry without an author or editor. Note the
62+ label field in the database file which is provided for author-year
63+ citation styles. Also note the sorttitle and indextitle fields. By
64+ default, all entries without an author or editor are alphabetized by
65+ title but we want this entry to be alphabetized under ''C'' rather
66+ than ''T''. There''s also an isbn field'
67+ edition: 15
68+ id: cms
69+ isbn: '0-226-10403-6'
70+ issued: 2003
71+ language: 'en-US'
72+ publisher: University of Chicago Press
73+ publisher-place: 'Chicago, Ill.'
74+ title: 'The Chicago manual of style: The essential guide for writers,
75+ editors, and publishers'
76+ title-short: Chicago manual of style
77+ type: book
78+---
79+
80+
81+```
test/command/biblatex-coleridge.mdnew file+86
@@ -0,0 +1,86 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2015-03-08:
9+
10+(Coleridge 1983)
11+
12+Coleridge, Samuel Taylor. 1983. *The Collected Works of Samuel Taylor
13+Coleridge*. Edited by Kathleen Coburn, James Engell, and W. Jackson
14+Bate. Vol. 7.2. Bollingen Series 75. London: Routledge and Kegan Paul.
15+
16+Formatted with pandoc and apa.csl, 2015-03-08:
17+
18+(Coleridge, 1983)
19+
20+Coleridge, S. T. (1983). *The collected works of Samuel Taylor
21+Coleridge*. (K. Coburn, J. Engell, & W. J. Bate, Eds.) (Vol. 7.2).
22+London: Routledge and Kegan Paul.
23+
24+NOTES:
25+
26+- volume-title currently not implemented by chicago-author-date.csl and apa.csl.
27+
28+}
29+
30+@Book{coleridge,
31+ author = {Coleridge, Samuel Taylor},
32+ title = {Biographia literaria, or {Biographical} sketches of my literary
33+ life and opinions},
34+ date = 1983,
35+ editor = {Coburn, Kathleen and Engell, James and Bate, W. Jackson},
36+ maintitle = {The collected works of {Samuel Taylor Coleridge}},
37+ volume = 7,
38+ part = 2,
39+ series = {Bollingen Series},
40+ number = 75,
41+ publisher = {Routledge {and} Kegan Paul},
42+ location = {London},
43+ hyphenation = {british},
44+ indextitle = {Biographia literaria},
45+ shorttitle = {Biographia literaria},
46+ annotation = {One (partial) volume of a multivolume book. This is a
47+ book entry with a volume and a part
48+ field which explicitly refers to the second (physical) part of
49+ the seventh (logical) volume. Also note the series
50+ and number fields},
51+}
52+
53+^D
54+---
55+nocite: '[@*]'
56+references:
57+- annote: One (partial) volume of a multivolume book. This is a book
58+ entry with a volume and a part field which explicitly refers to the
59+ second (physical) part of the seventh (logical) volume. Also note
60+ the series and number fields
61+ author:
62+ - family: Coleridge
63+ given: Samuel Taylor
64+ collection-number: 75
65+ collection-title: Bollingen series
66+ editor:
67+ - family: Coburn
68+ given: Kathleen
69+ - family: Engell
70+ given: James
71+ - family: Bate
72+ given: W. Jackson
73+ id: coleridge
74+ issued: 1983
75+ language: 'en-GB'
76+ publisher: Routledge and Kegan Paul
77+ publisher-place: London
78+ title: The collected works of Samuel Taylor Coleridge
79+ type: book
80+ volume: 7.2
81+ volume-title: 'Biographia literaria, or Biographical sketches of my
82+ literary life and opinions'
83+---
84+
85+
86+```
test/command/biblatex-companion.mdnew file+70
@@ -0,0 +1,70 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Goossens, Mittelbach, and Samarin 1994)
11+
12+Goossens, Michel, Frank Mittelbach, and Alexander Samarin. 1994. *The
13+LaTeX Companion*. 1st ed. Reading, Mass.: Addison-Wesley.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Goossens, Mittelbach, & Samarin, 1994)
19+
20+Goossens, M., Mittelbach, F., & Samarin, A. (1994). *The LaTeX
21+companion* (1st ed.). Reading, Mass.: Addison-Wesley.
22+
23+
24+}
25+
26+@Book{companion,
27+ author = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},
28+ title = {The {LaTeX} Companion},
29+ date = 1994,
30+ edition = 1,
31+ publisher = {Addison-Wesley},
32+ location = {Reading, Mass.},
33+ pagetotal = 528,
34+ hyphenation = {american},
35+ sorttitle = {LaTeX Companion},
36+ indextitle = {LaTeX Companion, The},
37+ shorttitle = {LaTeX Companion},
38+ annotation = {A book with three authors. Note the formatting of the author
39+ list. By default, only the first name is reversed in the
40+ bibliography},
41+}
42+
43+^D
44+---
45+nocite: '[@*]'
46+references:
47+- annote: 'A book with three authors. Note the formatting of the author
48+ list. By default, only the first name is reversed in the
49+ bibliography'
50+ author:
51+ - family: Goossens
52+ given: Michel
53+ - family: Mittelbach
54+ given: Frank
55+ - family: Samarin
56+ given: Alexander
57+ edition: 1
58+ id: companion
59+ issued: 1994
60+ language: 'en-US'
61+ number-of-pages: 528
62+ publisher: 'Addison-Wesley'
63+ publisher-place: 'Reading, Mass.'
64+ title: The LaTeX companion
65+ title-short: LaTeX companion
66+ type: book
67+---
68+
69+
70+```
test/command/biblatex-cotton.mdnew file+69
@@ -0,0 +1,69 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Cotton et al. 1999)
11+
12+Cotton, Frank Albert, Geoffrey Wilkinson, Carlos A. Murillio, and
13+Manfred Bochmann. 1999. *Advanced Inorganic Chemistry*. 6th ed.
14+Chichester: Wiley.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Cotton, Wilkinson, Murillio, & Bochmann, 1999)
20+
21+Cotton, F. A., Wilkinson, G., Murillio, C. A., & Bochmann, M. (1999).
22+*Advanced inorganic chemistry* (6th ed.). Chichester: Wiley.
23+
24+
25+}
26+
27+@Book{cotton,
28+ author = {Cotton, Frank Albert and Wilkinson, Geoffrey and Murillio,
29+ Carlos A. and Bochmann, Manfred},
30+ title = {Advanced inorganic chemistry},
31+ date = 1999,
32+ edition = 6,
33+ publisher = {Wiley},
34+ location = {Chichester},
35+ hyphenation = {british},
36+ annotation = {A book entry with \arabic{author} authors and an
37+ edition field. By default, long author and
38+ editor lists are automatically truncated. This is
39+ configurable},
40+}
41+
42+^D
43+---
44+nocite: '[@*]'
45+references:
46+- annote: 'A book entry with author authors and an edition field. By
47+ default, long author and editor lists are automatically truncated.
48+ This is configurable'
49+ author:
50+ - family: Cotton
51+ given: Frank Albert
52+ - family: Wilkinson
53+ given: Geoffrey
54+ - family: Murillio
55+ given: Carlos A.
56+ - family: Bochmann
57+ given: Manfred
58+ edition: 6
59+ id: cotton
60+ issued: 1999
61+ language: 'en-GB'
62+ publisher: Wiley
63+ publisher-place: Chichester
64+ title: Advanced inorganic chemistry
65+ type: book
66+---
67+
68+
69+```
test/command/biblatex-crossref-inbook-mvbook.mdnew file+58
@@ -0,0 +1,58 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+crossref, directly from inbook to mvbook
6+
7+}
8+
9+@inbook{inbook-1,
10+ Crossref = {mvbook-1},
11+ Title = {Macbeth [title field of inbook-1]},
12+ Date = {1975},
13+ Volume = {3},
14+ Chapter = {7},
15+ Pages = {100-200},
16+}
17+
18+@mvbook{mvbook-1,
19+ Author = {Shakespeare},
20+ Date = {1970/1980},
21+ Title = {Collected Works [title field of mvbook-1]},
22+ Location = {Location},
23+ Publisher = {Publisher},
24+ Volumes = {4},
25+}
26+
27+^D
28+---
29+nocite: '[@*]'
30+references:
31+- author:
32+ - family: Shakespeare
33+ chapter-number: 7
34+ container-author:
35+ - family: Shakespeare
36+ container-title: 'Collected works \[title field of mvbook-1\]'
37+ id: 'inbook-1'
38+ issued: 1975
39+ number-of-volumes: 4
40+ page: '100-200'
41+ publisher: Publisher
42+ publisher-place: Location
43+ title: 'Macbeth \[title field of inbook-1\]'
44+ type: chapter
45+ volume: 3
46+- author:
47+ - family: Shakespeare
48+ id: 'mvbook-1'
49+ issued: 1970/1980
50+ number-of-volumes: 4
51+ publisher: Publisher
52+ publisher-place: Location
53+ title: 'Collected works \[title field of mvbook-1\]'
54+ type: book
55+---
56+
57+
58+```
test/command/biblatex-crossref-nested.mdnew file+100
@@ -0,0 +1,100 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Nested crossreferences (see biber manual v 1.7)
6+
7+}
8+
9+@bookinbook{bookinbook-1,
10+ Crossref = {book-1},
11+ Title = {Macbeth [title field of bookinbook-1]},
12+ Chapter = {7},
13+ Pages = {100-200},
14+}
15+
16+@inbook{inbook-1,
17+ Crossref = {book-1},
18+ Title = {Macbeth [title field of inbook-1]},
19+ Chapter = {7},
20+ Pages = {100-200},
21+}
22+
23+@book{book-1,
24+ Crossref = {mvbook-1},
25+ Date = {1975},
26+ Title = {Tragedies [title field of book-1]},
27+ Volume = {3}
28+}
29+
30+@mvbook{mvbook-1,
31+ Author = {Shakespeare},
32+ Date = {1970/1980},
33+ Title = {Collected Works [title field of mvbook-1]},
34+ Location = {Location},
35+ Publisher = {Publisher},
36+ Volumes = {4}
37+}
38+
39+^D
40+---
41+nocite: '[@*]'
42+references:
43+- author:
44+ - family: Shakespeare
45+ chapter-number: 7
46+ container-author:
47+ - family: Shakespeare
48+ container-title: 'Collected works \[title field of mvbook-1\]'
49+ id: 'bookinbook-1'
50+ issued: 1975
51+ number-of-volumes: 4
52+ page: '100-200'
53+ publisher: Publisher
54+ publisher-place: Location
55+ title: 'Macbeth \[title field of bookinbook-1\]'
56+ type: chapter
57+ volume: 3
58+ volume-title: 'Tragedies \[title field of book-1\]'
59+- author:
60+ - family: Shakespeare
61+ chapter-number: 7
62+ container-author:
63+ - family: Shakespeare
64+ container-title: 'Collected works \[title field of mvbook-1\]'
65+ id: 'inbook-1'
66+ issued: 1975
67+ number-of-volumes: 4
68+ page: '100-200'
69+ publisher: Publisher
70+ publisher-place: Location
71+ title: 'Macbeth \[title field of inbook-1\]'
72+ type: chapter
73+ volume: 3
74+ volume-title: 'Tragedies \[title field of book-1\]'
75+- author:
76+ - family: Shakespeare
77+ container-author:
78+ - family: Shakespeare
79+ id: 'book-1'
80+ issued: 1975
81+ number-of-volumes: 4
82+ publisher: Publisher
83+ publisher-place: Location
84+ title: 'Collected works \[title field of mvbook-1\]'
85+ type: book
86+ volume: 3
87+ volume-title: 'Tragedies \[title field of book-1\]'
88+- author:
89+ - family: Shakespeare
90+ id: 'mvbook-1'
91+ issued: 1970/1980
92+ number-of-volumes: 4
93+ publisher: Publisher
94+ publisher-place: Location
95+ title: 'Collected works \[title field of mvbook-1\]'
96+ type: book
97+---
98+
99+
100+```
test/command/biblatex-ctan.mdnew file+73
@@ -0,0 +1,73 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(“CTAN: The Comprehensive TeX Archive Network” 2006)
11+
12+“CTAN: The Comprehensive TeX Archive Network.” 2006.
13+<http://www.ctan.org>.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(“CTAN: The Comprehensive TeX Archive Network,” 2006)
19+
20+CTAN: The Comprehensive TeX Archive Network. (2006). Retrieved October
21+01, 2006, from <http://www.ctan.org>
22+
23+
24+NOTES:
25+
26+- biblio2yaml
27+ - if there is no shorttitle, but title and subtitle, the title alone should also be mapped to title-short
28+
29+- citeproc
30+ - citeproc should use title-short (if available) instead of title for in-text citations when there is no author
31+
32+}
33+
34+@Online{ctan,
35+ title = {{CTAN}},
36+ date = 2006,
37+ url = {http://www.ctan.org},
38+ subtitle = {{The Comprehensive TeX Archive Network}},
39+ urldate = {2006-10-01},
40+ label = {CTAN},
41+ hyphenation = {american},
42+ annotation = {This is an online entry. The \textsc{url}, which is
43+ given in the url field, is transformed into a
44+ clickable link if hyperref support has been
45+ enabled. Note the format of the urldate field
46+ (yyyy-mm-dd) in the database file. Also note the
47+ label field which may be used as a fallback by
48+ citation styles which need an author and\slash or a
49+ year},
50+}
51+
52+^D
53+---
54+nocite: '[@*]'
55+references:
56+- accessed: '2006-10-01'
57+ annote: 'This is an online entry. The [url]{.smallcaps}, which is
58+ given in the url field, is transformed into a clickable link if
59+ hyperref support has been enabled. Note the format of the urldate
60+ field (yyyy-mm-dd) in the database file. Also note the label field
61+ which may be used as a fallback by citation styles which need an
62+ author and/or a year'
63+ id: ctan
64+ issued: 2006
65+ language: 'en-US'
66+ title: 'CTAN: The Comprehensive TeX Archive Network'
67+ title-short: CTAN
68+ type: webpage
69+ url: 'http://www.ctan.org'
70+---
71+
72+
73+```
test/command/biblatex-dates.mdnew file+162
@@ -0,0 +1,162 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+ - Dates
5+ - Not included in tests:
6+ - malformed dates and date ranges
7+ - literal dates ("13th century"; not supported by biblatex)
8+ - seasons (would have to come from parsing the issue field)
9+ - uncertain dates (use "doubtfuldate" from biblatex-apa?)
10+ - dates with single-digit day or month (not supported by biblatex)
11+ - negative dates (not supported by biblatex)
12+ - Note: biblatex supports years < 1000 but only if padded with leading zeros
13+ - TODO:
14+ - either biblio2yaml or, probably better, citeproc should strip leading zeros
15+ from days and months (CSL can add leading zeros to its output, but not remove
16+ them when they are in its input data)
17+}
18+
19+@article{year-month-old,
20+ Author = {Author, Al},
21+ Journal = {Journal},
22+ Month = aug,
23+ Title = {Year and Month, bibtex style, supported by biblatex for backwards compatibility},
24+ Year = {1999}}
25+
26+@article{year-month-new,
27+ Author = {Author, Al},
28+ Journal = {Journal},
29+ Month = {08},
30+ Title = {Year and Month, biblatex style; note that biblatex does not have a ``day'' field},
31+ Year = {1999}}
32+
33+@article{dates,
34+ Author = {Author, Al},
35+ Date = {2012-12-13},
36+ Eventdate = {2011-10-03},
37+ Journal = {Journal},
38+ Month = may,
39+ Origdate = {1888-10-01},
40+ Title = {Dates, default biblatex style; year, month to be ignored if date exists},
41+ Urldate = {1999-05-23},
42+ Year = {9999}}
43+
44+@article{date-ranges-different-years,
45+ Author = {Author, Al},
46+ Date = {1999-10-14/2010-01-23},
47+ Eventdate = {1999-12/2000-01},
48+ Journal = {Journal},
49+ Origdate = {1888-01-02/1913-12-13},
50+ Title = {Date ranges; different years},
51+ Urldate = {2012-10-12/2013-01-31}}
52+
53+@article{date-ranges-same-year,
54+ Author = {Author, Al},
55+ Date = {1999-10-14/1999-10-15},
56+ Eventdate = {1999-10/1999-11},
57+ Journal = {Journal},
58+ Origdate = {1888-01-02/1888-12-13},
59+ Title = {Date ranges; same year},
60+ Urldate = {2012-10-31/2012-11-01}}
61+
62+@article{date-ranges-open,
63+ Author = {Author, Al},
64+ Date = {1999-10-14/},
65+ Eventdate = {1999-10/},
66+ Journal = {Journal},
67+ Origdate = {1888-01-02/},
68+ Title = {Date ranges, open-ended},
69+ Urldate = {2012-10-31/}}
70+
71+@article{dates-very-old,
72+ Author = {Author, Al},
73+ Date = {0712-12-13},
74+ Eventdate = {0311-10-03},
75+ Journal = {Journal},
76+ Month = may,
77+ Origdate = {0088-10-01},
78+ Title = {Dates, year less than 1000},
79+ Urldate = {0999-12-14}}
80+
81+^D
82+---
83+nocite: '[@*]'
84+references:
85+- author:
86+ - family: Author
87+ given: Al
88+ container-title: Journal
89+ id: 'year-month-old'
90+ issued: '1999-08'
91+ title: 'Year and month, bibtex style, supported by biblatex for
92+ backwards compatibility'
93+ type: 'article-journal'
94+- author:
95+ - family: Author
96+ given: Al
97+ container-title: Journal
98+ id: 'year-month-new'
99+ issued: '1999-08'
100+ title: 'Year and month, biblatex style; note that biblatex does not
101+ have a "day" field'
102+ type: 'article-journal'
103+- accessed: '1999-05-23'
104+ author:
105+ - family: Author
106+ given: Al
107+ container-title: Journal
108+ event-date: '2011-10-03'
109+ id: dates
110+ issued: '2012-12-13'
111+ original-date: '1888-10-01'
112+ title: 'Dates, default biblatex style; year, month to be ignored if
113+ date exists'
114+ type: 'article-journal'
115+- accessed: '2012-10-12/2013-01-31'
116+ author:
117+ - family: Author
118+ given: Al
119+ container-title: Journal
120+ event-date: '1999-12/2000-01'
121+ id: 'date-ranges-different-years'
122+ issued: '1999-10-14/2010-01-23'
123+ original-date: '1888-01-02/1913-12-13'
124+ title: Date ranges; different years
125+ type: 'article-journal'
126+- accessed: '2012-10-31/2012-11-01'
127+ author:
128+ - family: Author
129+ given: Al
130+ container-title: Journal
131+ event-date: '1999-10/1999-11'
132+ id: 'date-ranges-same-year'
133+ issued: '1999-10-14/1999-10-15'
134+ original-date: '1888-01-02/1888-12-13'
135+ title: Date ranges; same year
136+ type: 'article-journal'
137+- accessed: '2012-10-31/'
138+ author:
139+ - family: Author
140+ given: Al
141+ container-title: Journal
142+ event-date: '1999-10/'
143+ id: 'date-ranges-open'
144+ issued: '1999-10-14/'
145+ original-date: '1888-01-02/'
146+ title: 'Date ranges, open-ended'
147+ type: 'article-journal'
148+- accessed: '0999-12-14'
149+ author:
150+ - family: Author
151+ given: Al
152+ container-title: Journal
153+ event-date: '0311-10-03'
154+ id: 'dates-very-old'
155+ issued: '0712-12-13'
156+ original-date: '0088-10-01'
157+ title: 'Dates, year less than 1000'
158+ type: 'article-journal'
159+---
160+
161+
162+```
test/command/biblatex-doody.mdnew file+101
@@ -0,0 +1,101 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Doody 1974) (Matuz 1990)
10+
11+Doody, Terrence. 1974. “Hemingway’s Style and Jake’s Narration.” *The
12+Journal of Narrative Technique* 4 (3): 212–225.
13+
14+Matuz, Roger, ed. 1990. *Contemporary Literary Criticism*. Vol. 61.
15+Detroit: Gale.
16+
17+
18+Formatted with pandoc and apa.csl, 2013-10-23:
19+
20+(Doody, 1974) (Matuz, 1990)
21+
22+Doody, T. (1974). Hemingway’s style and Jake’s narration. *The Journal
23+of Narrative Technique*, *4*(3), 212–225.
24+
25+Matuz, R. (Ed.). (1990). *Contemporary literary criticism* (Vol. 61, pp.
26+204–208). Detroit: Gale.
27+
28+
29+NOTES
30+
31+- biblio2yaml
32+ - contains fields “related” and “relatedstring”. In principle, these could be appended to CSL "note", if citeproc can handle citations in the bibliography ...
33+
34+}
35+
36+@Article{doody,
37+ author = {Doody, Terrence},
38+ title = {Hemingway's Style and {Jake}'s Narration},
39+ year = 1974,
40+ volume = 4,
41+ number = 3,
42+ pages = {212-225},
43+ hyphenation = {american},
44+ related = {matuz:doody},
45+ relatedstring= {\autocap{e}xcerpt in},
46+ journal = {The Journal of Narrative Technique},
47+ annotation = {An article entry cited as an excerpt from a
48+ collection entry. Note the format of the
49+ related and relatedstring fields},
50+}
51+
52+@Collection{matuz:doody,
53+ editor = {Matuz, Roger},
54+ title = {Contemporary Literary Criticism},
55+ year = 1990,
56+ volume = 61,
57+ publisher = {Gale},
58+ location = {Detroit},
59+ pages = {204-208},
60+ hyphenation = {american},
61+ annotation = {A collection entry providing the excerpt information
62+ for the doody entry. Note the format of the
63+ pages field},
64+}
65+
66+^D
67+---
68+nocite: '[@*]'
69+references:
70+- annote: An article entry cited as an excerpt from a collection entry.
71+ Note the format of the related and relatedstring fields
72+ author:
73+ - family: Doody
74+ given: Terrence
75+ container-title: The Journal of Narrative Technique
76+ id: doody
77+ issue: 3
78+ issued: 1974
79+ language: 'en-US'
80+ page: '212-225'
81+ title: 'Hemingway''s style and Jake''s narration'
82+ type: 'article-journal'
83+ volume: 4
84+- annote: A collection entry providing the excerpt information for the
85+ doody entry. Note the format of the pages field
86+ editor:
87+ - family: Matuz
88+ given: Roger
89+ id: 'matuz:doody'
90+ issued: 1990
91+ language: 'en-US'
92+ page: '204-208'
93+ publisher: Gale
94+ publisher-place: Detroit
95+ title: Contemporary literary criticism
96+ type: book
97+ volume: 61
98+---
99+
100+
101+```
test/command/biblatex-edtf-date.mdnew file+73
@@ -0,0 +1,73 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+Note that current CSL doesn't give us a way
4+to distinguish between /open and /unknown,
5+so item3-3 and item3-4 get parsed similarly.
6+That should change in CSL 1.1, and then this
7+test should be revised.
8+
9+@article{item3-3, date={1998/unknown}}
10+@article{item3-4, date={1999/open}}
11+@article{item3-10, date={2004-04-05T14:34:00}}
12+@article{item5-1, date={0000}}
13+@article{item5-2, date={-0876}}
14+@article{item5-3, date={-0877/-0866}}
15+@article{item5-5, date={-0343-02}}
16+@article{item5-8, date={1723~}}
17+@article{item5-9, date={1723?}}
18+@article{item5-10, date={1723?~}}
19+@article{item5-11, date={2004-22}}
20+@article{item5-12, date={2004-24}}
21+@article{item5-13, date={20uu}}
22+@article{item5-14, date={y-123456789}}
23+
24+^D
25+---
26+nocite: '[@*]'
27+references:
28+- id: 'item3-3'
29+ issued: 1998/
30+ type: 'article-journal'
31+- id: 'item3-4'
32+ issued: 1999/
33+ type: 'article-journal'
34+- id: 'item3-10'
35+ issued: '2004-04-05'
36+ type: 'article-journal'
37+- id: 'item5-1'
38+ issued: 0000
39+ type: 'article-journal'
40+- id: 'item5-2'
41+ issued: '-0876'
42+ type: 'article-journal'
43+- id: 'item5-3'
44+ issued: '-0877/-0866'
45+ type: 'article-journal'
46+- id: 'item5-5'
47+ issued: '-0343-02'
48+ type: 'article-journal'
49+- id: 'item5-8'
50+ issued: 1723\~
51+ type: 'article-journal'
52+- id: 'item5-9'
53+ issued: 1723
54+ type: 'article-journal'
55+- id: 'item5-10'
56+ issued: 1723\~
57+ type: 'article-journal'
58+- id: 'item5-11'
59+ issued: '2004-22'
60+ type: 'article-journal'
61+- id: 'item5-12'
62+ issued: '2004-24'
63+ type: 'article-journal'
64+- id: 'item5-13'
65+ issued: 2000/2099
66+ type: 'article-journal'
67+- id: 'item5-14'
68+ issued: 'y-123456789'
69+ type: 'article-journal'
70+---
71+
72+
73+```
test/command/biblatex-escapedquotes.mdnew file+51
@@ -0,0 +1,51 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{From jgm/pandoc#1568. Double quotes escaped using {"}.}
4+
5+@ARTICLE{Koff2009-gn,
6+ title = "Pan-Canadian evaluation of irreversible compression ratios
7+ ({"}lossy{"} compression) for development of national
8+ guidelines",
9+ author = "Koff, David and Bak, Peter and Brownrigg, Paul and
10+ Hosseinzadeh, Danoush and Khademi, April and Kiss, Alex and
11+ Lepanto, Luigi and Michalak, Tracy and Shulman, Harry and
12+ Volkening, Andrew",
13+ affiliation = "Sunnybrook Health Sciences Centre, 2075 Bayview Ave., Toronto,
14+ ON, M4N 3M5, Canada. dkoffmcmaster.ca",
15+ journal = "Journal of digital imaging",
16+}
17+
18+^D
19+---
20+nocite: '[@*]'
21+references:
22+- author:
23+ - family: Koff
24+ given: David
25+ - family: Bak
26+ given: Peter
27+ - family: Brownrigg
28+ given: Paul
29+ - family: Hosseinzadeh
30+ given: Danoush
31+ - family: Khademi
32+ given: April
33+ - family: Kiss
34+ given: Alex
35+ - family: Lepanto
36+ given: Luigi
37+ - family: Michalak
38+ given: Tracy
39+ - family: Shulman
40+ given: Harry
41+ - family: Volkening
42+ given: Andrew
43+ container-title: Journal of digital imaging
44+ id: 'Koff2009-gn'
45+ title: 'Pan-canadian evaluation of irreversible compression ratios
46+ (\"lossy\" compression) for development of national guidelines'
47+ type: 'article-journal'
48+---
49+
50+
51+```
test/command/biblatex-examples.bibnew file+1674
@@ -0,0 +1,1674 @@
1+@string{anch-ie = {Angew.~Chem. Int.~Ed.}}
2+@string{cup = {Cambridge University Press}}
3+@string{dtv = {Deutscher Taschenbuch-Verlag}}
4+@string{hup = {Harvard University Press}}
5+@string{jams = {J.~Amer. Math. Soc.}}
6+@string{jchph = {J.~Chem. Phys.}}
7+@string{jomch = {J.~Organomet. Chem.}}
8+@string{pup = {Princeton University Press}}
9+
10+@incollection{westfahl:space,
11+ author = {Westfahl, Gary},
12+ title = {The True Frontier},
13+ subtitle = {Confronting and Avoiding the Realities of Space in {American}
14+ Science Fiction Films},
15+ pages = {55-65},
16+ crossref = {westfahl:frontier},
17+ langid = {english},
18+ langidopts = {variant=american},
19+ indextitle = {True Frontier, The},
20+ annotation = {A cross-referenced article from a \texttt{collection}. This is
21+ an \texttt{incollection} entry with a \texttt{crossref}
22+ field. Note the \texttt{subtitle} and \texttt{indextitle}
23+ fields},
24+}
25+
26+@set{set,
27+ entryset = {herrmann,aksin,yoon},
28+ annotation = {A \texttt{set} with three members. The \texttt{crossref} field
29+ in the \texttt{@set} entry and the \texttt{entryset} field in
30+ each set member entry is needed only when using BibTeX as the
31+ backend},
32+}
33+
34+@set{stdmodel,
35+ entryset = {glashow,weinberg,salam},
36+ annotation = {A \texttt{set} with three members discussing the standard
37+ model of particle physics. The \texttt{crossref} field
38+ in the \texttt{@set} entry and the \texttt{entryset} field in
39+ each set member entry is needed only when using BibTeX as the
40+ backend},
41+}
42+
43+@article{aksin,
44+ author = {Aks{\i}n, {\"O}zge and T{\"u}rkmen, Hayati and Artok, Levent
45+ and {\c{C}}etinkaya, Bekir and Ni, Chaoying and
46+ B{\"u}y{\"u}kg{\"u}ng{\"o}r, Orhan and {\"O}zkal, Erhan},
47+ title = {Effect of immobilization on catalytic characteristics of
48+ saturated {Pd-N}-heterocyclic carbenes in {Mizoroki-Heck}
49+ reactions},
50+ journaltitle = jomch,
51+ date = 2006,
52+ volume = 691,
53+ number = 13,
54+ pages = {3027-3036},
55+ indextitle = {Effect of immobilization on catalytic characteristics},
56+}
57+
58+@article{angenendt,
59+ author = {Angenendt, Arnold},
60+ title = {In Honore Salvatoris~-- Vom Sinn und Unsinn der
61+ Patrozinienkunde},
62+ journaltitle = {Revue d'Histoire Eccl{\'e}siastique},
63+ date = 2002,
64+ volume = 97,
65+ pages = {431--456, 791--823},
66+ langid = {german},
67+ indextitle = {In Honore Salvatoris},
68+ shorttitle = {In Honore Salvatoris},
69+ annotation = {A German article in a French journal. Apart from that, a
70+ typical \texttt{article} entry. Note the \texttt{indextitle}
71+ field},
72+}
73+
74+@article{baez/article,
75+ author = {Baez, John C. and Lauda, Aaron D.},
76+ title = {Higher-Dimensional Algebra {V}: 2-Groups},
77+ journaltitle = {Theory and Applications of Categories},
78+ date = 2004,
79+ volume = 12,
80+ pages = {423-491},
81+ version = 3,
82+ eprint = {math/0307200v3},
83+ eprinttype = {arxiv},
84+ langid = {english},
85+ langidopts = {variant=american},
86+ annotation = {An \texttt{article} with \texttt{eprint} and
87+ \texttt{eprinttype} fields. Note that the arXiv reference is
88+ transformed into a clickable link if \texttt{hyperref} support
89+ has been enabled. Compare \texttt{baez\slash online}, which
90+ is the same item given as an \texttt{online} entry},
91+}
92+
93+@article{bertram,
94+ author = {Bertram, Aaron and Wentworth, Richard},
95+ title = {Gromov invariants for holomorphic maps on {Riemann} surfaces},
96+ journaltitle = jams,
97+ date = 1996,
98+ volume = 9,
99+ number = 2,
100+ pages = {529-571},
101+ langid = {english},
102+ langidopts = {variant=american},
103+ shorttitle = {Gromov invariants},
104+ annotation = {An \texttt{article} entry with a \texttt{volume} and a
105+ \texttt{number} field},
106+}
107+
108+@article{doody,
109+ author = {Doody, Terrence},
110+ title = {Hemingway's Style and {Jake's} Narration},
111+ year = 1974,
112+ volume = 4,
113+ number = 3,
114+ pages = {212-225},
115+ langid = {english},
116+ langidopts = {variant=american},
117+ related = {matuz:doody},
118+ relatedstring= {\autocap{e}xcerpt in},
119+ journal = {The Journal of Narrative Technique},
120+ annotation = {An \texttt{article} entry cited as an excerpt from a
121+ \texttt{collection} entry. Note the format of the
122+ \texttt{related} and \texttt{relatedstring} fields},
123+}
124+
125+@collection{matuz:doody,
126+ editor = {Matuz, Roger},
127+ title = {Contemporary Literary Criticism},
128+ year = 1990,
129+ volume = 61,
130+ publisher = {Gale},
131+ location = {Detroit},
132+ pages = {204-208},
133+ langid = {english},
134+ langidopts = {variant=american},
135+ annotation = {A \texttt{collection} entry providing the excerpt information
136+ for the \texttt{doody} entry. Note the format of the
137+ \texttt{pages} field},
138+}
139+
140+@article{gillies,
141+ author = {Gillies, Alexander},
142+ title = {Herder and the Preparation of {Goethe's} Idea of World
143+ Literature},
144+ journaltitle = {Publications of the English Goethe Society},
145+ date = 1933,
146+ series = {newseries},
147+ volume = 9,
148+ pages = {46-67},
149+ langid = {english},
150+ langidopts = {variant=british},
151+ annotation = {An \texttt{article} entry with a \texttt{series} and a
152+ \texttt{volume} field. Note that format of the \texttt{series}
153+ field in the database file},
154+}
155+
156+@article{glashow,
157+ author = {Glashow, Sheldon},
158+ title = {Partial Symmetries of Weak Interactions},
159+ journaltitle = {Nucl.~Phys.},
160+ date = 1961,
161+ volume = 22,
162+ pages = {579-588},
163+}
164+
165+@article{herrmann,
166+ author = {Herrmann, Wolfgang A. and {\"O}fele, Karl and Schneider,
167+ Sabine K. and Herdtweck, Eberhardt and Hoffmann, Stephan D.},
168+ title = {A carbocyclic carbene as an efficient catalyst ligand for {C--C}
169+ coupling reactions},
170+ journaltitle = anch-ie,
171+ date = 2006,
172+ volume = 45,
173+ number = 23,
174+ pages = {3859-3862},
175+ indextitle = {Carbocyclic carbene as an efficient catalyst, A},
176+}
177+
178+@article{kastenholz,
179+ author = {Kastenholz, M. A. and H{\"u}nenberger, Philippe H.},
180+ title = {Computation of methodology\hyphen independent ionic solvation
181+ free energies from molecular simulations},
182+ journaltitle = jchph,
183+ date = 2006,
184+ subtitle = {{I}. {The} electrostatic potential in molecular liquids},
185+ volume = 124,
186+ eid = 124106,
187+ doi = {10.1063/1.2172593},
188+ langid = {english},
189+ langidopts = {variant=american},
190+ indextitle = {Computation of ionic solvation free energies},
191+ annotation = {An \texttt{article} entry with an \texttt{eid} and a
192+ \texttt{doi} field. Note that the \textsc{doi} is transformed
193+ into a clickable link if \texttt{hyperref} support has been
194+ enabled},
195+ abstract = {The computation of ionic solvation free energies from
196+ atomistic simulations is a surprisingly difficult problem that
197+ has found no satisfactory solution for more than 15 years. The
198+ reason is that the charging free energies evaluated from such
199+ simulations are affected by very large errors. One of these is
200+ related to the choice of a specific convention for summing up
201+ the contributions of solvent charges to the electrostatic
202+ potential in the ionic cavity, namely, on the basis of point
203+ charges within entire solvent molecules (M scheme) or on the
204+ basis of individual point charges (P scheme). The use of an
205+ inappropriate convention may lead to a charge-independent
206+ offset in the calculated potential, which depends on the
207+ details of the summation scheme, on the quadrupole-moment
208+ trace of the solvent molecule, and on the approximate form
209+ used to represent electrostatic interactions in the
210+ system. However, whether the M or P scheme (if any) represents
211+ the appropriate convention is still a matter of on-going
212+ debate. The goal of the present article is to settle this
213+ long-standing controversy by carefully analyzing (both
214+ analytically and numerically) the properties of the
215+ electrostatic potential in molecular liquids (and inside
216+ cavities within them).},
217+}
218+
219+@article{murray,
220+ author = {Hostetler, Michael J. and Wingate, Julia E. and Zhong,
221+ Chuan-Jian and Harris, Jay E. and Vachet, Richard W. and
222+ Clark, Michael R. and Londono, J. David and Green, Stephen
223+ J. and Stokes, Jennifer J. and Wignall, George D. and Glish,
224+ Gary L. and Porter, Marc D. and Evans, Neal D. and Murray,
225+ Royce W.},
226+ title = {Alkanethiolate gold cluster molecules with core diameters from
227+ 1.5 to 5.2~{nm}},
228+ journaltitle = {Langmuir},
229+ date = 1998,
230+ subtitle = {Core and monolayer properties as a function of core size},
231+ volume = 14,
232+ number = 1,
233+ pages = {17-30},
234+ langid = {english},
235+ langidopts = {variant=american},
236+ indextitle = {Alkanethiolate gold cluster molecules},
237+ shorttitle = {Alkanethiolate gold cluster molecules},
238+ annotation = {An \texttt{article} entry with \arabic{author} authors. By
239+ default, long author and editor lists are automatically
240+ truncated. This is configurable},
241+}
242+
243+@article{reese,
244+ author = {Reese, Trevor R.},
245+ title = {Georgia in {Anglo-Spanish} Diplomacy, 1736--1739},
246+ journaltitle = {William and Mary Quarterly},
247+ date = 1958,
248+ series = 3,
249+ volume = 15,
250+ pages = {168-190},
251+ langid = {english},
252+ langidopts = {variant=american},
253+ annotation = {An \texttt{article} entry with a \texttt{series} and a
254+ \texttt{volume} field. Note the format of the series. If the
255+ value of the \texttt{series} field is an integer, this number
256+ is printed as an ordinal and the string \enquote*{series} is
257+ appended automatically},
258+}
259+
260+@article{sarfraz,
261+ author = {M. Sarfraz and M. F. A. Razzak},
262+ title = {Technical section: {An} algorithm for automatic capturing of
263+ the font outlines},
264+ year = 2002,
265+ volume = 26,
266+ number = 5,
267+ pages = {795-804},
268+ issn = {0097-8493},
269+ journal = {Computers and Graphics},
270+ annotation = {An \texttt{article} entry with an \texttt{issn} field},
271+}
272+
273+@article{shore,
274+ author = {Shore, Bradd},
275+ title = {Twice-Born, Once Conceived},
276+ journaltitle = {American Anthropologist},
277+ date = {1991-03},
278+ subtitle = {Meaning Construction and Cultural Cognition},
279+ series = {newseries},
280+ volume = 93,
281+ number = 1,
282+ pages = {9-27},
283+ annotation = {An \texttt{article} entry with \texttt{series},
284+ \texttt{volume}, and \texttt{number} fields. Note the format
285+ of the \texttt{series} which is a localization key},
286+}
287+
288+@article{sigfridsson,
289+ author = {Sigfridsson, Emma and Ryde, Ulf},
290+ title = {Comparison of methods for deriving atomic charges from the
291+ electrostatic potential and moments},
292+ journaltitle = {Journal of Computational Chemistry},
293+ date = 1998,
294+ volume = 19,
295+ number = 4,
296+ pages = {377-395},
297+ doi = {10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P},
298+ langid = {english},
299+ langidopts = {variant=american},
300+ indextitle = {Methods for deriving atomic charges},
301+ annotation = {An \texttt{article} entry with \texttt{volume},
302+ \texttt{number}, and \texttt{doi} fields. Note that the
303+ \textsc{doi} is transformed into a clickable link if
304+ \texttt{hyperref} support has been enabled},
305+ abstract = {Four methods for deriving partial atomic charges from the
306+ quantum chemical electrostatic potential (CHELP, CHELPG,
307+ Merz-Kollman, and RESP) have been compared and critically
308+ evaluated. It is shown that charges strongly depend on how and
309+ where the potential points are selected. Two alternative
310+ methods are suggested to avoid the arbitrariness in the
311+ point-selection schemes and van der Waals exclusion radii:
312+ CHELP-BOW, which also estimates the charges from the
313+ electrostatic potential, but with potential points that are
314+ Boltzmann-weighted after their occurrence in actual
315+ simulations using the energy function of the program in which
316+ the charges will be used, and CHELMO, which estimates the
317+ charges directly from the electrostatic multipole
318+ moments. Different criteria for the quality of the charges are
319+ discussed.},
320+}
321+
322+@article{spiegelberg,
323+ author = {Spiegelberg, Herbert},
324+ title = {\mkbibquote{Intention} und \mkbibquote{Intentionalit{\"a}t} in
325+ der Scholastik, bei Brentano und Husserl},
326+ journaltitle = {Studia Philosophica},
327+ date = 1969,
328+ volume = 29,
329+ pages = {189-216},
330+ langid = {german},
331+ sorttitle = {Intention und Intentionalitat in der Scholastik, bei Brentano
332+ und Husserl},
333+ indexsorttitle= {Intention und Intentionalitat in der Scholastik, bei Brentano
334+ und Husserl},
335+ shorttitle = {Intention und Intentionalit{\"a}t},
336+ annotation = {An \texttt{article} entry. Note the \texttt{sorttitle} and
337+ \texttt{indexsorttitle} fields and the markup of the quotes in
338+ the database file},
339+}
340+
341+@article{springer,
342+ author = {Springer, Otto},
343+ title = {Mediaeval Pilgrim Routes from {Scandinavia} to {Rome}},
344+ journaltitle = {Mediaeval Studies},
345+ date = 1950,
346+ volume = 12,
347+ pages = {92-122},
348+ langid = {english},
349+ langidopts = {variant=british},
350+ shorttitle = {Mediaeval Pilgrim Routes},
351+ annotation = {A plain \texttt{article} entry},
352+}
353+
354+@article{weinberg,
355+ author = {Weinberg, Steven},
356+ title = {A Model of Leptons},
357+ journaltitle = {Phys.~Rev.~Lett.},
358+ date = 1967,
359+ volume = 19,
360+ pages = {1264-1266},
361+}
362+
363+@article{yoon,
364+ author = {Yoon, Myeong S. and Ryu, Dowook and Kim, Jeongryul and Ahn,
365+ Kyo Han},
366+ title = {Palladium pincer complexes with reduced bond angle strain:
367+ efficient catalysts for the {Heck} reaction},
368+ journaltitle = {Organometallics},
369+ date = 2006,
370+ volume = 25,
371+ number = 10,
372+ pages = {2409-2411},
373+ indextitle = {Palladium pincer complexes},
374+}
375+
376+@book{aristotle:anima,
377+ author = {Aristotle},
378+ title = {De Anima},
379+ date = 1907,
380+ editor = {Hicks, Robert Drew},
381+ publisher = cup,
382+ location = {Cambridge},
383+ keywords = {primary},
384+ langid = {english},
385+ langidopts = {variant=british},
386+ annotation = {A \texttt{book} entry with an \texttt{author} and an
387+ \texttt{editor}},
388+}
389+
390+@book{aristotle:physics,
391+ author = {Aristotle},
392+ title = {Physics},
393+ date = 1929,
394+ translator = {Wicksteed, P. H. and Cornford, F. M.},
395+ publisher = {G. P. Putnam},
396+ location = {New York},
397+ keywords = {primary},
398+ langid = {english},
399+ langidopts = {variant=american},
400+ shorttitle = {Physics},
401+ annotation = {A \texttt{book} entry with a \texttt{translator} field},
402+}
403+
404+@book{aristotle:poetics,
405+ author = {Aristotle},
406+ title = {Poetics},
407+ date = 1968,
408+ editor = {Lucas, D. W.},
409+ series = {Clarendon {Aristotle}},
410+ publisher = {Clarendon Press},
411+ location = {Oxford},
412+ keywords = {primary},
413+ langid = {english},
414+ langidopts = {variant=british},
415+ shorttitle = {Poetics},
416+ annotation = {A \texttt{book} entry with an \texttt{author} and an
417+ \texttt{editor} as well as a \texttt{series} field},
418+}
419+
420+@book{aristotle:rhetoric,
421+ author = {Aristotle},
422+ title = {The Rhetoric of {Aristotle} with a commentary by the late {Edward
423+ Meredith Cope}},
424+ date = 1877,
425+ editor = {Cope, Edward Meredith},
426+ commentator = {Cope, Edward Meredith},
427+ volumes = 3,
428+ publisher = cup,
429+ keywords = {primary},
430+ langid = {english},
431+ langidopts = {variant=british},
432+ sorttitle = {Rhetoric of Aristotle},
433+ indextitle = {Rhetoric of {Aristotle}, The},
434+ shorttitle = {Rhetoric},
435+ annotation = {A commented edition. Note the concatenation of the
436+ \texttt{editor} and \texttt{commentator} fields as well as the
437+ \texttt{volumes}, \texttt{sorttitle}, and \texttt{indextitle}
438+ fields},
439+}
440+
441+@book{augustine,
442+ author = {Augustine, Robert L.},
443+ title = {Heterogeneous catalysis for the synthetic chemist},
444+ date = 1995,
445+ publisher = {Marcel Dekker},
446+ location = {New York},
447+ langid = {english},
448+ langidopts = {variant=american},
449+ shorttitle = {Heterogeneous catalysis},
450+ annotation = {A plain \texttt{book} entry},
451+}
452+
453+@book{averroes/bland,
454+ author = {Averroes},
455+ title = {The Epistle on the Possibility of Conjunction with the Active
456+ Intellect by {Ibn Rushd} with the Commentary of {Moses Narboni}},
457+ date = 1982,
458+ editor = {Bland, Kalman P.},
459+ translator = {Bland, Kalman P.},
460+ series = {Moreshet: Studies in {Jewish} History, Literature and Thought},
461+ number = 7,
462+ publisher = {Jewish Theological Seminary of America},
463+ location = {New York},
464+ keywords = {primary},
465+ langid = {english},
466+ langidopts = {variant=american},
467+ indextitle = {Epistle on the Possibility of Conjunction, The},
468+ shorttitle = {Possibility of Conjunction},
469+ annotation = {A \texttt{book} entry with a \texttt{series} and a
470+ \texttt{number}. Note the concatenation of the \texttt{editor}
471+ and \texttt{translator} fields as well as the
472+ \texttt{indextitle} field},
473+}
474+
475+@book{averroes/hannes,
476+ author = {Averroes},
477+ title = {Des Averro{\"e}s Abhandlung: \mkbibquote{{\"U}ber die
478+ M{\"o}glichkeit der Conjunktion} oder \mkbibquote{{\"U}ber den
479+ materiellen Intellekt}},
480+ date = 1892,
481+ editor = {Hannes, Ludwig},
482+ translator = {Hannes, Ludwig},
483+ annotator = {Hannes, Ludwig},
484+ publisher = {C.~A. Kaemmerer},
485+ location = {Halle an der Saale},
486+ keywords = {primary},
487+ langid = {german},
488+ sorttitle = {Uber die Moglichkeit der Conjunktion},
489+ indexsorttitle= {Uber die Moglichkeit der Conjunktion},
490+ indextitle = {{\"U}ber die M{\"o}glichkeit der Conjunktion},
491+ shorttitle = {{\"U}ber die M{\"o}glichkeit der Conjunktion},
492+ annotation = {An annotated edition. Note the concatenation of the
493+ \texttt{editor}, \texttt{translator}, and \texttt{annotator}
494+ fields. Also note the \texttt{shorttitle},
495+ \texttt{indextitle}, \texttt{sorttitle}, and
496+ \texttt{indexsorttitle} fields},
497+}
498+
499+@book{averroes/hercz,
500+ author = {Averroes},
501+ title = {Drei Abhandlungen {\"u}ber die Conjunction des separaten
502+ Intellects mit dem Menschen},
503+ date = 1869,
504+ editor = {Hercz, J.},
505+ translator = {Hercz, J.},
506+ publisher = {S.~Hermann},
507+ location = {Berlin},
508+ keywords = {primary},
509+ langid = {german},
510+ indexsorttitle= {Drei Abhandlungen uber die Conjunction},
511+ indextitle = {Drei Abhandlungen {\"u}ber die Conjunction},
512+ subtitle = {Von Averroes (Vater und Sohn), aus dem Arabischen
513+ {\"u}bersetzt von Samuel Ibn Tibbon},
514+ shorttitle = {Drei Abhandlungen},
515+ annotation = {A \texttt{book} entry. Note the concatenation of the
516+ \texttt{editor} and \texttt{translator} fields as well as the
517+ \texttt{indextitle} and \texttt{indexsorttitle} fields},
518+}
519+
520+@book{cicero,
521+ author = {Cicero, Marcus Tullius},
522+ title = {De natura deorum. {\"U}ber das Wesen der G{\"o}tter},
523+ date = 1995,
524+ editor = {Blank-Sangmeister, Ursula},
525+ translator = {Blank-Sangmeister, Ursula},
526+ afterword = {Thraede, Klaus},
527+ language = {langlatin and langgerman},
528+ publisher = {Reclam},
529+ location = {Stuttgart},
530+ langid = {german},
531+ indextitle = {De natura deorum},
532+ shorttitle = {De natura deorum},
533+ annotation = {A bilingual edition of Cicero's \emph{De natura deorum}, with
534+ a German translation. Note the format of the \texttt{language}
535+ field in the database file, the concatenation of the
536+ \texttt{editor} and \texttt{translator} fields, and the
537+ \texttt{afterword} field},
538+}
539+
540+@book{coleridge,
541+ author = {Coleridge, Samuel Taylor},
542+ title = {Biographia literaria, or {Biographical} sketches of my literary
543+ life and opinions},
544+ date = 1983,
545+ editor = {Coburn, Kathleen and Engell, James and Bate, W. Jackson},
546+ maintitle = {The collected works of {Samuel Taylor Coleridge}},
547+ volume = 7,
548+ part = 2,
549+ series = {Bollingen Series},
550+ number = 75,
551+ publisher = {Routledge {and} Kegan Paul},
552+ location = {London},
553+ langid = {english},
554+ langidopts = {variant=british},
555+ indextitle = {Biographia literaria},
556+ shorttitle = {Biographia literaria},
557+ annotation = {One (partial) volume of a multivolume book. This is a
558+ \texttt{book} entry with a \texttt{volume} and a \texttt{part}
559+ field which explicitly refers to the second (physical) part of
560+ the seventh (logical) volume. Also note the \texttt{series}
561+ and \texttt{number} fields},
562+}
563+
564+@book{companion,
565+ author = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},
566+ title = {The {LaTeX} Companion},
567+ date = 1994,
568+ edition = 1,
569+ publisher = {Addison-Wesley},
570+ location = {Reading, Mass.},
571+ pagetotal = 528,
572+ langid = {english},
573+ langidopts = {variant=american},
574+ sorttitle = {LaTeX Companion},
575+ indextitle = {LaTeX Companion, The},
576+ shorttitle = {LaTeX Companion},
577+ annotation = {A book with three authors. Note the formatting of the author
578+ list. By default, only the first name is reversed in the
579+ bibliography},
580+}
581+
582+@book{cotton,
583+ author = {Cotton, Frank Albert and Wilkinson, Geoffrey and Murillio,
584+ Carlos A. and Bochmann, Manfred},
585+ title = {Advanced inorganic chemistry},
586+ date = 1999,
587+ edition = 6,
588+ publisher = {Wiley},
589+ location = {Chichester},
590+ langid = {english},
591+ langidopts = {variant=british},
592+ annotation = {A \texttt{book} entry with \arabic{author} authors and an
593+ \texttt{edition} field. By default, long \texttt{author} and
594+ \texttt{editor} lists are automatically truncated. This is
595+ configurable},
596+}
597+
598+@book{gerhardt,
599+ author = {Gerhardt, Michael J.},
600+ title = {The Federal Appointments Process},
601+ date = 2000,
602+ publisher = {Duke University Press},
603+ location = {Durham and London},
604+ langid = {english},
605+ langidopts = {variant=american},
606+ sorttitle = {Federal Appointments Process},
607+ indextitle = {Federal Appointments Process, The},
608+ subtitle = {A Constitutional and Historical Analysis},
609+ shorttitle = {Federal Appointments Process},
610+ annotation = {This is a \texttt{book} entry. Note the format of the
611+ \texttt{location} field as well as the \texttt{sorttitle} and
612+ \texttt{indextitle} fields},
613+}
614+
615+@book{gonzalez,
616+ author = {Gonzalez, Ray},
617+ title = {The Ghost of {John Wayne} and Other Stories},
618+ date = 2001,
619+ publisher = {The University of Arizona Press},
620+ location = {Tucson},
621+ isbn = {0-816-52066-6},
622+ langid = {english},
623+ langidopts = {variant=american},
624+ sorttitle = {Ghost of John Wayne and Other Stories},
625+ indextitle = {Ghost of {John Wayne} and Other Stories, The},
626+ shorttitle = {Ghost of {John Wayne}},
627+ annotation = {A collection of short stories. This is a \texttt{book} entry.
628+ Note the \texttt{sorttitle} and \texttt{indextitle} fields in
629+ the database file. There's also an \texttt{isbn} field},
630+}
631+
632+@book{hammond,
633+ author = {Hammond, Christopher},
634+ title = {The basics of crystallography and diffraction},
635+ date = 1997,
636+ publisher = {International Union of Crystallography and Oxford University
637+ Press},
638+ location = {Oxford},
639+ langid = {english},
640+ langidopts = {variant=british},
641+ sorttitle = {Basics of crystallography and diffraction},
642+ indextitle = {Basics of crystallography and diffraction, The},
643+ shorttitle = {Crystallography and diffraction},
644+ annotation = {A \texttt{book} entry. Note the \texttt{sorttitle} and
645+ \texttt{indextitle} fields as well as the format of the
646+ \texttt{publisher} field},
647+}
648+
649+@book{iliad,
650+ author = {Homer},
651+ title = {Die Ilias},
652+ date = 2004,
653+ translator = {Schadewaldt, Wolfgang},
654+ introduction = {Latacz, Joachim},
655+ edition = 3,
656+ publisher = {Artemis \& Winkler},
657+ location = {D{\"u}sseldorf and Z{\"u}rich},
658+ langid = {german},
659+ sorttitle = {Ilias},
660+ indextitle = {Ilias, Die},
661+ shorttitle = {Ilias},
662+ annotation = {A German translation of the \emph{Iliad}. Note the
663+ \texttt{translator} and \texttt{introduction} fields and the
664+ format of the \texttt{location} field in the database
665+ file. Also note the \texttt{sorttitle} and \texttt{indextitle}
666+ fields},
667+}
668+
669+@book{knuth:ct,
670+ author = {Knuth, Donald E.},
671+ title = {Computers \& Typesetting},
672+ date = {1984/1986},
673+ volumes = 5,
674+ publisher = {Addison-Wesley},
675+ location = {Reading, Mass.},
676+ langid = {english},
677+ langidopts = {variant=american},
678+ sortyear = {1984-0},
679+ sorttitle = {Computers & Typesetting},
680+ indexsorttitle= {Computers & Typesetting},
681+ annotation = {A five-volume book cited as a whole. This is a \texttt{book}
682+ entry, note the \texttt{volumes} field},
683+}
684+
685+@book{knuth:ct:a,
686+ author = {Knuth, Donald E.},
687+ title = {The {\TeX} book},
688+ date = 1984,
689+ maintitle = {Computers \& Typesetting},
690+ volume = {A},
691+ publisher = {Addison-Wesley},
692+ location = {Reading, Mass.},
693+ langid = {english},
694+ langidopts = {variant=american},
695+ sortyear = {1984-1},
696+ sorttitle = {Computers & Typesetting A},
697+ indexsorttitle= {The TeXbook},
698+ indextitle = {\protect\TeX book, The},
699+ shorttitle = {\TeX book},
700+ annotation = {The first volume of a five-volume book. Note the
701+ \texttt{sorttitle} and \texttt{sortyear} fields. We want this
702+ volume to be listed after the entry referring to the entire
703+ five-volume set. Also note the \texttt{indextitle} and
704+ \texttt{indexsorttitle} fields. Indexing packages that don't
705+ generate robust index entries require some control sequences
706+ to be protected from expansion},
707+}
708+
709+@book{knuth:ct:b,
710+ author = {Knuth, Donald E.},
711+ title = {\TeX: The Program},
712+ date = 1986,
713+ maintitle = {Computers \& Typesetting},
714+ volume = {B},
715+ publisher = {Addison-Wesley},
716+ location = {Reading, Mass.},
717+ langid = {english},
718+ langidopts = {variant=american},
719+ sortyear = {1986-1},
720+ sorttitle = {Computers & Typesetting B},
721+ indexsorttitle= {TeX: The Program},
722+ shorttitle = {\TeX},
723+ annotation = {The second volume of a five-volume book. Note the
724+ \texttt{sorttitle} and \texttt{sortyear} fields. Also note the
725+ \texttt{indexsorttitle} field},
726+}
727+
728+@book{knuth:ct:c,
729+ author = {Knuth, Donald E.},
730+ title = {The {METAFONTbook}},
731+ date = 1986,
732+ maintitle = {Computers \& Typesetting},
733+ volume = {C},
734+ publisher = {Addison-Wesley},
735+ location = {Reading, Mass.},
736+ langid = {english},
737+ langidopts = {variant=american},
738+ sortyear = {1986-2},
739+ sorttitle = {Computers & Typesetting C},
740+ indextitle = {METAFONTbook, The},
741+ shorttitle = {METAFONTbook},
742+ annotation = {The third volume of a five-volume book. Note the
743+ \texttt{sorttitle} and \texttt{sortyear} fields as well as the
744+ \texttt{indextitle} field},
745+}
746+
747+@book{knuth:ct:d,
748+ author = {Knuth, Donald E.},
749+ title = {METAFONT: The Program},
750+ date = 1986,
751+ maintitle = {Computers \& Typesetting},
752+ volume = {D},
753+ publisher = {Addison-Wesley},
754+ location = {Reading, Mass.},
755+ langid = {english},
756+ langidopts = {variant=american},
757+ sortyear = {1986-3},
758+ sorttitle = {Computers & Typesetting D},
759+ shorttitle = {METAFONT},
760+ annotation = {The fourth volume of a five-volume book. Note the
761+ \texttt{sorttitle} and \texttt{sortyear} fields},
762+}
763+
764+@book{knuth:ct:e,
765+ author = {Knuth, Donald E.},
766+ title = {{Computer Modern} Typefaces},
767+ date = 1986,
768+ maintitle = {Computers \& Typesetting},
769+ volume = {E},
770+ publisher = {Addison-Wesley},
771+ location = {Reading, Mass.},
772+ langid = {english},
773+ langidopts = {variant=american},
774+ sortyear = {1986-4},
775+ sorttitle = {Computers & Typesetting E},
776+ annotation = {The fifth volume of a five-volume book. Note the
777+ \texttt{sorttitle} and \texttt{sortyear} fields},
778+}
779+
780+@book{knuth:ct:related,
781+ author = {Knuth, Donald E.},
782+ title = {Computers \& Typesetting},
783+ date = {1984/1986},
784+ volumes = 5,
785+ publisher = {Addison-Wesley},
786+ location = {Reading, Mass.},
787+ langid = {english},
788+ langidopts = {variant=american},
789+ sortyear = {1984-0},
790+ sorttitle = {Computers & Typesetting},
791+ indexsorttitle= {Computers & Typesetting},
792+ related = {knuth:ct:a,knuth:ct:b,knuth:ct:c,knuth:ct:d,knuth:ct:e},
793+ relatedtype = {multivolume},
794+ annotation = {A five-volume book cited as a whole and related to its
795+ individual volumes. Note the \texttt{related} and
796+ \texttt{relatedtype} fields},
797+}
798+
799+@book{kullback,
800+ author = {Kullback, Solomon},
801+ title = {Information Theory and Statistics},
802+ year = 1959,
803+ publisher = {John Wiley \& Sons},
804+ location = {New York},
805+ langid = {english},
806+ langidopts = {variant=american},
807+}
808+
809+@book{kullback:reprint,
810+ author = {Kullback, Solomon},
811+ title = {Information Theory and Statistics},
812+ year = 1997,
813+ publisher = {Dover Publications},
814+ location = {New York},
815+ origyear = 1959,
816+ origpublisher= {John Wiley \& Sons},
817+ langid = {english},
818+ langidopts = {variant=american},
819+ annotation = {A reprint of the \texttt{kullback} entry. Note the format of
820+ \texttt{origyear} and \texttt{origpublisher}. These fields are
821+ not used by the standard bibliography styles},
822+}
823+
824+@book{kullback:related,
825+ author = {Kullback, Solomon},
826+ title = {Information Theory and Statistics},
827+ year = 1997,
828+ publisher = {Dover Publications},
829+ location = {New York},
830+ langid = {english},
831+ langidopts = {variant=american},
832+ related = {kullback},
833+ relatedtype = {origpubin},
834+ annotation = {A reprint of the \texttt{kullback} entry. Note the format of
835+ the \texttt{related} and \texttt{relatedtype} fields},
836+}
837+
838+@book{malinowski,
839+ author = {Malinowski, Bronis{\l}aw},
840+ title = {Argonauts of the {Western Pacific}},
841+ date = 1972,
842+ edition = 8,
843+ publisher = {Routledge {and} Kegan Paul},
844+ location = {London},
845+ langid = {english},
846+ langidopts = {variant=british},
847+ subtitle = {An account of native enterprise and adventure in the
848+ Archipelagoes of {Melanesian New Guinea}},
849+ shorttitle = {Argonauts},
850+ annotation = {This is a \texttt{book} entry. Note the format of the
851+ \texttt{publisher} and \texttt{edition} fields as well as the
852+ \texttt{subtitle} field},
853+}
854+
855+@book{maron,
856+ author = {Maron, Monika},
857+ title = {Animal Triste},
858+ date = 2000,
859+ translator = {Brigitte Goldstein},
860+ origlanguage = {german},
861+ publisher = {University of Nebraska Press},
862+ location = {Lincoln},
863+ langid = {english},
864+ langidopts = {variant=american},
865+ shorttitle = {Animal Triste},
866+ annotation = {An English translation of a German novel with a French title.
867+ In other words: a \texttt{book} entry with a
868+ \texttt{translator} field. Note the \texttt{origlanguage}
869+ field which is concatenated with the \texttt{translator}},
870+}
871+
872+@book{massa,
873+ author = {Werner Massa},
874+ title = {Crystal structure determination},
875+ date = 2004,
876+ edition = 2,
877+ publisher = {Spinger},
878+ location = {Berlin},
879+ langid = {english},
880+ langidopts = {variant=british},
881+ annotation = {A \texttt{book} entry with an \texttt{edition} field},
882+}
883+
884+@article{moore,
885+ author = {Moore, Gordon E.},
886+ title = {Cramming more components onto integrated circuits},
887+ journaltitle = {Electronics},
888+ year = 1965,
889+ volume = 38,
890+ number = 8,
891+ pages = {114-117},
892+ langid = {english},
893+ langidopts = {variant=american},
894+}
895+
896+@article{moore:related,
897+ author = {Moore, Gordon E.},
898+ title = {Cramming more components onto integrated circuits},
899+ journaltitle = {Proceedings of the {IEEE}},
900+ year = 1998,
901+ volume = 86,
902+ number = 1,
903+ pages = {82-85},
904+ langid = {english},
905+ langidopts = {variant=american},
906+ related = {moore},
907+ relatedtype = {reprintfrom},
908+ annotation = {A reprint of Moore's law. Note the \texttt{related} and
909+ \texttt{relatedtype} fields},
910+}
911+
912+@book{nietzsche:ksa,
913+ author = {Nietzsche, Friedrich},
914+ title = {S{\"a}mtliche Werke},
915+ date = 1988,
916+ editor = {Colli, Giorgio and Montinari, Mazzino},
917+ edition = 2,
918+ volumes = 15,
919+ publisher = dtv # { and Walter de Gruyter},
920+ location = {M{\"u}nchen and Berlin and New York},
921+ langid = {german},
922+ sortyear = {1988-0},
923+ sorttitle = {Werke-00-000},
924+ indexsorttitle= {Samtliche Werke},
925+ subtitle = {Kritische Studienausgabe},
926+ annotation = {The critical edition of Nietzsche's works. This is a
927+ \texttt{book} entry referring to a 15-volume work as a
928+ whole. Note the \texttt{volumes} field and the format of the
929+ \texttt{publisher} and \texttt{location} fields in the
930+ database file. Also note the \texttt{sorttitle} and
931+ \texttt{sortyear} fields which are used to fine-tune the
932+ sorting order of the bibliography. We want this item listed
933+ first in the bibliography},
934+}
935+
936+@book{nietzsche:ksa1,
937+ author = {Nietzsche, Friedrich},
938+ title = {Die Geburt der Trag{\"o}die. Unzeitgem{\"a}{\ss}e
939+ Betrachtungen I--IV. Nachgelassene Schriften 1870--1973},
940+ date = 1988,
941+ editor = {Colli, Giorgio and Montinari, Mazzino},
942+ maintitle = {S{\"a}mtliche Werke},
943+ mainsubtitle = {Kritische Studienausgabe},
944+ volume = 1,
945+ edition = 2,
946+ publisher = dtv # { and Walter de Gruyter},
947+ location = {M{\"u}nchen and Berlin and New York},
948+ langid = {german},
949+ sortyear = {1988-1},
950+ sorttitle = {Werke-01-000},
951+ indexsorttitle= {Samtliche Werke I},
952+ bookauthor = {Nietzsche, Friedrich},
953+ indextitle = {S{\"a}mtliche Werke I},
954+ shorttitle = {S{\"a}mtliche Werke I},
955+ annotation = {A single volume from the critical edition of Nietzsche's
956+ works. This \texttt{book} entry explicitly refers to the first
957+ volume only. Note the \texttt{title} and \texttt{maintitle}
958+ fields. Also note the \texttt{sorttitle} and \texttt{sortyear}
959+ fields. We want this entry to be listed after the entry
960+ referring to the entire edition},
961+}
962+
963+@book{nussbaum,
964+ author = {Nussbaum, Martha},
965+ title = {Aristotle's \mkbibquote{De Motu Animalium}},
966+ date = 1978,
967+ publisher = pup,
968+ location = {Princeton},
969+ keywords = {secondary},
970+ langid = {english},
971+ langidopts = {variant=american},
972+ sorttitle = {Aristotle's De Motu Animalium},
973+ indexsorttitle= {Aristotle's De Motu Animalium},
974+ annotation = {A \texttt{book} entry. Note the \texttt{sorttitle} and
975+ \texttt{indexsorttitle} fields and the markup of the quotes in
976+ the database file},
977+}
978+
979+@book{piccato,
980+ author = {Piccato, Pablo},
981+ title = {City of Suspects},
982+ date = 2001,
983+ publisher = {Duke University Press},
984+ location = {Durham and London},
985+ langid = {english},
986+ langidopts = {variant=american},
987+ subtitle = {Crime in {Mexico City}, 1900--1931},
988+ shorttitle = {City of Suspects},
989+ annotation = {This is a \texttt{book} entry. Note the format of the
990+ \texttt{location} field in the database file},
991+}
992+
993+@book{vangennep,
994+ author = {van Gennep, Arnold},
995+ title = {Les rites de passage},
996+ date = 1909,
997+ publisher = {Nourry},
998+ location = {Paris},
999+ options = {useprefix},
1000+ langid = {french},
1001+ sorttitle = {Rites de passage},
1002+ indextitle = {Rites de passage, Les},
1003+ shorttitle = {Rites de passage},
1004+ annotation = {A \texttt{book} entry. Note the format of the printed name and
1005+ compare the \texttt{useprefix} option in the \texttt{options}
1006+ field as well as \texttt{brandt} and \texttt{geer}},
1007+}
1008+
1009+@book{vangennep:trans,
1010+ author = {van Gennep, Arnold},
1011+ title = {The Rites of Passage},
1012+ year = 1960,
1013+ translator = {Vizedom, Monika B. and Caffee, Gabrielle L.},
1014+ language = {english},
1015+ origlanguage = {french},
1016+ publisher = {University of Chicago Press},
1017+ options = {useprefix},
1018+ indextitle = {Rites of Passage, The},
1019+ sorttitle = {Rites of Passage},
1020+ shorttitle = {Rites of Passage},
1021+ langid = {english},
1022+ langidopts = {variant=american},
1023+ annotation = {A translation of the \texttt{vangennep} entry. Note the
1024+ \texttt{translator} and \texttt{origlanguage} fields. Compare
1025+ with the \texttt{vangennep:related} entry.},
1026+}
1027+
1028+@book{vangennep:related,
1029+ author = {van Gennep, Arnold},
1030+ title = {Les rites de passage},
1031+ date = 1909,
1032+ publisher = {Nourry},
1033+ location = {Paris},
1034+ options = {useprefix},
1035+ langid = {french},
1036+ related = {vizedom:related},
1037+ relatedtype = {bytranslator},
1038+ sorttitle = {Rites de passage},
1039+ indextitle = {Rites de passage, Les},
1040+ shorttitle = {Rites de passage},
1041+ annotation = {A variant of the \texttt{vangennep} entry related to its
1042+ translation. Note the format of the \texttt{related} and
1043+ \texttt{relatedtype} fields},
1044+}
1045+
1046+@book{vizedom:related,
1047+ title = {The Rites of Passage},
1048+ year = 1960,
1049+ translator = {Vizedom, Monika B. and Caffee, Gabrielle L.},
1050+ language = {english},
1051+ publisher = {University of Chicago Press},
1052+ langid = {english},
1053+ langidopts = {variant=american},
1054+ options = {usetranslator},
1055+ related = {vangennep},
1056+ relatedtype = {translationof},
1057+ indextitle = {Rites of Passage, The},
1058+ sorttitle = {Rites of Passage},
1059+ shorttitle = {Rites of Passage},
1060+ annotation = {A translated work from \texttt{vangennep}. Note the format of
1061+ the \texttt{related} and \texttt{relatedtype} fields},
1062+}
1063+
1064+@book{vazques-de-parga,
1065+ author = {V{\'a}zques{ de }Parga, Luis and Lacarra, Jos{\'e} Mar{\'i}a
1066+ and Ur{\'i}a R{\'i}u, Juan},
1067+ title = {Las Peregrinaciones a Santiago de Compostela},
1068+ date = 1993,
1069+ volumes = 3,
1070+ note = {Ed. facs. de la realizada en 1948--49},
1071+ publisher = {Iberdrola},
1072+ location = {Pamplona},
1073+ langid = {spanish},
1074+ sorttitle = {Peregrinaciones a Santiago de Compostela},
1075+ indextitle = {Peregrinaciones a Santiago de Compostela, Las},
1076+ shorttitle = {Peregrinaciones},
1077+ annotation = {A multivolume book cited as a whole. This is a \texttt{book}
1078+ entry with \texttt{volumes}, \texttt{note},
1079+ \texttt{sorttitle}, and \texttt{indextitle} fields},
1080+}
1081+
1082+@book{wilde,
1083+ author = {Wilde, Oscar},
1084+ title = {The Importance of Being Earnest: A Trivial Comedy for Serious
1085+ People},
1086+ year = 1899,
1087+ series = {English and {American} drama of the Nineteenth Century},
1088+ publisher = {Leonard Smithers {and} Company},
1089+ eprint = {4HIWAAAAYAAJ},
1090+ eprinttype = {googlebooks},
1091+ annotation = {A \texttt{book} with \texttt{eprint} and \texttt{eprinttype}
1092+ fields.},
1093+}
1094+
1095+@book{worman,
1096+ author = {Worman, Nancy},
1097+ title = {The Cast of Character},
1098+ date = 2002,
1099+ publisher = {University of Texas Press},
1100+ location = {Austin},
1101+ langid = {english},
1102+ langidopts = {variant=american},
1103+ sorttitle = {Cast of Character},
1104+ indextitle = {Cast of Character, The},
1105+ subtitle = {Style in {Greek} Literature},
1106+ shorttitle = {Cast of Character},
1107+ annotation = {A \texttt{book} entry. Note the \texttt{sorttitle} and
1108+ \texttt{indextitle} fields},
1109+}
1110+
1111+@collection{britannica,
1112+ editor = {Preece, Warren E.},
1113+ title = {The {New Encyclop{\ae}dia Britannica}},
1114+ date = 2003,
1115+ edition = 15,
1116+ volumes = 32,
1117+ publisher = {Encyclop{\ae}dia Britannica},
1118+ location = {Chicago, Ill.},
1119+ options = {useeditor=false},
1120+ label = {EB},
1121+ langid = {english},
1122+ langidopts = {variant=british},
1123+ sorttitle = {Encyclop{\ae}dia Britannica},
1124+ indextitle = {{Encyclop{\ae}dia Britannica}, The {New}},
1125+ shorttitle = {{Encyclop{\ae}dia Britannica}},
1126+ annotation = {This is a \texttt{collection} entry for an encyclopedia. Note
1127+ the \texttt{useeditor} option in the \texttt{options} field as
1128+ well as the \texttt{sorttitle} field. We want this entry to be
1129+ cited and alphabetized by title even though there is an
1130+ editor. In addition to that, we want the title to be
1131+ alphabetized under \enquote*{E} rather than \enquote*{T}. Also
1132+ note the \texttt{label} field which is provided for
1133+ author-year citation styles},
1134+}
1135+
1136+@collection{gaonkar,
1137+ editor = {Gaonkar, Dilip Parameshwar},
1138+ title = {Alternative Modernities},
1139+ date = 2001,
1140+ publisher = {Duke University Press},
1141+ location = {Durham and London},
1142+ isbn = {0-822-32714-7},
1143+ langid = {english},
1144+ langidopts = {variant=american},
1145+ annotation = {This is a \texttt{collection} entry. Note the format of the
1146+ \texttt{location} field in the database file as well as the
1147+ \texttt{isbn} field},
1148+}
1149+
1150+@InCollection{gaonkar:in,
1151+ author = {Gaonkar, Dilip Parameshwar},
1152+ editor = {Gaonkar, Dilip Parameshwar},
1153+ title = {On Alternative Modernities},
1154+ date = 2001,
1155+ booktitle = {Alternative Modernities},
1156+ publisher = {Duke University Press},
1157+ location = {Durham and London},
1158+ isbn = {0-822-32714-7},
1159+ pages = {1-23},
1160+}
1161+
1162+@collection{jaffe,
1163+ editor = {Jaff{\'e}, Philipp},
1164+ title = {Regesta Pontificum Romanorum ab condita ecclesia ad annum post
1165+ Christum natum \textsc{mcxcviii}},
1166+ date = {1885/1888},
1167+ editora = {Loewenfeld, Samuel and Kaltenbrunner, Ferdinand and Ewald,
1168+ Paul},
1169+ edition = 2,
1170+ volumes = 2,
1171+ location = {Leipzig},
1172+ langid = {latin},
1173+ editoratype = {redactor},
1174+ indextitle = {Regesta Pontificum Romanorum},
1175+ shorttitle = {Regesta Pontificum Romanorum},
1176+ annotation = {A \texttt{collection} entry with \texttt{edition} and
1177+ \texttt{volumes} fields. Note the \texttt{editora} and
1178+ \texttt{editoratype} fields},
1179+}
1180+
1181+@collection{westfahl:frontier,
1182+ editor = {Westfahl, Gary},
1183+ title = {Space and Beyond},
1184+ date = 2000,
1185+ subtitle = {The Frontier Theme in Science Fiction},
1186+ publisher = {Greenwood},
1187+ location = {Westport, Conn. and London},
1188+ langid = {english},
1189+ langidopts = {variant=american},
1190+ booktitle = {Space and Beyond},
1191+ booksubtitle = {The Frontier Theme in Science Fiction},
1192+ annotation = {This is a \texttt{collection} entry. Note the format of the
1193+ \texttt{location} field as well as the \texttt{subtitle} and
1194+ \texttt{booksubtitle} fields},
1195+}
1196+
1197+@inbook{kant:kpv,
1198+ title = {Kritik der praktischen Vernunft},
1199+ date = 1968,
1200+ author = {Kant, Immanuel},
1201+ booktitle = {Kritik der praktischen Vernunft. Kritik der Urtheilskraft},
1202+ bookauthor = {Kant, Immanuel},
1203+ maintitle = {Kants Werke. Akademie Textausgabe},
1204+ volume = 5,
1205+ publisher = {Walter de Gruyter},
1206+ location = {Berlin},
1207+ pages = {1-163},
1208+ shorthand = {KpV},
1209+ langid = {german},
1210+ shorttitle = {Kritik der praktischen Vernunft},
1211+ annotation = {An edition of Kant's \emph{Collected Works}, volume five. This
1212+ is an \texttt{inbook} entry which explicitly refers to the
1213+ \emph{Critique of Practical Reason} only, not to the entire
1214+ fifth volume. Note the \texttt{author} and \texttt{bookauthor}
1215+ fields in the database file. By default, the
1216+ \texttt{bookauthor} is omitted if the values of the
1217+ \texttt{author} and \texttt{bookauthor} fields are identical},
1218+}
1219+
1220+@inbook{kant:ku,
1221+ title = {Kritik der Urtheilskraft},
1222+ date = 1968,
1223+ author = {Kant, Immanuel},
1224+ booktitle = {Kritik der praktischen Vernunft. Kritik der Urtheilskraft},
1225+ bookauthor = {Kant, Immanuel},
1226+ maintitle = {Kants Werke. Akademie Textausgabe},
1227+ volume = 5,
1228+ publisher = {Walter de Gruyter},
1229+ location = {Berlin},
1230+ pages = {165-485},
1231+ shorthand = {KU},
1232+ langid = {german},
1233+ annotation = {An edition of Kant's \emph{Collected Works}, volume five. This
1234+ is an \texttt{inbook} entry which explicitly refers to the
1235+ \emph{Critique of Judgment} only, not to the entire fifth
1236+ volume},
1237+}
1238+
1239+@inbook{nietzsche:historie,
1240+ title = {Unzeitgem{\"a}sse Betrachtungen. Zweites St{\"u}ck},
1241+ date = 1988,
1242+ author = {Nietzsche, Friedrich},
1243+ booktitle = {Die Geburt der Trag{\"o}die. Unzeitgem{\"a}{\ss}e
1244+ Betrachtungen I--IV. Nachgelassene Schriften 1870--1973},
1245+ bookauthor = {Nietzsche, Friedrich},
1246+ editor = {Colli, Giorgio and Montinari, Mazzino},
1247+ subtitle = {Vom Nutzen und Nachtheil der Historie f{\"u}r das Leben},
1248+ maintitle = {S{\"a}mtliche Werke},
1249+ mainsubtitle = {Kritische Studienausgabe},
1250+ volume = 1,
1251+ publisher = dtv # { and Walter de Gruyter},
1252+ location = {M{\"u}nchen and Berlin and New York},
1253+ pages = {243-334},
1254+ langid = {german},
1255+ sortyear = {1988-2},
1256+ sorttitle = {Werke-01-243},
1257+ indexsorttitle= {Vom Nutzen und Nachtheil der Historie fur das Leben},
1258+ indextitle = {Vom Nutzen und Nachtheil der Historie f{\"u}r das Leben},
1259+ shorttitle = {Vom Nutzen und Nachtheil der Historie},
1260+ annotation = {A single essay from the critical edition of Nietzsche's works.
1261+ This \texttt{inbook} entry explicitly refers to an essay found
1262+ in the first volume. Note the \texttt{title},
1263+ \texttt{booktitle}, and \texttt{maintitle} fields. Also note
1264+ the \texttt{sorttitle} and \texttt{sortyear} fields. We want
1265+ this entry to be listed after the entry referring to the
1266+ entire first volume},
1267+}
1268+
1269+@incollection{brandt,
1270+ author = {von Brandt, Ahasver and Erich Hoffmann},
1271+ editor = {Ferdinand Seibt},
1272+ title = {Die nordischen L{\"a}nder von der Mitte des 11.~Jahrhunderts
1273+ bis 1448},
1274+ date = 1987,
1275+ booktitle = {Europa im Hoch- und Sp{\"a}tmittelalter},
1276+ series = {Handbuch der europ{\"a}ischen Geschichte},
1277+ number = 2,
1278+ publisher = {Klett-Cotta},
1279+ location = {Stuttgart},
1280+ pages = {884-917},
1281+ options = {useprefix=false},
1282+ langid = {german},
1283+ indexsorttitle= {Nordischen Lander von der Mitte des 11. Jahrhunderts bis
1284+ 1448},
1285+ indextitle = {Nordischen L{\"a}nder von der Mitte des 11.~Jahrhunderts bis
1286+ 1448, Die},
1287+ shorttitle = {Die nordischen L{\"a}nder},
1288+ annotation = {An \texttt{incollection} entry with a \texttt{series} and a
1289+ \texttt{number}. Note the format of the printed name and
1290+ compare the \texttt{useprefix} option in the \texttt{options}
1291+ field as well as \texttt{vangennep}. Also note the
1292+ \texttt{indextitle, and \texttt{indexsorttitle} fields}},
1293+}
1294+
1295+@incollection{hyman,
1296+ author = {Arthur Hyman},
1297+ editor = {O'Meara, Dominic J.},
1298+ title = {Aristotle's Theory of the Intellect and its Interpretation by
1299+ {Averroes}},
1300+ date = 1981,
1301+ booktitle = {Studies in {Aristotle}},
1302+ series = {Studies in Philosophy and the History of Philosophy},
1303+ number = 9,
1304+ publisher = {The Catholic University of America Press},
1305+ location = {Washington, D.C.},
1306+ pages = {161-191},
1307+ keywords = {secondary},
1308+ langid = {english},
1309+ langidopts = {variant=american},
1310+ indextitle = {Aristotle's Theory of the Intellect},
1311+ shorttitle = {Aristotle's Theory of the Intellect},
1312+ annotation = {An \texttt{incollection} entry with a \texttt{series} and
1313+ \texttt{number} field},
1314+}
1315+
1316+@incollection{pines,
1317+ author = {Pines, Shlomo},
1318+ editor = {Twersky, Isadore},
1319+ title = {The Limitations of Human Knowledge According to {Al-Farabi}, {ibn
1320+ Bajja}, and {Maimonides}},
1321+ date = 1979,
1322+ booktitle = {Studies in Medieval {Jewish} History and Literature},
1323+ publisher = hup,
1324+ location = {Cambridge, Mass.},
1325+ pages = {82-109},
1326+ keywords = {secondary},
1327+ langid = {english},
1328+ langidopts = {variant=american},
1329+ indextitle = {Limitations of Human Knowledge According to {Al-Farabi}, {ibn
1330+ Bajja}, and {Maimonides}, The},
1331+ shorttitle = {Limitations of Human Knowledge},
1332+ annotation = {A typical \texttt{incollection} entry. Note the
1333+ \texttt{indextitle} field},
1334+}
1335+
1336+@inproceedings{moraux,
1337+ author = {Moraux, Paul},
1338+ editor = {Lloyd, G. E. R. and Owen, G. E. L.},
1339+ title = {Le \emph{De Anima} dans la tradition gr{\`e}cque},
1340+ date = 1979,
1341+ booktitle = {Aristotle on Mind and the Senses},
1342+ subtitle = {Quelques aspects de l'interpretation du trait{\'e}, de
1343+ Theophraste {\`a} Themistius},
1344+ booktitleaddon= {Proceedings of the Seventh Symposium Aristotelicum},
1345+ eventdate = 1975,
1346+ publisher = cup,
1347+ location = {Cambridge},
1348+ pages = {281-324},
1349+ keywords = {secondary},
1350+ langid = {french},
1351+ indexsorttitle= {De Anima dans la tradition grecque},
1352+ indextitle = {\emph{De Anima} dans la tradition gr{\`e}cque, Le},
1353+ shorttitle = {\emph{De Anima} dans la tradition gr{\`e}cque},
1354+ annotation = {This is a typical \texttt{inproceedings} entry. Note the
1355+ \texttt{booksubtitle}, \texttt{shorttitle},
1356+ \texttt{indextitle}, and \texttt{indexsorttitle} fields. Also
1357+ note the \texttt{eventdate} field.},
1358+}
1359+
1360+@inproceedings{salam,
1361+ author = {Salam, Abdus},
1362+ editor = {Svartholm, Nils},
1363+ title = {Weak and Electromagnetic Interactions},
1364+ date = 1968,
1365+ booktitle = {Elementary particle theory},
1366+ booksubtitle = {Relativistic groups and analyticity},
1367+ booktitleaddon= {Proceedings of the {Eighth Nobel Symposium}},
1368+ eventdate = {1968-05-19/1968-05-25},
1369+ venue = {Aspen{\"a}sgarden, Lerum},
1370+ publisher = {Almquist \& Wiksell},
1371+ location = {Stockholm},
1372+ pages = {367-377},
1373+}
1374+
1375+@manual{cms,
1376+ title = {The {Chicago} Manual of Style},
1377+ date = 2003,
1378+ subtitle = {The Essential Guide for Writers, Editors, and Publishers},
1379+ edition = 15,
1380+ publisher = {University of Chicago Press},
1381+ location = {Chicago, Ill.},
1382+ isbn = {0-226-10403-6},
1383+ label = {CMS},
1384+ langid = {english},
1385+ langidopts = {variant=american},
1386+ sorttitle = {Chicago Manual of Style},
1387+ indextitle = {Chicago Manual of Style, The},
1388+ shorttitle = {Chicago Manual of Style},
1389+ annotation = {This is a \texttt{manual} entry without an \texttt{author} or
1390+ \texttt{editor}. Note the \texttt{label} field in the database
1391+ file which is provided for author-year citation styles. Also
1392+ note the \texttt{sorttitle} and \texttt{indextitle} fields. By
1393+ default, all entries without an \texttt{author} or
1394+ \texttt{editor} are alphabetized by \texttt{title} but we want
1395+ this entry to be alphabetized under \enquote*{C} rather than
1396+ \enquote*{T}. There's also an \texttt{isbn} field},
1397+}
1398+
1399+@online{baez/online,
1400+ author = {Baez, John C. and Lauda, Aaron D.},
1401+ title = {Higher-Dimensional Algebra {V}: 2-Groups},
1402+ date = {2004-10-27},
1403+ version = 3,
1404+ langid = {english},
1405+ langidopts = {variant=american},
1406+ eprinttype = {arxiv},
1407+ eprint = {math/0307200v3},
1408+ annotation = {An \texttt{online} reference from arXiv. Note the
1409+ \texttt{eprint} and \texttt{eprinttype} fields. Compare
1410+ \texttt{baez\slash article} which is the same item given as an
1411+ \texttt{article} entry with eprint information},
1412+}
1413+
1414+@online{ctan,
1415+ title = {CTAN},
1416+ date = 2006,
1417+ url = {http://www.ctan.org},
1418+ subtitle = {The {Comprehensive TeX Archive Network}},
1419+ urldate = {2006-10-01},
1420+ label = {CTAN},
1421+ langid = {english},
1422+ langidopts = {variant=american},
1423+ annotation = {This is an \texttt{online} entry. The \textsc{url}, which is
1424+ given in the \texttt{url} field, is transformed into a
1425+ clickable link if \texttt{hyperref} support has been
1426+ enabled. Note the format of the \texttt{urldate} field
1427+ (\texttt{yyyy-mm-dd}) in the database file. Also note the
1428+ \texttt{label} field which may be used as a fallback by
1429+ citation styles which need an \texttt{author} and\slash or a
1430+ \texttt{year}},
1431+}
1432+
1433+@online{itzhaki,
1434+ author = {Itzhaki, Nissan},
1435+ title = {Some remarks on {'t Hooft's} {S}-matrix for black holes},
1436+ date = {1996-03-11},
1437+ version = 1,
1438+ langid = {english},
1439+ langidopts = {variant=american},
1440+ eprinttype = {arxiv},
1441+ eprint = {hep-th/9603067},
1442+ annotation = {An \texttt{online} reference from arXiv. Note the
1443+ \texttt{eprint} and \texttt{eprinttype} fields. Also note that
1444+ the arXiv reference is transformed into a clickable link if
1445+ \texttt{hyperref} support has been enabled},
1446+ abstract = {We discuss the limitations of 't Hooft's proposal for the
1447+ black hole S-matrix. We find that the validity of the S-matrix
1448+ implies violation of the semi-classical approximation at
1449+ scales large compared to the Planck scale. We also show that
1450+ the effect of the centrifugal barrier on the S-matrix is
1451+ crucial even for large transverse distances.},
1452+}
1453+
1454+@online{markey,
1455+ author = {Markey, Nicolas},
1456+ title = {Tame the {BeaST}},
1457+ date = {2005-10-16},
1458+ url = {http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf},
1459+ subtitle = {The {B} to {X} of {BibTeX}},
1460+ version = {1.3},
1461+ urldate = {2006-10-01},
1462+ langid = {english},
1463+ langidopts = {variant=american},
1464+ sorttitle = {Tame the Beast},
1465+ annotation = {An \texttt{online} entry for a tutorial. Note the format of
1466+ the \texttt{date} field (\texttt{yyyy-mm-dd}) in the database
1467+ file.},
1468+}
1469+
1470+@online{wassenberg,
1471+ author = {Wassenberg, Jan and Sanders, Peter},
1472+ title = {Faster Radix Sort via Virtual Memory and Write-Combining},
1473+ date = {2010-08-17},
1474+ version = 1,
1475+ langid = {english},
1476+ langidopts = {variant=american},
1477+ eprinttype = {arxiv},
1478+ eprintclass = {cs.DS},
1479+ eprint = {1008.2849v1},
1480+ annotation = {A recent \texttt{online} reference from arXiv using the new
1481+ (April 2007 onward) identifier format. Note the
1482+ \texttt{eprint}, \texttt{eprinttype}, and \texttt{eprintclass}
1483+ fields. Also note that the arXiv reference is transformed into
1484+ a clickable link if \texttt{hyperref} support has been
1485+ enabled},
1486+ abstract = {Sorting algorithms are the deciding factor for the performance
1487+ of common operations such as removal of duplicates or database
1488+ sort-merge joins. This work focuses on 32-bit integer keys,
1489+ optionally paired with a 32-bit value. We present a fast radix
1490+ sorting algorithm that builds upon a microarchitecture-aware
1491+ variant of counting sort},
1492+}
1493+
1494+@patent{almendro,
1495+ author = {Almendro, Jos{\'e} L. and Mart{\'i}n, Jacinto and S{\'a}nchez,
1496+ Alberto and Nozal, Fernando},
1497+ title = {Elektromagnetisches Signalhorn},
1498+ number = {EU-29702195U},
1499+ date = 1998,
1500+ location = {countryfr and countryuk and countryde},
1501+ langid = {german},
1502+ annotation = {This is a \texttt{patent} entry with a \texttt{location}
1503+ field. The number is given in the \texttt{number} field. Note
1504+ the format of the \texttt{location} field in the database
1505+ file. Compare \texttt{laufenberg}, \texttt{sorace}, and
1506+ \texttt{kowalik}},
1507+}
1508+
1509+@patent{kowalik,
1510+ author = {Kowalik, F. and Isard, M.},
1511+ title = {Estimateur d'un d{\'e}faut de fonctionnement d'un modulateur
1512+ en quadrature et {\'e}tage de modulation l'utilisant},
1513+ number = 9500261,
1514+ date = {1995-01-11},
1515+ type = {patreqfr},
1516+ langid = {french},
1517+ indextitle = {Estimateur d'un d{\'e}faut de fonctionnement},
1518+ annotation = {This is a \texttt{patent} entry for a French patent request
1519+ with a full date. The number is given in the \texttt{number}
1520+ field. Note the format of the \texttt{type} and \texttt{date}
1521+ fields in the database file. Compare \texttt{almendro},
1522+ \texttt{laufenberg}, and \texttt{sorace}},
1523+}
1524+
1525+@patent{laufenberg,
1526+ author = {Laufenberg, Xaver and Eynius, Dominique and Suelzle, Helmut
1527+ and Usbeck, Stephan and Spaeth, Matthias and Neuser-Hoffmann,
1528+ Miriam and Myrzik, Christian and Schmid, Manfred and Nietfeld,
1529+ Franz and Thiel, Alexander and Braun, Harald and Ebner,
1530+ Norbert},
1531+ title = {Elektrische Einrichtung und Betriebsverfahren},
1532+ number = 1700367,
1533+ date = {2006-09-13},
1534+ holder = {{Robert Bosch GmbH} and {Daimler Chrysler AG} and {Bayerische
1535+ Motoren Werke AG}},
1536+ type = {patenteu},
1537+ langid = {german},
1538+ annotation = {This is a \texttt{patent} entry with a \texttt{holder} field.
1539+ Note the format of the \texttt{type} and \texttt{location}
1540+ fields in the database file. Compare \texttt{almendro},
1541+ \texttt{sorace}, and \texttt{kowalik}},
1542+ abstract = {The invention relates to an electric device comprising a
1543+ generator, in particular for use in the vehicle electric
1544+ system of a motor vehicle and a controller for controlling the
1545+ generator voltage. The device is equipped with a control zone,
1546+ in which the voltage is controlled and zones, in which the
1547+ torque is controlled. The invention also relates to methods
1548+ for operating a device of this type.},
1549+ file = {http://v3.espacenet.com/textdoc?IDX=EP1700367},
1550+}
1551+
1552+@patent{sorace,
1553+ author = {Sorace, Ronald E. and Reinhardt, Victor S. and Vaughn, Steven
1554+ A.},
1555+ title = {High-Speed Digital-to-{RF} Converter},
1556+ number = 5668842,
1557+ date = {1997-09-16},
1558+ holder = {{Hughes Aircraft Company}},
1559+ type = {patentus},
1560+ langid = {english},
1561+ langidopts = {variant=american},
1562+ annotation = {This is a \texttt{patent} entry with a \texttt{holder} field.
1563+ Note the format of the \texttt{type} and \texttt{date} fields
1564+ in the database file. Compare \texttt{almendro},
1565+ \texttt{laufenberg}, and \texttt{kowalik}},
1566+}
1567+
1568+@periodical{jcg,
1569+ title = {Computers and Graphics},
1570+ year = 2011,
1571+ issuetitle = {Semantic {3D} Media and Content},
1572+ volume = 35,
1573+ number = 4,
1574+ issn = {0097-8493},
1575+ annotation = {This is a \texttt{periodical} entry with an \texttt{issn}
1576+ field.},
1577+}
1578+
1579+@report{chiu,
1580+ author = {Chiu, Willy W. and Chow, We Min},
1581+ title = {A Hybrid Hierarchical Model of a {Multiple Virtual Storage}
1582+ ({MVS}) Operating System},
1583+ type = {resreport},
1584+ institution = {IBM},
1585+ date = 1978,
1586+ number = {RC-6947},
1587+ langid = {english},
1588+ langidopts = {variant=american},
1589+ sorttitle = {Hybrid Hierarchical Model of a Multiple Virtual Storage (MVS)
1590+ Operating System},
1591+ indextitle = {Hybrid Hierarchical Model, A},
1592+ annotation = {This is a \texttt{report} entry for a research report. Note
1593+ the format of the \texttt{type} field in the database file
1594+ which uses a localization key. The number of the report is
1595+ given in the \texttt{number} field. Also note the
1596+ \texttt{sorttitle} and \texttt{indextitle} fields},
1597+}
1598+
1599+@report{padhye,
1600+ author = {Padhye, Jitendra and Firoiu, Victor and Towsley, Don},
1601+ title = {A Stochastic Model of {TCP Reno} Congestion Avoidance and
1602+ Control},
1603+ type = {techreport},
1604+ institution = {University of Massachusetts},
1605+ date = 1999,
1606+ number = {99-02},
1607+ location = {Amherst, Mass.},
1608+ langid = {english},
1609+ langidopts = {variant=american},
1610+ sorttitle = {A Stochastic Model of TCP Reno Congestion Avoidance and
1611+ Control},
1612+ indextitle = {Stochastic Model of {TCP Reno} Congestion Avoidance and Control,
1613+ A},
1614+ annotation = {This is a \texttt{report} entry for a technical report. Note
1615+ the format of the \texttt{type} field in the database file
1616+ which uses a localization key. The number of the report is
1617+ given in the \texttt{number} field. Also note the
1618+ \texttt{sorttitle} and \texttt{indextitle} fields},
1619+ abstract = {The steady state performance of a bulk transfer TCP flow
1620+ (i.e. a flow with a large amount of data to send, such as FTP
1621+ transfers) may be characterized by three quantities. The first
1622+ is the send rate, which is the amount of data sent by the
1623+ sender in unit time. The second is the throughput, which is
1624+ the amount of data received by the receiver in unit time. Note
1625+ that the throughput will always be less than or equal to the
1626+ send rate due to losses. Finally, the number of non-duplicate
1627+ packets received by the receiver in unit time gives us the
1628+ goodput of the connection. The goodput is always less than or
1629+ equal to the throughput, since the receiver may receive two
1630+ copies of the same packet due to retransmissions by the
1631+ sender. In a previous paper, we presented a simple model for
1632+ predicting the steady state send rate of a bulk transfer TCP
1633+ flow as a function of loss rate and round trip time. In this
1634+ paper, we extend that work in two ways. First, we analyze the
1635+ performance of bulk transfer TCP flows using more precise,
1636+ stochastic analysis. Second, we build upon the previous
1637+ analysis to provide both an approximate formula as well as a
1638+ more accurate stochastic model for the steady state throughput
1639+ of a bulk transfer TCP flow.},
1640+ file = {ftp://gaia.cs.umass.edu/pub/Padhey99-markov.ps},
1641+}
1642+
1643+@thesis{geer,
1644+ author = {de Geer, Ingrid},
1645+ title = {Earl, Saint, Bishop, Skald~-- and Music},
1646+ type = {phdthesis},
1647+ institution = {Uppsala Universitet},
1648+ date = 1985,
1649+ subtitle = {The {Orkney Earldom} of the Twelfth Century. {A} Musicological
1650+ Study},
1651+ location = {Uppsala},
1652+ options = {useprefix=false},
1653+ langid = {english},
1654+ langidopts = {variant=british},
1655+ annotation = {This is a typical \texttt{thesis} entry for a PhD thesis. Note
1656+ the \texttt{type} field in the database file which uses a
1657+ localization key. Also note the format of the printed name and
1658+ compare the \texttt{useprefix} option in the \texttt{options}
1659+ field as well as \texttt{vangennep}},
1660+}
1661+
1662+@thesis{loh,
1663+ author = {Loh, Nin C.},
1664+ title = {High-Resolution Micromachined Interferometric Accelerometer},
1665+ type = {mathesis},
1666+ institution = {Massachusetts Institute of Technology},
1667+ date = 1992,
1668+ location = {Cambridge, Mass.},
1669+ langid = {english},
1670+ langidopts = {variant=american},
1671+ annotation = {This is a typical \texttt{thesis} entry for an MA thesis. Note
1672+ the \texttt{type} field in the database file which uses a
1673+ localization key},
1674+}
test/command/biblatex-formatting.mdnew file+23
@@ -0,0 +1,23 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@article{item1,
4+ Title = {The Title:
5+ \textit{italics},
6+ \textbf{bold},
7+ \textsubscript{subscript},
8+ \textsuperscript{superscript},
9+ \textsc{small-caps}}
10+}
11+^D
12+---
13+nocite: '[@*]'
14+references:
15+- id: item1
16+ title: 'The title: *Italics*, **bold**, ~subscript~, ^superscript^,
17+ [small-caps]{.smallcaps}'
18+ title-short: The title
19+ type: 'article-journal'
20+---
21+
22+
23+```
test/command/biblatex-gaonkar-in.mdnew file+62
@@ -0,0 +1,62 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Gaonkar 2001)
11+
12+Gaonkar, Dilip Parameshwar. 2001. “On Alternative Modernities.” In
13+*Alternative Modernities*, edited by Dilip Parameshwar Gaonkar, 1–23.
14+Durham; London: Duke University Press.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Gaonkar, 2001)
20+
21+Gaonkar, D. P. (2001). On alternative modernities. In D. P. Gaonkar
22+(Ed.), *Alternative modernities* (pp. 1–23). Durham; London: Duke
23+University Press.
24+
25+
26+}
27+
28+@InCollection{gaonkar:in,
29+ author = {Gaonkar, Dilip Parameshwar},
30+ editor = {Gaonkar, Dilip Parameshwar},
31+ title = {On Alternative Modernities},
32+ date = 2001,
33+ booktitle = {Alternative Modernities},
34+ publisher = {Duke University Press},
35+ location = {Durham and London},
36+ isbn = {0-822-32714-7},
37+ pages = {1-23},
38+}
39+
40+^D
41+---
42+nocite: '[@*]'
43+references:
44+- author:
45+ - family: Gaonkar
46+ given: Dilip Parameshwar
47+ container-title: Alternative modernities
48+ editor:
49+ - family: Gaonkar
50+ given: Dilip Parameshwar
51+ id: 'gaonkar:in'
52+ isbn: '0-822-32714-7'
53+ issued: 2001
54+ page: '1-23'
55+ publisher: Duke University Press
56+ publisher-place: Durham; London
57+ title: On alternative modernities
58+ type: chapter
59+---
60+
61+
62+```
test/command/biblatex-gaonkar.mdnew file+59
@@ -0,0 +1,59 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Gaonkar 2001)
11+
12+Gaonkar, Dilip Parameshwar, ed. 2001. *Alternative Modernities*. Durham;
13+London: Duke University Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Gaonkar, 2001)
19+
20+Gaonkar, D. P. (Ed.). (2001). *Alternative modernities*. Durham; London:
21+Duke University Press.
22+
23+
24+}
25+
26+@Collection{gaonkar,
27+ editor = {Gaonkar, Dilip Parameshwar},
28+ title = {Alternative Modernities},
29+ date = 2001,
30+ publisher = {Duke University Press},
31+ location = {Durham and London},
32+ isbn = {0-822-32714-7},
33+ hyphenation = {american},
34+ annotation = {This is a collection entry. Note the format of the
35+ location field in the database file as well as the
36+ isbn field},
37+}
38+
39+^D
40+---
41+nocite: '[@*]'
42+references:
43+- annote: This is a collection entry. Note the format of the location
44+ field in the database file as well as the isbn field
45+ editor:
46+ - family: Gaonkar
47+ given: Dilip Parameshwar
48+ id: gaonkar
49+ isbn: '0-822-32714-7'
50+ issued: 2001
51+ language: 'en-US'
52+ publisher: Duke University Press
53+ publisher-place: Durham; London
54+ title: Alternative modernities
55+ type: book
56+---
57+
58+
59+```
test/command/biblatex-geer.mdnew file+70
@@ -0,0 +1,70 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Geer 1985)
10+
11+Geer, Ingrid de. 1985. “Earl, Saint, Bishop, Skald – and Music: The
12+Orkney Earldom of the Twelfth Century. A Musicological Study.” PhD
13+thesis, Uppsala: Uppsala Universitet.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Geer, 1985)
19+
20+Geer, I. de. (1985). *Earl, saint, bishop, skald – and music: The Orkney
21+earldom of the twelfth century. A musicological study* (PhD thesis).
22+Uppsala Universitet, Uppsala.
23+
24+
25+}
26+
27+@Thesis{geer,
28+ author = {de Geer, Ingrid},
29+ title = {Earl, Saint, Bishop, Skald~-- and Music},
30+ type = {phdthesis},
31+ institution = {Uppsala Universitet},
32+ date = 1985,
33+ subtitle = {The {Orkney} Earldom of the Twelfth Century. {A} Musicological
34+ Study},
35+ location = {Uppsala},
36+ options = {useprefix=false},
37+ hyphenation = {british},
38+ annotation = {This is a typical thesis entry for a PhD thesis. Note
39+ the type field in the database file which uses a
40+ localization key. Also note the format of the printed name and
41+ compare the useprefix option in the options
42+ field as well as vangennep},
43+}
44+
45+^D
46+---
47+nocite: '[@*]'
48+references:
49+- annote: This is a typical thesis entry for a PhD thesis. Note the type
50+ field in the database file which uses a localization key. Also note
51+ the format of the printed name and compare the useprefix option in
52+ the options field as well as vangennep
53+ author:
54+ - dropping-particle: de
55+ family: Geer
56+ given: Ingrid
57+ genre: PhD thesis
58+ id: geer
59+ issued: 1985
60+ language: 'en-GB'
61+ publisher: Uppsala Universitet
62+ publisher-place: Uppsala
63+ title: 'Earl, saint, bishop, skald -- and music: The Orkney earldom of
64+ the twelfth century. A musicological study'
65+ title-short: 'Earl, saint, bishop, skald -- and music'
66+ type: thesis
67+---
68+
69+
70+```
test/command/biblatex-gerhardt.mdnew file+64
@@ -0,0 +1,64 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Gerhardt 2000)
10+
11+Gerhardt, Michael J. 2000. *The Federal Appointments Process: A
12+Constitutional and Historical Analysis*. Durham; London: Duke University
13+Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Gerhardt, 2000)
19+
20+Gerhardt, M. J. (2000). *The federal appointments process: A
21+constitutional and historical analysis*. Durham; London: Duke University
22+Press.
23+
24+
25+}
26+
27+@Book{gerhardt,
28+ author = {Gerhardt, Michael J.},
29+ title = {The Federal Appointments Process},
30+ date = 2000,
31+ publisher = {Duke University Press},
32+ location = {Durham and London},
33+ hyphenation = {american},
34+ sorttitle = {Federal Appointments Process},
35+ indextitle = {Federal Appointments Process, The},
36+ subtitle = {A Constitutional and Historical Analysis},
37+ shorttitle = {Federal Appointments Process},
38+ annotation = {This is a book entry. Note the format of the
39+ location field as well as the sorttitle and
40+ indextitle fields},
41+}
42+
43+^D
44+---
45+nocite: '[@*]'
46+references:
47+- annote: This is a book entry. Note the format of the location field as
48+ well as the sorttitle and indextitle fields
49+ author:
50+ - family: Gerhardt
51+ given: Michael J.
52+ id: gerhardt
53+ issued: 2000
54+ language: 'en-US'
55+ publisher: Duke University Press
56+ publisher-place: Durham; London
57+ title: 'The federal appointments process: A constitutional and
58+ historical analysis'
59+ title-short: Federal appointments process
60+ type: book
61+---
62+
63+
64+```
test/command/biblatex-gillies.mdnew file+70
@@ -0,0 +1,70 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Gillies 1933)
11+
12+Gillies, Alexander. 1933. “Herder and the Preparation of Goethe’s Idea
13+of World Literature.” *Publications of the English Goethe Society, New
14+Series* 9: 46–67.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Gillies, 1933)
20+
21+Gillies, A. (1933). Herder and the preparation of Goethe’s idea of world
22+literature. *Publications of the English Goethe Society, new series*,
23+*9*, 46–67.
24+
25+
26+NOTES:
27+
28+- biblio2yaml
29+ - "new series" is not pretty, but it’s the best we can do at the moment, given the limitations of CSL.
30+
31+}
32+
33+@Article{gillies,
34+ author = {Gillies, Alexander},
35+ title = {Herder and the Preparation of {Goethe}'s Idea of World
36+ Literature},
37+ journaltitle = {Publications of the English Goethe Society},
38+ date = 1933,
39+ series = {newseries},
40+ volume = 9,
41+ pages = {46-67},
42+ hyphenation = {british},
43+ annotation = {An article entry with a series and a
44+ volume field. Note that format of the series
45+ field in the database file},
46+}
47+
48+^D
49+---
50+nocite: '[@*]'
51+references:
52+- annote: An article entry with a series and a volume field. Note that
53+ format of the series field in the database file
54+ author:
55+ - family: Gillies
56+ given: Alexander
57+ collection-title: new series
58+ container-title: Publications of the English Goethe Society
59+ id: gillies
60+ issued: 1933
61+ language: 'en-GB'
62+ page: '46-67'
63+ title: 'Herder and the preparation of Goethe''s idea of world
64+ literature'
65+ type: 'article-journal'
66+ volume: 9
67+---
68+
69+
70+```
test/command/biblatex-glashow.mdnew file+51
@@ -0,0 +1,51 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Glashow 1961)
10+
11+Glashow, Sheldon. 1961. “Partial Symmetries of Weak Interactions.”
12+*Nucl. Phys.* 22: 579–588.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Glashow, 1961)
18+
19+Glashow, S. (1961). Partial symmetries of weak interactions.
20+*Nucl. Phys.*, *22*, 579–588.
21+
22+
23+}
24+
25+@Article{glashow,
26+ author = {Glashow, Sheldon},
27+ title = {Partial Symmetries of Weak Interactions},
28+ journaltitle = {Nucl.~Phys.},
29+ date = 1961,
30+ volume = 22,
31+ pages = {579-588},
32+}
33+
34+^D
35+---
36+nocite: '[@*]'
37+references:
38+- author:
39+ - family: Glashow
40+ given: Sheldon
41+ container-title: Nucl. Phys.
42+ id: glashow
43+ issued: 1961
44+ page: '579-588'
45+ title: Partial symmetries of weak interactions
46+ type: 'article-journal'
47+ volume: 22
48+---
49+
50+
51+```
test/command/biblatex-gonzalez.mdnew file+62
@@ -0,0 +1,62 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Gonzalez 2001)
10+
11+Gonzalez, Ray. 2001. *The Ghost of John Wayne and Other Stories*.
12+Tucson: The University of Arizona Press.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Gonzalez, 2001)
18+
19+Gonzalez, R. (2001). *The ghost of John Wayne and other stories*.
20+Tucson: The University of Arizona Press.
21+
22+}
23+
24+@Book{gonzalez,
25+ author = {Gonzalez, Ray},
26+ title = {The Ghost of {John Wayne} and Other Stories},
27+ date = 2001,
28+ publisher = {The University of Arizona Press},
29+ location = {Tucson},
30+ isbn = {0-816-52066-6},
31+ hyphenation = {american},
32+ sorttitle = {Ghost of John Wayne and Other Stories},
33+ indextitle = {Ghost of {John Wayne} and Other Stories, The},
34+ shorttitle = {Ghost of {John Wayne}},
35+ annotation = {A collection of short stories. This is a book entry.
36+ Note the sorttitle and indextitle fields in
37+ the database file. There's also an isbn field},
38+}
39+
40+^D
41+---
42+nocite: '[@*]'
43+references:
44+- annote: 'A collection of short stories. This is a book entry. Note the
45+ sorttitle and indextitle fields in the database file. There''s also
46+ an isbn field'
47+ author:
48+ - family: Gonzalez
49+ given: Ray
50+ id: gonzalez
51+ isbn: '0-816-52066-6'
52+ issued: 2001
53+ language: 'en-US'
54+ publisher: The University of Arizona Press
55+ publisher-place: Tucson
56+ title: The ghost of John Wayne and other stories
57+ title-short: Ghost of John Wayne
58+ type: book
59+---
60+
61+
62+```
test/command/biblatex-hammond.mdnew file+63
@@ -0,0 +1,63 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Hammond 1997)
10+
11+Hammond, Christopher. 1997. *The Basics of Crystallography and
12+Diffraction*. Oxford: International Union of Crystallography; Oxford
13+University Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Hammond, 1997)
19+
20+Hammond, C. (1997). *The basics of crystallography and diffraction*.
21+Oxford: International Union of Crystallography; Oxford University Press.
22+
23+
24+}
25+
26+@Book{hammond,
27+ author = {Hammond, Christopher},
28+ title = {The basics of crystallography and diffraction},
29+ date = 1997,
30+ publisher = {International Union of Crystallography and Oxford University
31+ Press},
32+ location = {Oxford},
33+ hyphenation = {british},
34+ sorttitle = {Basics of crystallography and diffraction},
35+ indextitle = {Basics of crystallography and diffraction, The},
36+ shorttitle = {Crystallography and diffraction},
37+ annotation = {A book entry. Note the sorttitle and
38+ indextitle fields as well as the format of the
39+ publisher field},
40+}
41+
42+^D
43+---
44+nocite: '[@*]'
45+references:
46+- annote: A book entry. Note the sorttitle and indextitle fields as well
47+ as the format of the publisher field
48+ author:
49+ - family: Hammond
50+ given: Christopher
51+ id: hammond
52+ issued: 1997
53+ language: 'en-GB'
54+ publisher: International Union of Crystallography; Oxford University
55+ Press
56+ publisher-place: Oxford
57+ title: The basics of crystallography and diffraction
58+ title-short: Crystallography and diffraction
59+ type: book
60+---
61+
62+
63+```
test/command/biblatex-herrmann.mdnew file+70
@@ -0,0 +1,70 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Herrmann et al. 2006)
10+
11+Herrmann, Wolfgang A., Karl Öfele, Sabine K. Schneider, Eberhardt
12+Herdtweck, and Stephan D. Hoffmann. 2006. “A Carbocyclic Carbene as an
13+Efficient Catalyst Ligand for C–C Coupling Reactions.” *Angew. Chem.
14+Int. Ed.* 45 (23): 3859–3862.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Herrmann, Öfele, Schneider, Herdtweck, & Hoffmann, 2006)
20+
21+Herrmann, W. A., Öfele, K., Schneider, S. K., Herdtweck, E., & Hoffmann,
22+S. D. (2006). A carbocyclic carbene as an efficient catalyst ligand for
23+C–C coupling reactions. *Angew. Chem. Int. Ed.*, *45*(23), 3859–3862.
24+
25+
26+}
27+
28+@string{ anch-ie = {Angew.~Chem. Int.~Ed.} }
29+
30+@Article{herrmann,
31+ author = {Herrmann, Wolfgang A. and {\"O}fele, Karl and Schneider,
32+ Sabine K. and Herdtweck, Eberhardt and Hoffmann, Stephan D.},
33+ title = {A carbocyclic carbene as an efficient catalyst ligand for {C--C}
34+ coupling reactions},
35+ journaltitle = anch-ie,
36+ date = 2006,
37+ volume = 45,
38+ number = 23,
39+ pages = {3859-3862},
40+ indextitle = {Carbocyclic carbene as an efficient catalyst, A},
41+}
42+
43+^D
44+---
45+nocite: '[@*]'
46+references:
47+- author:
48+ - family: Herrmann
49+ given: Wolfgang A.
50+ - family: Öfele
51+ given: Karl
52+ - family: Schneider
53+ given: Sabine K.
54+ - family: Herdtweck
55+ given: Eberhardt
56+ - family: Hoffmann
57+ given: Stephan D.
58+ container-title: Angew. Chem. Int. Ed.
59+ id: herrmann
60+ issue: 23
61+ issued: 2006
62+ page: '3859-3862'
63+ title: 'A carbocyclic carbene as an efficient catalyst ligand for C--C
64+ coupling reactions'
65+ type: 'article-journal'
66+ volume: 45
67+---
68+
69+
70+```
test/command/biblatex-hyman.mdnew file+79
@@ -0,0 +1,79 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Hyman 1981)
11+
12+Hyman, Arthur. 1981. “Aristotle’s Theory of the Intellect and Its
13+Interpretation by Averroes.” In *Studies in Aristotle*, edited by
14+Dominic J. O’Meara, 161–191. Studies in Philosophy and the History of
15+Philosophy 9. Washington, D.C.: The Catholic University of America
16+Press.
17+
18+
19+Formatted with pandoc and apa.csl, 2013-10-23:
20+
21+(Hyman, 1981)
22+
23+Hyman, A. (1981). Aristotle’s theory of the intellect and its
24+interpretation by Averroes. In D. J. O’Meara (Ed.), *Studies in
25+Aristotle* (pp. 161–191). Washington, D.C.: The Catholic University of
26+America Press.
27+
28+
29+}
30+
31+@InCollection{hyman,
32+ author = {Arthur Hyman},
33+ editor = {O'Meara, Dominic J.},
34+ title = {Aristotle's Theory of the Intellect and its Interpretation by
35+ {Averroes}},
36+ date = 1981,
37+ booktitle = {Studies in {Aristotle}},
38+ series = {Studies in Philosophy and the History of Philosophy},
39+ number = 9,
40+ publisher = {The Catholic University of America Press},
41+ location = {Washington, D.C.},
42+ pages = {161-191},
43+ keywords = {secondary},
44+ hyphenation = {american},
45+ indextitle = {Aristotle's Theory of the Intellect},
46+ shorttitle = {Aristotle's Theory of the Intellect},
47+ annotation = {An incollection entry with a series and
48+ number field},
49+}
50+
51+^D
52+---
53+nocite: '[@*]'
54+references:
55+- annote: An incollection entry with a series and number field
56+ author:
57+ - family: Hyman
58+ given: Arthur
59+ collection-number: 9
60+ collection-title: Studies in philosophy and the history of philosophy
61+ container-title: Studies in Aristotle
62+ editor:
63+ - family: 'O''Meara'
64+ given: Dominic J.
65+ id: hyman
66+ issued: 1981
67+ keyword: secondary
68+ language: 'en-US'
69+ page: '161-191'
70+ publisher: The Catholic University of America Press
71+ publisher-place: 'Washington, D.C.'
72+ title: 'Aristotle''s theory of the intellect and its interpretation by
73+ Averroes'
74+ title-short: 'Aristotle''s theory of the intellect'
75+ type: chapter
76+---
77+
78+
79+```
test/command/biblatex-iliad.mdnew file+68
@@ -0,0 +1,68 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Homer 2004)
10+
11+Homer. 2004. *Die Ilias*. Translated by Wolfgang Schadewaldt. 3rd ed.
12+Düsseldorf; Zürich: Artemis & Winkler.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Homer, 2004)
18+
19+Homer. (2004). *Die Ilias*. (W. Schadewaldt, trans.) (3rd ed.).
20+Düsseldorf; Zürich: Artemis & Winkler.
21+
22+}
23+
24+@Book{iliad,
25+ author = {Homer},
26+ title = {Die Ilias},
27+ date = 2004,
28+ translator = {Schadewaldt, Wolfgang},
29+ introduction = {Latacz, Joachim},
30+ edition = 3,
31+ publisher = {Artemis \& Winkler},
32+ location = {D{\"u}sseldorf and Z{\"u}rich},
33+ hyphenation = {german},
34+ sorttitle = {Ilias},
35+ indextitle = {Ilias, Die},
36+ shorttitle = {Ilias},
37+ annotation = {A German translation of the \emph{Iliad}. Note the
38+ translator and introduction fields and the
39+ format of the location field in the database
40+ file. Also note the sorttitle and indextitle
41+ fields},
42+}
43+
44+^D
45+---
46+nocite: '[@*]'
47+references:
48+- annote: 'A German translation of the *Iliad*. Note the translator and
49+ introduction fields and the format of the location field in the
50+ database file. Also note the sorttitle and indextitle fields'
51+ author:
52+ - family: Homer
53+ edition: 3
54+ id: iliad
55+ issued: 2004
56+ language: 'de-DE'
57+ publisher: 'Artemis & Winkler'
58+ publisher-place: Düsseldorf; Zürich
59+ title: Die Ilias
60+ title-short: Ilias
61+ translator:
62+ - family: Schadewaldt
63+ given: Wolfgang
64+ type: book
65+---
66+
67+
68+```
test/command/biblatex-inbook-title-booktitle-maintitle-series-2.mdnew file+48
@@ -0,0 +1,48 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@inbook{item1,
4+ Author = {Author, Al},
5+ Bookauthor = {Bookauthor, Bob},
6+ Booksubtitle = {Booksubtitle},
7+ Booktitle = {Booktitle},
8+ Booktitleaddon = {Booktitleaddon},
9+ Date = {2011},
10+ Hyphenation = {french},
11+ Location = {Location},
12+ Mainsubtitle = {Mainsubtitle},
13+ Maintitle = {Maintitle},
14+ Maintitleaddon = {Maintitleaddon},
15+ Number = {3},
16+ Publisher = {Publisher},
17+ Series = {Series},
18+ Subtitle = {Subtitle},
19+ Title = {Title of the ``inbook'' Entry},
20+ Titleaddon = {Titleaddon},
21+ Volume = {4}}
22+
23+^D
24+---
25+nocite: '[@*]'
26+references:
27+- author:
28+ - family: Author
29+ given: Al
30+ collection-number: 3
31+ collection-title: Series
32+ container-author:
33+ - family: Bookauthor
34+ given: Bob
35+ container-title: 'Maintitle: Mainsubtitle. Maintitleaddon'
36+ id: item1
37+ issued: 2011
38+ language: 'fr-FR'
39+ publisher: Publisher
40+ publisher-place: Location
41+ title: 'Title of the "inbook" Entry: Subtitle. Titleaddon'
42+ type: chapter
43+ volume: 4
44+ volume-title: 'Booktitle: Booksubtitle. Booktitleaddon'
45+---
46+
47+
48+```
test/command/biblatex-inbook-title-booktitle-maintitle-series.mdnew file+44
@@ -0,0 +1,44 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@inbook{item1,
4+ Author = {Author, Al},
5+ Booksubtitle = {Booksubtitle},
6+ Booktitle = {Booktitle},
7+ Booktitleaddon = {Booktitleaddon},
8+ Date = {2011},
9+ Hyphenation = {french},
10+ Location = {Location},
11+ Mainsubtitle = {Mainsubtitle},
12+ Maintitle = {Maintitle},
13+ Maintitleaddon = {Maintitleaddon},
14+ Number = {3},
15+ Publisher = {Publisher},
16+ Series = {Series},
17+ Subtitle = {Subtitle},
18+ Title = {Title of the ``inbook'' Entry},
19+ Titleaddon = {Titleaddon},
20+ Volume = {4}}
21+
22+^D
23+---
24+nocite: '[@*]'
25+references:
26+- author:
27+ - family: Author
28+ given: Al
29+ collection-number: 3
30+ collection-title: Series
31+ container-title: 'Maintitle: Mainsubtitle. Maintitleaddon'
32+ id: item1
33+ issued: 2011
34+ language: 'fr-FR'
35+ publisher: Publisher
36+ publisher-place: Location
37+ title: 'Title of the "inbook" Entry: Subtitle. Titleaddon'
38+ type: chapter
39+ volume: 4
40+ volume-title: 'Booktitle: Booksubtitle. Booktitleaddon'
41+---
42+
43+
44+```
test/command/biblatex-inbook.mdnew file+147
@@ -0,0 +1,147 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib
5+
6+TODO / citeproc: in biblatex "inbook" entries, citeproc should suppress bookauthor = CSL container-author if identical with author. -- See annotation in kant:kpv.
7+}
8+
9+@string{dtv = {Deutscher Taschenbuch-Verlag}}
10+
11+@inbook{kant:kpv,
12+ Annotation = {An edition of Kant's \emph{Collected Works}, volume five. This is an inbook entry which explicitly refers to the \emph{Critique of Practical Reason} only, not to the entire fifth volume. Note the author and bookauthor fields in the database file. By default, the bookauthor is omitted if the values of the author and bookauthor fields are identical},
13+ Author = {Kant, Immanuel},
14+ Bookauthor = {Kant, Immanuel},
15+ Booktitle = {Kritik der praktischen Vernunft. Kritik der Urtheilskraft},
16+ Date = 1968,
17+ Hyphenation = {german},
18+ Location = {Berlin},
19+ Maintitle = {Kants Werke. Akademie Textausgabe},
20+ Pages = {1-163},
21+ Publisher = {Walter de Gruyter},
22+ Shorthand = {KpV},
23+ Shorttitle = {Kritik der praktischen Vernunft},
24+ Title = {Kritik der praktischen Vernunft},
25+ Volume = 5}
26+
27+@inbook{kant:ku,
28+ Annotation = {An edition of Kant's \emph{Collected Works}, volume five. This is an inbook entry which explicitly refers to the \emph{Critique of Judgment} only, not to the entire fifth volume},
29+ Author = {Kant, Immanuel},
30+ Bookauthor = {Kant, Immanuel},
31+ Booktitle = {Kritik der praktischen Vernunft. Kritik der Urtheilskraft},
32+ Date = 1968,
33+ Hyphenation = {german},
34+ Location = {Berlin},
35+ Maintitle = {Kants Werke. Akademie Textausgabe},
36+ Pages = {165-485},
37+ Publisher = {Walter de Gruyter},
38+ Shorthand = {KU},
39+ Title = {Kritik der Urtheilskraft},
40+ Volume = 5}
41+
42+@inbook{nietzsche:historie,
43+ Annotation = {A single essay from the critical edition of Nietzsche's works. This inbook entry explicitly refers to an essay found in the first volume. Note the title, booktitle, and maintitle fields. Also note the sorttitle and sortyear fields. We want this entry to be listed after the entry referring to the entire first volume},
44+ Author = {Nietzsche, Friedrich},
45+ Bookauthor = {Nietzsche, Friedrich},
46+ Booktitle = {Die Geburt der Tragödie. Unzeitgemäße Betrachtungen I--IV. Nachgelassene Schriften 1870--1973},
47+ Date = 1988,
48+ Editor = {Colli, Giorgio and Montinari, Mazzino},
49+ Hyphenation = {german},
50+ Indexsorttitle = {Vom Nutzen und Nachtheil der Historie fur das Leben},
51+ Indextitle = {Vom Nutzen und Nachtheil der Historie für das Leben},
52+ Location = {München and Berlin and New York},
53+ Mainsubtitle = {Kritische Studienausgabe},
54+ Maintitle = {Sämtliche Werke},
55+ Pages = {243-334},
56+ Publisher = dtv # { and Walter de Gruyter},
57+ Shorttitle = {Vom Nutzen und Nachtheil der Historie},
58+ Sorttitle = {Werke-01-243},
59+ Sortyear = {1988-2},
60+ Subtitle = {Vom Nutzen und Nachtheil der Historie für das Leben},
61+ Title = {Unzeitgemässe Betrachtungen. Zweites Stück},
62+ Volume = 1}
63+
64+^D
65+---
66+nocite: '[@*]'
67+references:
68+- annote: 'An edition of Kant''s *Collected Works*, volume five. This is
69+ an inbook entry which explicitly refers to the *Critique of
70+ Practical Reason* only, not to the entire fifth volume. Note the
71+ author and bookauthor fields in the database file. By default, the
72+ bookauthor is omitted if the values of the author and bookauthor
73+ fields are identical'
74+ author:
75+ - family: Kant
76+ given: Immanuel
77+ container-author:
78+ - family: Kant
79+ given: Immanuel
80+ container-title: Kants Werke. Akademie Textausgabe
81+ id: 'kant:kpv'
82+ issued: 1968
83+ language: 'de-DE'
84+ page: '1-163'
85+ publisher: Walter de Gruyter
86+ publisher-place: Berlin
87+ title: Kritik der praktischen Vernunft
88+ title-short: Kritik der praktischen Vernunft
89+ type: chapter
90+ volume: 5
91+ volume-title: Kritik der praktischen Vernunft. Kritik der
92+ Urtheilskraft
93+- annote: 'An edition of Kant''s *Collected Works*, volume five. This is
94+ an inbook entry which explicitly refers to the *Critique of
95+ Judgment* only, not to the entire fifth volume'
96+ author:
97+ - family: Kant
98+ given: Immanuel
99+ container-author:
100+ - family: Kant
101+ given: Immanuel
102+ container-title: Kants Werke. Akademie Textausgabe
103+ id: 'kant:ku'
104+ issued: 1968
105+ language: 'de-DE'
106+ page: '165-485'
107+ publisher: Walter de Gruyter
108+ publisher-place: Berlin
109+ title: Kritik der Urtheilskraft
110+ type: chapter
111+ volume: 5
112+ volume-title: Kritik der praktischen Vernunft. Kritik der
113+ Urtheilskraft
114+- annote: 'A single essay from the critical edition of Nietzsche''s
115+ works. This inbook entry explicitly refers to an essay found in the
116+ first volume. Note the title, booktitle, and maintitle fields. Also
117+ note the sorttitle and sortyear fields. We want this entry to be
118+ listed after the entry referring to the entire first volume'
119+ author:
120+ - family: Nietzsche
121+ given: Friedrich
122+ container-author:
123+ - family: Nietzsche
124+ given: Friedrich
125+ container-title: 'Sämtliche Werke: Kritische Studienausgabe'
126+ editor:
127+ - family: Colli
128+ given: Giorgio
129+ - family: Montinari
130+ given: Mazzino
131+ id: 'nietzsche:historie'
132+ issued: 1988
133+ language: 'de-DE'
134+ page: '243-334'
135+ publisher: 'Deutscher Taschenbuch-Verlag; Walter de Gruyter'
136+ publisher-place: München; Berlin; New York
137+ title: 'Unzeitgemässe Betrachtungen. Zweites Stück: Vom Nutzen und
138+ Nachtheil der Historie für das Leben'
139+ title-short: Vom Nutzen und Nachtheil der Historie
140+ type: chapter
141+ volume: 1
142+ volume-title: 'Die Geburt der Tragödie. Unzeitgemäße Betrachtungen
143+ I--IV. Nachgelassene Schriften 1870--1973'
144+---
145+
146+
147+```
test/command/biblatex-incollection-2.mdnew file+98
@@ -0,0 +1,98 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+
4+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}
5+
6+
7+@string{hup = {Harvard University Press}}
8+
9+
10+@incollection{westfahl:space,
11+ Annotation = {A cross-referenced article from a collection. This is an incollection entry with a crossref field. Note the subtitle and indextitle fields},
12+ Author = {Westfahl, Gary},
13+ Crossref = {westfahl:frontier},
14+ Hyphenation = {american},
15+ Indextitle = {True Frontier, The},
16+ Pages = {55-65},
17+ Subtitle = {Confronting and Avoiding the Realities of Space in {American} Science Fiction Films},
18+ Title = {The True Frontier}}
19+
20+@incollection{gaonkar:in,
21+ Author = {Gaonkar, Dilip Parameshwar},
22+ Booktitle = {Alternative Modernities},
23+ Date = 2001,
24+ Editor = {Gaonkar, Dilip Parameshwar},
25+ Isbn = {0-822-32714-7},
26+ Location = {Durham and London},
27+ Pages = {1-23},
28+ Publisher = {Duke University Press},
29+ Title = {On Alternative Modernities}}
30+
31+@collection{westfahl:frontier,
32+ Annotation = {This is a collection entry. Note the format of the location field as well as the subtitle and booksubtitle fields},
33+ Booksubtitle = {The Frontier Theme in Science Fiction},
34+ Booktitle = {Space and Beyond},
35+ Date = 2000,
36+ Editor = {Westfahl, Gary},
37+ Hyphenation = {american},
38+ Location = {Westport, Conn. and London},
39+ Publisher = {Greenwood},
40+ Subtitle = {The Frontier Theme in Science Fiction},
41+ Title = {Space and Beyond}}
42+^D
43+---
44+nocite: '[@*]'
45+references:
46+- annote: 'A cross-referenced article from a collection. This is an
47+ incollection entry with a crossref field. Note the subtitle and
48+ indextitle fields'
49+ author:
50+ - family: Westfahl
51+ given: Gary
52+ container-title: 'Space and beyond: The frontier theme in science
53+ fiction'
54+ editor:
55+ - family: Westfahl
56+ given: Gary
57+ id: 'westfahl:space'
58+ issued: 2000
59+ language: 'en-US'
60+ page: '55-65'
61+ publisher: Greenwood
62+ publisher-place: 'Westport, Conn.; London'
63+ title: 'The true frontier: Confronting and avoiding the realities of
64+ space in American science fiction films'
65+ title-short: The true frontier
66+ type: chapter
67+- author:
68+ - family: Gaonkar
69+ given: Dilip Parameshwar
70+ container-title: Alternative modernities
71+ editor:
72+ - family: Gaonkar
73+ given: Dilip Parameshwar
74+ id: 'gaonkar:in'
75+ isbn: '0-822-32714-7'
76+ issued: 2001
77+ page: '1-23'
78+ publisher: Duke University Press
79+ publisher-place: Durham; London
80+ title: On alternative modernities
81+ type: chapter
82+- annote: This is a collection entry. Note the format of the location
83+ field as well as the subtitle and booksubtitle fields
84+ editor:
85+ - family: Westfahl
86+ given: Gary
87+ id: 'westfahl:frontier'
88+ issued: 2000
89+ language: 'en-US'
90+ publisher: Greenwood
91+ publisher-place: 'Westport, Conn.; London'
92+ title: 'Space and beyond: The frontier theme in science fiction'
93+ title-short: Space and beyond
94+ type: book
95+---
96+
97+
98+```
test/command/biblatex-incollection.mdnew file+130
@@ -0,0 +1,130 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}
4+
5+@string{hup = {Harvard University Press}}
6+
7+@incollection{brandt,
8+ Annotation = {An incollection entry with a series and a number. Note the format of the printed name and compare the useprefix option in the options field as well as vangennep. Also note the indextitle, and indexsorttitle fields},
9+ Author = {von Brandt, Ahasver and Hoffmann, Erich},
10+ Booktitle = {Europa im Hoch- und Spätmittelalter},
11+ Date = 1987,
12+ Editor = {Seibt, Ferdinand},
13+ Hyphenation = {german},
14+ Indexsorttitle = {Nordischen Lander von der Mitte des 11. Jahrhunderts bis 1448},
15+ Indextitle = {Nordischen Länder von der Mitte des 11.~Jahrhunderts bis 1448, Die},
16+ Location = {Stuttgart},
17+ Number = 2,
18+ Options = {useprefix=false},
19+ Pages = {884-917},
20+ Publisher = {Klett-Cotta},
21+ Series = {Handbuch der europäischen Geschichte},
22+ Shorttitle = {Die nordischen Länder},
23+ Title = {Die nordischen Länder von der Mitte des 11.~Jahrhunderts bis 1448}}
24+
25+@incollection{hyman,
26+ Annotation = {An incollection entry with a series and number field},
27+ Author = {Hyman, Arthur},
28+ Booktitle = {Studies in {Aristotle}},
29+ Date = 1981,
30+ Editor = {O'Meara, Dominic J.},
31+ Hyphenation = {american},
32+ Indextitle = {Aristotle's Theory of the Intellect},
33+ Keywords = {secondary},
34+ Location = {Washington, D.C.},
35+ Number = 9,
36+ Pages = {161-191},
37+ Publisher = {The Catholic University of America Press},
38+ Series = {Studies in Philosophy and the History of Philosophy},
39+ Shorttitle = {Aristotle's Theory of the Intellect},
40+ Title = {Aristotle's Theory of the Intellect and its Interpretation by {Averroes}}}
41+
42+@incollection{pines,
43+ Annotation = {A typical incollection entry. Note the indextitle field},
44+ Author = {Pines, Shlomo},
45+ Booktitle = {Studies in Medieval {Jewish} History and Literature},
46+ Date = 1979,
47+ Editor = {Twersky, Isadore},
48+ Hyphenation = {american},
49+ Indextitle = {Limitations of Human Knowledge According to Al-Farabi, ibn Bajja, and Maimonides, The},
50+ Keywords = {secondary},
51+ Location = {Cambridge, Mass.},
52+ Pages = {82-109},
53+ Publisher = hup,
54+ Shorttitle = {Limitations of Human Knowledge},
55+ Title = {The Limitations of Human Knowledge According to {Al-Farabi}, {ibn Bajja}, and {Maimonides}}}
56+
57+^D
58+---
59+nocite: '[@*]'
60+references:
61+- annote: 'An incollection entry with a series and a number. Note the
62+ format of the printed name and compare the useprefix option in the
63+ options field as well as vangennep. Also note the indextitle, and
64+ indexsorttitle fields'
65+ author:
66+ - dropping-particle: von
67+ family: Brandt
68+ given: Ahasver
69+ - family: Hoffmann
70+ given: Erich
71+ collection-number: 2
72+ collection-title: Handbuch der europäischen Geschichte
73+ container-title: 'Europa im Hoch- und Spätmittelalter'
74+ editor:
75+ - family: Seibt
76+ given: Ferdinand
77+ id: brandt
78+ issued: 1987
79+ language: 'de-DE'
80+ page: '884-917'
81+ publisher: 'Klett-Cotta'
82+ publisher-place: Stuttgart
83+ title: Die nordischen Länder von der Mitte des 11. Jahrhunderts bis
84+ 1448
85+ title-short: Die nordischen Länder
86+ type: chapter
87+- annote: An incollection entry with a series and number field
88+ author:
89+ - family: Hyman
90+ given: Arthur
91+ collection-number: 9
92+ collection-title: Studies in philosophy and the history of philosophy
93+ container-title: Studies in Aristotle
94+ editor:
95+ - family: 'O''Meara'
96+ given: Dominic J.
97+ id: hyman
98+ issued: 1981
99+ keyword: secondary
100+ language: 'en-US'
101+ page: '161-191'
102+ publisher: The Catholic University of America Press
103+ publisher-place: 'Washington, D.C.'
104+ title: 'Aristotle''s theory of the intellect and its interpretation by
105+ Averroes'
106+ title-short: 'Aristotle''s theory of the intellect'
107+ type: chapter
108+- annote: A typical incollection entry. Note the indextitle field
109+ author:
110+ - family: Pines
111+ given: Shlomo
112+ container-title: Studies in medieval Jewish history and literature
113+ editor:
114+ - family: Twersky
115+ given: Isadore
116+ id: pines
117+ issued: 1979
118+ keyword: secondary
119+ language: 'en-US'
120+ page: '82-109'
121+ publisher: Harvard University Press
122+ publisher-place: 'Cambridge, Mass.'
123+ title: 'The limitations of human knowledge according to Al-Farabi,
124+ [ibn Bajja]{.nocase}, and Maimonides'
125+ title-short: Limitations of human knowledge
126+ type: chapter
127+---
128+
129+
130+```
test/command/biblatex-inproceedings.mdnew file+88
@@ -0,0 +1,88 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}
4+
5+@string{cup = {Cambridge University Press}}
6+
7+@inproceedings{moraux,
8+ Annotation = {This is a typical inproceedings entry. Note the booksubtitle, shorttitle, indextitle, and indexsorttitle fields. Also note the eventdate field.},
9+ Author = {Moraux, Paul},
10+ Booktitle = {Aristotle on Mind and the Senses},
11+ Booktitleaddon = {Proceedings of the Seventh Symposium Aristotelicum},
12+ Date = 1979,
13+ Editor = {Lloyd, G. E. R. and Owen, G. E. L.},
14+ Eventdate = 1975,
15+ Hyphenation = {french},
16+ Indexsorttitle = {De Anima dans la tradition grecque},
17+ Indextitle = {\emph{De Anima} dans la tradition grècque, Le},
18+ Keywords = {secondary},
19+ Location = {Cambridge},
20+ Pages = {281-324},
21+ Publisher = cup,
22+ Shorttitle = {\emph{De Anima} dans la tradition grècque},
23+ Subtitle = {Quelques aspects de l'interpretation du traité, de Theophraste à Themistius},
24+ Title = {Le \emph{De Anima} dans la tradition grècque}}
25+
26+@inproceedings{salam,
27+ Author = {Salam, Abdus},
28+ Booksubtitle = {Relativistic groups and analyticity},
29+ Booktitle = {Elementary particle theory},
30+ Booktitleaddon = {Proceedings of the Eighth {Nobel} Symposium},
31+ Date = 1968,
32+ Editor = {Svartholm, Nils},
33+ Eventdate = {1968-05-19/1968-05-25},
34+ Location = {Stockholm},
35+ Pages = {367-377},
36+ Publisher = {Almquist \& Wiksell},
37+ Title = {Weak and Electromagnetic Interactions},
38+ Venue = {Aspenäsgarden, Lerum}}
39+^D
40+---
41+nocite: '[@*]'
42+references:
43+- annote: 'This is a typical inproceedings entry. Note the booksubtitle,
44+ shorttitle, indextitle, and indexsorttitle fields. Also note the
45+ eventdate field.'
46+ author:
47+ - family: Moraux
48+ given: Paul
49+ container-title: Aristotle on Mind and the Senses. Proceedings of the
50+ Seventh Symposium Aristotelicum
51+ editor:
52+ - family: Lloyd
53+ given: G. E. R.
54+ - family: Owen
55+ given: G. E. L.
56+ event-date: 1975
57+ id: moraux
58+ issued: 1979
59+ keyword: secondary
60+ language: 'fr-FR'
61+ page: '281-324'
62+ publisher: Cambridge University Press
63+ publisher-place: Cambridge
64+ title: 'Le *De Anima* dans la tradition grècque: Quelques aspects de
65+ l''interpretation du traité, de Theophraste à Themistius'
66+ title-short: '*De Anima* dans la tradition grècque'
67+ type: 'paper-conference'
68+- author:
69+ - family: Salam
70+ given: Abdus
71+ container-title: 'Elementary particle theory: Relativistic groups and
72+ analyticity. Proceedings of the eighth Nobel symposium'
73+ editor:
74+ - family: Svartholm
75+ given: Nils
76+ event-date: '1968-05-19/1968-05-25'
77+ event-place: 'Aspenäsgarden, Lerum'
78+ id: salam
79+ issued: 1968
80+ page: '367-377'
81+ publisher: 'Almquist & Wiksell'
82+ publisher-place: Stockholm
83+ title: Weak and electromagnetic interactions
84+ type: 'paper-conference'
85+---
86+
87+
88+```
test/command/biblatex-issue288.mdnew file+35
@@ -0,0 +1,35 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@thesis{Leavitt_2016,
4+location = {{Los Angeles, CA}},
5+title = {Upvoting the News: {{Breaking}} News Aggregation, Crowd Collaboration,
6+and Algorithm-Driven Attention on Reddit.Com},
7+timestamp = {2017-04-06T14:13:22Z},
8+langid = {english},
9+institution = {{University of Southern California}},
10+type = {Dissertation},
11+author = {Leavitt, Alex},
12+date = {2016-08},
13+}
14+
15+^D
16+---
17+nocite: '[@*]'
18+references:
19+- author:
20+ - family: Leavitt
21+ given: Alex
22+ genre: Dissertation
23+ id: Leavitt_2016
24+ issued: '2016-08'
25+ language: 'en-US'
26+ publisher: University of Southern California
27+ publisher-place: 'Los Angeles, CA'
28+ title: 'Upvoting the news: Breaking news aggregation, crowd
29+ collaboration, and algorithm-driven attention on reddit.com'
30+ title-short: Upvoting the news
31+ type: thesis
32+---
33+
34+
35+```
test/command/biblatex-itzhaki.mdnew file+83
@@ -0,0 +1,83 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Itzhaki 1996)
10+
11+Itzhaki, Nissan. 1996. “Some Remarks on ’t Hooft’s S-matrix for Black
12+Holes” (version 1). March 11.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Itzhaki, 1996)
18+
19+Itzhaki, N. (1996, March 11). Some remarks on ’t Hooft’s S-matrix for
20+black holes.
21+
22+
23+NOTES:
24+
25+- biblio2yaml:
26+ - eprinttype = {arxiv}, eprint = {hep-th/9603067},
27+ should be converted to a url: http://arxiv.org/abs/hep-th/9603067
28+ (prefix http://arxiv.org/abs/ seems to work for all arxiv material)
29+
30+- citeproc:
31+ - obtaining correct case of "'t Hooft's" in title is possible but awkward:
32+ '{t Hooft's} works; {'t Hooft}'s or '{t Hooft}'s do not
33+
34+}
35+
36+@Online{itzhaki,
37+ author = {Itzhaki, Nissan},
38+ title = {Some remarks on '{t Hooft's} {S}-matrix for black holes},
39+ date = {1996-03-11},
40+ version = 1,
41+ hyphenation = {american},
42+ eprinttype = {arxiv},
43+ eprint = {hep-th/9603067},
44+ annotation = {An online reference from arXiv. Note the
45+ eprint and eprinttype fields. Also note that
46+ the arXiv reference is transformed into a clickable link if
47+ hyperref support has been enabled},
48+ abstract = {We discuss the limitations of 't Hooft's proposal for the
49+ black hole S-matrix. We find that the validity of the S-matrix
50+ implies violation of the semi-classical approximation at
51+ scales large compared to the Planck scale. We also show that
52+ the effect of the centrifugal barrier on the S-matrix is
53+ crucial even for large transverse distances.},
54+}
55+
56+^D
57+---
58+nocite: '[@*]'
59+references:
60+- abstract: 'We discuss the limitations of ''t Hooft''s proposal for the
61+ black hole S-matrix. We find that the validity of the S-matrix
62+ implies violation of the semi-classical approximation at scales
63+ large compared to the Planck scale. We also show that the effect of
64+ the centrifugal barrier on the S-matrix is crucial even for large
65+ transverse distances.'
66+ annote: An online reference from arXiv. Note the eprint and eprinttype
67+ fields. Also note that the arXiv reference is transformed into a
68+ clickable link if hyperref support has been enabled
69+ author:
70+ - family: Itzhaki
71+ given: Nissan
72+ id: itzhaki
73+ issued: '1996-03-11'
74+ language: 'en-US'
75+ title: 'Some remarks on ''[t Hooft''s]{.nocase} S-matrix for black
76+ holes'
77+ type: webpage
78+ url: 'http://arxiv.org/abs/hep-th/9603067'
79+ version: 1
80+---
81+
82+
83+```
test/command/biblatex-jaffe.mdnew file+82
@@ -0,0 +1,82 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Jaffé 1885–1888)
10+
11+Jaffé, Philipp, ed. 1885–1888. *Regesta Pontificum Romanorum ab condita
12+ecclesia ad annum post Christum natum \<span
13+Style="font-variant:small-caps;"\>mcxcviii\</span\>*. 2nd ed. 2.
14+Leipzig.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Jaffé, 1885–1888)
20+
21+Jaffé, P. (Ed.). (1885–1888). *Regesta Pontificum Romanorum ab condita
22+ecclesia ad annum post Christum natum \<span
23+style="font-variant:small-caps;"\>mcxcviii\</span\>* (2nd ed., 1-2).
24+Leipzig.
25+
26+
27+NOTES:
28+
29+- biblatex conversion:
30+ - hyphenation = {latin}
31+- citeproc:
32+ - "vols." is missing
33+ - works in Zotero
34+ - This does not show up in the tests from the citeproc test suite that currently fail.
35+ - "\<span ...\> needs to be fixed.
36+ - maybe add markdown syntax ^^small caps^^ ?
37+ - in pandoc "plain" output, small caps could be converted to uppercase chars: "MCXCVIII" would definitely look better here.
38+
39+}
40+
41+@Collection{jaffe,
42+ editor = {Jaff{\'e}, Philipp},
43+ title = {Regesta Pontificum Romanorum ab condita ecclesia ad annum post
44+ Christum natum \textsc{mcxcviii}},
45+ date = {1885/1888},
46+ editora = {Loewenfeld, Samuel and Kaltenbrunner, Ferdinand and Ewald,
47+ Paul},
48+ edition = 2,
49+ volumes = 2,
50+ location = {Leipzig},
51+ editoratype = {redactor},
52+ indextitle = {Regesta Pontificum Romanorum},
53+ shorttitle = {Regesta Pontificum Romanorum},
54+ annotation = {A collection entry with edition and
55+ volumes fields. Note the editora and
56+ editoratype fields},
57+ hyphenation = {latin},
58+}
59+
60+^D
61+---
62+nocite: '[@*]'
63+references:
64+- annote: A collection entry with edition and volumes fields. Note the
65+ editora and editoratype fields
66+ edition: 2
67+ editor:
68+ - family: Jaffé
69+ given: Philipp
70+ id: jaffe
71+ issued: 1885/1888
72+ language: la
73+ number-of-volumes: 2
74+ publisher-place: Leipzig
75+ title: 'Regesta Pontificum Romanorum ab condita ecclesia ad annum post
76+ Christum natum [mcxcviii]{.smallcaps}'
77+ title-short: Regesta Pontificum Romanorum
78+ type: book
79+---
80+
81+
82+```
test/command/biblatex-jcg.mdnew file+54
@@ -0,0 +1,54 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(“Semantic 3D Media and Content” 2011)
10+
11+“Semantic 3D Media and Content.” 2011. *Computers and Graphics* 35 (4).
12+
13+
14+Formatted with pandoc and apa.csl, 2013-10-23:
15+
16+(“Semantic 3D media and content,” 2011)
17+
18+Semantic 3D media and content. (2011). *Computers and Graphics*,
19+*35*(4).
20+
21+
22+NOTES:
23+ - output looks OK even if indistinguishable from article without page numbers
24+
25+}
26+
27+@Periodical{jcg,
28+ title = {Computers and Graphics},
29+ year = 2011,
30+ issuetitle = {Semantic {3D} Media and Content},
31+ volume = 35,
32+ number = 4,
33+ issn = {0097-8493},
34+ annotation = {This is a periodical entry with an issn
35+ field.},
36+}
37+
38+^D
39+---
40+nocite: '[@*]'
41+references:
42+- annote: This is a periodical entry with an issn field.
43+ container-title: Computers and Graphics
44+ id: jcg
45+ issn: '0097-8493'
46+ issue: 4
47+ issued: 2011
48+ title: Semantic 3D media and content
49+ type: 'article-journal'
50+ volume: 35
51+---
52+
53+
54+```
test/command/biblatex-kant-kpv.mdnew file+90
@@ -0,0 +1,90 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Kant 1968)
11+
12+Kant, Immanuel. 1968. “Kritik der praktischen Vernunft.” In *Kants
13+Werke. Akademie Textausgabe*, by Immanuel Kant, 5:1–163. Berlin: Walter
14+de Gruyter.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Kant, 1968)
20+
21+Kant, I. (1968). Kritik der praktischen Vernunft. In *Kants Werke.
22+Akademie Textausgabe* (Vol. 5, pp. 1–163). Berlin: Walter de Gruyter.
23+
24+
25+NOTES:
26+
27+- citeproc
28+ - support for the not yet official "volume-title" is missing
29+
30+- csl style file
31+ - if author and container-author are identical, container-author should be suppressed (apparently csl style file issue; zotero shows same behaviour)
32+
33+}
34+
35+@InBook{kant:kpv,
36+ title = {Kritik der praktischen Vernunft},
37+ date = 1968,
38+ author = {Kant, Immanuel},
39+ booktitle = {Kritik der praktischen Vernunft. Kritik der Urtheilskraft},
40+ bookauthor = {Kant, Immanuel},
41+ maintitle = {Kants Werke. Akademie Textausgabe},
42+ volume = 5,
43+ publisher = {Walter de Gruyter},
44+ location = {Berlin},
45+ pages = {1-163},
46+ shorthand = {KpV},
47+ hyphenation = {german},
48+ shorttitle = {Kritik der praktischen Vernunft},
49+ annotation = {An edition of Kant's \emph{Collected Works}, volume five. This
50+ is an inbook entry which explicitly refers to the
51+ \emph{Critique of Practical Reason} only, not to the entire
52+ fifth volume. Note the author and bookauthor
53+ fields in the database file. By default, the
54+ bookauthor is omitted if the values of the
55+ author and bookauthor fields are identical},
56+}
57+
58+^D
59+---
60+nocite: '[@*]'
61+references:
62+- annote: 'An edition of Kant''s *Collected Works*, volume five. This is
63+ an inbook entry which explicitly refers to the *Critique of
64+ Practical Reason* only, not to the entire fifth volume. Note the
65+ author and bookauthor fields in the database file. By default, the
66+ bookauthor is omitted if the values of the author and bookauthor
67+ fields are identical'
68+ author:
69+ - family: Kant
70+ given: Immanuel
71+ container-author:
72+ - family: Kant
73+ given: Immanuel
74+ container-title: Kants Werke. Akademie Textausgabe
75+ id: 'kant:kpv'
76+ issued: 1968
77+ language: 'de-DE'
78+ page: '1-163'
79+ publisher: Walter de Gruyter
80+ publisher-place: Berlin
81+ title: Kritik der praktischen Vernunft
82+ title-short: Kritik der praktischen Vernunft
83+ type: chapter
84+ volume: 5
85+ volume-title: Kritik der praktischen Vernunft. Kritik der
86+ Urtheilskraft
87+---
88+
89+
90+```
test/command/biblatex-kant-ku.mdnew file+82
@@ -0,0 +1,82 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Kant 1968)
11+
12+Kant, Immanuel. 1968. “Kritik der Urtheilskraft.” In *Kants Werke.
13+Akademie Textausgabe*, by Immanuel Kant, 5:165–485. Berlin: Walter de
14+Gruyter.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Kant, 1968)
20+
21+Kant, I. (1968). Kritik der Urtheilskraft. In *Kants Werke. Akademie
22+Textausgabe* (Vol. 5, pp. 165–485). Berlin: Walter de Gruyter.
23+
24+
25+NOTES:
26+
27+- citeproc
28+ - support for the not yet official "volume-title" is missing
29+
30+- CSL style file
31+ - if author and container-author are identical, container-author should be suppressed (apparently csl style file issue; zotero shows same behaviour)
32+
33+}
34+
35+@InBook{kant:ku,
36+ title = {Kritik der Urtheilskraft},
37+ date = 1968,
38+ author = {Kant, Immanuel},
39+ booktitle = {Kritik der praktischen Vernunft. Kritik der Urtheilskraft},
40+ bookauthor = {Kant, Immanuel},
41+ maintitle = {Kants Werke. Akademie Textausgabe},
42+ volume = 5,
43+ publisher = {Walter de Gruyter},
44+ location = {Berlin},
45+ pages = {165-485},
46+ shorthand = {KU},
47+ hyphenation = {german},
48+ annotation = {An edition of Kant's \emph{Collected Works}, volume five. This
49+ is an inbook entry which explicitly refers to the
50+ \emph{Critique of Judgment} only, not to the entire fifth
51+ volume},
52+}
53+
54+^D
55+---
56+nocite: '[@*]'
57+references:
58+- annote: 'An edition of Kant''s *Collected Works*, volume five. This is
59+ an inbook entry which explicitly refers to the *Critique of
60+ Judgment* only, not to the entire fifth volume'
61+ author:
62+ - family: Kant
63+ given: Immanuel
64+ container-author:
65+ - family: Kant
66+ given: Immanuel
67+ container-title: Kants Werke. Akademie Textausgabe
68+ id: 'kant:ku'
69+ issued: 1968
70+ language: 'de-DE'
71+ page: '165-485'
72+ publisher: Walter de Gruyter
73+ publisher-place: Berlin
74+ title: Kritik der Urtheilskraft
75+ type: chapter
76+ volume: 5
77+ volume-title: Kritik der praktischen Vernunft. Kritik der
78+ Urtheilskraft
79+---
80+
81+
82+```
test/command/biblatex-kastenholz.mdnew file+126
@@ -0,0 +1,126 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Kastenholz and Hünenberger 2006)
11+
12+Kastenholz, M. A., and Philippe H. Hünenberger. 2006. “Computation of
13+Methodologyindependent Ionic Solvation Free Energies from Molecular
14+Simulations: I. the Electrostatic Potential in Molecular Liquids.”
15+*J. Chem. Phys.* 124.
16+doi:[10.1063/1.2172593](https://doi.org/10.1063/1.2172593 "10.1063/1.2172593").
17+
18+
19+Formatted with pandoc and apa.csl, 2013-10-23:
20+
21+(Kastenholz & Hünenberger, 2006)
22+
23+Kastenholz, M. A., & Hünenberger, P. H. (2006). Computation of
24+methodologyindependent ionic solvation free energies from molecular
25+simulations: I. the electrostatic potential in molecular liquids.
26+*J. Chem. Phys.*, *124*.
27+doi:[10.1063/1.2172593](https://doi.org/10.1063/1.2172593 "10.1063/1.2172593")
28+
29+
30+NOTES:
31+
32+- biblio2xaml
33+ - fix conversion of "\hyphen”
34+ - the string "doi:" should not appear as part of the content of the "doi" field
35+
36+}
37+
38+@string{ jchph = {J.~Chem. Phys.} }
39+
40+@Article{kastenholz,
41+ author = {Kastenholz, M. A. and H{\"u}nenberger, Philippe H.},
42+ title = {Computation of methodology\hyphen independent ionic solvation
43+ free energies from molecular simulations},
44+ journaltitle = jchph,
45+ date = 2006,
46+ subtitle = {I. {The} electrostatic potential in molecular liquids},
47+ volume = 124,
48+ eid = 124106,
49+ doi = {10.1063/1.2172593},
50+ hyphenation = {american},
51+ indextitle = {Computation of ionic solvation free energies},
52+ annotation = {An article entry with an eid and a
53+ doi field. Note that the \textsc{doi} is transformed
54+ into a clickable link if hyperref support has been
55+ enabled},
56+ abstract = {The computation of ionic solvation free energies from
57+ atomistic simulations is a surprisingly difficult problem that
58+ has found no satisfactory solution for more than 15 years. The
59+ reason is that the charging free energies evaluated from such
60+ simulations are affected by very large errors. One of these is
61+ related to the choice of a specific convention for summing up
62+ the contributions of solvent charges to the electrostatic
63+ potential in the ionic cavity, namely, on the basis of point
64+ charges within entire solvent molecules (M scheme) or on the
65+ basis of individual point charges (P scheme). The use of an
66+ inappropriate convention may lead to a charge-independent
67+ offset in the calculated potential, which depends on the
68+ details of the summation scheme, on the quadrupole-moment
69+ trace of the solvent molecule, and on the approximate form
70+ used to represent electrostatic interactions in the
71+ system. However, whether the M or P scheme (if any) represents
72+ the appropriate convention is still a matter of on-going
73+ debate. The goal of the present article is to settle this
74+ long-standing controversy by carefully analyzing (both
75+ analytically and numerically) the properties of the
76+ electrostatic potential in molecular liquids (and inside
77+ cavities within them).},
78+}
79+
80+^D
81+---
82+nocite: '[@*]'
83+references:
84+- abstract: 'The computation of ionic solvation free energies from
85+ atomistic simulations is a surprisingly difficult problem that has
86+ found no satisfactory solution for more than 15 years. The reason is
87+ that the charging free energies evaluated from such simulations are
88+ affected by very large errors. One of these is related to the choice
89+ of a specific convention for summing up the contributions of solvent
90+ charges to the electrostatic potential in the ionic cavity, namely,
91+ on the basis of point charges within entire solvent molecules (M
92+ scheme) or on the basis of individual point charges (P scheme). The
93+ use of an inappropriate convention may lead to a charge-independent
94+ offset in the calculated potential, which depends on the details of
95+ the summation scheme, on the quadrupole-moment trace of the solvent
96+ molecule, and on the approximate form used to represent
97+ electrostatic interactions in the system. However, whether the M or
98+ P scheme (if any) represents the appropriate convention is still a
99+ matter of on-going debate. The goal of the present article is to
100+ settle this long-standing controversy by carefully analyzing (both
101+ analytically and numerically) the properties of the electrostatic
102+ potential in molecular liquids (and inside cavities within them).'
103+ annote: 'An article entry with an eid and a doi field. Note that the
104+ [doi]{.smallcaps} is transformed into a clickable link if hyperref
105+ support has been enabled'
106+ author:
107+ - family: Kastenholz
108+ given: M. A.
109+ - family: Hünenberger
110+ given: Philippe H.
111+ container-title: J. Chem. Phys.
112+ doi: 10.1063/1.2172593
113+ id: kastenholz
114+ issued: 2006
115+ language: 'en-US'
116+ title: 'Computation of methodology-independent ionic solvation free
117+ energies from molecular simulations: I. The electrostatic potential
118+ in molecular liquids'
119+ title-short: 'Computation of methodology-independent ionic solvation
120+ free energies from molecular simulations'
121+ type: 'article-journal'
122+ volume: 124
123+---
124+
125+
126+```
test/command/biblatex-knuth-ct-a.mdnew file+78
@@ -0,0 +1,78 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Knuth 1984)
11+
12+Knuth, Donald E. 1984. *Computers & Typesetting*. Vol. A. Reading,
13+Mass.: Addison-Wesley.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Knuth, 1984)
19+
20+Knuth, D. E. (1984). *Computers & typesetting* (Vol. A). Reading, Mass.:
21+Addison-Wesley.
22+
23+
24+NOTES:
25+
26+- volume-title currently not implemented by chicago-author-date.csl and apa.csl.
27+
28+}
29+
30+@Book{knuth:ct:a,
31+ author = {Knuth, Donald E.},
32+ title = {The {\TeX} book},
33+ date = 1984,
34+ maintitle = {Computers \& Typesetting},
35+ volume = {A},
36+ publisher = {Addison-Wesley},
37+ location = {Reading, Mass.},
38+ hyphenation = {american},
39+ sortyear = {1984-1},
40+ sorttitle = {Computers & Typesetting A},
41+ indexsorttitle= {The TeXbook},
42+ indextitle = {\protect\TeX book, The},
43+ shorttitle = {\TeX book},
44+ annotation = {The first volume of a five-volume book. Note the
45+ sorttitle and sortyear fields. We want this
46+ volume to be listed after the entry referring to the entire
47+ five-volume set. Also note the indextitle and
48+ indexsorttitle fields. Indexing packages that don't
49+ generate robust index entries require some control sequences
50+ to be protected from expansion},
51+}
52+
53+^D
54+---
55+nocite: '[@*]'
56+references:
57+- annote: 'The first volume of a five-volume book. Note the sorttitle
58+ and sortyear fields. We want this volume to be listed after the
59+ entry referring to the entire five-volume set. Also note the
60+ indextitle and indexsorttitle fields. Indexing packages that don''t
61+ generate robust index entries require some control sequences to be
62+ protected from expansion'
63+ author:
64+ - family: Knuth
65+ given: Donald E.
66+ id: 'knuth:ct:a'
67+ issued: 1984
68+ language: 'en-US'
69+ publisher: 'Addison-Wesley'
70+ publisher-place: 'Reading, Mass.'
71+ title: 'Computers & typesetting'
72+ type: book
73+ volume: A
74+ volume-title: The TeX book
75+---
76+
77+
78+```
test/command/biblatex-knuth-ct-b.mdnew file+70
@@ -0,0 +1,70 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2015-03-08:
9+
10+(Knuth 1986)
11+
12+Knuth, Donald E. 1986. *Computers & Typesetting*. Vol. B. Reading,
13+Mass.: Addison-Wesley.
14+
15+
16+Formatted with pandoc and apa.csl, 2015-03-08:
17+
18+(Knuth, 1986)
19+
20+Knuth, D. E. (1986). *Computers & typesetting* (Vol. B). Reading, Mass.:
21+Addison-Wesley.
22+
23+
24+NOTES:
25+
26+- volume-title currently not implemented by chicago-author-date.csl and apa.csl.
27+
28+}
29+
30+@Book{knuth:ct:b,
31+ author = {Knuth, Donald E.},
32+ title = {\TeX: {T}he Program},
33+ date = 1986,
34+ maintitle = {Computers \& Typesetting},
35+ volume = {B},
36+ publisher = {Addison-Wesley},
37+ location = {Reading, Mass.},
38+ hyphenation = {american},
39+ sortyear = {1986-1},
40+ sorttitle = {Computers & Typesetting B},
41+ indexsorttitle= {TeX: The Program},
42+ shorttitle = {\TeX},
43+ annotation = {The second volume of a five-volume book. Note the
44+ sorttitle and sortyear fields. Also note the
45+ indexsorttitle field},
46+}
47+
48+^D
49+---
50+nocite: '[@*]'
51+references:
52+- annote: 'The second volume of a five-volume book. Note the sorttitle
53+ and sortyear fields. Also note the indexsorttitle field'
54+ author:
55+ - family: Knuth
56+ given: Donald E.
57+ id: 'knuth:ct:b'
58+ issued: 1986
59+ language: 'en-US'
60+ publisher: 'Addison-Wesley'
61+ publisher-place: 'Reading, Mass.'
62+ title: 'Computers & typesetting'
63+ title-short: TeX
64+ type: book
65+ volume: B
66+ volume-title: 'TeX: The program'
67+---
68+
69+
70+```
test/command/biblatex-knuth-ct-c.mdnew file+69
@@ -0,0 +1,69 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2015-03-08:
9+
10+(Knuth 1986)
11+
12+Knuth, Donald E. 1986. *Computers & Typesetting*. Vol. C. Reading,
13+Mass.: Addison-Wesley.
14+
15+
16+Formatted with pandoc and apa.csl, 2015-03-08:
17+
18+(Knuth, 1986)
19+
20+Knuth, D. E. (1986). *Computers & typesetting* (Vol. C). Reading, Mass.:
21+Addison-Wesley.
22+
23+
24+NOTES:
25+
26+- volume-title currently not implemented by chicago-author-date.csl and apa.csl.
27+
28+}
29+
30+@Book{knuth:ct:c,
31+ author = {Knuth, Donald E.},
32+ title = {The {METAFONTbook}},
33+ date = 1986,
34+ maintitle = {Computers \& Typesetting},
35+ volume = {C},
36+ publisher = {Addison-Wesley},
37+ location = {Reading, Mass.},
38+ hyphenation = {american},
39+ sortyear = {1986-2},
40+ sorttitle = {Computers & Typesetting C},
41+ indextitle = {METAFONTbook, The},
42+ shorttitle = {{METAFONTbook}},
43+ annotation = {The third volume of a five-volume book. Note the
44+ sorttitle and sortyear fields as well as the
45+ indextitle field},
46+}
47+
48+^D
49+---
50+nocite: '[@*]'
51+references:
52+- annote: 'The third volume of a five-volume book. Note the sorttitle
53+ and sortyear fields as well as the indextitle field'
54+ author:
55+ - family: Knuth
56+ given: Donald E.
57+ id: 'knuth:ct:c'
58+ issued: 1986
59+ language: 'en-US'
60+ publisher: 'Addison-Wesley'
61+ publisher-place: 'Reading, Mass.'
62+ title: 'Computers & typesetting'
63+ type: book
64+ volume: C
65+ volume-title: The METAFONTbook
66+---
67+
68+
69+```
test/command/biblatex-knuth-ct-d.mdnew file+71
@@ -0,0 +1,71 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2015-03-08:
9+
10+(Knuth 1986)
11+
12+Knuth, Donald E. 1986. *Computers & Typesetting*. Vol. D. Reading,
13+Mass.: Addison-Wesley.
14+
15+
16+Formatted with pandoc and apa.csl, 2015-03-08:
17+
18+(Knuth, 1986)
19+
20+Knuth, D. E. (1986). *Computers & typesetting* (Vol. D). Reading, Mass.:
21+Addison-Wesley.
22+
23+
24+NOTES:
25+
26+- biblio2yaml
27+ - Should letters following a colon, such as the "T" in "{{METAFONT}: {T}he Program}" be protected by default? -- I'm not sure ...
28+
29+- volume-title currently not implemented by chicago-author-date.csl and apa.csl.
30+
31+}
32+
33+@Book{knuth:ct:d,
34+ author = {Knuth, Donald E.},
35+ title = {{METAFONT}: {T}he Program},
36+ date = 1986,
37+ maintitle = {Computers \& Typesetting},
38+ volume = {D},
39+ publisher = {Addison-Wesley},
40+ location = {Reading, Mass.},
41+ hyphenation = {american},
42+ sortyear = {1986-3},
43+ sorttitle = {Computers & Typesetting D},
44+ shorttitle = {{METAFONT}},
45+ annotation = {The fourth volume of a five-volume book. Note the
46+ sorttitle and sortyear fields},
47+}
48+
49+^D
50+---
51+nocite: '[@*]'
52+references:
53+- annote: 'The fourth volume of a five-volume book. Note the sorttitle
54+ and sortyear fields'
55+ author:
56+ - family: Knuth
57+ given: Donald E.
58+ id: 'knuth:ct:d'
59+ issued: 1986
60+ language: 'en-US'
61+ publisher: 'Addison-Wesley'
62+ publisher-place: 'Reading, Mass.'
63+ title: 'Computers & typesetting'
64+ title-short: METAFONT
65+ type: book
66+ volume: D
67+ volume-title: 'METAFONT: The program'
68+---
69+
70+
71+```
test/command/biblatex-knuth-ct-e.mdnew file+66
@@ -0,0 +1,66 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2015-03-08:
9+
10+(Knuth 1986)
11+
12+Knuth, Donald E. 1986. *Computers & Typesetting*. Vol. E. Reading,
13+Mass.: Addison-Wesley.
14+
15+
16+Formatted with pandoc and apa.csl, 2015-03-08:
17+
18+(Knuth, 1986)
19+
20+Knuth, D. E. (1986). *Computers & typesetting* (Vol. E). Reading, Mass.:
21+Addison-Wesley.
22+
23+
24+NOTES:
25+
26+- volume-title currently not implemented by chicago-author-date.csl and apa.csl.
27+
28+}
29+
30+@Book{knuth:ct:e,
31+ author = {Knuth, Donald E.},
32+ title = {Computer Modern Typefaces},
33+ date = 1986,
34+ maintitle = {Computers \& Typesetting},
35+ volume = {E},
36+ publisher = {Addison-Wesley},
37+ location = {Reading, Mass.},
38+ hyphenation = {american},
39+ sortyear = {1986-4},
40+ sorttitle = {Computers & Typesetting E},
41+ annotation = {The fifth volume of a five-volume book. Note the
42+ sorttitle and sortyear fields},
43+}
44+
45+^D
46+---
47+nocite: '[@*]'
48+references:
49+- annote: 'The fifth volume of a five-volume book. Note the sorttitle
50+ and sortyear fields'
51+ author:
52+ - family: Knuth
53+ given: Donald E.
54+ id: 'knuth:ct:e'
55+ issued: 1986
56+ language: 'en-US'
57+ publisher: 'Addison-Wesley'
58+ publisher-place: 'Reading, Mass.'
59+ title: 'Computers & typesetting'
60+ type: book
61+ volume: E
62+ volume-title: Computer modern typefaces
63+---
64+
65+
66+```
test/command/biblatex-knuth-ct-related.mdnew file+72
@@ -0,0 +1,72 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Knuth 1984–1986)
11+
12+Knuth, Donald E. 1984–1986. *Computers & Typesetting*. 5. Reading,
13+Mass.: Addison-Wesley.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Knuth, 1984–1986)
19+
20+Knuth, D. E. (1984–1986). *Computers & typesetting* (1-5). Reading,
21+Mass.: Addison-Wesley.
22+
23+
24+NOTES:
25+
26+- biblio2yaml
27+ - related = {...}, relatedtype = {multivolume}, -- no counterpart in CSL
28+
29+- citeproc
30+ - term "vols." missing
31+
32+}
33+
34+@Book{knuth:ct:related,
35+ author = {Knuth, Donald E.},
36+ title = {Computers \& Typesetting},
37+ date = {1984/1986},
38+ volumes = 5,
39+ publisher = {Addison-Wesley},
40+ location = {Reading, Mass.},
41+ hyphenation = {american},
42+ sortyear = {1984-0},
43+ sorttitle = {Computers & Typesetting},
44+ indexsorttitle= {Computers & Typesetting},
45+ related = {knuth:ct:a,knuth:ct:b,knuth:ct:c,knuth:ct:d,knuth:ct:e},
46+ relatedtype = {multivolume},
47+ annotation = {A five-volume book cited as a whole and related to its
48+ individual volumes. Note the related and
49+ relatedtype fields},
50+}
51+
52+^D
53+---
54+nocite: '[@*]'
55+references:
56+- annote: 'A five-volume book cited as a whole and related to its
57+ individual volumes. Note the related and relatedtype fields'
58+ author:
59+ - family: Knuth
60+ given: Donald E.
61+ id: 'knuth:ct:related'
62+ issued: 1984/1986
63+ language: 'en-US'
64+ number-of-volumes: 5
65+ publisher: 'Addison-Wesley'
66+ publisher-place: 'Reading, Mass.'
67+ title: 'Computers & typesetting'
68+ type: book
69+---
70+
71+
72+```
test/command/biblatex-knuth-ct.mdnew file+66
@@ -0,0 +1,66 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Knuth 1984–1986)
11+
12+Knuth, Donald E. 1984–1986. *Computers & Typesetting*. 5. Reading,
13+Mass.: Addison-Wesley.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Knuth, 1984–1986)
19+
20+Knuth, D. E. (1984–1986). *Computers & typesetting* (1-5). Reading,
21+Mass.: Addison-Wesley.
22+
23+
24+NOTES:
25+
26+- citeproc
27+ - term "vols." is missing
28+
29+}
30+
31+@Book{knuth:ct,
32+ author = {Knuth, Donald E.},
33+ title = {Computers \& Typesetting},
34+ date = {1984/1986},
35+ volumes = 5,
36+ publisher = {Addison-Wesley},
37+ location = {Reading, Mass.},
38+ hyphenation = {american},
39+ sortyear = {1984-0},
40+ sorttitle = {Computers & Typesetting},
41+ indexsorttitle= {Computers & Typesetting},
42+ annotation = {A five-volume book cited as a whole. This is a book
43+ entry, note the volumes field},
44+}
45+
46+^D
47+---
48+nocite: '[@*]'
49+references:
50+- annote: 'A five-volume book cited as a whole. This is a book entry,
51+ note the volumes field'
52+ author:
53+ - family: Knuth
54+ given: Donald E.
55+ id: 'knuth:ct'
56+ issued: 1984/1986
57+ language: 'en-US'
58+ number-of-volumes: 5
59+ publisher: 'Addison-Wesley'
60+ publisher-place: 'Reading, Mass.'
61+ title: 'Computers & typesetting'
62+ type: book
63+---
64+
65+
66+```
test/command/biblatex-kowalik.mdnew file+68
@@ -0,0 +1,68 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Kowalik and Isard 1995)
11+
12+Kowalik, F., and M. Isard. 1995. “Estimateur d’un défaut de
13+fonctionnement d’un modulateur en quadrature et étage de modulation
14+l’utilisant.” French patent request.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Kowalik & Isard, 1995)
20+
21+Kowalik, F., & Isard, M. (1995, January 11). Estimateur d’un défaut de
22+fonctionnement d’un modulateur en quadrature et étage de modulation
23+l’utilisant. French patent request.
24+
25+
26+}
27+
28+@Patent{kowalik,
29+ author = {Kowalik, F. and Isard, M.},
30+ title = {Estimateur d'un d{\'e}faut de fonctionnement d'un modulateur
31+ en quadrature et {\'e}tage de modulation l'utilisant},
32+ number = 9500261,
33+ date = {1995-01-11},
34+ type = {patreqfr},
35+ hyphenation = {french},
36+ indextitle = {Estimateur d'un d{\'e}faut de fonctionnement},
37+ annotation = {This is a patent entry for a French patent request
38+ with a full date. The number is given in the number
39+ field. Note the format of the type and date
40+ fields in the database file. Compare almendro,
41+ laufenberg, and sorace},
42+}
43+
44+^D
45+---
46+nocite: '[@*]'
47+references:
48+- annote: 'This is a patent entry for a French patent request with a
49+ full date. The number is given in the number field. Note the format
50+ of the type and date fields in the database file. Compare almendro,
51+ laufenberg, and sorace'
52+ author:
53+ - family: Kowalik
54+ given: F.
55+ - family: Isard
56+ given: M.
57+ genre: French patent request
58+ id: kowalik
59+ issued: '1995-01-11'
60+ language: 'fr-FR'
61+ number: 9500261
62+ title: 'Estimateur d''un défaut de fonctionnement d''un modulateur en
63+ quadrature et étage de modulation l''utilisant'
64+ type: patent
65+---
66+
67+
68+```
test/command/biblatex-kullback-related.mdnew file+62
@@ -0,0 +1,62 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Kullback 1997)
11+
12+Kullback, Solomon. 1997. *Information Theory and Statistics*. New York:
13+Dover Publications.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Kullback, 1997)
19+
20+Kullback, S. (1997). *Information theory and statistics*. New York:
21+Dover Publications.
22+
23+
24+NOTES:
25+
26+- related = {kullback}, relatedtype = {origpubin}, -- not possible in CSL
27+
28+}
29+
30+@Book{kullback:related,
31+ author = {Kullback, Solomon},
32+ title = {Information Theory and Statistics},
33+ year = 1997,
34+ publisher = {Dover Publications},
35+ location = {New York},
36+ hyphenation = {american},
37+ related = {kullback},
38+ relatedtype = {origpubin},
39+ annotation = {A reprint of the kullback entry. Note the format of
40+ the related and relatedtype fields},
41+}
42+
43+^D
44+---
45+nocite: '[@*]'
46+references:
47+- annote: A reprint of the kullback entry. Note the format of the
48+ related and relatedtype fields
49+ author:
50+ - family: Kullback
51+ given: Solomon
52+ id: 'kullback:related'
53+ issued: 1997
54+ language: 'en-US'
55+ publisher: Dover Publications
56+ publisher-place: New York
57+ title: Information theory and statistics
58+ type: book
59+---
60+
61+
62+```
test/command/biblatex-kullback-reprint.mdnew file+71
@@ -0,0 +1,71 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Kullback 1997)
11+
12+Kullback, Solomon. 1997. *Information Theory and Statistics*. New York:
13+Dover Publications.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Kullback, 1997)
19+
20+Kullback, S. (1997). *Information theory and statistics*. New York:
21+Dover Publications.
22+
23+
24+NOTES:
25+
26+Formatted with chicago-author-date-TEST-20131018.csl
27+
28+(Kullback [1959] 1997)
29+
30+Kullback, Solomon. (1959) 1997. *Information Theory and Statistics*. New
31+York: Dover Publications.
32+
33+}
34+
35+@Book{kullback:reprint,
36+ author = {Kullback, Solomon},
37+ title = {Information Theory and Statistics},
38+ year = 1997,
39+ publisher = {Dover Publications},
40+ location = {New York},
41+ origyear = 1959,
42+ origpublisher= {John Wiley \& Sons},
43+ hyphenation = {american},
44+ annotation = {A reprint of the kullback entry. Note the format of
45+ origyear and origpublisher. These fields are
46+ not used by the standard bibliography styles},
47+}
48+
49+^D
50+---
51+nocite: '[@*]'
52+references:
53+- annote: A reprint of the kullback entry. Note the format of origyear
54+ and origpublisher. These fields are not used by the standard
55+ bibliography styles
56+ author:
57+ - family: Kullback
58+ given: Solomon
59+ id: 'kullback:reprint'
60+ issued: 1997
61+ language: 'en-US'
62+ original-date: 1959
63+ original-publisher: 'John Wiley & Sons'
64+ publisher: Dover Publications
65+ publisher-place: New York
66+ title: Information theory and statistics
67+ type: book
68+---
69+
70+
71+```
test/command/biblatex-kullback.mdnew file+52
@@ -0,0 +1,52 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Kullback 1959)
11+
12+Kullback, Solomon. 1959. *Information Theory and Statistics*. New York:
13+John Wiley & Sons.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Kullback, 1959)
19+
20+Kullback, S. (1959). *Information theory and statistics*. New York: John
21+Wiley & Sons.
22+
23+
24+}
25+
26+@Book{kullback,
27+ author = {Kullback, Solomon},
28+ title = {Information Theory and Statistics},
29+ year = 1959,
30+ publisher = {John Wiley \& Sons},
31+ location = {New York},
32+ hyphenation = {american},
33+}
34+
35+^D
36+---
37+nocite: '[@*]'
38+references:
39+- author:
40+ - family: Kullback
41+ given: Solomon
42+ id: kullback
43+ issued: 1959
44+ language: 'en-US'
45+ publisher: 'John Wiley & Sons'
46+ publisher-place: New York
47+ title: Information theory and statistics
48+ type: book
49+---
50+
51+
52+```
test/command/biblatex-laufenberg.mdnew file+109
@@ -0,0 +1,109 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Laufenberg et al. 2006)
11+
12+Laufenberg, Xaver, Dominique Eynius, Helmut Suelzle, Stephan Usbeck,
13+Matthias Spaeth, Miriam Neuser-Hoffmann, Christian Myrzik, et al. 2006.
14+“Elektrische Einrichtung und Betriebsverfahren.” European patent.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Laufenberg et al., 2006)
20+
21+Laufenberg, X., Eynius, D., Suelzle, H., Usbeck, S., Spaeth, M.,
22+Neuser-Hoffmann, M., … Ebner, N. (2006, September 13). Elektrische
23+Einrichtung und Betriebsverfahren. European patent.
24+
25+
26+NOTES:
27+
28+- biblio2yaml
29+ - Is there any equivalent of "holder" in CSL?
30+
31+}
32+
33+@Patent{laufenberg,
34+ author = {Laufenberg, Xaver and Eynius, Dominique and Suelzle, Helmut
35+ and Usbeck, Stephan and Spaeth, Matthias and Neuser-Hoffmann,
36+ Miriam and Myrzik, Christian and Schmid, Manfred and Nietfeld,
37+ Franz and Thiel, Alexander and Braun, Harald and Ebner,
38+ Norbert},
39+ title = {Elektrische Einrichtung und Betriebsverfahren},
40+ number = 1700367,
41+ date = {2006-09-13},
42+ holder = {{Robert Bosch GmbH} and {Daimler Chrysler AG} and {Bayerische
43+ Motoren Werke AG}},
44+ type = {patenteu},
45+ hyphenation = {german},
46+ annotation = {This is a patent entry with a holder field.
47+ Note the format of the type and location
48+ fields in the database file. Compare almendro,
49+ sorace, and kowalik},
50+ abstract = {The invention relates to an electric device comprising a
51+ generator, in particular for use in the vehicle electric
52+ system of a motor vehicle and a controller for controlling the
53+ generator voltage. The device is equipped with a control zone,
54+ in which the voltage is controlled and zones, in which the
55+ torque is controlled. The invention also relates to methods
56+ for operating a device of this type.},
57+ file = {http://v3.espacenet.com/textdoc?IDX=EP1700367},
58+}
59+
60+^D
61+---
62+nocite: '[@*]'
63+references:
64+- abstract: 'The invention relates to an electric device comprising a
65+ generator, in particular for use in the vehicle electric system of a
66+ motor vehicle and a controller for controlling the generator
67+ voltage. The device is equipped with a control zone, in which the
68+ voltage is controlled and zones, in which the torque is controlled.
69+ The invention also relates to methods for operating a device of this
70+ type.'
71+ annote: 'This is a patent entry with a holder field. Note the format
72+ of the type and location fields in the database file. Compare
73+ almendro, sorace, and kowalik'
74+ author:
75+ - family: Laufenberg
76+ given: Xaver
77+ - family: Eynius
78+ given: Dominique
79+ - family: Suelzle
80+ given: Helmut
81+ - family: Usbeck
82+ given: Stephan
83+ - family: Spaeth
84+ given: Matthias
85+ - family: 'Neuser-Hoffmann'
86+ given: Miriam
87+ - family: Myrzik
88+ given: Christian
89+ - family: Schmid
90+ given: Manfred
91+ - family: Nietfeld
92+ given: Franz
93+ - family: Thiel
94+ given: Alexander
95+ - family: Braun
96+ given: Harald
97+ - family: Ebner
98+ given: Norbert
99+ genre: European patent
100+ id: laufenberg
101+ issued: '2006-09-13'
102+ language: 'de-DE'
103+ number: 1700367
104+ title: Elektrische Einrichtung und Betriebsverfahren
105+ type: patent
106+---
107+
108+
109+```
test/command/biblatex-loh.mdnew file+65
@@ -0,0 +1,65 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Loh 1992)
11+
12+Loh, Nin C. 1992. “High-resolution Micromachined Interferometric
13+Accelerometer.” Master’s thesis, Cambridge, Mass.: Massachusetts
14+Institute of Technology.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Loh, 1992)
20+
21+Loh, N. C. (1992). *High-resolution micromachined interferometric
22+accelerometer* (Master’s thesis). Massachusetts Institute of Technology,
23+Cambridge, Mass.
24+
25+
26+NOTES:
27+
28+- biblio2yaml
29+ - At some point, actual localization of "localization keys" will have to be implemented
30+
31+}
32+
33+@Thesis{loh,
34+ author = {Loh, Nin C.},
35+ title = {High-Resolution Micromachined Interferometric Accelerometer},
36+ type = {mathesis},
37+ institution = {Massachusetts Institute of Technology},
38+ date = 1992,
39+ location = {Cambridge, Mass.},
40+ hyphenation = {american},
41+ annotation = {This is a typical thesis entry for an MA thesis. Note
42+ the type field in the database file which uses a
43+ localization key},
44+}
45+^D
46+---
47+nocite: '[@*]'
48+references:
49+- annote: This is a typical thesis entry for an MA thesis. Note the type
50+ field in the database file which uses a localization key
51+ author:
52+ - family: Loh
53+ given: Nin C.
54+ genre: 'Master''s thesis'
55+ id: loh
56+ issued: 1992
57+ language: 'en-US'
58+ publisher: Massachusetts Institute of Technology
59+ publisher-place: 'Cambridge, Mass.'
60+ title: 'High-resolution micromachined interferometric accelerometer'
61+ type: thesis
62+---
63+
64+
65+```
test/command/biblatex-malinowski.mdnew file+67
@@ -0,0 +1,67 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Malinowski 1972)
11+
12+Malinowski, Bronisław. 1972. *Argonauts of the Western Pacific: An
13+Account of Native Enterprise and Adventure in the Archipelagoes of
14+Melanesian New Guinea*. 8th ed. London: Routledge and Kegan Paul.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Malinowski, 1972)
20+
21+Malinowski, B. (1972). *Argonauts of the Western Pacific: An account of
22+native enterprise and adventure in the Archipelagoes of Melanesian New
23+Guinea* (8th ed.). London: Routledge and Kegan Paul.
24+
25+
26+}
27+
28+@Book{malinowski,
29+ author = {Malinowski, Bronis{\l}aw},
30+ title = {Argonauts of the {Western Pacific}},
31+ date = 1972,
32+ edition = 8,
33+ publisher = {Routledge {and} Kegan Paul},
34+ location = {London},
35+ hyphenation = {british},
36+ subtitle = {An account of native enterprise and adventure in the
37+ {Archipelagoes of Melanesian New Guinea}},
38+ shorttitle = {Argonauts},
39+ annotation = {This is a book entry. Note the format of the
40+ publisher and edition fields as well as the
41+ subtitle field},
42+}
43+
44+^D
45+---
46+nocite: '[@*]'
47+references:
48+- annote: This is a book entry. Note the format of the publisher and
49+ edition fields as well as the subtitle field
50+ author:
51+ - family: Malinowski
52+ given: Bronisław
53+ edition: 8
54+ id: malinowski
55+ issued: 1972
56+ language: 'en-GB'
57+ publisher: Routledge and Kegan Paul
58+ publisher-place: London
59+ title: 'Argonauts of the Western Pacific: An account of native
60+ enterprise and adventure in the [Archipelagoes of Melanesian New
61+ Guinea]{.nocase}'
62+ title-short: Argonauts
63+ type: book
64+---
65+
66+
67+```
test/command/biblatex-manual.mdnew file+51
@@ -0,0 +1,51 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}
4+
5+@Manual{cms,
6+ title = {The {Chicago} Manual of Style},
7+ date = 2003,
8+ subtitle = {The Essential Guide for Writers, Editors, and Publishers},
9+ edition = 15,
10+ publisher = {University of Chicago Press},
11+ location = {Chicago, Ill.},
12+ isbn = {0-226-10403-6},
13+ label = {CMS},
14+ hyphenation = {american},
15+ sorttitle = {Chicago Manual of Style},
16+ indextitle = {Chicago Manual of Style, The},
17+ shorttitle = {Chicago Manual of Style},
18+ annotation = {This is a manual entry without an author or
19+ editor. Note the label field in the database
20+ file which is provided for author-year citation styles. Also
21+ note the sorttitle and indextitle fields. By
22+ default, all entries without an author or
23+ editor are alphabetized by title but we want
24+ this entry to be alphabetized under \enquote*{C} rather than
25+ \enquote*{T}. There's also an isbn field},
26+}
27+^D
28+---
29+nocite: '[@*]'
30+references:
31+- annote: 'This is a manual entry without an author or editor. Note the
32+ label field in the database file which is provided for author-year
33+ citation styles. Also note the sorttitle and indextitle fields. By
34+ default, all entries without an author or editor are alphabetized by
35+ title but we want this entry to be alphabetized under ''C'' rather
36+ than ''T''. There''s also an isbn field'
37+ edition: 15
38+ id: cms
39+ isbn: '0-226-10403-6'
40+ issued: 2003
41+ language: 'en-US'
42+ publisher: University of Chicago Press
43+ publisher-place: 'Chicago, Ill.'
44+ title: 'The Chicago manual of style: The essential guide for writers,
45+ editors, and publishers'
46+ title-short: Chicago manual of style
47+ type: book
48+---
49+
50+
51+```
test/command/biblatex-markey.mdnew file+65
@@ -0,0 +1,65 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Markey 2005)
11+
12+Markey, Nicolas. 2005. “Tame the BeaST: The B to X of BibTeX” (version
13+1.3). October 16.
14+<http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf>.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Markey, 2005)
20+
21+Markey, N. (2005, October 16). Tame the BeaST: The B to X of BibTeX.
22+Retrieved October 01, 2006, from
23+<http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf>
24+
25+
26+}
27+
28+@Online{markey,
29+ author = {Markey, Nicolas},
30+ title = {Tame the {BeaST}},
31+ date = {2005-10-16},
32+ url =
33+ {http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf},
34+ subtitle = {The {B} to {X} of {BibTeX}},
35+ version = {1.3},
36+ urldate = {2006-10-01},
37+ hyphenation = {american},
38+ sorttitle = {Tame the Beast},
39+ annotation = {An online entry for a tutorial. Note the format of
40+ the date field (yyyy-mm-dd) in the database
41+ file.},
42+}
43+
44+^D
45+---
46+nocite: '[@*]'
47+references:
48+- accessed: '2006-10-01'
49+ annote: 'An online entry for a tutorial. Note the format of the date
50+ field (yyyy-mm-dd) in the database file.'
51+ author:
52+ - family: Markey
53+ given: Nicolas
54+ id: markey
55+ issued: '2005-10-16'
56+ language: 'en-US'
57+ title: 'Tame the BeaST: The B to X of BibTeX'
58+ title-short: Tame the BeaST
59+ type: webpage
60+ url: 'http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf'
61+ version: 1.3
62+---
63+
64+
65+```
test/command/biblatex-maron.mdnew file+70
@@ -0,0 +1,70 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Maron 2000)
11+
12+Maron, Monika. 2000. *Animal Triste*. Translated by Brigitte Goldstein.
13+Lincoln: University of Nebraska Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Maron, 2000)
19+
20+Maron, M. (2000). *Animal triste*. (B. Goldstein, Trans.). Lincoln:
21+University of Nebraska Press.
22+
23+
24+NOTES:
25+
26+- origlanguage concatenated with translator, e.g. “translated from the German by …” not possible in CSL
27+
28+}
29+
30+@Book{maron,
31+ author = {Maron, Monika},
32+ title = {Animal Triste},
33+ date = 2000,
34+ translator = {Brigitte Goldstein},
35+ origlanguage = {german},
36+ publisher = {University of Nebraska Press},
37+ location = {Lincoln},
38+ hyphenation = {american},
39+ shorttitle = {Animal Triste},
40+ annotation = {An English translation of a German novel with a French title.
41+ In other words: a book entry with a
42+ translator field. Note the origlanguage
43+ field which is concatenated with the translator},
44+}
45+
46+^D
47+---
48+nocite: '[@*]'
49+references:
50+- annote: 'An English translation of a German novel with a French title.
51+ In other words: a book entry with a translator field. Note the
52+ origlanguage field which is concatenated with the translator'
53+ author:
54+ - family: Maron
55+ given: Monika
56+ id: maron
57+ issued: 2000
58+ language: 'en-US'
59+ publisher: University of Nebraska Press
60+ publisher-place: Lincoln
61+ title: Animal triste
62+ title-short: Animal triste
63+ translator:
64+ - family: Goldstein
65+ given: Brigitte
66+ type: book
67+---
68+
69+
70+```
test/command/biblatex-massa.mdnew file+56
@@ -0,0 +1,56 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Massa 2004)
11+
12+Massa, Werner. 2004. *Crystal Structure Determination*. 2nd ed. Berlin:
13+Spinger.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Massa, 2004)
19+
20+Massa, W. (2004). *Crystal structure determination* (2nd ed.). Berlin:
21+Spinger.
22+
23+
24+}
25+
26+@Book{massa,
27+ author = {Werner Massa},
28+ title = {Crystal structure determination},
29+ date = 2004,
30+ edition = 2,
31+ publisher = {Spinger},
32+ location = {Berlin},
33+ hyphenation = {british},
34+ annotation = {A book entry with an edition field},
35+}
36+
37+^D
38+---
39+nocite: '[@*]'
40+references:
41+- annote: A book entry with an edition field
42+ author:
43+ - family: Massa
44+ given: Werner
45+ edition: 2
46+ id: massa
47+ issued: 2004
48+ language: 'en-GB'
49+ publisher: Spinger
50+ publisher-place: Berlin
51+ title: Crystal structure determination
52+ type: book
53+---
54+
55+
56+```
test/command/biblatex-moore-related.mdnew file+66
@@ -0,0 +1,66 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Moore 1998)
11+
12+Moore, Gordon E. 1998. “Cramming More Components onto Integrated
13+Circuits.” *Proceedings of the IEEE* 86 (1): 82–85.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Moore, 1998)
19+
20+Moore, G. E. (1998). Cramming more components onto integrated circuits.
21+*Proceedings of the IEEE*, *86*(1), 82–85.
22+
23+
24+NOTES:
25+
26+- "related = {moore}, relatedtype = {reprintfrom}," – no equivalent implemented in CSL
27+
28+}
29+
30+@Article{moore:related,
31+ author = {Moore, Gordon E.},
32+ title = {Cramming more components onto integrated circuits},
33+ journaltitle = {Proceedings of the {IEEE}},
34+ year = 1998,
35+ volume = 86,
36+ number = 1,
37+ pages = {82-85},
38+ hyphenation = {american},
39+ related = {moore},
40+ relatedtype = {reprintfrom},
41+ annotation = {A reprint of Moore's law. Note the related and
42+ relatedtype fields},
43+}
44+
45+^D
46+---
47+nocite: '[@*]'
48+references:
49+- annote: 'A reprint of Moore''s law. Note the related and relatedtype
50+ fields'
51+ author:
52+ - family: Moore
53+ given: Gordon E.
54+ container-title: Proceedings of the IEEE
55+ id: 'moore:related'
56+ issue: 1
57+ issued: 1998
58+ language: 'en-US'
59+ page: '82-85'
60+ title: Cramming more components onto integrated circuits
61+ type: 'article-journal'
62+ volume: 86
63+---
64+
65+
66+```
test/command/biblatex-moore.mdnew file+56
@@ -0,0 +1,56 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Moore 1965)
11+
12+Moore, Gordon E. 1965. “Cramming More Components onto Integrated
13+Circuits.” *Electronics* 38 (8): 114–117.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Moore, 1965)
19+
20+Moore, G. E. (1965). Cramming more components onto integrated circuits.
21+*Electronics*, *38*(8), 114–117.
22+
23+
24+}
25+
26+@Article{moore,
27+ author = {Moore, Gordon E.},
28+ title = {Cramming more components onto integrated circuits},
29+ journaltitle = {Electronics},
30+ year = 1965,
31+ volume = 38,
32+ number = 8,
33+ pages = {114-117},
34+ hyphenation = {american},
35+}
36+
37+^D
38+---
39+nocite: '[@*]'
40+references:
41+- author:
42+ - family: Moore
43+ given: Gordon E.
44+ container-title: Electronics
45+ id: moore
46+ issue: 8
47+ issued: 1965
48+ language: 'en-US'
49+ page: '114-117'
50+ title: Cramming more components onto integrated circuits
51+ type: 'article-journal'
52+ volume: 38
53+---
54+
55+
56+```
test/command/biblatex-moraux.mdnew file+94
@@ -0,0 +1,94 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Moraux 1979)
11+
12+Moraux, Paul. 1979. “Le *De Anima* dans la tradition grècque: Quelques
13+aspects de l’interpretation du traité, de Theophraste à Themistius.” In
14+*Aristotle on Mind and the Senses. Proceedings of the Seventh Symposium
15+Aristotelicum*, edited by G. E. R. Lloyd and G. E. L. Owen, 281–324.
16+Cambridge: Cambridge University Press.
17+
18+
19+Formatted with pandoc and apa.csl, 2013-10-23:
20+
21+(Moraux, 1979)
22+
23+Moraux, P. (1979). Le *De Anima* dans la tradition grècque: Quelques
24+aspects de l’interpretation du traité, de Theophraste à Themistius. In
25+G. E. R. Lloyd & G. E. L. Owen (eds.), *Aristotle on Mind and the
26+Senses. Proceedings of the Seventh Symposium Aristotelicum* (pp.
27+281–324). Cambridge: Cambridge University Press.
28+
29+
30+NOTES:
31+
32+- Since case (conversion) can only be specified per entry, not per field, for apa.csl the case of container-title would have to be adjusted manually.
33+
34+}
35+
36+@string{ cup = {Cambridge University Press} }
37+
38+@InProceedings{moraux,
39+ author = {Moraux, Paul},
40+ editor = {Lloyd, G. E. R. and Owen, G. E. L.},
41+ title = {Le \emph{De Anima} dans la tradition gr{\`e}cque},
42+ date = 1979,
43+ booktitle = {Aristotle on Mind and the Senses},
44+ subtitle = {Quelques aspects de l'interpretation du trait{\'e}, de
45+ Theophraste {\`a} Themistius},
46+ booktitleaddon= {Proceedings of the Seventh Symposium Aristotelicum},
47+ eventdate = 1975,
48+ publisher = cup,
49+ location = {Cambridge},
50+ pages = {281-324},
51+ keywords = {secondary},
52+ hyphenation = {french},
53+ indexsorttitle= {De Anima dans la tradition grecque},
54+ indextitle = {\emph{De Anima} dans la tradition gr{\`e}cque, Le},
55+ shorttitle = {\emph{De Anima} dans la tradition gr{\`e}cque},
56+ annotation = {This is a typical inproceedings entry. Note the
57+ booksubtitle, shorttitle,
58+ indextitle, and indexsorttitle fields. Also
59+ note the eventdate field.},
60+}
61+
62+^D
63+---
64+nocite: '[@*]'
65+references:
66+- annote: 'This is a typical inproceedings entry. Note the booksubtitle,
67+ shorttitle, indextitle, and indexsorttitle fields. Also note the
68+ eventdate field.'
69+ author:
70+ - family: Moraux
71+ given: Paul
72+ container-title: Aristotle on Mind and the Senses. Proceedings of the
73+ Seventh Symposium Aristotelicum
74+ editor:
75+ - family: Lloyd
76+ given: G. E. R.
77+ - family: Owen
78+ given: G. E. L.
79+ event-date: 1975
80+ id: moraux
81+ issued: 1979
82+ keyword: secondary
83+ language: 'fr-FR'
84+ page: '281-324'
85+ publisher: Cambridge University Press
86+ publisher-place: Cambridge
87+ title: 'Le *De Anima* dans la tradition grècque: Quelques aspects de
88+ l''interpretation du traité, de Theophraste à Themistius'
89+ title-short: '*De Anima* dans la tradition grècque'
90+ type: 'paper-conference'
91+---
92+
93+
94+```
test/command/biblatex-murray.mdnew file+104
@@ -0,0 +1,104 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Hostetler et al. 1998)
11+
12+Hostetler, Michael J., Julia E. Wingate, Chuan-Jian Zhong, Jay E.
13+Harris, Richard W. Vachet, Michael R. Clark, J. David Londono, et al.
14+1998. “Alkanethiolate Gold Cluster Molecules with Core Diameters from
15+1.5 to 5.2 nm: Core and Monolayer Properties as a Function of Core
16+Size.” *Langmuir* 14 (1): 17–30.
17+
18+
19+Formatted with pandoc and apa.csl, 2013-10-23:
20+
21+(Hostetler et al., 1998)
22+
23+Hostetler, M. J., Wingate, J. E., Zhong, C.-J., Harris, J. E., Vachet,
24+R. W., Clark, M. R., … Murray, R. W. (1998). Alkanethiolate gold cluster
25+molecules with core diameters from 1.5 to 5.2 nm: Core and monolayer
26+properties as a function of core size. *Langmuir*, *14*(1), 17–30.
27+
28+
29+}
30+
31+@Article{murray,
32+ author = {Hostetler, Michael J. and Wingate, Julia E. and Zhong,
33+ Chuan-Jian and Harris, Jay E. and Vachet, Richard W. and
34+ Clark, Michael R. and Londono, J. David and Green, Stephen
35+ J. and Stokes, Jennifer J. and Wignall, George D. and Glish,
36+ Gary L. and Porter, Marc D. and Evans, Neal D. and Murray,
37+ Royce W.},
38+ title = {Alkanethiolate gold cluster molecules with core diameters from
39+ 1.5 to 5.2~{nm}},
40+ journaltitle = {Langmuir},
41+ date = 1998,
42+ subtitle = {Core and monolayer properties as a function of core size},
43+ volume = 14,
44+ number = 1,
45+ pages = {17-30},
46+ hyphenation = {american},
47+ indextitle = {Alkanethiolate gold cluster molecules},
48+ shorttitle = {Alkanethiolate gold cluster molecules},
49+ annotation = {An article entry with \arabic{author} authors. By
50+ default, long author and editor lists are automatically
51+ truncated. This is configurable},
52+}
53+
54+^D
55+---
56+nocite: '[@*]'
57+references:
58+- annote: 'An article entry with author authors. By default, long author
59+ and editor lists are automatically truncated. This is configurable'
60+ author:
61+ - family: Hostetler
62+ given: Michael J.
63+ - family: Wingate
64+ given: Julia E.
65+ - family: Zhong
66+ given: 'Chuan-Jian'
67+ - family: Harris
68+ given: Jay E.
69+ - family: Vachet
70+ given: Richard W.
71+ - family: Clark
72+ given: Michael R.
73+ - family: Londono
74+ given: J. David
75+ - family: Green
76+ given: Stephen J.
77+ - family: Stokes
78+ given: Jennifer J.
79+ - family: Wignall
80+ given: George D.
81+ - family: Glish
82+ given: Gary L.
83+ - family: Porter
84+ given: Marc D.
85+ - family: Evans
86+ given: Neal D.
87+ - family: Murray
88+ given: Royce W.
89+ container-title: Langmuir
90+ id: murray
91+ issue: 1
92+ issued: 1998
93+ language: 'en-US'
94+ page: '17-30'
95+ title: 'Alkanethiolate gold cluster molecules with core diameters from
96+ 1.5 to 5.2 [nm]{.nocase}: Core and monolayer properties as a
97+ function of core size'
98+ title-short: Alkanethiolate gold cluster molecules
99+ type: 'article-journal'
100+ volume: 14
101+---
102+
103+
104+```
test/command/biblatex-nietzsche-historie.mdnew file+100
@@ -0,0 +1,100 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Nietzsche 1988)
10+
11+Nietzsche, Friedrich. 1988. “Unzeitgemässe Betrachtungen. Zweites Stück:
12+Vom Nutzen und Nachtheil der Historie für das Leben.” In *Sämtliche
13+Werke: Kritische Studienausgabe*, by Friedrich Nietzsche, edited by
14+Giorgio Colli and Mazzino Montinari, 1:243–334. München; Berlin; New
15+York: Deutscher Taschenbuch-Verlag; Walter de Gruyter.
16+
17+
18+Formatted with pandoc and apa.csl, 2013-10-23:
19+
20+(Nietzsche, 1988)
21+
22+Nietzsche, F. (1988). Unzeitgemässe Betrachtungen. Zweites Stück: Vom
23+Nutzen und Nachtheil der Historie für das Leben. In G. Colli & M.
24+Montinari (eds.), *Sämtliche Werke: Kritische Studienausgabe* (Vol. 1,
25+pp. 243–334). München; Berlin; New York: Deutscher Taschenbuch-Verlag;
26+Walter de Gruyter.
27+
28+
29+}
30+
31+@string{ dtv = {Deutscher Taschenbuch-Verlag} }
32+
33+@InBook{nietzsche:historie,
34+ title = {Unzeitgem{\"a}sse Betrachtungen. Zweites St{\"u}ck},
35+ date = 1988,
36+ author = {Nietzsche, Friedrich},
37+ booktitle = {Die Geburt der Trag{\"o}die. Unzeitgem{\"a}{\ss}e
38+ Betrachtungen I--IV. Nachgelassene Schriften 1870--1973},
39+ bookauthor = {Nietzsche, Friedrich},
40+ editor = {Colli, Giorgio and Montinari, Mazzino},
41+ subtitle = {Vom Nutzen und Nachtheil der Historie f{\"u}r das Leben},
42+ maintitle = {S{\"a}mtliche Werke},
43+ mainsubtitle = {Kritische Studienausgabe},
44+ volume = 1,
45+ publisher = dtv # { and Walter de Gruyter},
46+ location = {M{\"u}nchen and Berlin and New York},
47+ pages = {243-334},
48+ hyphenation = {german},
49+ sortyear = {1988-2},
50+ sorttitle = {Werke-01-243},
51+ indexsorttitle= {Vom Nutzen und Nachtheil der Historie fur das Leben},
52+ indextitle = {Vom Nutzen und Nachtheil der Historie f{\"u}r das Leben},
53+ shorttitle = {Vom Nutzen und Nachtheil der Historie},
54+ annotation = {A single essay from the critical edition of Nietzsche's works.
55+ This inbook entry explicitly refers to an essay found
56+ in the first volume. Note the title,
57+ booktitle, and maintitle fields. Also note
58+ the sorttitle and sortyear fields. We want
59+ this entry to be listed after the entry referring to the
60+ entire first volume},
61+}
62+
63+^D
64+---
65+nocite: '[@*]'
66+references:
67+- annote: 'A single essay from the critical edition of Nietzsche''s
68+ works. This inbook entry explicitly refers to an essay found in the
69+ first volume. Note the title, booktitle, and maintitle fields. Also
70+ note the sorttitle and sortyear fields. We want this entry to be
71+ listed after the entry referring to the entire first volume'
72+ author:
73+ - family: Nietzsche
74+ given: Friedrich
75+ container-author:
76+ - family: Nietzsche
77+ given: Friedrich
78+ container-title: 'Sämtliche Werke: Kritische Studienausgabe'
79+ editor:
80+ - family: Colli
81+ given: Giorgio
82+ - family: Montinari
83+ given: Mazzino
84+ id: 'nietzsche:historie'
85+ issued: 1988
86+ language: 'de-DE'
87+ page: '243-334'
88+ publisher: 'Deutscher Taschenbuch-Verlag; Walter de Gruyter'
89+ publisher-place: München; Berlin; New York
90+ title: 'Unzeitgemässe Betrachtungen. Zweites Stück: Vom Nutzen und
91+ Nachtheil der Historie für das Leben'
92+ title-short: Vom Nutzen und Nachtheil der Historie
93+ type: chapter
94+ volume: 1
95+ volume-title: 'Die Geburt der Tragödie. Unzeitgemäße Betrachtungen
96+ I--IV. Nachgelassene Schriften 1870--1973'
97+---
98+
99+
100+```
test/command/biblatex-nietzsche-ksa.mdnew file+89
@@ -0,0 +1,89 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Nietzsche 1988)
10+
11+Nietzsche, Friedrich. 1988. *Sämtliche Werke: Kritische Studienausgabe*.
12+Edited by Giorgio Colli and Mazzino Montinari. 2nd ed. 15. München;
13+Berlin; New York: Deutscher Taschenbuch-Verlag; Walter de Gruyter.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Nietzsche, 1988)
19+
20+Nietzsche, F. (1988). *Sämtliche Werke: Kritische Studienausgabe*. (G.
21+Colli & M. Montinari, eds.) (2nd ed., 1-15). München; Berlin; New York:
22+Deutscher Taschenbuch-Verlag; Walter de Gruyter.
23+
24+
25+NOTES:
26+
27+- biblio2yaml
28+ - term "vols." missing
29+
30+}
31+
32+@string{ dtv = {Deutscher Taschenbuch-Verlag} }
33+
34+@Book{nietzsche:ksa,
35+ author = {Nietzsche, Friedrich},
36+ title = {S{\"a}mtliche Werke},
37+ date = 1988,
38+ editor = {Colli, Giorgio and Montinari, Mazzino},
39+ edition = 2,
40+ volumes = 15,
41+ publisher = dtv # { and Walter de Gruyter},
42+ location = {M{\"u}nchen and Berlin and New York},
43+ hyphenation = {german},
44+ sortyear = {1988-0},
45+ sorttitle = {Werke-00-000},
46+ indexsorttitle= {Samtliche Werke},
47+ subtitle = {Kritische Studienausgabe},
48+ annotation = {The critical edition of Nietzsche's works. This is a
49+ book entry referring to a 15-volume work as a
50+ whole. Note the volumes field and the format of the
51+ publisher and location fields in the
52+ database file. Also note the sorttitle and
53+ sortyear fields which are used to fine-tune the
54+ sorting order of the bibliography. We want this item listed
55+ first in the bibliography},
56+}
57+
58+^D
59+---
60+nocite: '[@*]'
61+references:
62+- annote: 'The critical edition of Nietzsche''s works. This is a book
63+ entry referring to a 15-volume work as a whole. Note the volumes
64+ field and the format of the publisher and location fields in the
65+ database file. Also note the sorttitle and sortyear fields which are
66+ used to fine-tune the sorting order of the bibliography. We want
67+ this item listed first in the bibliography'
68+ author:
69+ - family: Nietzsche
70+ given: Friedrich
71+ edition: 2
72+ editor:
73+ - family: Colli
74+ given: Giorgio
75+ - family: Montinari
76+ given: Mazzino
77+ id: 'nietzsche:ksa'
78+ issued: 1988
79+ language: 'de-DE'
80+ number-of-volumes: 15
81+ publisher: 'Deutscher Taschenbuch-Verlag; Walter de Gruyter'
82+ publisher-place: München; Berlin; New York
83+ title: 'Sämtliche Werke: Kritische Studienausgabe'
84+ title-short: Sämtliche Werke
85+ type: book
86+---
87+
88+
89+```
test/command/biblatex-nietzsche-ksa1.mdnew file+95
@@ -0,0 +1,95 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2015-03-08:
9+
10+(Nietzsche 1988)
11+
12+Nietzsche, Friedrich. 1988. *Sämtliche Werke: Kritische Studienausgabe*.
13+Edited by Giorgio Colli and Mazzino Montinari. 2nd ed. Vol. 1. München;
14+Berlin; New York: Deutscher Taschenbuch-Verlag; Walter de Gruyter.
15+
16+
17+Formatted with pandoc and apa.csl, 2015-03-08:
18+
19+(Nietzsche, 1988)
20+
21+Nietzsche, F. (1988). *Sämtliche Werke: Kritische Studienausgabe*. (G.
22+Colli & M. Montinari, eds., F. Nietzsche) (2nd ed., Vol. 1). München;
23+Berlin; New York: Deutscher Taschenbuch-Verlag; Walter de Gruyter.
24+
25+
26+NOTES:
27+
28+- volume-title currently not implemented by chicago-author-date.csl and apa.csl.
29+
30+}
31+
32+@string{ dtv = {Deutscher Taschenbuch-Verlag} }
33+
34+@Book{nietzsche:ksa1,
35+ author = {Nietzsche, Friedrich},
36+ title = {Die Geburt der Trag{\"o}die. Unzeitgem{\"a}{\ss}e
37+ Betrachtungen I--IV. Nachgelassene Schriften 1870--1973},
38+ date = 1988,
39+ editor = {Colli, Giorgio and Montinari, Mazzino},
40+ maintitle = {S{\"a}mtliche Werke},
41+ mainsubtitle = {Kritische Studienausgabe},
42+ volume = 1,
43+ edition = 2,
44+ publisher = dtv # { and Walter de Gruyter},
45+ location = {M{\"u}nchen and Berlin and New York},
46+ hyphenation = {german},
47+ sortyear = {1988-1},
48+ sorttitle = {Werke-01-000},
49+ indexsorttitle= {Samtliche Werke I},
50+ bookauthor = {Nietzsche, Friedrich},
51+ indextitle = {S{\"a}mtliche Werke I},
52+ shorttitle = {S{\"a}mtliche Werke I},
53+ annotation = {A single volume from the critical edition of Nietzsche's
54+ works. This book entry explicitly refers to the first
55+ volume only. Note the title and maintitle
56+ fields. Also note the sorttitle and sortyear
57+ fields. We want this entry to be listed after the entry
58+ referring to the entire edition},
59+}
60+
61+^D
62+---
63+nocite: '[@*]'
64+references:
65+- annote: 'A single volume from the critical edition of Nietzsche''s
66+ works. This book entry explicitly refers to the first volume only.
67+ Note the title and maintitle fields. Also note the sorttitle and
68+ sortyear fields. We want this entry to be listed after the entry
69+ referring to the entire edition'
70+ author:
71+ - family: Nietzsche
72+ given: Friedrich
73+ container-author:
74+ - family: Nietzsche
75+ given: Friedrich
76+ edition: 2
77+ editor:
78+ - family: Colli
79+ given: Giorgio
80+ - family: Montinari
81+ given: Mazzino
82+ id: 'nietzsche:ksa1'
83+ issued: 1988
84+ language: 'de-DE'
85+ publisher: 'Deutscher Taschenbuch-Verlag; Walter de Gruyter'
86+ publisher-place: München; Berlin; New York
87+ title: 'Sämtliche Werke: Kritische Studienausgabe'
88+ type: book
89+ volume: 1
90+ volume-title: 'Die Geburt der Tragödie. Unzeitgemäße Betrachtungen
91+ I--IV. Nachgelassene Schriften 1870--1973'
92+---
93+
94+
95+```
test/command/biblatex-nussbaum.mdnew file+63
@@ -0,0 +1,63 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Nussbaum 1978)
11+
12+Nussbaum, Martha. 1978. *Aristotle’s “De Motu Animalium”*. Princeton:
13+Princeton University Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Nussbaum, 1978)
19+
20+Nussbaum, M. (1978). *Aristotle’s “De Motu Animalium”*. Princeton:
21+Princeton University Press.
22+
23+
24+}
25+
26+@string{ pup = {Princeton University Press} }
27+
28+@Book{nussbaum,
29+ author = {Nussbaum, Martha},
30+ title = {Aristotle's \mkbibquote{De Motu Animalium}},
31+ date = 1978,
32+ publisher = pup,
33+ location = {Princeton},
34+ keywords = {secondary},
35+ hyphenation = {american},
36+ sorttitle = {Aristotle's De Motu Animalium},
37+ indexsorttitle= {Aristotle's De Motu Animalium},
38+ annotation = {A book entry. Note the sorttitle and
39+ indexsorttitle fields and the markup of the quotes in
40+ the database file},
41+}
42+
43+^D
44+---
45+nocite: '[@*]'
46+references:
47+- annote: A book entry. Note the sorttitle and indexsorttitle fields and
48+ the markup of the quotes in the database file
49+ author:
50+ - family: Nussbaum
51+ given: Martha
52+ id: nussbaum
53+ issued: 1978
54+ keyword: secondary
55+ language: 'en-US'
56+ publisher: Princeton University Press
57+ publisher-place: Princeton
58+ title: 'Aristotle''s "De Motu Animalium"'
59+ type: book
60+---
61+
62+
63+```
test/command/biblatex-online.mdnew file+64
@@ -0,0 +1,64 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}
4+
5+@online{markey,
6+ Annotation = {An online entry for a tutorial. Note the format of the date field (yyyy-mm-dd) in the database file.},
7+ Author = {Markey, Nicolas},
8+ Date = {2005-10-16},
9+ Hyphenation = {american},
10+ Sorttitle = {Tame the Beast},
11+ Subtitle = {The {B} to {X} of {BibTeX}},
12+ Title = {Tame the {BeaST}},
13+ Url = {http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf},
14+ Urldate = {2006-10-01},
15+ Version = {1.3},
16+}
17+
18+@online{CTAN,
19+ Annotation = {This is an online entry. The \textsc{url}, which is given in the url field, is transformed into a clickable link if hyperref support has been enabled. Note the format of the urldate field (yyyy-mm-dd) in the database file. Also note the label field which may be used as a fallback by citation styles which need an author and\slash or a year},
20+ Date = 2006,
21+ Hyphenation = {american},
22+ Label = {CTAN},
23+ Subtitle = {The {Comprehensive TeX Archive Network}},
24+ Title = {{CTAN}},
25+ Url = {http://www.ctan.org},
26+ Urldate = {2006-10-01},
27+}
28+
29+^D
30+---
31+nocite: '[@*]'
32+references:
33+- accessed: '2006-10-01'
34+ annote: 'An online entry for a tutorial. Note the format of the date
35+ field (yyyy-mm-dd) in the database file.'
36+ author:
37+ - family: Markey
38+ given: Nicolas
39+ id: markey
40+ issued: '2005-10-16'
41+ language: 'en-US'
42+ title: 'Tame the BeaST: The B to X of BibTeX'
43+ title-short: Tame the BeaST
44+ type: webpage
45+ url: 'http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf'
46+ version: 1.3
47+- accessed: '2006-10-01'
48+ annote: 'This is an online entry. The [url]{.smallcaps}, which is
49+ given in the url field, is transformed into a clickable link if
50+ hyperref support has been enabled. Note the format of the urldate
51+ field (yyyy-mm-dd) in the database file. Also note the label field
52+ which may be used as a fallback by citation styles which need an
53+ author and/or a year'
54+ id: CTAN
55+ issued: 2006
56+ language: 'en-US'
57+ title: 'CTAN: The Comprehensive TeX Archive Network'
58+ title-short: CTAN
59+ type: webpage
60+ url: 'http://www.ctan.org'
61+---
62+
63+
64+```
test/command/biblatex-options-url-false-doi-false.mdnew file+57
@@ -0,0 +1,57 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Entry contains url and doi fields; these should be discarded since the
6+options field specifies url=false, doi=false.
7+
8+Exception: As in standard biblatex, in online entries url should never be
9+discarded, even if options contains url=false.
10+
11+}
12+
13+@article{item1,
14+ Author = {Author, Andy},
15+ Date = {2012},
16+ Doi = {1234/5678.90},
17+ Journal = {Journal},
18+ Options = {url=false, doi=false},
19+ Title = {Title, Any Entry Type Except online},
20+ Url = {http://foo.bar}
21+}
22+
23+@online{item2,
24+ Author = {Author, Andy},
25+ Date = {2012},
26+ Doi = {1234/5678.90},
27+ Journal = {Journal},
28+ Options = {url=false, doi=false},
29+ Title = {Title, Entry Type online},
30+ Url = {http://foo.bar}
31+}
32+
33+^D
34+---
35+nocite: '[@*]'
36+references:
37+- author:
38+ - family: Author
39+ given: Andy
40+ container-title: Journal
41+ id: item1
42+ issued: 2012
43+ title: 'Title, any entry type except online'
44+ type: 'article-journal'
45+- author:
46+ - family: Author
47+ given: Andy
48+ container-title: Journal
49+ id: item2
50+ issued: 2012
51+ title: 'Title, entry type online'
52+ type: webpage
53+ url: 'http://foo.bar'
54+---
55+
56+
57+```
test/command/biblatex-padhye.mdnew file+117
@@ -0,0 +1,117 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Padhye, Firoiu, and Towsley 1999)
11+
12+Padhye, Jitendra, Victor Firoiu, and Don Towsley. 1999. “A Stochastic
13+Model of TCP Reno Congestion Avoidance and Control.” Technical report
14+99-02. Amherst, Mass.: University of Massachusetts.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Padhye, Firoiu, & Towsley, 1999)
20+
21+Padhye, J., Firoiu, V., & Towsley, D. (1999). *A stochastic model of TCP
22+Reno congestion avoidance and control* (technical report No. 99-02).
23+Amherst, Mass.: University of Massachusetts.
24+
25+}
26+
27+@Report{padhye,
28+ author = {Padhye, Jitendra and Firoiu, Victor and Towsley, Don},
29+ title = {A Stochastic Model of {TCP Reno} Congestion Avoidance and
30+ Control},
31+ type = {techreport},
32+ institution = {University of Massachusetts},
33+ date = 1999,
34+ number = {99-02},
35+ location = {Amherst, Mass.},
36+ hyphenation = {american},
37+ sorttitle = {A Stochastic Model of TCP Reno Congestion Avoidance and
38+ Control},
39+ indextitle = {Stochastic Model of {TCP Reno} Congestion Avoidance and Control,
40+ A},
41+ annotation = {This is a report entry for a technical report. Note
42+ the format of the type field in the database file
43+ which uses a localization key. The number of the report is
44+ given in the number field. Also note the
45+ sorttitle and indextitle fields},
46+ abstract = {The steady state performance of a bulk transfer TCP flow
47+ (i.e., a flow with a large amount of data to send, such as FTP
48+ transfers) may be characterized by three quantities. The first
49+ is the send rate, which is the amount of data sent by the
50+ sender in unit time. The second is the throughput, which is
51+ the amount of data received by the receiver in unit time. Note
52+ that the throughput will always be less than or equal to the
53+ send rate due to losses. Finally, the number of non-duplicate
54+ packets received by the receiver in unit time gives us the
55+ goodput of the connection. The goodput is always less than or
56+ equal to the throughput, since the receiver may receive two
57+ copies of the same packet due to retransmissions by the
58+ sender. In a previous paper, we presented a simple model for
59+ predicting the steady state send rate of a bulk transfer TCP
60+ flow as a function of loss rate and round trip time. In this
61+ paper, we extend that work in two ways. First, we analyze the
62+ performance of bulk transfer TCP flows using more precise,
63+ stochastic analysis. Second, we build upon the previous
64+ analysis to provide both an approximate formula as well as a
65+ more accurate stochastic model for the steady state throughput
66+ of a bulk transfer TCP flow.},
67+ file = {ftp://gaia.cs.umass.edu/pub/Padhey99-markov.ps},
68+}
69+
70+^D
71+---
72+nocite: '[@*]'
73+references:
74+- abstract: 'The steady state performance of a bulk transfer TCP flow
75+ (i.e., a flow with a large amount of data to send, such as FTP
76+ transfers) may be characterized by three quantities. The first is
77+ the send rate, which is the amount of data sent by the sender in
78+ unit time. The second is the throughput, which is the amount of data
79+ received by the receiver in unit time. Note that the throughput will
80+ always be less than or equal to the send rate due to losses.
81+ Finally, the number of non-duplicate packets received by the
82+ receiver in unit time gives us the goodput of the connection. The
83+ goodput is always less than or equal to the throughput, since the
84+ receiver may receive two copies of the same packet due to
85+ retransmissions by the sender. In a previous paper, we presented a
86+ simple model for predicting the steady state send rate of a bulk
87+ transfer TCP flow as a function of loss rate and round trip time. In
88+ this paper, we extend that work in two ways. First, we analyze the
89+ performance of bulk transfer TCP flows using more precise,
90+ stochastic analysis. Second, we build upon the previous analysis to
91+ provide both an approximate formula as well as a more accurate
92+ stochastic model for the steady state throughput of a bulk transfer
93+ TCP flow.'
94+ annote: This is a report entry for a technical report. Note the format
95+ of the type field in the database file which uses a localization
96+ key. The number of the report is given in the number field. Also
97+ note the sorttitle and indextitle fields
98+ author:
99+ - family: Padhye
100+ given: Jitendra
101+ - family: Firoiu
102+ given: Victor
103+ - family: Towsley
104+ given: Don
105+ genre: technical report
106+ id: padhye
107+ issued: 1999
108+ language: 'en-US'
109+ number: '99-02'
110+ publisher: University of Massachusetts
111+ publisher-place: 'Amherst, Mass.'
112+ title: A stochastic model of TCP Reno congestion avoidance and control
113+ type: report
114+---
115+
116+
117+```
test/command/biblatex-patent.mdnew file+158
@@ -0,0 +1,158 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib
4+
5+TODO: Is there a CSL counterpart for the biblatex field "holder"?}
6+
7+
8+@patent{almendro,
9+ Annotation = {This is a patent entry with a location field. The number is given in the number field. Note the format of the location field in the database file. Compare laufenberg, sorace, and kowalik},
10+ Author = {Almendro, José L. and Martín, Jacinto and Sánchez, Alberto and Nozal, Fernando},
11+ Date = 1998,
12+ Hyphenation = {german},
13+ Location = {countryfr and countryuk and countryde},
14+ Number = {EU-29702195U},
15+ Title = {Elektromagnetisches Signalhorn}}
16+
17+@patent{kowalik,
18+ Annotation = {This is a patent entry for a French patent request with a full date. The number is given in the number field. Note the format of the type and date fields in the database file. Compare almendro, laufenberg, and sorace},
19+ Author = {Kowalik, F. and Isard, M.},
20+ Date = {1995-01-11},
21+ Hyphenation = {french},
22+ Indextitle = {Estimateur d'un défaut de fonctionnement},
23+ Number = 9500261,
24+ Title = {Estimateur d'un défaut de fonctionnement d'un modulateur en quadrature et étage de modulation l'utilisant},
25+ Type = {patreqfr}}
26+
27+@patent{laufenberg,
28+ Annotation = {This is a patent entry with a holder field. Note the format of the type and location fields in the database file. Compare almendro, sorace, and kowalik},
29+ Author = {Laufenberg, Xaver and Eynius, Dominique and Suelzle, Helmut and Usbeck, Stephan and Spaeth, Matthias and Neuser-Hoffmann, Miriam and Myrzik, Christian and Schmid, Manfred and Nietfeld, Franz and Thiel, Alexander and Braun, Harald and Ebner, Norbert},
30+ Date = {2006-09-13},
31+ File = {http://v3.espacenet.com/textdoc?IDX=EP1700367},
32+ Holder = {{Robert Bosch GmbH} and {Daimler Chrysler AG} and {Bayerische Motoren Werke AG}},
33+ Hyphenation = {german},
34+ Number = 1700367,
35+ Title = {Elektrische Einrichtung und Betriebsverfahren},
36+ Type = {patenteu},
37+ Abstract = {The invention relates to an electric device comprising a
38+ generator, in particular for use in the vehicle electric
39+ system of a motor vehicle and a controller for controlling the
40+ generator voltage. The device is equipped with a control zone,
41+ in which the voltage is controlled and zones, in which the
42+ torque is controlled. The invention also relates to methods
43+ for operating a device of this type.}}
44+
45+@patent{sorace,
46+ Annotation = {This is a patent entry with a holder field. Note the format of the type and date fields in the database file. Compare almendro, laufenberg, and kowalik},
47+ Author = {Sorace, Ronald E. and Reinhardt, Victor S. and Vaughn, Steven A.},
48+ Date = {1997-09-16},
49+ Date-Modified = {2013-10-16 13:44:15 +0000},
50+ Holder = {{Hughes Aircraft Company}},
51+ Hyphenation = {american},
52+ Number = 5668842,
53+ Title = {High-Speed Digital-to-{RF} Converter},
54+ Type = {patentus}}
55+
56+^D
57+---
58+nocite: '[@*]'
59+references:
60+- annote: 'This is a patent entry with a location field. The number is
61+ given in the number field. Note the format of the location field in
62+ the database file. Compare laufenberg, sorace, and kowalik'
63+ author:
64+ - family: Almendro
65+ given: José L.
66+ - family: Martín
67+ given: Jacinto
68+ - family: Sánchez
69+ given: Alberto
70+ - family: Nozal
71+ given: Fernando
72+ id: almendro
73+ issued: 1998
74+ jurisdiction: France; United Kingdom; Germany
75+ language: 'de-DE'
76+ number: 'EU-29702195U'
77+ title: Elektromagnetisches Signalhorn
78+ type: patent
79+- annote: 'This is a patent entry for a French patent request with a
80+ full date. The number is given in the number field. Note the format
81+ of the type and date fields in the database file. Compare almendro,
82+ laufenberg, and sorace'
83+ author:
84+ - family: Kowalik
85+ given: F.
86+ - family: Isard
87+ given: M.
88+ genre: French patent request
89+ id: kowalik
90+ issued: '1995-01-11'
91+ language: 'fr-FR'
92+ number: 9500261
93+ title: 'Estimateur d''un défaut de fonctionnement d''un modulateur en
94+ quadrature et étage de modulation l''utilisant'
95+ type: patent
96+- abstract: 'The invention relates to an electric device comprising a
97+ generator, in particular for use in the vehicle electric system of a
98+ motor vehicle and a controller for controlling the generator
99+ voltage. The device is equipped with a control zone, in which the
100+ voltage is controlled and zones, in which the torque is controlled.
101+ The invention also relates to methods for operating a device of this
102+ type.'
103+ annote: 'This is a patent entry with a holder field. Note the format
104+ of the type and location fields in the database file. Compare
105+ almendro, sorace, and kowalik'
106+ author:
107+ - family: Laufenberg
108+ given: Xaver
109+ - family: Eynius
110+ given: Dominique
111+ - family: Suelzle
112+ given: Helmut
113+ - family: Usbeck
114+ given: Stephan
115+ - family: Spaeth
116+ given: Matthias
117+ - family: 'Neuser-Hoffmann'
118+ given: Miriam
119+ - family: Myrzik
120+ given: Christian
121+ - family: Schmid
122+ given: Manfred
123+ - family: Nietfeld
124+ given: Franz
125+ - family: Thiel
126+ given: Alexander
127+ - family: Braun
128+ given: Harald
129+ - family: Ebner
130+ given: Norbert
131+ genre: European patent
132+ id: laufenberg
133+ issued: '2006-09-13'
134+ language: 'de-DE'
135+ number: 1700367
136+ title: Elektrische Einrichtung und Betriebsverfahren
137+ type: patent
138+- annote: 'This is a patent entry with a holder field. Note the format
139+ of the type and date fields in the database file. Compare almendro,
140+ laufenberg, and kowalik'
141+ author:
142+ - family: Sorace
143+ given: Ronald E.
144+ - family: Reinhardt
145+ given: Victor S.
146+ - family: Vaughn
147+ given: Steven A.
148+ genre: U.S. patent
149+ id: sorace
150+ issued: '1997-09-16'
151+ language: 'en-US'
152+ number: 5668842
153+ title: 'High-speed digital-to-RF converter'
154+ type: patent
155+---
156+
157+
158+```
test/command/biblatex-periodical.mdnew file+30
@@ -0,0 +1,30 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib
4+
5+@periodical{jcg,
6+ Annotation = {This is a periodical entry with an issn field.},
7+ Issn = {0097-8493},
8+ Issuetitle = {Semantic {3D} Media and Content},
9+ Number = 4,
10+ Title = {Computers and Graphics},
11+ Volume = 35,
12+ Year = 2011}
13+
14+^D
15+---
16+nocite: '[@*]'
17+references:
18+- annote: This is a periodical entry with an issn field.
19+ container-title: Computers and Graphics
20+ id: jcg
21+ issn: '0097-8493'
22+ issue: 4
23+ issued: 2011
24+ title: Semantic 3D media and content
25+ type: 'article-journal'
26+ volume: 35
27+---
28+
29+
30+```
test/command/biblatex-piccato.mdnew file+59
@@ -0,0 +1,59 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Piccato 2001)
11+
12+Piccato, Pablo. 2001. *City of Suspects: Crime in Mexico City,
13+1900–1931*. Durham; London: Duke University Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Piccato, 2001)
19+
20+Piccato, P. (2001). *City of suspects: Crime in Mexico City, 1900–1931*.
21+Durham; London: Duke University Press.
22+
23+
24+}
25+
26+@Book{piccato,
27+ author = {Piccato, Pablo},
28+ title = {City of Suspects},
29+ date = 2001,
30+ publisher = {Duke University Press},
31+ location = {Durham and London},
32+ hyphenation = {american},
33+ subtitle = {Crime in {Mexico City}, 1900--1931},
34+ shorttitle = {City of Suspects},
35+ annotation = {This is a book entry. Note the format of the
36+ location field in the database file},
37+}
38+
39+^D
40+---
41+nocite: '[@*]'
42+references:
43+- annote: This is a book entry. Note the format of the location field in
44+ the database file
45+ author:
46+ - family: Piccato
47+ given: Pablo
48+ id: piccato
49+ issued: 2001
50+ language: 'en-US'
51+ publisher: Duke University Press
52+ publisher-place: Durham; London
53+ title: 'City of suspects: Crime in Mexico City, 1900--1931'
54+ title-short: City of suspects
55+ type: book
56+---
57+
58+
59+```
test/command/biblatex-pines.mdnew file+77
@@ -0,0 +1,77 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Pines 1979)
11+
12+Pines, Shlomo. 1979. “The Limitations of Human Knowledge According to
13+Al-Farabi, ibn Bajja, and Maimonides.” In *Studies in Medieval Jewish
14+History and Literature*, edited by Isadore Twersky, 82–109. Cambridge,
15+Mass.: Harvard University Press.
16+
17+
18+Formatted with pandoc and apa.csl, 2013-10-23:
19+
20+(Pines, 1979)
21+
22+Pines, S. (1979). The limitations of human knowledge according to
23+Al-Farabi, ibn Bajja, and Maimonides. In I. Twersky (Ed.), *Studies in
24+medieval Jewish history and literature* (pp. 82–109). Cambridge, Mass.:
25+Harvard University Press.
26+
27+
28+}
29+
30+@string{ hup = {Harvard University Press} }
31+
32+@InCollection{pines,
33+ author = {Pines, Shlomo},
34+ editor = {Twersky, Isadore},
35+ title = {The Limitations of Human Knowledge According to {Al-Farabi}, {ibn
36+ Bajja}, and {Maimonides}},
37+ date = 1979,
38+ booktitle = {Studies in Medieval {Jewish} History and Literature},
39+ publisher = hup,
40+ location = {Cambridge, Mass.},
41+ pages = {82-109},
42+ keywords = {secondary},
43+ hyphenation = {american},
44+ indextitle = {Limitations of Human Knowledge According to {Al-Farabi}, {ibn
45+ Bajja}, and {Maimonides}, The},
46+ shorttitle = {Limitations of Human Knowledge},
47+ annotation = {A typical incollection entry. Note the
48+ indextitle field},
49+}
50+
51+^D
52+---
53+nocite: '[@*]'
54+references:
55+- annote: A typical incollection entry. Note the indextitle field
56+ author:
57+ - family: Pines
58+ given: Shlomo
59+ container-title: Studies in medieval Jewish history and literature
60+ editor:
61+ - family: Twersky
62+ given: Isadore
63+ id: pines
64+ issued: 1979
65+ keyword: secondary
66+ language: 'en-US'
67+ page: '82-109'
68+ publisher: Harvard University Press
69+ publisher-place: 'Cambridge, Mass.'
70+ title: 'The limitations of human knowledge according to Al-Farabi,
71+ [ibn Bajja]{.nocase}, and Maimonides'
72+ title-short: Limitations of human knowledge
73+ type: chapter
74+---
75+
76+
77+```
test/command/biblatex-quotes.mdnew file+44
@@ -0,0 +1,44 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib
4+
5+\mkbibquote{} should be replaced by a matching set of quotation marks that can be used by citeproc for quote substitution and flipflopping. English smart double quotation marks seem best, as they cannot be confused with apostrophes.
6+
7+\enquote{}, \enquote*{} should be replaced by a matching set of quotation marks, too: “foo”, ‘bar’.
8+}
9+
10+@string{pup = {Princeton University Press}}
11+
12+@book{nussbaum,
13+ Annotation = {A book entry. Note the sorttitle and indexsorttitle fields and the markup of the quotes in the database file},
14+ Author = {Nussbaum, Martha},
15+ Date = 1978,
16+ Hyphenation = {american},
17+ Indexsorttitle = {Aristotle's De Motu Animalium},
18+ Keywords = {secondary},
19+ Location = {Princeton},
20+ Publisher = pup,
21+ Sorttitle = {Aristotle's De Motu Animalium},
22+ Title = {Aristotle's \mkbibquote{De Motu Animalium}}}
23+
24+^D
25+---
26+nocite: '[@*]'
27+references:
28+- annote: A book entry. Note the sorttitle and indexsorttitle fields and
29+ the markup of the quotes in the database file
30+ author:
31+ - family: Nussbaum
32+ given: Martha
33+ id: nussbaum
34+ issued: 1978
35+ keyword: secondary
36+ language: 'en-US'
37+ publisher: Princeton University Press
38+ publisher-place: Princeton
39+ title: 'Aristotle''s "De Motu Animalium"'
40+ type: book
41+---
42+
43+
44+```
test/command/biblatex-reese.mdnew file+71
@@ -0,0 +1,71 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Reese 1958)
11+
12+Reese, Trevor R. 1958. “Georgia in Anglo-Spanish Diplomacy, 1736-1739.”
13+*William and Mary Quarterly, 3* 15: 168–190.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Reese, 1958)
19+
20+Reese, T. R. (1958). Georgia in Anglo-Spanish diplomacy, 1736-1739.
21+*William and Mary Quarterly, 3*, *15*, 168–190.
22+
23+
24+NOTES:
25+
26+- biblio2yaml
27+ - series field: still not entirely satisfactory.
28+ Could we map this to some existing CSL variable, and have the CSL styles handle this? "edition", maybe ??
29+
30+}
31+
32+@Article{reese,
33+ author = {Reese, Trevor R.},
34+ title = {Georgia in {Anglo-Spanish} Diplomacy, 1736-1739},
35+ journaltitle = {William and Mary Quarterly},
36+ date = 1958,
37+ series = 3,
38+ volume = 15,
39+ pages = {168-190},
40+ hyphenation = {american},
41+ annotation = {An article entry with a series and a
42+ volume field. Note the format of the series. If the
43+ value of the series field is an integer, this number
44+ is printed as an ordinal and the string \enquote*{series} is
45+ appended automatically},
46+}
47+
48+^D
49+---
50+nocite: '[@*]'
51+references:
52+- annote: 'An article entry with a series and a volume field. Note the
53+ format of the series. If the value of the series field is an
54+ integer, this number is printed as an ordinal and the string
55+ ''series'' is appended automatically'
56+ author:
57+ - family: Reese
58+ given: Trevor R.
59+ collection-title: 3rd series
60+ container-title: William and Mary Quarterly
61+ id: reese
62+ issued: 1958
63+ language: 'en-US'
64+ page: '168-190'
65+ title: 'Georgia in Anglo-Spanish diplomacy, 1736-1739'
66+ type: 'article-journal'
67+ volume: 15
68+---
69+
70+
71+```
test/command/biblatex-report.mdnew file+119
@@ -0,0 +1,119 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib
4+
5+TODO: Where to map "file" field?
6+}
7+
8+@report{chiu,
9+ Annotation = {This is a report entry for a research report. Note the format of the type field in the database file which uses a localization key. The number of the report is given in the number field. Also note the sorttitle and indextitle fields},
10+ Author = {Chiu, Willy W. and Chow, We Min},
11+ Date = 1978,
12+ Hyphenation = {american},
13+ Indextitle = {Hybrid Hierarchical Model, A},
14+ Institution = {IBM},
15+ Number = {RC-6947},
16+ Sorttitle = {Hybrid Hierarchical Model of a Multiple Virtual Storage (MVS) Operating System},
17+ Title = {A Hybrid Hierarchical Model of a {Multiple Virtual Storage} ({MVS}) Operating System},
18+ Type = {resreport}}
19+
20+@report{padhye,
21+ Annotation = {This is a report entry for a technical report. Note the format of the type field in the database file which uses a localization key. The number of the report is given in the number field. Also note the sorttitle and indextitle fields},
22+ Author = {Padhye, Jitendra and Firoiu, Victor and Towsley, Don},
23+ Date = 1999,
24+ File = {ftp://gaia.cs.umass.edu/pub/Padhey99-markov.ps},
25+ Hyphenation = {american},
26+ Indextitle = {Stochastic Model of TCP Reno Congestion Avoidance and Control, A},
27+ Institution = {University of Massachusetts},
28+ Location = {Amherst, Mass.},
29+ Number = {99-02},
30+ Sorttitle = {A Stochastic Model of TCP Reno Congestion Avoidance and Control},
31+ Title = {A Stochastic Model of {TCP Reno} Congestion Avoidance and Control},
32+ Type = {techreport},
33+ Abstract = {The steady state performance of a bulk transfer TCP flow
34+ (i.e., a flow with a large amount of data to send, such as FTP
35+ transfers) may be characterized by three quantities. The first
36+ is the send rate, which is the amount of data sent by the
37+ sender in unit time. The second is the throughput, which is
38+ the amount of data received by the receiver in unit time. Note
39+ that the throughput will always be less than or equal to the
40+ send rate due to losses. Finally, the number of non-duplicate
41+ packets received by the receiver in unit time gives us the
42+ goodput of the connection. The goodput is always less than or
43+ equal to the throughput, since the receiver may receive two
44+ copies of the same packet due to retransmissions by the
45+ sender. In a previous paper, we presented a simple model for
46+ predicting the steady state send rate of a bulk transfer TCP
47+ flow as a function of loss rate and round trip time. In this
48+ paper, we extend that work in two ways. First, we analyze the
49+ performance of bulk transfer TCP flows using more precise,
50+ stochastic analysis. Second, we build upon the previous
51+ analysis to provide both an approximate formula as well as a
52+ more accurate stochastic model for the steady state throughput
53+ of a bulk transfer TCP flow.}}
54+^D
55+---
56+nocite: '[@*]'
57+references:
58+- annote: This is a report entry for a research report. Note the format
59+ of the type field in the database file which uses a localization
60+ key. The number of the report is given in the number field. Also
61+ note the sorttitle and indextitle fields
62+ author:
63+ - family: Chiu
64+ given: Willy W.
65+ - family: Chow
66+ given: We Min
67+ genre: research report
68+ id: chiu
69+ issued: 1978
70+ language: 'en-US'
71+ number: 'RC-6947'
72+ publisher: IBM
73+ title: A hybrid hierarchical model of a Multiple Virtual Storage (MVS)
74+ operating system
75+ type: report
76+- abstract: 'The steady state performance of a bulk transfer TCP flow
77+ (i.e., a flow with a large amount of data to send, such as FTP
78+ transfers) may be characterized by three quantities. The first is
79+ the send rate, which is the amount of data sent by the sender in
80+ unit time. The second is the throughput, which is the amount of data
81+ received by the receiver in unit time. Note that the throughput will
82+ always be less than or equal to the send rate due to losses.
83+ Finally, the number of non-duplicate packets received by the
84+ receiver in unit time gives us the goodput of the connection. The
85+ goodput is always less than or equal to the throughput, since the
86+ receiver may receive two copies of the same packet due to
87+ retransmissions by the sender. In a previous paper, we presented a
88+ simple model for predicting the steady state send rate of a bulk
89+ transfer TCP flow as a function of loss rate and round trip time. In
90+ this paper, we extend that work in two ways. First, we analyze the
91+ performance of bulk transfer TCP flows using more precise,
92+ stochastic analysis. Second, we build upon the previous analysis to
93+ provide both an approximate formula as well as a more accurate
94+ stochastic model for the steady state throughput of a bulk transfer
95+ TCP flow.'
96+ annote: This is a report entry for a technical report. Note the format
97+ of the type field in the database file which uses a localization
98+ key. The number of the report is given in the number field. Also
99+ note the sorttitle and indextitle fields
100+ author:
101+ - family: Padhye
102+ given: Jitendra
103+ - family: Firoiu
104+ given: Victor
105+ - family: Towsley
106+ given: Don
107+ genre: technical report
108+ id: padhye
109+ issued: 1999
110+ language: 'en-US'
111+ number: '99-02'
112+ publisher: University of Massachusetts
113+ publisher-place: 'Amherst, Mass.'
114+ title: A stochastic model of TCP Reno congestion avoidance and control
115+ type: report
116+---
117+
118+
119+```
test/command/biblatex-salam.mdnew file+69
@@ -0,0 +1,69 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Salam 1968)
11+
12+Salam, Abdus. 1968. “Weak and Electromagnetic Interactions.” In
13+*Elementary Particle Theory: Relativistic Groups and Analyticity.
14+Proceedings of the Eighth Nobel Symposium*, edited by Nils Svartholm,
15+367–377. Stockholm: Almquist & Wiksell.
16+
17+
18+Formatted with pandoc and apa.csl, 2013-10-23:
19+
20+(Salam, 1968)
21+
22+Salam, A. (1968). Weak and electromagnetic interactions. In N. Svartholm
23+(Ed.), *Elementary particle theory: Relativistic groups and analyticity.
24+Proceedings of the eighth Nobel symposium* (pp. 367–377). Stockholm:
25+Almquist & Wiksell.
26+
27+
28+}
29+
30+@InProceedings{salam,
31+ author = {Salam, Abdus},
32+ editor = {Svartholm, Nils},
33+ title = {Weak and Electromagnetic Interactions},
34+ date = 1968,
35+ booktitle = {Elementary particle theory},
36+ booksubtitle = {Relativistic groups and analyticity},
37+ booktitleaddon= {Proceedings of the Eighth {Nobel} Symposium},
38+ eventdate = {1968-05-19/1968-05-25},
39+ venue = {Aspen{\"a}sgarden, Lerum},
40+ publisher = {Almquist \& Wiksell},
41+ location = {Stockholm},
42+ pages = {367-377},
43+}
44+
45+^D
46+---
47+nocite: '[@*]'
48+references:
49+- author:
50+ - family: Salam
51+ given: Abdus
52+ container-title: 'Elementary particle theory: Relativistic groups and
53+ analyticity. Proceedings of the eighth Nobel symposium'
54+ editor:
55+ - family: Svartholm
56+ given: Nils
57+ event-date: '1968-05-19/1968-05-25'
58+ event-place: 'Aspenäsgarden, Lerum'
59+ id: salam
60+ issued: 1968
61+ page: '367-377'
62+ publisher: 'Almquist & Wiksell'
63+ publisher-place: Stockholm
64+ title: Weak and electromagnetic interactions
65+ type: 'paper-conference'
66+---
67+
68+
69+```
test/command/biblatex-sarfraz.mdnew file+65
@@ -0,0 +1,65 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Sarfraz and Razzak 2002)
11+
12+Sarfraz, M., and M. F. A. Razzak. 2002. “Technical Section: An Algorithm
13+for Automatic Capturing of the Font Outlines.” *Computers and Graphics*
14+26 (5): 795–804.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Sarfraz & Razzak, 2002)
20+
21+Sarfraz, M., & Razzak, M. F. A. (2002). Technical section: An algorithm
22+for automatic capturing of the font outlines. *Computers and Graphics*,
23+*26*(5), 795–804.
24+
25+
26+}
27+
28+@Article{sarfraz,
29+ author = {M. Sarfraz and M. F. A. Razzak},
30+ title = {Technical section: {An} algorithm for automatic capturing of
31+ the font outlines},
32+ year = 2002,
33+ volume = 26,
34+ number = 5,
35+ pages = {795-804},
36+ issn = {0097-8493},
37+ journal = {Computers and Graphics},
38+ annotation = {An article entry with an issn field},
39+}
40+
41+^D
42+---
43+nocite: '[@*]'
44+references:
45+- annote: An article entry with an issn field
46+ author:
47+ - family: Sarfraz
48+ given: M.
49+ - family: Razzak
50+ given: M. F. A.
51+ container-title: Computers and Graphics
52+ id: sarfraz
53+ issn: '0097-8493'
54+ issue: 5
55+ issued: 2002
56+ page: '795-804'
57+ title: 'Technical section: An algorithm for automatic capturing of the
58+ font outlines'
59+ title-short: Technical section
60+ type: 'article-journal'
61+ volume: 26
62+---
63+
64+
65+```
test/command/biblatex-shore.mdnew file+66
@@ -0,0 +1,66 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Shore 1991)
11+
12+Shore, Bradd. 1991. “Twice-born, Once Conceived: Meaning Construction
13+and Cultural Cognition.” *American Anthropologist, New Series* 93 (1)
14+(March): 9–27.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Shore, 1991)
20+
21+Shore, B. (1991). Twice-born, once conceived: Meaning construction and
22+cultural cognition. *American Anthropologist, new series*, *93*(1),
23+9–27.
24+
25+
26+}
27+
28+@Article{shore,
29+ author = {Shore, Bradd},
30+ title = {Twice-Born, Once Conceived},
31+ journaltitle = {American Anthropologist},
32+ date = {1991-03},
33+ subtitle = {Meaning Construction and Cultural Cognition},
34+ series = {newseries},
35+ volume = 93,
36+ number = 1,
37+ pages = {9-27},
38+ annotation = {An article entry with series,
39+ volume, and number fields. Note the format
40+ of the series which is a localization key},
41+}
42+
43+^D
44+---
45+nocite: '[@*]'
46+references:
47+- annote: 'An article entry with series, volume, and number fields. Note
48+ the format of the series which is a localization key'
49+ author:
50+ - family: Shore
51+ given: Bradd
52+ collection-title: new series
53+ container-title: American Anthropologist
54+ id: shore
55+ issue: 1
56+ issued: '1991-03'
57+ page: '9-27'
58+ title: 'Twice-born, once conceived: Meaning construction and cultural
59+ cognition'
60+ title-short: 'Twice-born, once conceived'
61+ type: 'article-journal'
62+ volume: 93
63+---
64+
65+
66+```
test/command/biblatex-sigfridsson.mdnew file+106
@@ -0,0 +1,106 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Sigfridsson and Ryde 1998)
10+
11+Sigfridsson, Emma, and Ulf Ryde. 1998. “Comparison of Methods for
12+Deriving Atomic Charges from the Electrostatic Potential and Moments.”
13+*Journal of Computational Chemistry* 19 (4): 377–395.
14+doi:[10.1002/(SICI)1096-987X(199803)19:4\<377::AID-JCC1\>3.0.CO;2-P](https://doi.org/10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P "10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P").
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Sigfridsson & Ryde, 1998)
20+
21+Sigfridsson, E., & Ryde, U. (1998). Comparison of methods for deriving
22+atomic charges from the electrostatic potential and moments. *Journal of
23+Computational Chemistry*, *19*(4), 377–395.
24+doi:[10.1002/(SICI)1096-987X(199803)19:4\<377::AID-JCC1\>3.0.CO;2-P](https://doi.org/10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P "10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P")
25+
26+
27+NOTES:
28+
29+- biblio2xaml
30+ - the string "doi:" should not appear as part of the content of the "doi" field
31+
32+}
33+
34+@Article{sigfridsson,
35+ author = {Sigfridsson, Emma and Ryde, Ulf},
36+ title = {Comparison of methods for deriving atomic charges from the
37+ electrostatic potential and moments},
38+ journaltitle = {Journal of Computational Chemistry},
39+ date = 1998,
40+ volume = 19,
41+ number = 4,
42+ pages = {377-395},
43+ doi = {10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P},
44+ hyphenation = {american},
45+ indextitle = {Methods for deriving atomic charges},
46+ annotation = {An article entry with volume,
47+ number, and doi fields. Note that the
48+ \textsc{doi} is transformed into a clickable link if
49+ hyperref support has been enabled},
50+ abstract = {Four methods for deriving partial atomic charges from the
51+ quantum chemical electrostatic potential (CHELP, CHELPG,
52+ Merz-Kollman, and RESP) have been compared and critically
53+ evaluated. It is shown that charges strongly depend on how and
54+ where the potential points are selected. Two alternative
55+ methods are suggested to avoid the arbitrariness in the
56+ point-selection schemes and van der Waals exclusion radii:
57+ CHELP-BOW, which also estimates the charges from the
58+ electrostatic potential, but with potential points that are
59+ Boltzmann-weighted after their occurrence in actual
60+ simulations using the energy function of the program in which
61+ the charges will be used, and CHELMO, which estimates the
62+ charges directly from the electrostatic multipole
63+ moments. Different criteria for the quality of the charges are
64+ discussed.},
65+}
66+
67+^D
68+---
69+nocite: '[@*]'
70+references:
71+- abstract: 'Four methods for deriving partial atomic charges from the
72+ quantum chemical electrostatic potential (CHELP, CHELPG,
73+ Merz-Kollman, and RESP) have been compared and critically evaluated.
74+ It is shown that charges strongly depend on how and where the
75+ potential points are selected. Two alternative methods are suggested
76+ to avoid the arbitrariness in the point-selection schemes and van
77+ der Waals exclusion radii: CHELP-BOW, which also estimates the
78+ charges from the electrostatic potential, but with potential points
79+ that are Boltzmann-weighted after their occurrence in actual
80+ simulations using the energy function of the program in which the
81+ charges will be used, and CHELMO, which estimates the charges
82+ directly from the electrostatic multipole moments. Different
83+ criteria for the quality of the charges are discussed.'
84+ annote: 'An article entry with volume, number, and doi fields. Note
85+ that the [doi]{.smallcaps} is transformed into a clickable link if
86+ hyperref support has been enabled'
87+ author:
88+ - family: Sigfridsson
89+ given: Emma
90+ - family: Ryde
91+ given: Ulf
92+ container-title: Journal of Computational Chemistry
93+ doi: '10.1002/(SICI)1096-987X(199803)19:4\<377::AID-JCC1\>3.0.CO;2-P'
94+ id: sigfridsson
95+ issue: 4
96+ issued: 1998
97+ language: 'en-US'
98+ page: '377-395'
99+ title: Comparison of methods for deriving atomic charges from the
100+ electrostatic potential and moments
101+ type: 'article-journal'
102+ volume: 19
103+---
104+
105+
106+```
test/command/biblatex-sorace.mdnew file+65
@@ -0,0 +1,65 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Sorace, Reinhardt, and Vaughn 1997)
11+
12+Sorace, Ronald E., Victor S. Reinhardt, and Steven A. Vaughn. 1997.
13+“High-speed Digital-to-RF Converter.” U.S. patent.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Sorace, Reinhardt, & Vaughn, 1997)
19+
20+Sorace, R. E., Reinhardt, V. S., & Vaughn, S. A. (1997, September 16).
21+High-speed digital-to-RF converter. U.S. patent.
22+
23+
24+}
25+
26+@Patent{sorace,
27+ author = {Sorace, Ronald E. and Reinhardt, Victor S. and Vaughn, Steven
28+ A.},
29+ title = {High-Speed Digital-to-{RF} Converter},
30+ number = 5668842,
31+ date = {1997-09-16},
32+ holder = {{Hughes Aircraft Company}},
33+ type = {patentus},
34+ hyphenation = {american},
35+ annotation = {This is a patent entry with a holder field.
36+ Note the format of the type and date fields
37+ in the database file. Compare almendro,
38+ laufenberg, and kowalik},
39+}
40+
41+^D
42+---
43+nocite: '[@*]'
44+references:
45+- annote: 'This is a patent entry with a holder field. Note the format
46+ of the type and date fields in the database file. Compare almendro,
47+ laufenberg, and kowalik'
48+ author:
49+ - family: Sorace
50+ given: Ronald E.
51+ - family: Reinhardt
52+ given: Victor S.
53+ - family: Vaughn
54+ given: Steven A.
55+ genre: U.S. patent
56+ id: sorace
57+ issued: '1997-09-16'
58+ language: 'en-US'
59+ number: 5668842
60+ title: 'High-speed digital-to-RF converter'
61+ type: patent
62+---
63+
64+
65+```
test/command/biblatex-spiegelberg.mdnew file+74
@@ -0,0 +1,74 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Spiegelberg 1969)
11+
12+Spiegelberg, Herbert. 1969. ““Intention” und “Intentionalität” in der
13+Scholastik, bei Brentano und Husserl.” *Studia Philosophica* 29:
14+189–216.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Spiegelberg, 1969)
20+
21+Spiegelberg, H. (1969). “Intention” und “Intentionalität” in der
22+Scholastik, bei Brentano und Husserl. *Studia Philosophica*, *29*,
23+189–216.
24+
25+
26+NOTES:
27+
28+- citeproc
29+ - flipflopping of quotes incorrect
30+
31+}
32+
33+@Article{spiegelberg,
34+ author = {Spiegelberg, Herbert},
35+ title = {\mkbibquote{Intention} und \mkbibquote{Intentionalit{\"a}t} in
36+ der Scholastik, bei Brentano und Husserl},
37+ journaltitle = {Studia Philosophica},
38+ date = 1969,
39+ volume = 29,
40+ pages = {189-216},
41+ hyphenation = {german},
42+ sorttitle = {Intention und Intentionalitat in der Scholastik, bei Brentano
43+ und Husserl},
44+ indexsorttitle= {Intention und Intentionalitat in der Scholastik, bei Brentano
45+ und Husserl},
46+ shorttitle = {Intention und Intentionalit{\"a}t},
47+ annotation = {An article entry. Note the sorttitle and
48+ indexsorttitle fields and the markup of the quotes in
49+ the database file},
50+}
51+
52+^D
53+---
54+nocite: '[@*]'
55+references:
56+- annote: An article entry. Note the sorttitle and indexsorttitle fields
57+ and the markup of the quotes in the database file
58+ author:
59+ - family: Spiegelberg
60+ given: Herbert
61+ container-title: Studia Philosophica
62+ id: spiegelberg
63+ issued: 1969
64+ language: 'de-DE'
65+ page: '189-216'
66+ title: '"Intention" und "Intentionalität" in der Scholastik, bei
67+ Brentano und Husserl'
68+ title-short: Intention und Intentionalität
69+ type: 'article-journal'
70+ volume: 29
71+---
72+
73+
74+```
test/command/biblatex-springer.mdnew file+58
@@ -0,0 +1,58 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Springer 1950)
11+
12+Springer, Otto. 1950. “Mediaeval Pilgrim Routes from Scandinavia to
13+Rome.” *Mediaeval Studies* 12: 92–122.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Springer, 1950)
19+
20+Springer, O. (1950). Mediaeval pilgrim routes from Scandinavia to Rome.
21+*Mediaeval Studies*, *12*, 92–122.
22+
23+
24+}
25+
26+@Article{springer,
27+ author = {Springer, Otto},
28+ title = {Mediaeval Pilgrim Routes from {Scandinavia} to {Rome}},
29+ journaltitle = {Mediaeval Studies},
30+ date = 1950,
31+ volume = 12,
32+ pages = {92-122},
33+ hyphenation = {british},
34+ shorttitle = {Mediaeval Pilgrim Routes},
35+ annotation = {A plain article entry},
36+}
37+
38+^D
39+---
40+nocite: '[@*]'
41+references:
42+- annote: A plain article entry
43+ author:
44+ - family: Springer
45+ given: Otto
46+ container-title: Mediaeval Studies
47+ id: springer
48+ issued: 1950
49+ language: 'en-GB'
50+ page: '92-122'
51+ title: Mediaeval pilgrim routes from Scandinavia to Rome
52+ title-short: Mediaeval pilgrim routes
53+ type: 'article-journal'
54+ volume: 12
55+---
56+
57+
58+```
test/command/biblatex-strings.mdnew file+46
@@ -0,0 +1,46 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib}
4+
5+@string{anch-ie = {Angew.~Chem. Int.~Ed.}}
6+
7+@article{herrmann,
8+ Author = {Herrmann, Wolfgang A. and Öfele, Karl and Schneider, Sabine K. and Herdtweck, Eberhardt and Hoffmann, Stephan D.},
9+ Date = 2006,
10+ Hyphenation = {english},
11+ Indextitle = {Carbocyclic carbene as an efficient catalyst, A},
12+ Journaltitle = anch-ie,
13+ Number = 23,
14+ Pages = {3859-3862},
15+ Title = {A Carbocyclic Carbene as an Efficient Catalyst Ligand for {C--C} Coupling Reactions},
16+ Volume = 45}
17+
18+^D
19+---
20+nocite: '[@*]'
21+references:
22+- author:
23+ - family: Herrmann
24+ given: Wolfgang A.
25+ - family: Öfele
26+ given: Karl
27+ - family: Schneider
28+ given: Sabine K.
29+ - family: Herdtweck
30+ given: Eberhardt
31+ - family: Hoffmann
32+ given: Stephan D.
33+ container-title: Angew. Chem. Int. Ed.
34+ id: herrmann
35+ issue: 23
36+ issued: 2006
37+ language: 'en-US'
38+ page: '3859-3862'
39+ title: 'A carbocyclic carbene as an efficient catalyst ligand for C--C
40+ coupling reactions'
41+ type: 'article-journal'
42+ volume: 45
43+---
44+
45+
46+```
test/command/biblatex-test-case-conversion.mdnew file+73
@@ -0,0 +1,73 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+ - bibtex and biblatex
5+ - expect titles in title case
6+ - styles use titles as is, or convert them to sentence case
7+ - strings wrapped {} are not converted
8+ - all CSL styles at <http://github.com/citation-style-language/styles>
9+ and <https://www.zotero.org/styles/>
10+ - expect titles in sentence case
11+ - styles use titles as is, or convert them to title case
12+ - except for (hardcoded) list of stop words, see
13+ <http://citationstyles.org/downloads/specification.html#title-case-conversion>
14+ - citeproc-js (MLZ only?) also recognizes a markup syntax for
15+ suppressing title-case changes on a range of text (see
16+ <https://forums.zotero.org/discussion/21991/excessive-capitalization-of-citation-titles/#Item_22>):
17+ - `<span class="nocase"/>lowercase</span>`
18+ - Proposal:
19+ - When converting to yaml, convert English titles to sentence case,
20+ - for all strings wrapped in {} where {} is not part of a latex
21+ command, ...
22+ - ... when starting with an uppercase letter: suppress
23+conversion, remove the {}
24+ - ... when starting with a lowercase letter ("nm", "iPod"):
25+ suppress conversion, replace the {} with
26+ <span class="nocase"/></span>
27+ - Note: Camel case ("iPod") needs to be protected in
28+ bibtex/biblatex anyway; the only "extension" (wrt bibtex/biblatex
29+ specs) we'd be introducing is wrapping lowercase-only strings in
30+ {}, something that is never necessary on the latex side but
31+ won't break anything there either.
32+ - citeproc-hs/pandoc-citeproc should be modified to honour this new
33+ syntax and suppress conversion to title case for strings wrapped
34+ in `<span class="nocase"/></span>`.
35+ - Expected output, using one of the title-case CSL styles, here
36+ chicago-author-date.csl:
37+
38+ Author, Ann. 2013. “A Title, in English, with a Proper Name and
39+an
40+ ACRONYM and a camelCase Word and Some Units, 400 nm, 3 cm, and
41+a Quote,
42+ *Alea iacta est*.” *Journal*.
43+ }
44+
45+@article{item1,
46+ Author = {Author, Ann},
47+ Date = {2013},
48+ Hyphenation = {english},
49+ Journaltitle = {Journal},
50+ Title = {A Title, in {English}, with a {Proper Name} and an {ACRONYM}
51+and a {camelCase} Word and Some Units, 400~{nm}, 3~{cm}, and a Quote,
52+\textit{{Alea} {iacta est}}}
53+}
54+
55+^D
56+---
57+nocite: '[@*]'
58+references:
59+- author:
60+ - family: Author
61+ given: Ann
62+ container-title: Journal
63+ id: item1
64+ issued: 2013
65+ language: 'en-US'
66+ title: 'A title, in English, with a Proper Name and an ACRONYM and a
67+ [camelCase]{.nocase} word and some units, 400 [nm]{.nocase},
68+ 3 [cm]{.nocase}, and a quote, *Alea [iacta est]{.nocase}*'
69+ type: 'article-journal'
70+---
71+
72+
73+```
test/command/biblatex-textnormal.mdnew file+17
@@ -0,0 +1,17 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@book{item1,
4+ Title = {The Title \textnormal{of this book}},
5+}
6+
7+^D
8+---
9+nocite: '[@*]'
10+references:
11+- id: item1
12+ title: 'The title [of this book]{.nodecor}'
13+ type: book
14+---
15+
16+
17+```
test/command/biblatex-thesis.mdnew file+68
@@ -0,0 +1,68 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{excerpted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib
4+
5+TODO: Uppercase letters follwing hyphens need to be converted to lowercase, too (e.g., "r" in "High-Resolution". -- Same for citeproc when doing title-case conversion!)
6+}
7+
8+@thesis{geer,
9+ Annotation = {This is a typical thesis entry for a PhD thesis. Note the type field in the database file which uses a localization key. Also note the format of the printed name and compare the useprefix option in the options field as well as vangennep},
10+ Author = {de Geer, Ingrid},
11+ Date = 1985,
12+ Hyphenation = {british},
13+ Institution = {Uppsala Universitet},
14+ Location = {Uppsala},
15+ Options = {useprefix=false},
16+ Subtitle = {The {Orkney} Earldom of the Twelfth Century. {A} Musicological Study},
17+ Title = {Earl, Saint, Bishop, Skald~-- and Music},
18+ Type = {phdthesis}}
19+
20+@thesis{loh,
21+ Annotation = {This is a typical thesis entry for an MA thesis. Note the type field in the database file which uses a localization key},
22+ Author = {Loh, Nin C.},
23+ Date = 1992,
24+ Hyphenation = {american},
25+ Institution = {Massachusetts Institute of Technology},
26+ Location = {Cambridge, Mass.},
27+ Title = {High-Resolution Micromachined Interferometric Accelerometer},
28+ Type = {mathesis}}
29+
30+^D
31+---
32+nocite: '[@*]'
33+references:
34+- annote: This is a typical thesis entry for a PhD thesis. Note the type
35+ field in the database file which uses a localization key. Also note
36+ the format of the printed name and compare the useprefix option in
37+ the options field as well as vangennep
38+ author:
39+ - dropping-particle: de
40+ family: Geer
41+ given: Ingrid
42+ genre: PhD thesis
43+ id: geer
44+ issued: 1985
45+ language: 'en-GB'
46+ publisher: Uppsala Universitet
47+ publisher-place: Uppsala
48+ title: 'Earl, saint, bishop, skald -- and music: The Orkney earldom of
49+ the twelfth century. A musicological study'
50+ title-short: 'Earl, saint, bishop, skald -- and music'
51+ type: thesis
52+- annote: This is a typical thesis entry for an MA thesis. Note the type
53+ field in the database file which uses a localization key
54+ author:
55+ - family: Loh
56+ given: Nin C.
57+ genre: 'Master''s thesis'
58+ id: loh
59+ issued: 1992
60+ language: 'en-US'
61+ publisher: Massachusetts Institute of Technology
62+ publisher-place: 'Cambridge, Mass.'
63+ title: 'High-resolution micromachined interferometric accelerometer'
64+ type: thesis
65+---
66+
67+
68+```
test/command/biblatex-title-and-shorttitle.mdnew file+76
@@ -0,0 +1,76 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+TODO:
6+Slight inconsistency:
7+When a biblatex “title” field contains a colon, the part before the colon is mapped to CSL “title-short”.
8+When there’s a biblatex “title” and a “subtitle” field, CSL “title-short” is not set, though it would make at least as much sense to map “title” (without “subtitle”) to CSL “title-short” in this case.
9+
10+CSL “container-title-short” could also be set
11+- from biblatex “shortjournal”
12+- for inbook, incollection etc. from the “shorttitle” field of the crossreferenced book, collection etc. entry (see item5, item6)
13+... but it might not really be worth it, “container-title-short” not being used once in my sample of 70+ CSL styles.
14+
15+}
16+
17+@book{item4,
18+ Shorttitle = {The Shorttitle},
19+ Subtitle = {And a Subtitle, in Two Separate Fields; plus a Separate “Shorttitle” Field},
20+ Title = {The Title: With a Colon in the “Title” Field}}
21+
22+@book{item3,
23+ Subtitle = {And a Subtitle, in two separate fields},
24+ Title = {The Title: With a Colon in the “title” field}}
25+
26+@book{item2,
27+ Subtitle = {The Subtitle, In Two Separate fields},
28+ Title = {The Title}}
29+
30+@book{item1,
31+ Title = {The Title: And the Subtitle, all in the “title” Field}}
32+
33+@inbook{item5,
34+ Title = {The inbook Title: And the Subtitle, all in the “title” Field},
35+ Crossref = {item6}}
36+
37+@book{item6,
38+ Title = {The Title: And the Subtitle, all in the “title” Field},
39+ Shorttitle = {The Shorttitle},
40+}
41+^D
42+---
43+nocite: '[@*]'
44+references:
45+- id: item4
46+ title: 'The title: With a colon in the "title" field: And a subtitle,
47+ in two separate fields; plus a separate "shorttitle" field'
48+ title-short: The shorttitle
49+ type: book
50+- id: item3
51+ title: 'The title: With a colon in the "title" field: And a subtitle,
52+ in two separate fields'
53+ title-short: The title
54+ type: book
55+- id: item2
56+ title: 'The title: The subtitle, in two separate fields'
57+ title-short: The title
58+ type: book
59+- id: item1
60+ title: 'The title: And the subtitle, all in the "title" field'
61+ title-short: The title
62+ type: book
63+- container-title: 'The title: And the subtitle, all in the "title"
64+ field'
65+ id: item5
66+ title: 'The inbook title: And the subtitle, all in the "title" field'
67+ title-short: The inbook title
68+ type: chapter
69+- id: item6
70+ title: 'The title: And the subtitle, all in the "title" field'
71+ title-short: The shorttitle
72+ type: book
73+---
74+
75+
76+```
test/command/biblatex-vangennep-related.mdnew file+69
@@ -0,0 +1,69 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(van Gennep 1909)
11+
12+van Gennep, Arnold. 1909. *Les rites de passage*. Paris: Nourry.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(van Gennep, 1909)
18+
19+van Gennep, A. (1909). *Les rites de passage*. Paris: Nourry.
20+
21+NOTES:
22+
23+- biblio2yaml
24+ - "related = {vizedom:related}, relatedtype = {bytranslator}": no equivalent implemented in CSL
25+ - "options = {useprefix}," is shorthand for "options = {useprefix=true},"
26+
27+
28+}
29+
30+@Book{vangennep:related,
31+ author = {van Gennep, Arnold},
32+ title = {Les rites de passage},
33+ date = 1909,
34+ publisher = {Nourry},
35+ location = {Paris},
36+ options = {useprefix},
37+ hyphenation = {french},
38+ related = {vizedom:related},
39+ relatedtype = {bytranslator},
40+ sorttitle = {Rites de passage},
41+ indextitle = {Rites de passage, Les},
42+ shorttitle = {Rites de passage},
43+ annotation = {A variant of the vangennep entry related to its
44+ translation. Note the format of the related and
45+ relatedtype fields},
46+}
47+
48+^D
49+---
50+nocite: '[@*]'
51+references:
52+- annote: A variant of the vangennep entry related to its translation.
53+ Note the format of the related and relatedtype fields
54+ author:
55+ - family: Gennep
56+ given: Arnold
57+ non-dropping-particle: van
58+ id: 'vangennep:related'
59+ issued: 1909
60+ language: 'fr-FR'
61+ publisher: Nourry
62+ publisher-place: Paris
63+ title: Les rites de passage
64+ title-short: Rites de passage
65+ type: book
66+---
67+
68+
69+```
test/command/biblatex-vangennep-trans.mdnew file+69
@@ -0,0 +1,69 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(van Gennep 1960)
11+
12+van Gennep, Arnold. 1960. *The Rites of Passage*. Translated by Monika
13+B. Vizedom and Gabrielle L. Caffee. University of Chicago Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(van Gennep, 1960)
19+
20+van Gennep, A. (1960). *The rites of passage*. (M. B. Vizedom & G. L.
21+Caffee, Trans.). University of Chicago Press.
22+
23+
24+}
25+
26+@Book{vangennep:trans,
27+ author = {van Gennep, Arnold},
28+ title = {The Rites of Passage},
29+ year = 1960,
30+ translator = {Vizedom, Monika B. and Caffee, Gabrielle L.},
31+ language = {english},
32+ origlanguage = {french},
33+ publisher = {University of Chicago Press},
34+ options = {useprefix},
35+ indextitle = {Rites of Passage, The},
36+ sorttitle = {Rites of Passage},
37+ shorttitle = {Rites of Passage},
38+ hyphenation = {american},
39+ annotation = {A translation of the vangennep entry. Note the
40+ translator and origlanguage fields. Compare
41+ with the vangennep:related entry.},
42+}
43+
44+^D
45+---
46+nocite: '[@*]'
47+references:
48+- annote: 'A translation of the vangennep entry. Note the translator and
49+ origlanguage fields. Compare with the vangennep:related entry.'
50+ author:
51+ - family: Gennep
52+ given: Arnold
53+ non-dropping-particle: van
54+ id: 'vangennep:trans'
55+ issued: 1960
56+ language: 'en-US'
57+ publisher: University of Chicago Press
58+ title: The rites of passage
59+ title-short: Rites of passage
60+ translator:
61+ - family: Vizedom
62+ given: Monika B.
63+ - family: Caffee
64+ given: Gabrielle L.
65+ type: book
66+---
67+
68+
69+```
test/command/biblatex-vangennep.mdnew file+61
@@ -0,0 +1,61 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(van Gennep 1909)
11+
12+van Gennep, Arnold. 1909. *Les rites de passage*. Paris: Nourry.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(van Gennep, 1909)
18+
19+van Gennep, A. (1909). *Les rites de passage*. Paris: Nourry.
20+
21+
22+}
23+
24+@Book{vangennep,
25+ author = {van Gennep, Arnold},
26+ title = {Les rites de passage},
27+ date = 1909,
28+ publisher = {Nourry},
29+ location = {Paris},
30+ options = {useprefix},
31+ hyphenation = {french},
32+ sorttitle = {Rites de passage},
33+ indextitle = {Rites de passage, Les},
34+ shorttitle = {Rites de passage},
35+ annotation = {A book entry. Note the format of the printed name and
36+ compare the useprefix option in the options
37+ field as well as brandt and geer},
38+}
39+
40+^D
41+---
42+nocite: '[@*]'
43+references:
44+- annote: A book entry. Note the format of the printed name and compare
45+ the useprefix option in the options field as well as brandt and geer
46+ author:
47+ - family: Gennep
48+ given: Arnold
49+ non-dropping-particle: van
50+ id: vangennep
51+ issued: 1909
52+ language: 'fr-FR'
53+ publisher: Nourry
54+ publisher-place: Paris
55+ title: Les rites de passage
56+ title-short: Rites de passage
57+ type: book
58+---
59+
60+
61+```
test/command/biblatex-vazques-de-parga-mvbook.mdnew file+75
@@ -0,0 +1,75 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Vázques de Parga, Lacarra, and Uría Ríu 1993)
11+
12+Vázques de Parga, Luis, José María Lacarra, and Juan Uría Ríu. 1993.
13+*Las Peregrinaciones a Santiago de Compostela*. 3. Pamplona: Iberdrola.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Vázques de Parga, Lacarra, & Uría Ríu, 1993)
19+
20+Vázques de Parga, L., Lacarra, J. M., & Uría Ríu, J. (1993). *Las
21+Peregrinaciones a Santiago de Compostela* (1-3). Pamplona: Iberdrola.
22+
23+
24+NOTES:
25+
26+- citeproc
27+ - term "vols." missing
28+
29+}
30+
31+@mvbook{vazques-de-parga,
32+ author = {V{\'a}zques{ de }Parga, Luis and Lacarra, Jos{\'e} Mar{\'i}a
33+ and Ur{\'i}a R{\'i}u, Juan},
34+ title = {Las Peregrinaciones a Santiago de Compostela},
35+ date = 1993,
36+ volumes = 3,
37+ note = {Ed. facs. de la realizada en 1948--49},
38+ publisher = {Iberdrola},
39+ location = {Pamplona},
40+ hyphenation = {spanish},
41+ sorttitle = {Peregrinaciones a Santiago de Compostela},
42+ indextitle = {Peregrinaciones a Santiago de Compostela, Las},
43+ shorttitle = {Peregrinaciones},
44+ annotation = {A multivolume book cited as a whole. This is a book
45+ entry with volumes, note,
46+ sorttitle, and indextitle fields},
47+}
48+
49+^D
50+---
51+nocite: '[@*]'
52+references:
53+- annote: 'A multivolume book cited as a whole. This is a book entry
54+ with volumes, note, sorttitle, and indextitle fields'
55+ author:
56+ - family: Vázques de Parga
57+ given: Luis
58+ - family: Lacarra
59+ given: José María
60+ - family: Uría Ríu
61+ given: Juan
62+ id: 'vazques-de-parga'
63+ issued: 1993
64+ language: 'es-ES'
65+ note: 'Ed. facs. de la realizada en 1948--49'
66+ number-of-volumes: 3
67+ publisher: Iberdrola
68+ publisher-place: Pamplona
69+ title: Las Peregrinaciones a Santiago de Compostela
70+ title-short: Peregrinaciones
71+ type: book
72+---
73+
74+
75+```
test/command/biblatex-vazques-de-parga.mdnew file+74
@@ -0,0 +1,74 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Vázques de Parga, Lacarra, and Uría Ríu 1993)
10+
11+Vázques de Parga, Luis, José María Lacarra, and Juan Uría Ríu. 1993.
12+*Las Peregrinaciones a Santiago de Compostela*. 3. Pamplona: Iberdrola.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Vázques de Parga, Lacarra, & Uría Ríu, 1993)
18+
19+Vázques de Parga, L., Lacarra, J. M., & Uría Ríu, J. (1993). *Las
20+Peregrinaciones a Santiago de Compostela* (1-3). Pamplona: Iberdrola.
21+
22+
23+NOTES:
24+
25+- citeproc
26+ - term "vols." missing
27+
28+}
29+
30+@Book{vazques-de-parga,
31+ author = {V{\'a}zques{ de }Parga, Luis and Lacarra, Jos{\'e} Mar{\'i}a
32+ and Ur{\'i}a R{\'i}u, Juan},
33+ title = {Las Peregrinaciones a Santiago de Compostela},
34+ date = 1993,
35+ volumes = 3,
36+ note = {Ed. facs. de la realizada en 1948--49},
37+ publisher = {Iberdrola},
38+ location = {Pamplona},
39+ hyphenation = {spanish},
40+ sorttitle = {Peregrinaciones a Santiago de Compostela},
41+ indextitle = {Peregrinaciones a Santiago de Compostela, Las},
42+ shorttitle = {Peregrinaciones},
43+ annotation = {A multivolume book cited as a whole. This is a book
44+ entry with volumes, note,
45+ sorttitle, and indextitle fields},
46+}
47+
48+^D
49+---
50+nocite: '[@*]'
51+references:
52+- annote: 'A multivolume book cited as a whole. This is a book entry
53+ with volumes, note, sorttitle, and indextitle fields'
54+ author:
55+ - family: Vázques de Parga
56+ given: Luis
57+ - family: Lacarra
58+ given: José María
59+ - family: Uría Ríu
60+ given: Juan
61+ id: 'vazques-de-parga'
62+ issued: 1993
63+ language: 'es-ES'
64+ note: 'Ed. facs. de la realizada en 1948--49'
65+ number-of-volumes: 3
66+ publisher: Iberdrola
67+ publisher-place: Pamplona
68+ title: Las Peregrinaciones a Santiago de Compostela
69+ title-short: Peregrinaciones
70+ type: book
71+---
72+
73+
74+```
test/command/biblatex-video.mdnew file+19
@@ -0,0 +1,19 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@video{x1,title={blah}}
4+@movie{x2,title={blah}}
5+
6+^D
7+---
8+nocite: '[@*]'
9+references:
10+- id: x1
11+ title: Blah
12+ type: motion_picture
13+- id: x2
14+ title: Blah
15+ type: motion_picture
16+---
17+
18+
19+```
test/command/biblatex-vizedom-related.mdnew file+68
@@ -0,0 +1,68 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Vizedom and Caffee 1960)
10+
11+Vizedom, Monika B., and Gabrielle L. Caffee, trans. 1960. *The Rites of
12+Passage*. University of Chicago Press.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Vizedom & Caffee, 1960)
18+
19+Vizedom, M. B., & Caffee, G. L. (Trans.). (1960). *The rites of
20+passage*. University of Chicago Press.
21+
22+
23+NOTES:
24+
25+- biblio2yaml
26+ - "related = {vangennep}, relatedtype = {translationof}": no equivalent implemented in CSL
27+
28+}
29+
30+@Book{vizedom:related,
31+ title = {The Rites of Passage},
32+ year = 1960,
33+ translator = {Vizedom, Monika B. and Caffee, Gabrielle L.},
34+ language = {english},
35+ publisher = {University of Chicago Press},
36+ hyphenation = {american},
37+ options = {usetranslator},
38+ related = {vangennep},
39+ relatedtype = {translationof},
40+ indextitle = {Rites of Passage, The},
41+ sorttitle = {Rites of Passage},
42+ shorttitle = {Rites of Passage},
43+ annotation = {A translated work from vangennep. Note the format of
44+ the related and relatedtype fields},
45+}
46+
47+^D
48+---
49+nocite: '[@*]'
50+references:
51+- annote: A translated work from vangennep. Note the format of the
52+ related and relatedtype fields
53+ id: 'vizedom:related'
54+ issued: 1960
55+ language: 'en-US'
56+ publisher: University of Chicago Press
57+ title: The rites of passage
58+ title-short: Rites of passage
59+ translator:
60+ - family: Vizedom
61+ given: Monika B.
62+ - family: Caffee
63+ given: Gabrielle L.
64+ type: book
65+---
66+
67+
68+```
test/command/biblatex-wassenberg.mdnew file+83
@@ -0,0 +1,83 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Wassenberg and Sanders 2010)
10+
11+Wassenberg, Jan, and Peter Sanders. 2010. “Faster Radix Sort via Virtual
12+Memory and Write-combining” (version 1). August 17.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Wassenberg & Sanders, 2010)
18+
19+Wassenberg, J., & Sanders, P. (2010, August 17). Faster radix sort via
20+virtual memory and write-combining.
21+
22+
23+NOTES:
24+
25+- biblio2yaml
26+ - "eprinttype = {arxiv}, eprintclass = {cs.DS}, eprint = {1008.2849v1}" should be used to reconstruct a Url: http://arxiv.org/abs/1008.2849v1 ("cs.DS" does not seem to be essential)
27+
28+}
29+
30+@Online{wassenberg,
31+ author = {Wassenberg, Jan and Sanders, Peter},
32+ title = {Faster Radix Sort via Virtual Memory and Write-Combining},
33+ date = {2010-08-17},
34+ version = 1,
35+ hyphenation = {american},
36+ eprinttype = {arxiv},
37+ eprintclass = {cs.DS},
38+ eprint = {1008.2849v1},
39+ annotation = {A recent online reference from arXiv using the new
40+ (April 2007 onward) identifier format. Note the
41+ eprint, eprinttype, and eprintclass
42+ fields. Also note that the arXiv reference is transformed into
43+ a clickable link if hyperref support has been
44+ enabled},
45+ abstract = {Sorting algorithms are the deciding factor for the performance
46+ of common operations such as removal of duplicates or database
47+ sort-merge joins. This work focuses on 32-bit integer keys,
48+ optionally paired with a 32-bit value. We present a fast radix
49+ sorting algorithm that builds upon a microarchitecture-aware
50+ variant of counting sort},
51+}
52+
53+^D
54+---
55+nocite: '[@*]'
56+references:
57+- abstract: 'Sorting algorithms are the deciding factor for the
58+ performance of common operations such as removal of duplicates or
59+ database sort-merge joins. This work focuses on 32-bit integer keys,
60+ optionally paired with a 32-bit value. We present a fast radix
61+ sorting algorithm that builds upon a microarchitecture-aware variant
62+ of counting sort'
63+ annote: 'A recent online reference from arXiv using the new (April
64+ 2007 onward) identifier format. Note the eprint, eprinttype, and
65+ eprintclass fields. Also note that the arXiv reference is
66+ transformed into a clickable link if hyperref support has been
67+ enabled'
68+ author:
69+ - family: Wassenberg
70+ given: Jan
71+ - family: Sanders
72+ given: Peter
73+ id: wassenberg
74+ issued: '2010-08-17'
75+ language: 'en-US'
76+ title: 'Faster radix sort via virtual memory and write-combining'
77+ type: webpage
78+ url: 'http://arxiv.org/abs/1008.2849v1'
79+ version: 1
80+---
81+
82+
83+```
test/command/biblatex-weinberg.mdnew file+52
@@ -0,0 +1,52 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Weinberg 1967)
11+
12+Weinberg, Steven. 1967. “A Model of Leptons.” *Phys. Rev. Lett.* 19:
13+1264–1266.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Weinberg, 1967)
19+
20+Weinberg, S. (1967). A model of leptons. *Phys. Rev. Lett.*, *19*,
21+1264–1266.
22+
23+
24+}
25+
26+@Article{weinberg,
27+ author = {Weinberg, Steven},
28+ title = {A Model of Leptons},
29+ journaltitle = {Phys.~Rev.~Lett.},
30+ date = 1967,
31+ volume = 19,
32+ pages = {1264-1266},
33+}
34+
35+^D
36+---
37+nocite: '[@*]'
38+references:
39+- author:
40+ - family: Weinberg
41+ given: Steven
42+ container-title: Phys. Rev. Lett.
43+ id: weinberg
44+ issued: 1967
45+ page: '1264-1266'
46+ title: A model of leptons
47+ type: 'article-journal'
48+ volume: 19
49+---
50+
51+
52+```
test/command/biblatex-westfahl-frontier.mdnew file+60
@@ -0,0 +1,60 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
8+
9+(Westfahl 2000)
10+
11+Westfahl, Gary, ed. 2000. *Space and Beyond: The Frontier Theme in
12+Science Fiction*. Westport, Conn.; London: Greenwood.
13+
14+
15+Formatted with pandoc and apa.csl, 2013-10-23:
16+
17+(Westfahl, 2000)
18+
19+Westfahl, G. (Ed.). (2000). *Space and beyond: The frontier theme in
20+science fiction*. Westport, Conn.; London: Greenwood.
21+
22+
23+}
24+
25+@Collection{westfahl:frontier,
26+ editor = {Westfahl, Gary},
27+ title = {Space and Beyond},
28+ date = 2000,
29+ subtitle = {The Frontier Theme in Science Fiction},
30+ publisher = {Greenwood},
31+ location = {Westport, Conn. and London},
32+ hyphenation = {american},
33+ booktitle = {Space and Beyond},
34+ booksubtitle = {The Frontier Theme in Science Fiction},
35+ annotation = {This is a collection entry. Note the format of the
36+ location field as well as the subtitle and
37+ booksubtitle fields},
38+}
39+
40+^D
41+---
42+nocite: '[@*]'
43+references:
44+- annote: This is a collection entry. Note the format of the location
45+ field as well as the subtitle and booksubtitle fields
46+ editor:
47+ - family: Westfahl
48+ given: Gary
49+ id: 'westfahl:frontier'
50+ issued: 2000
51+ language: 'en-US'
52+ publisher: Greenwood
53+ publisher-place: 'Westport, Conn.; London'
54+ title: 'Space and beyond: The frontier theme in science fiction'
55+ title-short: Space and beyond
56+ type: book
57+---
58+
59+
60+```
test/command/biblatex-westfahl-space.mdnew file+106
@@ -0,0 +1,106 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Westfahl 2000a) (Westfahl 2000b)
11+
12+Westfahl, Gary. 2000a. “The True Frontier: Confronting and Avoiding the
13+Realities of Space in American Science Fiction Films.” In *Space and
14+Beyond: The Frontier Theme in Science Fiction*, edited by Gary Westfahl,
15+55–65. Westport, Conn.; London: Greenwood.
16+
17+———, ed. 2000b. *Space and Beyond: The Frontier Theme in Science
18+Fiction*. Westport, Conn.; London: Greenwood.
19+
20+
21+Formatted with pandoc and apa.csl, 2013-10-23:
22+
23+(Westfahl, 2000) (Westfahl, 2000)
24+
25+Westfahl, G. (2000). The true frontier: Confronting and avoiding the
26+realities of space in American science fiction films. In G. Westfahl
27+(Ed.), *Space and beyond: The frontier theme in science fiction* (pp.
28+55–65). Westport, Conn.; London: Greenwood.
29+
30+Westfahl, G. (Ed.). (2000). *Space and beyond: The frontier theme in
31+science fiction*. Westport, Conn.; London: Greenwood.
32+
33+
34+}
35+
36+@InCollection{westfahl:space,
37+ author = {Westfahl, Gary},
38+ title = {The True Frontier},
39+ subtitle = {Confronting and Avoiding the Realities of Space in {American}
40+ Science Fiction Films},
41+ pages = {55-65},
42+ crossref = {westfahl:frontier},
43+ hyphenation = {american},
44+ indextitle = {True Frontier, The},
45+ annotation = {A cross-referenced article from a collection. This is
46+ an incollection entry with a crossref
47+ field. Note the subtitle and indextitle
48+ fields},
49+}
50+
51+@Collection{westfahl:frontier,
52+ editor = {Westfahl, Gary},
53+ title = {Space and Beyond},
54+ date = 2000,
55+ subtitle = {The Frontier Theme in Science Fiction},
56+ publisher = {Greenwood},
57+ location = {Westport, Conn. and London},
58+ hyphenation = {american},
59+ booktitle = {Space and Beyond},
60+ booksubtitle = {The Frontier Theme in Science Fiction},
61+ annotation = {This is a collection entry. Note the format of the
62+ location field as well as the subtitle and
63+ booksubtitle fields},
64+}
65+^D
66+---
67+nocite: '[@*]'
68+references:
69+- annote: 'A cross-referenced article from a collection. This is an
70+ incollection entry with a crossref field. Note the subtitle and
71+ indextitle fields'
72+ author:
73+ - family: Westfahl
74+ given: Gary
75+ container-title: 'Space and beyond: The frontier theme in science
76+ fiction'
77+ editor:
78+ - family: Westfahl
79+ given: Gary
80+ id: 'westfahl:space'
81+ issued: 2000
82+ language: 'en-US'
83+ page: '55-65'
84+ publisher: Greenwood
85+ publisher-place: 'Westport, Conn.; London'
86+ title: 'The true frontier: Confronting and avoiding the realities of
87+ space in American science fiction films'
88+ title-short: The true frontier
89+ type: chapter
90+- annote: This is a collection entry. Note the format of the location
91+ field as well as the subtitle and booksubtitle fields
92+ editor:
93+ - family: Westfahl
94+ given: Gary
95+ id: 'westfahl:frontier'
96+ issued: 2000
97+ language: 'en-US'
98+ publisher: Greenwood
99+ publisher-place: 'Westport, Conn.; London'
100+ title: 'Space and beyond: The frontier theme in science fiction'
101+ title-short: Space and beyond
102+ type: book
103+---
104+
105+
106+```
test/command/biblatex-wilde.mdnew file+65
@@ -0,0 +1,65 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Wilde 1899)
11+
12+Wilde, Oscar. 1899. *The Importance of Being Earnest: A Trivial Comedy
13+for Serious People*. English and American Drama of the Nineteenth
14+Century. Leonard Smithers and Company.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Wilde, 1899)
20+
21+Wilde, O. (1899). *The importance of being earnest: A trivial comedy for
22+serious people*. Leonard Smithers and Company.
23+
24+
25+NOTES:
26+
27+- biblio2yaml
28+ - From "eprint = {4HIWAAAAYAAJ}, eprinttype = {googlebooks}", a url could be reconstructed, shortest form: http://books.google.com?id=4HIWAAAAYAAJ
29+
30+}
31+
32+@Book{wilde,
33+ author = {Wilde, Oscar},
34+ title = {The Importance of Being Earnest: {A} Trivial Comedy for Serious
35+ People},
36+ year = 1899,
37+ series = {English and American drama of the Nineteenth Century},
38+ publisher = {Leonard Smithers {and} Company},
39+ eprint = {4HIWAAAAYAAJ},
40+ eprinttype = {googlebooks},
41+ annotation = {A book with eprint and eprinttype
42+ fields.},
43+}
44+
45+^D
46+---
47+nocite: '[@*]'
48+references:
49+- annote: A book with eprint and eprinttype fields.
50+ author:
51+ - family: Wilde
52+ given: Oscar
53+ collection-title: English and american drama of the nineteenth century
54+ id: wilde
55+ issued: 1899
56+ publisher: Leonard Smithers and Company
57+ title: 'The importance of being earnest: A trivial comedy for serious
58+ people'
59+ title-short: The importance of being earnest
60+ type: book
61+ url: 'http://books.google.com?id=4HIWAAAAYAAJ'
62+---
63+
64+
65+```
test/command/biblatex-worman.mdnew file+60
@@ -0,0 +1,60 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Worman 2002)
11+
12+Worman, Nancy. 2002. *The Cast of Character: Style in Greek Literature*.
13+Austin: University of Texas Press.
14+
15+
16+Formatted with pandoc and apa.csl, 2013-10-23:
17+
18+(Worman, 2002)
19+
20+Worman, N. (2002). *The cast of character: Style in Greek literature*.
21+Austin: University of Texas Press.
22+
23+
24+}
25+
26+@Book{worman,
27+ author = {Worman, Nancy},
28+ title = {The Cast of Character},
29+ date = 2002,
30+ publisher = {University of Texas Press},
31+ location = {Austin},
32+ hyphenation = {american},
33+ sorttitle = {Cast of Character},
34+ indextitle = {Cast of Character, The},
35+ subtitle = {Style in {Greek} Literature},
36+ shorttitle = {Cast of Character},
37+ annotation = {A book entry. Note the sorttitle and
38+ indextitle fields},
39+}
40+
41+^D
42+---
43+nocite: '[@*]'
44+references:
45+- annote: A book entry. Note the sorttitle and indextitle fields
46+ author:
47+ - family: Worman
48+ given: Nancy
49+ id: worman
50+ issued: 2002
51+ language: 'en-US'
52+ publisher: University of Texas Press
53+ publisher-place: Austin
54+ title: 'The cast of character: Style in Greek literature'
55+ title-short: Cast of character
56+ type: book
57+---
58+
59+
60+```
test/command/biblatex-yoon.mdnew file+67
@@ -0,0 +1,67 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@comment{
4+
5+Adapted from biblatex-example.bib
6+
7+
8+Formatted with pandoc and chicago-author-date.csl, 2013-10-23:
9+
10+(Yoon et al. 2006)
11+
12+Yoon, Myeong S., Dowook Ryu, Jeongryul Kim, and Kyo Han Ahn. 2006.
13+“Palladium Pincer Complexes with Reduced Bond Angle Strain: Efficient
14+Catalysts for the Heck Reaction.” *Organometallics* 25 (10): 2409–2411.
15+
16+
17+Formatted with pandoc and apa.csl, 2013-10-23:
18+
19+(Yoon, Ryu, Kim, & Ahn, 2006)
20+
21+Yoon, M. S., Ryu, D., Kim, J., & Ahn, K. H. (2006). Palladium pincer
22+complexes with reduced bond angle strain: Efficient catalysts for the
23+Heck reaction. *Organometallics*, *25*(10), 2409–2411.
24+
25+
26+}
27+
28+@Article{yoon,
29+ author = {Yoon, Myeong S. and Ryu, Dowook and Kim, Jeongryul and Ahn,
30+ Kyo Han},
31+ title = {Palladium pincer complexes with reduced bond angle strain:
32+ efficient catalysts for the {Heck} reaction},
33+ journaltitle = {Organometallics},
34+ date = 2006,
35+ volume = 25,
36+ number = 10,
37+ pages = {2409-2411},
38+ indextitle = {Palladium pincer complexes},
39+}
40+
41+^D
42+---
43+nocite: '[@*]'
44+references:
45+- author:
46+ - family: Yoon
47+ given: Myeong S.
48+ - family: Ryu
49+ given: Dowook
50+ - family: Kim
51+ given: Jeongryul
52+ - family: Ahn
53+ given: Kyo Han
54+ container-title: Organometallics
55+ id: yoon
56+ issue: 10
57+ issued: 2006
58+ page: '2409-2411'
59+ title: 'Palladium pincer complexes with reduced bond angle strain:
60+ Efficient catalysts for the Heck reaction'
61+ title-short: Palladium pincer complexes with reduced bond angle strain
62+ type: 'article-journal'
63+ volume: 25
64+---
65+
66+
67+```
test/command/biblio.bibnew file+26
@@ -0,0 +1,26 @@
1+@Book{item1,
2+author="John Doe",
3+title="First Book",
4+year="2005",
5+address="Cambridge",
6+publisher="Cambridge University Press"
7+}
8+
9+@Article{item2,
10+author="John Doe",
11+title="Article",
12+year="2006",
13+journal="Journal of Generic Studies",
14+volume="6",
15+pages="33-34"
16+}
17+
18+@InCollection{пункт3,
19+author="John Doe and Jenny Roe",
20+title="Why Water Is Wet",
21+booktitle="Third Book",
22+editor="Sam Smith",
23+publisher="Oxford University Press",
24+address="Oxford",
25+year="2007"
26+}
test/command/bibtex-basic.mdnew file+71
@@ -0,0 +1,71 @@
1+```
2+% pandoc -f biblatex -t markdown -s
3+@Book{item1,
4+author="John Doe",
5+title="First Book",
6+year="2005",
7+address="Cambridge",
8+publisher="Cambridge University Press"
9+}
10+
11+@Article{item2,
12+author="John Doe",
13+title="Article",
14+year="2006",
15+journal="Journal of Generic Studies",
16+volume="6",
17+pages="33-34"
18+}
19+
20+@InCollection{пункт3,
21+author="John Doe and Jenny Roe",
22+title="Why Water Is Wet",
23+booktitle="Third Book",
24+editor="Sam Smith",
25+publisher="Oxford University Press",
26+address="Oxford",
27+year="2007"
28+}
29+
30+^D
31+---
32+nocite: '[@*]'
33+references:
34+- author:
35+ - family: Doe
36+ given: John
37+ id: item1
38+ issued: 2005
39+ publisher: Cambridge University Press
40+ publisher-place: Cambridge
41+ title: First book
42+ type: book
43+- author:
44+ - family: Doe
45+ given: John
46+ container-title: Journal of Generic Studies
47+ id: item2
48+ issued: 2006
49+ page: '33-34'
50+ title: Article
51+ type: 'article-journal'
52+ volume: 6
53+- author:
54+ - family: Doe
55+ given: John
56+ - family: Roe
57+ given: Jenny
58+ container-title: Third book
59+ editor:
60+ - family: Smith
61+ given: Sam
62+ id: пункт3
63+ issued: 2007
64+ publisher: Oxford University Press
65+ publisher-place: Oxford
66+ title: Why water is wet
67+ type: chapter
68+---
69+
70+
71+```
test/command/bioethics.cslnew file+226

This diff is too big to show here.

test/command/chicago-annotated-bibliography.cslnew file+1207

This diff is too big to show here.

test/command/chicago-author-date-with-original-date-and-status.cslnew file+575

This diff is too big to show here.

test/command/chicago-fullnote-bibliography.cslnew file+1182

This diff is too big to show here.

test/command/chicago-note-bibliography.cslnew file+1005

This diff is too big to show here.

test/command/chinese-gb7714-2005-numeric.cslnew file+213

This diff is too big to show here.

test/command/citeproc-7a.mdnew file+42

This diff is too big to show here.

test/command/citeproc-7b.mdnew file+36

This diff is too big to show here.

test/command/din-1505-2.cslnew file+406

This diff is too big to show here.

test/command/harvard-university-of-kent.cslnew file+253

This diff is too big to show here.

test/command/ieee.cslnew file+339

This diff is too big to show here.

test/command/issue160.cslnew file+28

This diff is too big to show here.

test/command/issue437.cslnew file+26

This diff is too big to show here.

test/command/issue58.cslnew file+553

This diff is too big to show here.

test/command/jats.cslnew file+208

This diff is too big to show here.

test/command/le-tapuscrit-note.cslnew file+496

This diff is too big to show here.

test/command/locators.cslnew file+68

This diff is too big to show here.

test/command/modern-humanities-research-association.cslnew file+445

This diff is too big to show here.

test/command/oscola.cslnew file+680

This diff is too big to show here.

test/command/pandoc-citeproc-118.mdnew file+28

This diff is too big to show here.

test/command/pandoc-citeproc-119.mdnew file+39

This diff is too big to show here.

test/command/pandoc-citeproc-13.mdnew file+29

This diff is too big to show here.

test/command/pandoc-citeproc-136.mdnew file+23

This diff is too big to show here.

test/command/pandoc-citeproc-14.mdnew file+78

This diff is too big to show here.

test/command/pandoc-citeproc-152.mdnew file+65

This diff is too big to show here.

test/command/pandoc-citeproc-160.mdnew file+46

This diff is too big to show here.

test/command/pandoc-citeproc-175.mdnew file+45

This diff is too big to show here.

test/command/pandoc-citeproc-197.mdnew file+31

This diff is too big to show here.

test/command/pandoc-citeproc-213.mdnew file+34

This diff is too big to show here.

test/command/pandoc-citeproc-25.mdnew file+31

This diff is too big to show here.

test/command/pandoc-citeproc-250.mdnew file+21

This diff is too big to show here.

test/command/pandoc-citeproc-27.mdnew file+39

This diff is too big to show here.

test/command/pandoc-citeproc-292.mdnew file+43

This diff is too big to show here.

test/command/pandoc-citeproc-301.mdnew file+25

This diff is too big to show here.

test/command/pandoc-citeproc-307.mdnew file+31

This diff is too big to show here.

test/command/pandoc-citeproc-31.mdnew file+48

This diff is too big to show here.

test/command/pandoc-citeproc-312.mdnew file+171

This diff is too big to show here.

test/command/pandoc-citeproc-320.mdnew file+254

This diff is too big to show here.

test/command/pandoc-citeproc-320a.mdnew file+87

This diff is too big to show here.

test/command/pandoc-citeproc-322.mdnew file+35

This diff is too big to show here.

test/command/pandoc-citeproc-325.mdnew file+30

This diff is too big to show here.

test/command/pandoc-citeproc-327.mdnew file+51

This diff is too big to show here.

test/command/pandoc-citeproc-338.mdnew file+35

This diff is too big to show here.

test/command/pandoc-citeproc-351.mdnew file+27

This diff is too big to show here.

test/command/pandoc-citeproc-356.mdnew file+25

This diff is too big to show here.

test/command/pandoc-citeproc-360.mdnew file+35

This diff is too big to show here.

test/command/pandoc-citeproc-361.mdnew file+80

This diff is too big to show here.

test/command/pandoc-citeproc-365.mdnew file+39

This diff is too big to show here.

test/command/pandoc-citeproc-371.mdnew file+41

This diff is too big to show here.

test/command/pandoc-citeproc-38.mdnew file+29

This diff is too big to show here.

test/command/pandoc-citeproc-386.mdnew file+35

This diff is too big to show here.

test/command/pandoc-citeproc-392.mdnew file+29

This diff is too big to show here.

test/command/pandoc-citeproc-399.mdnew file+45

This diff is too big to show here.

test/command/pandoc-citeproc-401.mdnew file+59

This diff is too big to show here.

test/command/pandoc-citeproc-408.mdnew file+39

This diff is too big to show here.

test/command/pandoc-citeproc-416.mdnew file+61

This diff is too big to show here.

test/command/pandoc-citeproc-437.mdnew file+23

This diff is too big to show here.

test/command/pandoc-citeproc-47.mdnew file+113

This diff is too big to show here.

test/command/pandoc-citeproc-51.mdnew file+45

This diff is too big to show here.

test/command/pandoc-citeproc-53.mdnew file+54

This diff is too big to show here.

test/command/pandoc-citeproc-57.mdnew file+38

This diff is too big to show here.

test/command/pandoc-citeproc-58.mdnew file+33

This diff is too big to show here.

test/command/pandoc-citeproc-61.mdnew file+79

This diff is too big to show here.

test/command/pandoc-citeproc-64.mdnew file+24

This diff is too big to show here.

test/command/pandoc-citeproc-65.mdnew file+38

This diff is too big to show here.

test/command/pandoc-citeproc-68.mdnew file+56

This diff is too big to show here.

test/command/pandoc-citeproc-7.mdnew file+31

This diff is too big to show here.

test/command/pandoc-citeproc-70.mdnew file+73

This diff is too big to show here.

test/command/pandoc-citeproc-75.mdnew file+67

This diff is too big to show here.

test/command/pandoc-citeproc-76.mdnew file+64

This diff is too big to show here.

test/command/pandoc-citeproc-77.mdnew file+67

This diff is too big to show here.

test/command/pandoc-citeproc-82.mdnew file+40

This diff is too big to show here.

test/command/pandoc-citeproc-87.mdnew file+157

This diff is too big to show here.

test/command/pandoc-citeproc-chicago-author-date.mdnew file+111

This diff is too big to show here.

test/command/pandoc-citeproc-chicago-fullnote-bibliography.mdnew file+134

This diff is too big to show here.

test/command/pandoc-citeproc-ieee.mdnew file+115

This diff is too big to show here.

test/command/pandoc-citeproc-locators-delimited.mdnew file+127

This diff is too big to show here.

test/command/pandoc-citeproc-locators-integrated.mdnew file+159

This diff is too big to show here.

test/command/pandoc-citeproc-move-period-inside-quote.mdnew file+53

This diff is too big to show here.

test/command/pandoc-citeproc-no-author.mdnew file+73

This diff is too big to show here.

test/command/pandoc-citeproc-number-of-volumes.mdnew file+29

This diff is too big to show here.

test/command/pandoc-citeproc-page-range.mdnew file+32

This diff is too big to show here.

test/command/sage-harvard.cslnew file+202

This diff is too big to show here.

test/command/science.cslnew file+245

This diff is too big to show here.

test/command/style399.cslnew file+12

This diff is too big to show here.

test/command/vancouver.cslnew file+351

This diff is too big to show here.

test/command/zeitschrift-fur-kunstgeschichte.cslnew file+346

This diff is too big to show here.

windows/pandoc.wxs−2

This diff is too big to show here.