Écriture des macros digital*, ajout des délimiteurs, correction de quelques bugs, ajout de la localisation dans une section de la source
This commit is contained in:
parent
15474f2339
commit
6692775af0
174
REB/REB.csl
174
REB/REB.csl
|
@ -117,9 +117,9 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
</layout>
|
</layout>
|
||||||
</citation>
|
</citation>
|
||||||
|
|
||||||
<bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" entry-spacing="1" line-spacing="1">
|
<bibliography>
|
||||||
<sort>
|
<sort>
|
||||||
<key macro="sort-sources" names-min="3" names-use-first="3"/>
|
<key macro="sortSources" names-min="3" names-use-first="3"/>
|
||||||
<key variable="issued" sort="descending"/>
|
<key variable="issued" sort="descending"/>
|
||||||
</sort>
|
</sort>
|
||||||
<layout suffix=".">
|
<layout suffix=".">
|
||||||
|
@ -127,8 +127,8 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
<if variable="title-short abstract container-title-short" match="any">
|
<if variable="title-short abstract container-title-short" match="any">
|
||||||
<group delimiter="|">
|
<group delimiter="|">
|
||||||
<group delimiter=", ">
|
<group delimiter=", ">
|
||||||
<text macro="author-subsequent"/>
|
<text macro="abbreviatedReferenceAuthor"/>
|
||||||
<text macro="title-short"/>
|
<text macro="shortTitle"/>
|
||||||
</group>
|
</group>
|
||||||
<text macro="completeReference"/>
|
<text macro="completeReference"/>
|
||||||
</group>
|
</group>
|
||||||
|
@ -138,9 +138,21 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
</bibliography>
|
</bibliography>
|
||||||
|
|
||||||
<macro name="completeReference">
|
<macro name="completeReference">
|
||||||
|
<group delimiter=", ">
|
||||||
<text macro="sourceReference"/>
|
<text macro="sourceReference"/>
|
||||||
|
<choose>
|
||||||
|
<if type="webpage post-weblog" match="none">
|
||||||
|
<group delimiter=" ">
|
||||||
|
<text macro="publicationReference"/>
|
||||||
|
<text macro="digitalReference" prefix="(" suffix=")"/>
|
||||||
|
</group>
|
||||||
|
</if>
|
||||||
|
<else>
|
||||||
<text macro="publicationReference"/>
|
<text macro="publicationReference"/>
|
||||||
<text macro="digitalReference"/>
|
<text macro="digitalReference"/>
|
||||||
|
</else>
|
||||||
|
</choose>
|
||||||
|
</group>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="sourceReference">
|
<macro name="sourceReference">
|
||||||
|
@ -152,27 +164,42 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
<text macro="sourceTitle"/>
|
<text macro="sourceTitle"/>
|
||||||
<text macro="sourceIdentifier"/>
|
<text macro="sourceIdentifier"/>
|
||||||
</group>
|
</group>
|
||||||
|
<text macro="sourceDivisionLocator"/>
|
||||||
</group>
|
</group>
|
||||||
</if>
|
</if>
|
||||||
</choose>
|
</choose>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="publicationReference">
|
<macro name="publicationReference">
|
||||||
|
<group delimiter=", ">
|
||||||
|
<group>
|
||||||
|
<group delimiter=" ">
|
||||||
|
<group delimiter=", ">
|
||||||
<text macro="publicationAuthors"/>
|
<text macro="publicationAuthors"/>
|
||||||
<text macro="publicationTitle"/>
|
<text macro="publicationTitle"/>
|
||||||
<text macro="publicationContainer"/>
|
<text macro="publicationContainer"/>
|
||||||
|
</group>
|
||||||
<text macro="publicationCollection"/>
|
<text macro="publicationCollection"/>
|
||||||
|
</group>
|
||||||
<text macro="translationNotice"/>
|
<text macro="translationNotice"/>
|
||||||
|
<group delimiter=" ">
|
||||||
<text macro="publicationPublisher"/>
|
<text macro="publicationPublisher"/>
|
||||||
<text macro="publicationDate"/>
|
<text macro="publicationDate"/>
|
||||||
|
</group>
|
||||||
<text macro="publicationEdition"/>
|
<text macro="publicationEdition"/>
|
||||||
<text macro="publicationLocator"/>
|
</group>
|
||||||
|
<text macro="publicationLocators"/>
|
||||||
|
</group>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="digitalReference">
|
<macro name="digitalReference">
|
||||||
<text macro="digitalLink"/>
|
<group delimiter=" ">
|
||||||
<text macro="digitalAccessed"/>
|
<group delimiter=", ">
|
||||||
<text macro="digitalDOI"/>
|
<text macro="digitalDOI"/>
|
||||||
|
<text macro="digitalLink"/>
|
||||||
|
</group>
|
||||||
|
<text macro="digitalAccessed"/>
|
||||||
|
</group>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="sourceAuthor">
|
<macro name="sourceAuthor">
|
||||||
|
@ -191,6 +218,14 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
<text variable="references" prefix="(" suffix=")"/> <!-- ID of the source in a repertory like CPG or BHG -->
|
<text variable="references" prefix="(" suffix=")"/> <!-- ID of the source in a repertory like CPG or BHG -->
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
|
<macro name="sourceDivisionLocator">
|
||||||
|
<choose>
|
||||||
|
<if locator="section">
|
||||||
|
<text variable="locator"/>
|
||||||
|
</if>
|
||||||
|
</choose>
|
||||||
|
</macro>
|
||||||
|
|
||||||
<macro name="publicationAuthors">
|
<macro name="publicationAuthors">
|
||||||
<choose>
|
<choose>
|
||||||
<if variable="abstract">
|
<if variable="abstract">
|
||||||
|
@ -276,11 +311,10 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
<else-if type="thesis">
|
<else-if type="thesis">
|
||||||
<text macro="bookWithVolume"/>
|
<text macro="bookWithVolume"/>
|
||||||
<text variable="genre"/>
|
<text variable="genre"/>
|
||||||
<text variable="publisher"/> <!-- University --> <!-- TODO : reconsidérer l'emplacement -->
|
|
||||||
</else-if>
|
</else-if>
|
||||||
<else>
|
<else-if type="manuscript" match="none">
|
||||||
<text variable="title"/>
|
<text variable="title"/>
|
||||||
</else>
|
</else-if>
|
||||||
</choose>
|
</choose>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
|
@ -300,14 +334,22 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="publicationContainer">
|
<macro name="publicationContainer">
|
||||||
|
<group delimiter=" ">
|
||||||
<text macro="containerIntroduction"/>
|
<text macro="containerIntroduction"/>
|
||||||
|
<group delimiter=", ">
|
||||||
<text macro="containerAuthors"/>
|
<text macro="containerAuthors"/>
|
||||||
<text macro="containerTitle"/>
|
<text macro="containerTitle"/>
|
||||||
|
</group>
|
||||||
|
</group>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="containerIntroduction">
|
<macro name="containerIntroduction">
|
||||||
<choose>
|
<choose>
|
||||||
<if variable="title">
|
<if type="manuscript article-journal article-newspaper" match="none">
|
||||||
|
<choose>
|
||||||
|
<if variable="container-title">
|
||||||
|
<choose>
|
||||||
|
<if variable="abstract title" match="any">
|
||||||
<choose>
|
<choose>
|
||||||
<if type="webpage post-weblog" match="any">
|
<if type="webpage post-weblog" match="any">
|
||||||
<text term="at"/>
|
<text term="at"/>
|
||||||
|
@ -318,6 +360,10 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
</choose>
|
</choose>
|
||||||
</if>
|
</if>
|
||||||
</choose>
|
</choose>
|
||||||
|
</if>
|
||||||
|
</choose>
|
||||||
|
</if>
|
||||||
|
</choose>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="containerAuthors">
|
<macro name="containerAuthors">
|
||||||
|
@ -383,7 +429,10 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
</group>
|
</group>
|
||||||
</else-if>
|
</else-if>
|
||||||
<else>
|
<else>
|
||||||
|
<group delimiter=" ">
|
||||||
<text variable="container-title" font-style="italic"/>
|
<text variable="container-title" font-style="italic"/>
|
||||||
|
<number variable="volume"/>
|
||||||
|
</group>
|
||||||
</else>
|
</else>
|
||||||
</choose>
|
</choose>
|
||||||
</macro>
|
</macro>
|
||||||
|
@ -420,6 +469,9 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
<else-if type="paper-conference">
|
<else-if type="paper-conference">
|
||||||
<text variable="event-place"/>
|
<text variable="event-place"/>
|
||||||
</else-if>
|
</else-if>
|
||||||
|
<else-if type="thesis">
|
||||||
|
<text variable="publisher"/> <!-- University -->
|
||||||
|
</else-if>
|
||||||
</choose>
|
</choose>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
|
@ -440,16 +492,11 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
<text variable="edition" vertical-align="sup"/>
|
<text variable="edition" vertical-align="sup"/>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="publicationLocator">
|
<macro name="publicationLocators">
|
||||||
<choose>
|
<group delimiter=", ici ">
|
||||||
<if variable="page chapter-number" type="webpage post-weblog" match="any">
|
|
||||||
<text macro="wholeItemLocator"/>
|
<text macro="wholeItemLocator"/>
|
||||||
<text macro="thisCitationLocator" prefix=", ici "/>
|
|
||||||
</if>
|
|
||||||
<else>
|
|
||||||
<text macro="thisCitationLocator"/>
|
<text macro="thisCitationLocator"/>
|
||||||
</else>
|
</group>
|
||||||
</choose>
|
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="wholeItemLocator">
|
<macro name="wholeItemLocator">
|
||||||
|
@ -457,6 +504,7 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
<choose>
|
<choose>
|
||||||
<if type="manuscript">
|
<if type="manuscript">
|
||||||
<!-- Post-processing required to get the plural form of the term "folio" ("ff.") whenever needed. -->
|
<!-- Post-processing required to get the plural form of the term "folio" ("ff.") whenever needed. -->
|
||||||
|
<!-- This should be fixed with CSL 1.1 (https://github.com/citation-style-language/schema/issues/389)-->
|
||||||
<text term="folio" form="short"/>
|
<text term="folio" form="short"/>
|
||||||
<text variable="page"/>
|
<text variable="page"/>
|
||||||
</if>
|
</if>
|
||||||
|
@ -473,9 +521,10 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
|
|
||||||
<macro name="thisCitationLocator">
|
<macro name="thisCitationLocator">
|
||||||
<choose>
|
<choose>
|
||||||
<if locator="column">
|
<if locator="section" variable="abstract" match="all"/>
|
||||||
|
<else-if locator="column">
|
||||||
<text variable="locator" font-variant="small-caps"/>
|
<text variable="locator" font-variant="small-caps"/>
|
||||||
</if>
|
</else-if>
|
||||||
<else>
|
<else>
|
||||||
<group delimiter=" ">
|
<group delimiter=" ">
|
||||||
<label variable="locator" form="short"/>
|
<label variable="locator" form="short"/>
|
||||||
|
@ -493,18 +542,41 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="digitalLink">
|
<macro name="digitalLink">
|
||||||
|
<choose>
|
||||||
|
<if type="webpage post-weblog" match="none">
|
||||||
|
<group delimiter=" : ">
|
||||||
|
<text term="online"/>
|
||||||
|
<text variable="URL"/>
|
||||||
|
</group>
|
||||||
|
</if>
|
||||||
|
<else>
|
||||||
|
<text variable="URL"/>
|
||||||
|
</else>
|
||||||
|
</choose>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="digitalAccessed">
|
<macro name="digitalAccessed">
|
||||||
|
<choose>
|
||||||
|
<if type="webpage post-weblog" match="none">
|
||||||
|
<group delimiter=" ">
|
||||||
|
<text term="accessed"/>
|
||||||
|
<date variable="accessed" form="numeric"/>
|
||||||
|
</group>
|
||||||
|
</if>
|
||||||
|
<else>
|
||||||
|
<group prefix="(" suffix=")" delimiter=" ">
|
||||||
|
<text term="accessed"/>
|
||||||
|
<date variable="accessed" form="numeric"/>
|
||||||
|
</group>
|
||||||
|
</else>
|
||||||
|
</choose>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="digitalDOI">
|
<macro name="digitalDOI">
|
||||||
|
<text variable="DOI" prefix="DOI : "/>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="title-short">
|
<macro name="shortTitle">
|
||||||
<choose>
|
<choose>
|
||||||
<if variable="title-short">
|
<if variable="title-short">
|
||||||
<choose>
|
<choose>
|
||||||
|
@ -539,52 +611,39 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
</group>
|
</group>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="sort-sources">
|
<macro name="sortSources">
|
||||||
<!-- Cette macro n'est pas destinée à être l'argument d'un "cs:text", mais est utilisée dans la macro "bibliography" pour indiquer en premier les sources, éventuellement elles-mêmes classées selon le critère renseigné dans "Extra" comme valeur de la variable "keyword", puis la littérature secondaire. -->
|
<!-- This macro is intended to be used in a cs:sort element, so that manuscripts be listed first, then primary sources, and last secondary literature. -->
|
||||||
|
<!-- Subcategories can be defined using the "keyword" variable in "Extra". -->
|
||||||
|
<!-- Intermediate headers have to be inserted manually. -->
|
||||||
<choose>
|
<choose>
|
||||||
<if variable="abstract">
|
<if variable="abstract">
|
||||||
|
<text value="00"/>
|
||||||
|
<text variable="keyword"/>
|
||||||
|
<text macro="sourceReference"/>
|
||||||
|
</if>
|
||||||
|
<else-if type="manuscript">
|
||||||
<text value="000"/>
|
<text value="000"/>
|
||||||
<!--text variable="keyword"/-->
|
<text variable="keyword"/>
|
||||||
<text macro="source"/>
|
<text macro="sourceReference"/>
|
||||||
</if>
|
</else-if>
|
||||||
</choose>
|
|
||||||
<text macro="author"/>
|
|
||||||
</macro>
|
|
||||||
|
|
||||||
<macro name="accessed-garbage">
|
|
||||||
<choose>
|
|
||||||
<if type="webpage post-weblog" match="any">
|
|
||||||
<group prefix="(" suffix=")" delimiter=" ">
|
|
||||||
<text term="accessed"/>
|
|
||||||
<date variable="accessed" form="numeric"/>
|
|
||||||
</group>
|
|
||||||
</if>
|
|
||||||
<else>
|
|
||||||
<group prefix="[" suffix="]">
|
|
||||||
<text term="online" suffix=" : "/>
|
|
||||||
<text variable="URL"/>
|
|
||||||
<group>
|
|
||||||
<text term="accessed" prefix=", " suffix=" "/>
|
|
||||||
<date variable="accessed" form="numeric"/>
|
|
||||||
</group>
|
|
||||||
</group>
|
|
||||||
</else>
|
|
||||||
</choose>
|
</choose>
|
||||||
|
<text variable="keyword"/>
|
||||||
|
<text macro="publicationAuthors"/>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="ibidem">
|
<macro name="ibidem">
|
||||||
<group delimiter=", ">
|
<group delimiter=", ">
|
||||||
<text term="ibid" text-case="capitalize-first" font-style="italic"/>
|
<text term="ibid" text-case="capitalize-first" font-style="italic"/>
|
||||||
<text macro="locator"/>
|
<text macro="thisCitationLocator"/>
|
||||||
</group>
|
</group>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<macro name="subsequentCitation">
|
<macro name="subsequentCitation">
|
||||||
<group delimiter=", ">
|
<group delimiter=", ">
|
||||||
<text macro="subsequentCitationAuthor"/>
|
<text macro="abbreviatedReferenceAuthor"/>
|
||||||
<choose>
|
<choose>
|
||||||
<if variable="title-short abstract container-title-short" match="any">
|
<if variable="title-short abstract container-title-short" match="any">
|
||||||
<text macro="title-short"/>
|
<text macro="shortTitle"/>
|
||||||
</if>
|
</if>
|
||||||
<else>
|
<else>
|
||||||
<choose>
|
<choose>
|
||||||
|
@ -608,12 +667,11 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra
|
||||||
<text term="cited"/>
|
<text term="cited"/>
|
||||||
<text variable="first-reference-note-number"/>
|
<text variable="first-reference-note-number"/>
|
||||||
</group>
|
</group>
|
||||||
<text macro="locator"/>
|
<text macro="thisCitationLocator"/>
|
||||||
</group>
|
</group>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
<!-- Cette macro sert à ne pas indiquer l'éditeur d'une source dans une citation subséquente. -->
|
<macro name="abbreviatedReferenceAuthor">
|
||||||
<macro name="subsequentCitationAuthor">
|
|
||||||
<choose>
|
<choose>
|
||||||
<if variable="abstract">
|
<if variable="abstract">
|
||||||
<names variable="author">
|
<names variable="author">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user