diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-01-12 17:15:07 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-01-12 17:15:07 +0100 |
commit | 8d8d528d2ad52599f11250cfc567fea4f37f2a8b (patch) | |
tree | 94286bc131ef7d994f9432febaf03fe23d10eef8 /tex/context/base/publ-imp-apa.lua | |
parent | f5aed2e51223c36c84c5f25a6cad238b2af59087 (diff) | |
download | context-8d8d528d2ad52599f11250cfc567fea4f37f2a8b.tar.gz |
2016-01-12 16:26:00
Diffstat (limited to 'tex/context/base/publ-imp-apa.lua')
-rw-r--r-- | tex/context/base/publ-imp-apa.lua | 543 |
1 files changed, 0 insertions, 543 deletions
diff --git a/tex/context/base/publ-imp-apa.lua b/tex/context/base/publ-imp-apa.lua deleted file mode 100644 index c6fe248ce..000000000 --- a/tex/context/base/publ-imp-apa.lua +++ /dev/null @@ -1,543 +0,0 @@ -local specification = { - -- - -- metadata - -- - name = "apa", - version = "1.00", - comment = "APA specification", - author = "Alan Braslau and Hans Hagen", - copyright = "ConTeXt development team", - -- - -- derived (combinations of) fields (all share the same default set) - -- - virtual = { - "authoryear", - "authoryears", - "authornum", - "num", - "suffix", - }, - -- - -- special datatypes - -- - types = { - -- - -- list of fields that are interpreted as names: "NAME [and NAME]" where - -- NAME is one of the following: - -- - -- First vons Last - -- vons Last, First - -- vons Last, Jrs, First - -- Vons, Last, Jrs, First - -- - author = "author", -- interpreted as name(s) - withauthor = "author", - editor = "author", - artist = "author", - composer = "author", - producer = "author", - director = "author", - doi = "url", -- an external link - url = "url", - page = "pagenumber", -- number or range: f--t - pages = "pagenumber", - volume = "range", - number = "range", - keywords = "keyword", -- comma|-|separated list - year = "number", - }, - -- - -- categories with their specific fields - -- - categories = { - -- - -- categories are added below - -- - }, -} - -local generic = { - -- - -- A set returns the first field (in order of position below) that is found - -- present in an entry. A set having the same name as a field conditionally - -- allows the substitution of an alternate field. - -- - -- note that anything can get assigned a doi or be available online. - doi = { "doi", "url" }, - editionset = { "edition", "volume", "number", "pages" }, -} - --- Definition of recognized categories and the fields that they contain. --- Required fields should be present; optional fields may also be rendered; --- all other fields will be ignored. - --- Sets contain either/or in order of precedence. --- --- For a category *not* defined here yet present in the dataset, *all* fields --- are taken as optional. This allows for flexibility in the addition of new --- categories. - -local categories = specification.categories - --- an article from a journal - -categories.article = { - sets = { - author = { "author", "editor", "title" }, - doi = generic.doi, - }, - required = { - "author" - }, - optional = { - "withauthor", - "year", - "subtitle", "type", "file", - "journal", "volume", "number", "pages", - "doi", "note", - }, -} - --- an article from a magazine - -categories.magazine = { - sets = categories.article.sets, - required = { - "author", - "year", - "journal", - }, - optional = { - "withauthor", - "subtitle", "type", "file", - "number", - "month", "day", - "doi", "note", - }, -} - -categories.newspaper = categories.magazine - --- (from jabref) to be identified and setup ... - -categories.periodical = { - sets = { - author = { "editor", "publisher" }, - doi = generic.doi, - }, - required = { - "title", - "year", - }, - optional = { - "author", "withauthor", - "subtitle", "file", - "series", "volume", "number", "month", - "organization", - "doi", "note", - }, -} - --- (from jabref) to be identified and setup ... - -categories.standard = { - sets = { - author = { "author", "institution", "organization" }, - doi = generic.doi, - }, - required = { - "author", - "year", - "title", "subtitle", - "doi", "note", - }, - optional = { - "withauthor", - }, -} - --- a book with an explicit publisher. - -categories.book = { - sets = { - author = { "author", "editor", "publisher", "title" }, - editionset = generic.editionset, - doi = generic.doi, - }, - required = { "author" }, - optional = { - "withauthor", - "year", "month", "day", - "subtitle", "type", "file", - "editionset", "series", - "address", - "doi", "note", - }, -} - --- a part of a book, which may be a chapter (or section or whatever) and/or a range of pages. - -categories.inbook = { - sets = { - author = { "author", "editor", "publisher", "title", }, - editionset = generic.editionset, - doi = generic.doi, - }, - required = { - "author", - "year" , - }, - optional = { - "withauthor", - "subtitle", "type", "file", - "booktitle", - -- APA ignores this: "chapter", - "editionset", "series", - "month", - "address", - "doi", "note", - }, -} - --- a book having its own title as part of a collection. --- (like inbook, but we here make booktitle required) - -categories.incollection = { - sets = { - author = { "author", "editor", "publisher", "title", }, - editionset = generic.editionset, - doi = generic.doi, - }, - required = { - "author", - "booktitle", - "year", - }, - optional = { - "withauthor", - "subtitle", "type", "file", - "editionset", "series", - -- APA ignores this: "chapter", - "month", - "address", - "doi", "note", - }, -} - --- a work that is printed and bound, but without a named publisher or sponsoring institution. - -categories.booklet = { - sets = { - author = { "author", "title", }, - publisher = { "howpublished" }, -- no "publisher"! - doi = generic.doi, - }, - required = { - "author" - }, - optional = { - "withauthor", - "publisher", - "year", "month", - "subtitle", "type", "file", - "address", - "doi", "note", - }, -} - --- the proceedings of a conference. - -categories.proceedings = { - sets = { - author = { "editor", "organization", "publisher", "title" }, -- no "author"! - publisher = { "publisher", "organization" }, - editionset = generic.editionset, - doi = generic.doi, - }, - required = { - "author", - "year" - }, - optional = { - "withauthor", - "publisher", - "subtitle", "file", - "editionset", "series", - "month", - "address", - "doi", "note", - }, -} - --- an article in a conference proceedings. - -categories.inproceedings = { - sets = categories.incollection.sets, - required = categories.incollection.required, - optional = { - "withauthor", - "subtitle", "type", "file", - "month", - "edition", "series", - "address", "organization", - "doi", "note", - }, -} - -categories.conference = categories.inproceedings - --- a thesis (of course). - -categories.thesis = { - sets = { - doi = generic.doi, - }, - required = { - "author", - "title", - "school", - "year", - "type" - }, - optional = { - "withauthor", - "subtitle", "file", - "month", - "address", - "doi", "note", - }, -} - -categories.mastersthesis = { - sets = categories.thesis.sets, - required = { - "author", - "title", - "school", - "year" - }, - optional = { - "withauthor", - "type", - "subtitle", "file", - "month", - "address", - "doi", "note", - }, -} -categories.phdthesis = categories.mastersthesis - --- a report published by a school or other institution, usually numbered within a series. - -categories.techreport = { - sets = { - author = { "author", "institution", "publisher", "title" }, - publisher = { "publisher", "institution", }, - editionset = { "type", "volume", "number", "pages" }, -- no "edition"! - doi = generic.doi, - }, - required = { - "author", - "title", - "institution", - "year" - }, - optional = { - "withauthor", - "publisher", - "address", - "subtitle", "file", - "editionset", - "month", - "doi", "note", - }, -} - --- technical documentation. - -categories.manual = { - sets = { - author = { "author", "organization", "publisher", "title" }, - publisher = { "publisher", "organization", }, - editionset = generic.editionset, - doi = generic.doi, - }, - required = { - "title" - }, - optional = { - "author", "publisher", - "withauthor", - "address", - "subtitle", "file", - "editionset", "month", "year", - "doi", "note", --- "abstract", - }, -} - --- a patent (of course). - -categories.patent = { - sets = { - author = { "author", "assignee", }, - publisher = { "publisher", "assignee", }, - year = { "year", "yearfiled", }, - month = { "month", "monthfiled", }, - day = { "day", "dayfiled", }, - doi = generic.doi, - }, - required = { - "nationality", - "number", - "year", - }, - optional = { - "type", - --check this: "language", - "author", "publisher", - "withauthor", - "title", "subtitle", "file", - "address", - "day", "month", - "doi", "note" - }, -} - --- a document having an author and title, but not formally published. - -categories.unpublished = { - sets = { - doi = generic.doi, - }, - required = { - "author", - "title", - "note" - }, - optional = { - "withauthor", - "subtitle", "file", - "year", "month", - "doi" - }, -} - --- like misc below but includes organization. - -categories.electronic = { - sets = { - doi = generic.doi, - }, - required = { - "title" - }, - optional = { - "subtitle", "type", "file", - "year", "month", - "author", "withauthor", - "address", - "organization", - "howpublished", - "doi", "note" - }, -} - --- not bibtex categories... - -categories.film = { - sets = { - doi = generic.doi, - author = { "producer", "director", }, - }, - required = { - "author", - "title", - "year", - "address", "publisher", -- aka studio - }, - optional = { - "withauthor", - "type", - "note", - "doi", - }, -} - -categories.music = { - sets = { - doi = generic.doi, - author = { "composer", "artist", "title", "album" }, - title = { "title", "album", }, - }, - required = { - "author", - "title", - "year", - "address", "publisher", -- aka label - }, - optional = { - "withauthor", - "type", - "note", - "doi", - }, -} - --- use this type when nothing else fits. - -categories.misc = { - sets = { - doi = generic.doi, - }, - required = { - -- nothing is really important here - }, - optional = { - "author", "withauthor", - "title", "subtitle", "file", - "year", "month", - "howpublished", - "doi", "note", - }, -} - --- other (whatever jabref does not know!) - -categories.other = { - sets = { - doi = generic.doi, - }, - required = { - "author", - "title", - "year" - }, - optional = { - "withauthor", - "subtitle", "file", - "doi", "note", - }, -} - --- if all else fails to match: - -categories.literal = { - sets = { - author = { "key" }, - doi = generic.doi, - }, - required = { - "author", - "text" - }, - optional = { - "withauthor", - "doi", "note" - }, - virtual = false, -} - --- done - -return specification |