Skip to content

Commit

Permalink
Exclude French plural definite article from citekeys (#3283)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Mar 25, 2024
1 parent 1c99c1a commit a3591e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions BibLaTeX.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{
"translatorID": "b6e39b57-8942-4d11-8259-342c46ce395f",
"translatorType": 2,
"label": "BibLaTeX",
"creator": "Simon Kornblith, Richard Karnesky and Anders Johansson",
"target": "bib",
"minVersion": "2.1.9",
"maxVersion": "null",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"configOptions": {
"getCollections": true
},
Expand All @@ -17,7 +15,9 @@
"exportFileData": false,
"useJournalAbbreviation": false
},
"lastUpdated": "2022-10-12 19:26:00"
"inRepository": true,
"translatorType": 2,
"lastUpdated": "2024-03-25 14:49:42"
}

/*
Expand Down Expand Up @@ -371,7 +371,7 @@ var numberRe = /^[0-9]+/;
// it includes the indefinite articles of English, German, French and Spanish, as well as a small set of English prepositions whose
// force is more grammatical than lexical, i.e. which are likely to strike many as 'insignificant'.
// The assumption is that most who want a title word in their key would prefer the first word of significance.
var citeKeyTitleBannedRe = /\b(a|an|the|some|from|on|in|to|of|do|with|der|die|das|ein|eine|einer|eines|einem|einen|un|une|la|le|l'|el|las|los|al|uno|una|unos|unas|de|des|del|d')(\s+|\b)|(<\/?(i|b|sup|sub|sc|span style="small-caps"|span)>)/g;
var citeKeyTitleBannedRe = /\b(a|an|the|some|from|on|in|to|of|do|with|der|die|das|ein|eine|einer|eines|einem|einen|un|une|la|le|l'|les|el|las|los|al|uno|una|unos|unas|de|des|del|d')(\s+|\b)|(<\/?(i|b|sup|sub|sc|span style="small-caps"|span)>)/g;
var citeKeyConversionsRe = /%([a-zA-Z])/;

var citeKeyConversions = {
Expand Down Expand Up @@ -882,3 +882,7 @@ function doExport() {

Zotero.write("\n");
}
/** BEGIN TEST CASES **/

Check failure on line 885 in BibLaTeX.js

View workflow job for this annotation

GitHub Actions / Lint, Check, Test

Expected line before comment
var testCases = [

Check failure on line 886 in BibLaTeX.js

View workflow job for this annotation

GitHub Actions / Lint, Check, Test

testCases must be an array
]
/** END TEST CASES **/
4 changes: 2 additions & 2 deletions BibTeX.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"inRepository": true,
"translatorType": 3,
"lastUpdated": "2024-03-18 01:19:20"
"lastUpdated": "2024-03-25 14:51:02"
}

/*
Expand Down Expand Up @@ -1242,7 +1242,7 @@ var numberRe = /^[0-9]+/;
// force is more grammatical than lexical, i.e. which are likely to strike many as 'insignificant'.
// The assumption is that most who want a title word in their key would prefer the first word of significance.
// Also remove markup
var citeKeyTitleBannedRe = /\b(a|an|the|some|from|on|in|to|of|do|with|der|die|das|ein|eine|einer|eines|einem|einen|un|une|la|le|l\'|el|las|los|al|uno|una|unos|unas|de|des|del|d\')(\s+|\b)|(<\/?(i|b|sup|sub|sc|span style=\"small-caps\"|span)>)/g;
var citeKeyTitleBannedRe = /\b(a|an|the|some|from|on|in|to|of|do|with|der|die|das|ein|eine|einer|eines|einem|einen|un|une|la|le|l\'|les|el|las|los|al|uno|una|unos|unas|de|des|del|d\')(\s+|\b)|(<\/?(i|b|sup|sub|sc|span style=\"small-caps\"|span)>)/g;
var citeKeyConversionsRe = /%([a-zA-Z])/;

var citeKeyConversions = {
Expand Down

0 comments on commit a3591e1

Please sign in to comment.