Skip to content

Commit 5060400

Browse files
committed
Merge branch 'v1.0'
2 parents c214211 + ea19f7a commit 5060400

File tree

3 files changed

+19
-86
lines changed

3 files changed

+19
-86
lines changed

schemas/input/csl-data.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "JSON schema for CSL input data",
33
"$schema": "http://json-schema.org/draft-07/schema#",
4-
"$id": "https://resource.citationstyles.org/schema/latest/input/json/csl-data.json",
4+
"$id": "https://resource.citationstyles.org/schema/v1.0/input/json/csl-data.json",
55
"type": "array",
66
"items": {
77
"type": "object",
@@ -496,19 +496,10 @@
496496
}
497497
]
498498
},
499-
"edtf-datatype": {
500-
"title": "EDTF datatype pattern",
501-
"description": "CSL input supports EDTF, validated against this regular expression.",
502-
"type": "string",
503-
"pattern": "^[0-9-%~X?.\/]{4,}$"
504-
},
505499
"date-variable": {
506500
"title": "Date content model.",
507501
"description": "The CSL input model supports two different date representations: an EDTF string (preferred), and a more structured alternative.",
508502
"anyOf": [
509-
{
510-
"$ref": "#/definitions/edtf-datatype"
511-
},
512503
{
513504
"properties": {
514505
"date-parts": {
@@ -535,9 +526,6 @@
535526
},
536527
"raw": {
537528
"type": "string"
538-
},
539-
"edtf": {
540-
"$ref": "#/definitions/edtf-datatype"
541529
}
542530
},
543531
"additionalProperties": false

schemas/styles/csl-variables.rnc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ div {
8080
| "reviewed-title"
8181
| "title"
8282
| "volume-title"
83+
| # Short title forms. Will be removed in CSL 1.1
84+
"title-short"
85+
| "container-title-short"
8386

8487
## String variables
8588
variables.strings =

schemas/styles/csl.rnc

Lines changed: 15 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ div {
4444
(style.locale*
4545
& style.macro*
4646
& style.citation
47-
& style.intext?
4847
& style.bibliography?)
4948
}
5049
dependent-style.style =
@@ -58,7 +57,7 @@ div {
5857
version =
5958

6059
## Indicate CSL version compatibility.
61-
[ a:defaultValue = "1.1" ] attribute version { "1.1" }
60+
[ a:defaultValue = "1.0" ] attribute version { "1.0" }
6261
}
6362
# ==============================================================================
6463

@@ -343,13 +342,6 @@ div {
343342

344343
## Use to describe the formatting of citations.
345344
element cs:citation { citation.options, sort?, citation.layout }
346-
style.intext =
347-
348-
## Defines the author-only rendering for assembly of a textual citations
349-
## (for example, "Doe [3]" or "Doe (2018)"), where the output expectations
350-
## for in-text authors are different than the default citation rendering;
351-
## for example, in APA, or numeric styles.
352-
element cs:intext { citation.options, sort?, citation.layout }
353345
style.bibliography =
354346

355347
## Use to describe the formatting of the bibliography.
@@ -405,18 +397,14 @@ div {
405397
name.attributes =
406398

407399
## Use to separate the second-to-last and last name of a name list by
408-
## the "and" term.
400+
## the "and" term or ampersand.
409401
attribute and {
410402

411-
## Use the "and" term "long" form (e.g., "Doe, Johnson and Smith").
412-
"long"
403+
## Use the "and" term (e.g., "Doe, Johnson and Smith").
404+
"text"
413405
|
414-
## Use the "and" term "symbol" form (e.g., "Doe, Johnson & Smith").
406+
## Use the "ampersand" (e.g., "Doe, Johnson & Smith").
415407
"symbol"
416-
|
417-
## Use the "and" term "short" form. Not common in English, but is seen in other languages.
418-
## In German, for example: "Doe, Johnson u. Smith, where "u." is short for "und."
419-
"short"
420408
}?,
421409

422410
## Specify when the name delimiter is used between a truncated name list
@@ -646,11 +634,10 @@ div {
646634
|
647635
## Specify verbatim text.
648636
attribute value { text }
649-
| ((attribute variable { variables.numbers | variables.strings },
650-
[ a:defaultValue = "long" ] attribute form { "short" | "long" })
651-
| (attribute variable { variables.titles },
652-
[ a:defaultValue = "long" ]
653-
attribute form { "short" | "long" | "sub" | "main" })?)
637+
| (
638+
## Select a variable.
639+
attribute variable { variables.standard },
640+
[ a:defaultValue = "long" ] attribute form { "short" | "long" }?)
654641
}
655642
# ==============================================================================
656643

@@ -723,23 +710,20 @@ div {
723710
style.demote-non-dropping-particle,
724711
style.initialize-with-hyphen,
725712
style.page-range-format,
726-
title-inheritable-options,
727713
names-inheritable-options,
728714
name-inheritable-options
729715
citation.options =
730716
citation.cite-group-delimiter,
731717
citation.collapse-options,
732718
citation.disambiguate-options,
733719
citation.near-note-distance,
734-
title-inheritable-options,
735720
names-inheritable-options,
736721
name-inheritable-options
737722
bibliography.options =
738723
bibliography.hanging-indent,
739724
bibliography.line-formatting-options,
740725
bibliography.second-field-align,
741726
bibliography.subsequent-author-substitute-options,
742-
title-inheritable-options,
743727
names-inheritable-options,
744728
name-inheritable-options
745729
style.demote-non-dropping-particle =
@@ -763,9 +747,9 @@ div {
763747
"expanded"
764748
| "minimal"
765749
| "minimal-two"
766-
| "minimal-oup"
767750
| "chicago"
768-
| "mhra"
751+
| "chicago-15"
752+
| "chicago-16"
769753
}?
770754
citation.cite-group-delimiter =
771755

@@ -906,48 +890,6 @@ div {
906890
"partial-first"
907891
}?
908892

909-
## Options affecting rendering of title variables, for cs:style, cs:citation and cs:bibliography
910-
title-inheritable-options =
911-
912-
## Inheritable title option, specify the delimiter between "title-main" and "title-sub".
913-
attribute title-delimiter { text }?,
914-
915-
## Inheritable title option, specify the delimiter between multiple subtitles.
916-
## The same as "title-delimiter" if not specified.
917-
attribute title-sub-delimiter { text }?,
918-
919-
## Inheritable title option, specify how titles are split into "title-main" and "title-sub".
920-
[ a:defaultValue = "simple" ]
921-
attribute title-split {
922-
923-
## Matches "."", ":", "::", "!", "?"
924-
"simple"
925-
|
926-
## Matches the values for "simple" plus ";"
927-
"extended"
928-
|
929-
## Matches the values for "simple" plus "—" and ";"
930-
"full"
931-
|
932-
## Matches the values for "simple" plus ";""
933-
## and "[;,] or[,:]" (see CMoS 14.91), e.g. "Moby-Dick; or, The Whale"
934-
"chicago"
935-
}?,
936-
937-
## Inheritable title option, specify which delimiters are normalized.
938-
[ a:defaultValue = "simple" ]
939-
attribute normalize-title-delimiters {
940-
941-
## Normalize "."", ":", "::"
942-
"simple"
943-
|
944-
## Normalize the values for "simple" plus ";"
945-
"extended"
946-
|
947-
## Normalize the values for "simple" plus "—" and ";"
948-
"full"
949-
}?
950-
951893
## Options affecting cs:names, for cs:style, cs:citation and cs:bibliography.
952894
names-inheritable-options =
953895

@@ -1060,16 +1002,16 @@ div {
10601002
## Capitalizes the first character (other characters remain in
10611003
## their original case).
10621004
"capitalize-first"
1063-
|
1064-
## Capitalizes the first character and the first character of a subtitle
1065-
## (other characters remain in their original case).
1066-
"capitalize-subtitle"
10671005
|
10681006
## Capitalizes the first character of every word (other characters
10691007
## remain in their original case).
10701008
"capitalize-all"
10711009
|
10721010
## Renders text in title case.
10731011
"title"
1012+
|
1013+
## Renders text in sentence case.
1014+
## Deprecated. Will be removed in CSL 1.1
1015+
"sentence"
10741016
}?
10751017
}

0 commit comments

Comments
 (0)