chore!: bump to 0.1.1
refactor: break up into multiple files feat: csl style refactor!: rename variables Update template, readme, and more
This commit is contained in:
@@ -0,0 +1,357 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<style
|
||||
xmlns="http://purl.org/net/xbiblio/csl"
|
||||
class="in-text"
|
||||
version="1.0"
|
||||
demote-non-dropping-particle="display-and-sort"
|
||||
default-locale="uk-UA"
|
||||
>
|
||||
<info>
|
||||
<title>ДСТУ 3008:2015 (DSTU 3008:2015)</title>
|
||||
<title-short>ДСТУ 3008:2015</title-short>
|
||||
<id>dstu-3008-2015</id>
|
||||
<link
|
||||
href="https://uk.wikipedia.org/wiki/ДСТУ_3008:2015"
|
||||
rel="documentation"
|
||||
/>
|
||||
<author>
|
||||
<name>Linerds</name>
|
||||
</author>
|
||||
<category citation-format="numeric" />
|
||||
<category field="generic-base" />
|
||||
<summary
|
||||
>Український стандарт бібліографічного опису ДСТУ 3008:2015</summary>
|
||||
<updated>2024-01-01T00:00:00+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 definitions -->
|
||||
<locale xml:lang="uk">
|
||||
<terms>
|
||||
<term name="accessed">дата звернення</term>
|
||||
<term name="available at">URL</term>
|
||||
<term name="page" form="short">с</term>
|
||||
<term name="page" form="symbol">с</term>
|
||||
<term name="et-al">та ін.</term>
|
||||
<term name="and">,</term>
|
||||
<term name="editor" form="short">ред.</term>
|
||||
<term name="translator" form="short">пер.</term>
|
||||
<term name="edition" form="short">вид.</term>
|
||||
<term name="volume" form="short">т.</term>
|
||||
<term name="issue" form="short">вип.</term>
|
||||
<term name="number" form="short">№</term>
|
||||
</terms>
|
||||
</locale>
|
||||
|
||||
<!-- Macros -->
|
||||
|
||||
<!-- Authors/Editors macro -->
|
||||
<macro name="author">
|
||||
<names variable="author">
|
||||
<name initialize-with=". " delimiter=", " delimiter-precedes-last="never">
|
||||
<name-part name="family" text-case="capitalize-first" />
|
||||
<name-part name="given" />
|
||||
</name>
|
||||
<substitute>
|
||||
<names variable="editor">
|
||||
<name
|
||||
initialize-with=". "
|
||||
delimiter=", "
|
||||
delimiter-precedes-last="never"
|
||||
>
|
||||
<name-part name="family" text-case="capitalize-first" />
|
||||
<name-part name="given" />
|
||||
</name>
|
||||
<label form="short" prefix=" (" suffix=")" />
|
||||
</names>
|
||||
<names variable="translator">
|
||||
<name
|
||||
initialize-with=". "
|
||||
delimiter=", "
|
||||
delimiter-precedes-last="never"
|
||||
>
|
||||
<name-part name="family" text-case="capitalize-first" />
|
||||
<name-part name="given" />
|
||||
</name>
|
||||
<label form="short" prefix=" (" suffix=")" />
|
||||
</names>
|
||||
<text macro="title" />
|
||||
</substitute>
|
||||
</names>
|
||||
</macro>
|
||||
|
||||
<!-- Title macro -->
|
||||
<macro name="title">
|
||||
<choose>
|
||||
<if type="book thesis report" match="any">
|
||||
<text variable="title" font-style="italic" />
|
||||
</if>
|
||||
<else-if type="webpage post post-weblog" match="any">
|
||||
<text variable="title" />
|
||||
</else-if>
|
||||
<else>
|
||||
<text variable="title" />
|
||||
</else>
|
||||
</choose>
|
||||
</macro>
|
||||
|
||||
<!-- Publisher info -->
|
||||
<macro name="publisher">
|
||||
<group delimiter=": ">
|
||||
<text variable="publisher-place" />
|
||||
<text variable="publisher" />
|
||||
</group>
|
||||
</macro>
|
||||
|
||||
<!-- Year -->
|
||||
<macro name="year">
|
||||
<date variable="issued">
|
||||
<date-part name="year" />
|
||||
</date>
|
||||
</macro>
|
||||
|
||||
<!-- Pages -->
|
||||
<macro name="pages">
|
||||
<choose>
|
||||
<if type="book thesis report" match="any">
|
||||
<text variable="number-of-pages" />
|
||||
<text term="page" form="symbol" />
|
||||
</if>
|
||||
<else>
|
||||
<group delimiter=" ">
|
||||
<text term="page" form="short" />
|
||||
<text variable="page" />
|
||||
</group>
|
||||
</else>
|
||||
</choose>
|
||||
</macro>
|
||||
|
||||
<!-- Access date and URL for web resources -->
|
||||
<macro name="access">
|
||||
<choose>
|
||||
<if type="webpage post post-weblog" match="any">
|
||||
<group delimiter=" " prefix=". ">
|
||||
<text term="available at" suffix=":" />
|
||||
<text variable="URL" />
|
||||
<group delimiter=": " prefix="(" suffix=")">
|
||||
<text term="accessed" />
|
||||
<date variable="accessed">
|
||||
<date-part name="day" form="numeric-leading-zeros" suffix="." />
|
||||
<date-part name="month" form="numeric-leading-zeros" suffix="." />
|
||||
<date-part name="year" />
|
||||
</date>
|
||||
</group>
|
||||
</group>
|
||||
</if>
|
||||
</choose>
|
||||
</macro>
|
||||
|
||||
<!-- Volume/Issue -->
|
||||
<macro name="volume-issue">
|
||||
<group delimiter=". ">
|
||||
<group delimiter=" ">
|
||||
<text term="volume" form="short" />
|
||||
<text variable="volume" />
|
||||
</group>
|
||||
<group delimiter=" ">
|
||||
<text term="issue" form="short" />
|
||||
<text variable="issue" />
|
||||
</group>
|
||||
</group>
|
||||
</macro>
|
||||
|
||||
<!-- Main citation format (numeric) -->
|
||||
<citation collapse="citation-number">
|
||||
<sort>
|
||||
<key variable="citation-number" />
|
||||
</sort>
|
||||
<layout delimiter=", " prefix="[" suffix="]">
|
||||
<text variable="citation-number" />
|
||||
</layout>
|
||||
</citation>
|
||||
|
||||
<!-- Bibliography format -->
|
||||
<bibliography hanging-indent="false">
|
||||
<sort>
|
||||
<key variable="citation-number" />
|
||||
</sort>
|
||||
<layout>
|
||||
<group display="block">
|
||||
<text display="left-margin" variable="citation-number" suffix=". " />
|
||||
|
||||
<!-- Book -->
|
||||
<choose>
|
||||
<if type="book">
|
||||
<group delimiter=". " suffix=".">
|
||||
<text macro="author" />
|
||||
<text macro="title" />
|
||||
<text macro="publisher" />
|
||||
<text macro="year" />
|
||||
<text macro="pages" />
|
||||
</group>
|
||||
</if>
|
||||
|
||||
<!-- Thesis -->
|
||||
<else-if type="thesis">
|
||||
<group delimiter=". ">
|
||||
<text macro="author" />
|
||||
<text macro="title" />
|
||||
<text variable="genre" />
|
||||
<text macro="publisher" />
|
||||
<text macro="year" />
|
||||
<text macro="pages" />
|
||||
</group>
|
||||
</else-if>
|
||||
|
||||
<!-- Report -->
|
||||
<else-if type="report">
|
||||
<group delimiter=". ">
|
||||
<text macro="author" />
|
||||
<text macro="title" />
|
||||
<text variable="genre" />
|
||||
<text macro="publisher" />
|
||||
<text macro="year" />
|
||||
<text macro="pages" />
|
||||
</group>
|
||||
</else-if>
|
||||
|
||||
<!-- Article in journal -->
|
||||
<else-if type="article-journal">
|
||||
<group delimiter=". ">
|
||||
<text macro="author" />
|
||||
<group delimiter=" // ">
|
||||
<text variable="title" />
|
||||
<text variable="container-title" font-style="italic" />
|
||||
</group>
|
||||
<group delimiter=". ">
|
||||
<text macro="year" />
|
||||
<text macro="volume-issue" />
|
||||
<text macro="pages" />
|
||||
</group>
|
||||
</group>
|
||||
</else-if>
|
||||
|
||||
<!-- Article in newspaper -->
|
||||
<else-if type="article-newspaper">
|
||||
<group delimiter=". ">
|
||||
<text macro="author" />
|
||||
<group delimiter=" // ">
|
||||
<text variable="title" />
|
||||
<text variable="container-title" />
|
||||
</group>
|
||||
<group delimiter=". ">
|
||||
<date variable="issued">
|
||||
<date-part name="day" suffix="." />
|
||||
<date-part name="month" suffix="." />
|
||||
<date-part name="year" />
|
||||
</date>
|
||||
<text macro="pages" />
|
||||
</group>
|
||||
</group>
|
||||
</else-if>
|
||||
|
||||
<!-- Conference paper -->
|
||||
<else-if type="paper-conference">
|
||||
<group delimiter=". ">
|
||||
<text macro="author" />
|
||||
<text variable="title" />
|
||||
<group delimiter=" // ">
|
||||
<text term="in" />
|
||||
<text variable="container-title" />
|
||||
</group>
|
||||
<group delimiter=". ">
|
||||
<text macro="publisher" />
|
||||
<text macro="year" />
|
||||
<text macro="pages" />
|
||||
</group>
|
||||
</group>
|
||||
</else-if>
|
||||
|
||||
<!-- Chapter in book -->
|
||||
<else-if type="chapter">
|
||||
<group delimiter=". ">
|
||||
<text macro="author" />
|
||||
<text variable="title" />
|
||||
<group delimiter=" // ">
|
||||
<text term="in" />
|
||||
<names variable="editor">
|
||||
<name
|
||||
initialize-with=". "
|
||||
delimiter=", "
|
||||
delimiter-precedes-last="never"
|
||||
>
|
||||
<name-part name="family" text-case="capitalize-first" />
|
||||
<name-part name="given" />
|
||||
</name>
|
||||
<label form="short" prefix=" (" suffix=")" />
|
||||
</names>
|
||||
<text variable="container-title" font-style="italic" />
|
||||
</group>
|
||||
<group delimiter=". ">
|
||||
<text macro="publisher" />
|
||||
<text macro="year" />
|
||||
<text macro="pages" />
|
||||
</group>
|
||||
</group>
|
||||
</else-if>
|
||||
|
||||
<!-- Webpage/Online -->
|
||||
<else-if type="webpage post post-weblog" match="any">
|
||||
<group delimiter=". ">
|
||||
<text variable="title" />
|
||||
<text macro="author" />
|
||||
<text variable="container-title" />
|
||||
<date variable="issued">
|
||||
<date-part name="day" suffix="." />
|
||||
<date-part name="month" suffix="." />
|
||||
<date-part name="year" />
|
||||
</date>
|
||||
</group>
|
||||
<text macro="access" suffix="." />
|
||||
</else-if>
|
||||
|
||||
<!-- Patent -->
|
||||
<else-if type="patent">
|
||||
<group delimiter=". ">
|
||||
<text macro="author" />
|
||||
<text variable="title" />
|
||||
<text variable="number" />
|
||||
<date variable="issued">
|
||||
<date-part name="day" suffix="." />
|
||||
<date-part name="month" suffix="." />
|
||||
<date-part name="year" />
|
||||
</date>
|
||||
</group>
|
||||
</else-if>
|
||||
|
||||
<!-- Legislation -->
|
||||
<else-if type="legislation">
|
||||
<group delimiter=". ">
|
||||
<text variable="title" />
|
||||
<date variable="issued">
|
||||
<date-part name="day" suffix="." />
|
||||
<date-part name="month" suffix="." />
|
||||
<date-part name="year" />
|
||||
</date>
|
||||
<text variable="number" />
|
||||
</group>
|
||||
</else-if>
|
||||
|
||||
<!-- Generic fallback -->
|
||||
<else>
|
||||
<group delimiter=". ">
|
||||
<text macro="author" />
|
||||
<text macro="title" />
|
||||
<text variable="container-title" />
|
||||
<text macro="publisher" />
|
||||
<text macro="year" />
|
||||
<text macro="pages" />
|
||||
</group>
|
||||
</else>
|
||||
</choose>
|
||||
</group>
|
||||
</layout>
|
||||
</bibliography>
|
||||
</style>
|
||||
Reference in New Issue
Block a user