É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:
		
							
								
								
									
										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> | ||||
|   </citation> | ||||
|  | ||||
|   <bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" entry-spacing="1" line-spacing="1"> | ||||
|   <bibliography> | ||||
|     <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"/> | ||||
|     </sort> | ||||
|     <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"> | ||||
| 	  <group delimiter="|"> | ||||
| 	    <group delimiter=", "> | ||||
| 	      <text macro="author-subsequent"/> | ||||
| 	      <text macro="title-short"/> | ||||
| 	      <text macro="abbreviatedReferenceAuthor"/> | ||||
| 	      <text macro="shortTitle"/> | ||||
| 	    </group> | ||||
|             <text macro="completeReference"/> | ||||
| 	  </group> | ||||
| @ -138,9 +138,21 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra | ||||
|   </bibliography> | ||||
|  | ||||
|   <macro name="completeReference"> | ||||
|     <group delimiter=", "> | ||||
|       <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="digitalReference"/> | ||||
|         </else> | ||||
|       </choose> | ||||
|     </group> | ||||
|   </macro> | ||||
|  | ||||
|   <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="sourceIdentifier"/> | ||||
|         </group> | ||||
|         <text macro="sourceDivisionLocator"/> | ||||
|         </group> | ||||
|       </if> | ||||
|     </choose> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="publicationReference"> | ||||
|     <group delimiter=", "> | ||||
|       <group> | ||||
|         <group delimiter=" "> | ||||
|           <group delimiter=", "> | ||||
|             <text macro="publicationAuthors"/> | ||||
|             <text macro="publicationTitle"/> | ||||
|             <text macro="publicationContainer"/> | ||||
|           </group> | ||||
|           <text macro="publicationCollection"/> | ||||
|         </group> | ||||
|         <text macro="translationNotice"/> | ||||
|         <group delimiter=" "> | ||||
|           <text macro="publicationPublisher"/> | ||||
|           <text macro="publicationDate"/> | ||||
|         </group> | ||||
|         <text macro="publicationEdition"/> | ||||
|     <text macro="publicationLocator"/> | ||||
|       </group> | ||||
|       <text macro="publicationLocators"/> | ||||
|     </group> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="digitalReference"> | ||||
|     <text macro="digitalLink"/> | ||||
|     <text macro="digitalAccessed"/> | ||||
|     <group delimiter=" "> | ||||
|       <group delimiter=", "> | ||||
|         <text macro="digitalDOI"/> | ||||
|         <text macro="digitalLink"/> | ||||
|       </group> | ||||
|       <text macro="digitalAccessed"/> | ||||
|     </group> | ||||
|   </macro> | ||||
|  | ||||
|   <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 --> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="sourceDivisionLocator"> | ||||
|     <choose> | ||||
|       <if locator="section"> | ||||
|         <text variable="locator"/> | ||||
|       </if> | ||||
|     </choose> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="publicationAuthors"> | ||||
|     <choose> | ||||
|       <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"> | ||||
|         <text macro="bookWithVolume"/> | ||||
|         <text variable="genre"/> | ||||
|         <text variable="publisher"/> <!-- University --> <!-- TODO : reconsidérer l'emplacement --> | ||||
|       </else-if> | ||||
|       <else> | ||||
|       <else-if type="manuscript" match="none"> | ||||
|        	<text variable="title"/> | ||||
|       </else> | ||||
|       </else-if> | ||||
|     </choose> | ||||
|   </macro> | ||||
|  | ||||
| @ -300,14 +334,22 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="publicationContainer"> | ||||
|     <group delimiter=" "> | ||||
|       <text macro="containerIntroduction"/> | ||||
|       <group delimiter=", "> | ||||
|         <text macro="containerAuthors"/> | ||||
|         <text macro="containerTitle"/> | ||||
|       </group> | ||||
|     </group> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="containerIntroduction"> | ||||
|     <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> | ||||
|                   <if type="webpage post-weblog" match="any"> | ||||
|                     <text term="at"/> | ||||
| @ -318,6 +360,10 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra | ||||
|                 </choose> | ||||
|               </if> | ||||
|             </choose> | ||||
|           </if> | ||||
|         </choose> | ||||
|       </if> | ||||
|     </choose> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="containerAuthors"> | ||||
| @ -383,7 +429,10 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra | ||||
| 	</group> | ||||
|       </else-if> | ||||
|       <else> | ||||
|         <group delimiter=" "> | ||||
|           <text variable="container-title" font-style="italic"/> | ||||
|           <number variable="volume"/> | ||||
|         </group> | ||||
|       </else> | ||||
|     </choose> | ||||
|   </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"> | ||||
| 	<text variable="event-place"/> | ||||
|       </else-if> | ||||
|       <else-if type="thesis"> | ||||
|                 <text variable="publisher"/> <!-- University --> | ||||
|       </else-if> | ||||
|     </choose> | ||||
|   </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"/> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="publicationLocator"> | ||||
|     <choose> | ||||
|       <if variable="page chapter-number" type="webpage post-weblog" match="any"> | ||||
|   <macro name="publicationLocators"> | ||||
|     <group delimiter=", ici "> | ||||
|       <text macro="wholeItemLocator"/> | ||||
| 	<text macro="thisCitationLocator" prefix=", ici "/> | ||||
|       </if> | ||||
|       <else> | ||||
|       <text macro="thisCitationLocator"/> | ||||
|       </else> | ||||
|     </choose> | ||||
|     </group> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="wholeItemLocator"> | ||||
| @ -457,6 +504,7 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra | ||||
|       <choose> | ||||
|         <if type="manuscript"> | ||||
|           <!-- 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 variable="page"/> | ||||
|         </if> | ||||
| @ -473,9 +521,10 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra | ||||
|  | ||||
|   <macro name="thisCitationLocator"> | ||||
|     <choose> | ||||
|       <if locator="column"> | ||||
|       <if locator="section" variable="abstract" match="all"/> | ||||
|       <else-if locator="column"> | ||||
| 	<text variable="locator" font-variant="small-caps"/> | ||||
|       </if> | ||||
|       </else-if> | ||||
|       <else> | ||||
| 	<group delimiter=" "> | ||||
| 	  <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 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 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 name="digitalDOI"> | ||||
|        | ||||
|     <text variable="DOI" prefix="DOI : "/> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="title-short"> | ||||
|   <macro name="shortTitle"> | ||||
|     <choose> | ||||
|       <if variable="title-short"> | ||||
|         <choose> | ||||
| @ -539,52 +611,39 @@ Pour utiliser ce style dans un article rédigé dans une langue autre que le fra | ||||
|     </group> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="sort-sources"> | ||||
|     <!-- 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. -->  | ||||
|   <macro name="sortSources"> | ||||
|     <!-- 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> | ||||
|       <if variable="abstract"> | ||||
| 	<text value="00"/> | ||||
| 	<text variable="keyword"/> | ||||
| 	<text macro="sourceReference"/> | ||||
|       </if> | ||||
|       <else-if type="manuscript"> | ||||
|         <text value="000"/> | ||||
| 	<!--text variable="keyword"/--> | ||||
| 	<text macro="source"/> | ||||
|       </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> | ||||
|         <text variable="keyword"/> | ||||
|         <text macro="sourceReference"/> | ||||
|       </else-if> | ||||
|     </choose> | ||||
|     <text variable="keyword"/> | ||||
|     <text macro="publicationAuthors"/> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="ibidem"> | ||||
|     <group delimiter=", "> | ||||
|       <text term="ibid" text-case="capitalize-first" font-style="italic"/> | ||||
|       <text macro="locator"/> | ||||
|       <text macro="thisCitationLocator"/> | ||||
|     </group> | ||||
|   </macro> | ||||
|  | ||||
|   <macro name="subsequentCitation"> | ||||
|     <group delimiter=", "> | ||||
|       <text macro="subsequentCitationAuthor"/> | ||||
|       <text macro="abbreviatedReferenceAuthor"/> | ||||
|       <choose> | ||||
| 	<if variable="title-short abstract container-title-short" match="any"> | ||||
| 	  <text macro="title-short"/> | ||||
| 	  <text macro="shortTitle"/> | ||||
| 	</if> | ||||
| 	<else> | ||||
| 	  <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 variable="first-reference-note-number"/> | ||||
|       </group> | ||||
|       <text macro="locator"/> | ||||
|       <text macro="thisCitationLocator"/> | ||||
|     </group> | ||||
|   </macro> | ||||
|  | ||||
|     <!-- Cette macro sert à ne pas indiquer l'éditeur d'une source dans une citation subséquente. --> | ||||
|   <macro name="subsequentCitationAuthor"> | ||||
|   <macro name="abbreviatedReferenceAuthor"> | ||||
|     <choose> | ||||
|       <if variable="abstract"> | ||||
|         <names variable="author"> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user