pandoc/test/command/zeitschrift-fur-kunstgeschichte.csl
John MacFarlane e0984a43a9 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.
2020-09-21 10:15:50 -07:00

346 lines
13 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
<info>
<title>Zeitschrift für Kunstgeschichte</title>
<title-short>ZfK</title-short>
<id>http://www.zotero.org/styles/zeitschrift-fur-kunstgeschichte</id>
<link href="http://www.zotero.org/styles/zeitschrift-fur-kunstgeschichte" rel="self"/>
<link href="http://www.zotero.org/styles/kritische-ausgabe" rel="template"/>
<link href="http://www.uni-bielefeld.de/geschichte/abteilung/arbeitsbereiche/bildwissenschaft/zfk/documents/Sylesheet-(ger)-Zeitschrift-fur-Kunstgeschichte.pdf" rel="documentation"/>
<link href="https://github.com/citation-style-language/styles/pull/1861" rel="documentation"/>
<author>
<name>Philipp Zumstein</name>
<uri>https://github.com/zuphilip/</uri>
</author>
<contributor>
<name>Anna Simon</name>
<email>simonanna@gmx.net</email>
</contributor>
<category citation-format="note"/>
<category field="humanities"/>
<category field="history"/>
<issn>0044-2992</issn>
<summary>From the editors: "Die Herausgeber werden im Falle von Editionen, Lexika und Ausstellungskatalogen dem Titel nachgestellt [use encyclopedia articles with or without container-title for that]. Bei gewöhnlichen Sammelbänden werden die Herausgeber dem Titel vorangestellt [use book for that]." Multilingual style; the information for exhibition catalogues should be entered in the field collection-title; locators may use the word "here" or "hier" in front of the page refering to which must be entered individually (the style outputs the locator as it is entered w/o any label or additional text).</summary>
<updated>2016-02-03T17:41:02+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="de">
<terms>
<term name="note">wie Anm.</term>
<term name="et-al">et al.</term>
<term name="editor" form="short">Hg.</term>
<term name="editortranslator" form="verb-short">hg. und übers. von</term>
<term name="accessed">letzter Zugriff am</term>
</terms>
</locale>
<locale xml:lang="en">
<terms>
<term name="note">as note</term>
<term name="editortranslator" form="verb-short">ed. and trans. by</term>
</terms>
</locale>
<macro name="author-short">
<names variable="author">
<name form="short" delimiter="/" and="text" delimiter-precedes-et-al="never"/>
<substitute>
<choose>
<if type="entry-encyclopedia" match="none">
<names variable="editor"/>
</if>
</choose>
<text variable="title" form="short"/>
</substitute>
</names>
</macro>
<macro name="author">
<names variable="author" delimiter=", ">
<name and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=")"/>
<substitute>
<choose>
<if type="entry-encyclopedia" match="none">
<names variable="editor"/>
</if>
</choose>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="author-bibliography">
<names variable="author" delimiter=", ">
<name and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never" name-as-sort-order="first"/>
<label form="short" prefix=" (" suffix=")"/>
<substitute>
<choose>
<if type="entry-encyclopedia" match="none">
<names variable="editor"/>
</if>
</choose>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor translator" delimiter=", ">
<name and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</macro>
<macro name="editor-encyclopedia">
<names variable="editor translator" delimiter=", ">
<label form="verb-short" suffix=" "/>
<name and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never"/>
</names>
</macro>
<macro name="volume">
<choose>
<if type="article-journal">
<text variable="volume" prefix=" "/>
<text variable="issue" prefix="/"/>
</if>
<else>
<choose>
<if variable="volume">
<group delimiter=" ">
<number variable="volume" form="long-ordinal" text-case="capitalize-first"/>
<text term="volume" form="short" text-case="capitalize-first"/>
</group>
</if>
<else>
<group>
<number variable="number-of-volumes" form="numeric"/>
<text term="volume" form="short" prefix=" " plural="true"/>
</group>
</else>
</choose>
</else>
</choose>
</macro>
<macro name="year-date">
<date variable="issued" date-parts="year" form="numeric"/>
</macro>
<macro name="collection-with-number">
<group delimiter=", " prefix="(" suffix=")">
<text variable="collection-title"/>
<text variable="collection-number"/>
</group>
</macro>
<macro name="translator">
<names variable="editor translator" delimiter=", ">
<label form="verb-short"/>
<name prefix=" " and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never"/>
</names>
</macro>
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-names="true">
<layout delimiter="; " suffix=".">
<choose>
<if position="ibid-with-locator">
<group delimiter=", ">
<text term="ibid"/>
<text variable="locator" prefix=" "/>
</group>
</if>
<else-if position="ibid">
<text term="ibid"/>
</else-if>
<else-if position="subsequent">
<group delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
<group delimiter=" " prefix="(" suffix=")">
<text term="note"/>
<text variable="first-reference-note-number"/>
</group>
</group>
<text variable="locator"/>
</group>
</else-if>
<else>
<group delimiter=", ">
<text macro="author"/>
<choose>
<if match="any" variable="container-title">
<text variable="title"/>
<group delimiter=" ">
<text term="in" suffix=": "/>
<choose>
<if type="entry-encyclopedia" match="any">
<group delimiter=", ">
<group delimiter=" ">
<text variable="container-title" font-style="italic"/>
<text macro="collection-with-number"/>
<text macro="volume"/>
</group>
<text macro="editor-encyclopedia"/>
</group>
</if>
<else>
<text macro="editor" suffix=","/>
<text variable="container-title" font-style="italic"/>
<text macro="collection-with-number"/>
<text macro="volume"/>
</else>
</choose>
</group>
</if>
<else>
<choose>
<if type="entry-encyclopedia" match="any">
<group delimiter=" ">
<text variable="title" font-style="italic"/>
<text macro="collection-with-number"/>
</group>
<text macro="editor-encyclopedia"/>
</if>
<else-if match="any" variable="translator">
<choose>
<if match="none" variable="author">
<names variable="editor">
<name and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</if>
</choose>
<group delimiter=" ">
<text variable="title" font-style="italic" suffix=","/>
<text macro="collection-with-number"/>
</group>
</else-if>
<else>
<choose>
<if match="none" variable="author">
<names variable="editor">
<name and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</if>
</choose>
<group delimiter=" ">
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<text macro="translator"/>
</group>
<text macro="collection-with-number"/>
</group>
</else>
</choose>
</else>
</choose>
<choose>
<if type="thesis">
<text variable="publisher" prefix="Diss., "/>
</if>
</choose>
<group delimiter=" ">
<text variable="publisher-place"/>
<group>
<text variable="edition" vertical-align="sup"/>
<text macro="year-date"/>
</group>
</group>
<text variable="page" prefix=" "/>
<text variable="locator" prefix=" "/>
</group>
</else>
</choose>
<choose>
<if variable="URL" match="any">
<group>
<text variable="URL" prefix=", "/>
<text term="accessed" prefix=" ("/>
<date variable="accessed" prefix=" " delimiter="." suffix=")">
<date-part name="day"/>
<date-part name="month" form="numeric"/>
<date-part name="year"/>
</date>
</group>
</if>
</choose>
</layout>
</citation>
<bibliography et-al-min="3" et-al-use-first="1" subsequent-author-substitute="&#8212;&#8212;&#8212;" entry-spacing="0" hanging-indent="true">
<sort>
<key macro="author-bibliography"/>
<key macro="year-date"/>
<key variable="title"/>
</sort>
<layout suffix=".">
<group delimiter=", ">
<text macro="author-bibliography"/>
<choose>
<if match="any" variable="container-title">
<text variable="title"/>
<group delimiter=" ">
<text term="in" suffix=": "/>
<choose>
<if type="entry-encyclopedia" match="any">
<group delimiter=", ">
<group delimiter=" ">
<text variable="container-title" font-style="italic"/>
<text macro="collection-with-number"/>
<text macro="volume"/>
</group>
<text macro="editor-encyclopedia"/>
</group>
</if>
<else>
<text macro="editor" suffix=","/>
<text variable="container-title" font-style="italic"/>
<text macro="collection-with-number"/>
<text macro="volume"/>
</else>
</choose>
</group>
</if>
<else>
<choose>
<if type="entry-encyclopedia" match="any">
<group delimiter=" ">
<text variable="title" font-style="italic"/>
<text macro="collection-with-number"/>
</group>
<text macro="editor-encyclopedia"/>
</if>
<else>
<group delimiter=" ">
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<text macro="editor"/>
</group>
<text macro="collection-with-number"/>
</group>
</else>
</choose>
</else>
</choose>
<choose>
<if type="thesis">
<text variable="publisher" prefix="Diss., "/>
</if>
</choose>
<group delimiter=" ">
<text variable="publisher-place"/>
<group>
<text variable="edition" vertical-align="sup"/>
<text macro="year-date"/>
</group>
</group>
<text variable="page" prefix=" "/>
</group>
<choose>
<if variable="URL" match="any">
<group>
<text variable="URL" prefix=", "/>
<text term="accessed" prefix=" ("/>
<date variable="accessed" prefix=" " delimiter="." suffix=")">
<date-part name="day"/>
<date-part name="month" form="numeric"/>
<date-part name="year"/>
</date>
</group>
</if>
</choose>
</layout>
</bibliography>
</style>