Skip to content

Commit 2966649

Browse files
committed
Add notes-after-punctutation
completes #2893
1 parent 892be12 commit 2966649

File tree

4 files changed

+86
-18
lines changed

4 files changed

+86
-18
lines changed

src/resources/editor/tools/vs-code.mjs

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15333,6 +15333,20 @@ var require_yaml_intelligence_resources = __commonJS({
1533315333
short: "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be rendered as hyperlinks.",
1533415334
long: "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be rendered as hyperlinks. (If an entry contains a DOI, PMCID, PMID, or URL, but none of \nthese fields are rendered by the style, then the title, or in the absence of a title the whole entry, will be hyperlinked.) Defaults to true.\n"
1533515335
}
15336+
},
15337+
{
15338+
name: "notes-after-punctuation",
15339+
schema: "boolean",
15340+
tags: {
15341+
formats: [
15342+
"$pdf-all",
15343+
"docx"
15344+
]
15345+
},
15346+
description: {
15347+
short: "Places footnote references or superscripted numerical citations after following punctuation.",
15348+
long: "If true (the default for note styles), Quarto (via Pandoc) will put footnote references or superscripted numerical citations after \nfollowing punctuation. For example, if the source contains blah blah [@jones99]., the result will look like blah blah.[^1], with \nthe note moved after the period and the space collapsed. \n\nIf false, the space will still be collapsed, but the footnote will not be moved after the punctuation. The option may also be used \nin numerical styles that use superscripts for citation numbers (but for these styles the default is not to move the citation).\n"
15349+
}
1533615350
}
1533715351
],
1533815352
"schema/document-render.yml": [
@@ -20014,6 +20028,11 @@ var require_yaml_intelligence_resources = __commonJS({
2001420028
short: "JSON file containing abbreviations of journals that should be used in\nformatted bibliographies.",
2001520029
long: 'JSON file containing abbreviations of journals that should be used in\nformatted bibliographies when <code>form="short"</code> is specified.\nThe format of the file can be illustrated with an example:'
2001620030
},
20031+
"If true, citations will be hyperlinked to the corresponding\nbibliography entries (for author-date and numerical styles only).\nDefaults to false.",
20032+
{
20033+
short: "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be\nrendered as hyperlinks.",
20034+
long: "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be\nrendered as hyperlinks. (If an entry contains a DOI, PMCID, PMID, or\nURL, but none of these fields are rendered by the style, then the title,\nor in the absence of a title the whole entry, will be hyperlinked.)\nDefaults to true."
20035+
},
2001720036
{
2001820037
short: "Format to read from",
2001920038
long: "Format to read from. Extensions can be individually enabled or\ndisabled by appending +EXTENSION or -EXTENSION to the format name\n(e.g.&nbsp;markdown+emoji)."
@@ -20868,10 +20887,9 @@ var require_yaml_intelligence_resources = __commonJS({
2086820887
},
2086920888
"Disambiguating year suffix in author-date styles (e.g.&nbsp;\u201Ca\u201D in \u201CDoe,\n1999a\u201D).",
2087020889
"internal-schema-hack",
20871-
"If true, citations will be hyperlinked to the corresponding\nbibliography entries (for author-date and numerical styles only).\nDefaults to false.",
2087220890
{
20873-
short: "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be\nrendered as hyperlinks.",
20874-
long: "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be\nrendered as hyperlinks. (If an entry contains a DOI, PMCID, PMID, or\nURL, but none of these fields are rendered by the style, then the title,\nor in the absence of a title the whole entry, will be hyperlinked.)\nDefaults to true."
20891+
short: "Places footnote references or superscripted numerical citations after\nfollowing punctuation.",
20892+
long: 'If true (the default for note styles), Quarto (via Pandoc) will put\nfootnote references or superscripted numerical citations after following\npunctuation. For example, if the source contains blah blah <span class="citation" data-cites="jones99">[@jones99]</span>., the result\nwill look like blah blah.[^1], with the note moved after the period and\nthe space collapsed.\nIf false, the space will still be collapsed, but the footnote will\nnot be moved after the punctuation. The option may also be used in\nnumerical styles that use superscripts for citation numbers (but for\nthese styles the default is not to move the citation).'
2087520893
}
2087620894
],
2087720895
"schema/external-schemas.yml": [
@@ -21097,12 +21115,12 @@ var require_yaml_intelligence_resources = __commonJS({
2109721115
mermaid: "%%"
2109821116
},
2109921117
"handlers/mermaid/schema.yml": {
21100-
_internalId: 147227,
21118+
_internalId: 147499,
2110121119
type: "object",
2110221120
description: "be an object",
2110321121
properties: {
2110421122
"mermaid-format": {
21105-
_internalId: 147219,
21123+
_internalId: 147491,
2110621124
type: "enum",
2110721125
enum: [
2110821126
"png",
@@ -21118,7 +21136,7 @@ var require_yaml_intelligence_resources = __commonJS({
2111821136
exhaustiveCompletions: true
2111921137
},
2112021138
theme: {
21121-
_internalId: 147226,
21139+
_internalId: 147498,
2112221140
type: "anyOf",
2112321141
anyOf: [
2112421142
{

src/resources/editor/tools/yaml/web-worker.js

Lines changed: 24 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/resources/editor/tools/yaml/yaml-intelligence-resources.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8309,6 +8309,20 @@
83098309
"short": "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be rendered as hyperlinks.",
83108310
"long": "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be rendered as hyperlinks. (If an entry contains a DOI, PMCID, PMID, or URL, but none of \nthese fields are rendered by the style, then the title, or in the absence of a title the whole entry, will be hyperlinked.) Defaults to true.\n"
83118311
}
8312+
},
8313+
{
8314+
"name": "notes-after-punctuation",
8315+
"schema": "boolean",
8316+
"tags": {
8317+
"formats": [
8318+
"$pdf-all",
8319+
"docx"
8320+
]
8321+
},
8322+
"description": {
8323+
"short": "Places footnote references or superscripted numerical citations after following punctuation.",
8324+
"long": "If true (the default for note styles), Quarto (via Pandoc) will put footnote references or superscripted numerical citations after \nfollowing punctuation. For example, if the source contains blah blah [@jones99]., the result will look like blah blah.[^1], with \nthe note moved after the period and the space collapsed. \n\nIf false, the space will still be collapsed, but the footnote will not be moved after the punctuation. The option may also be used \nin numerical styles that use superscripts for citation numbers (but for these styles the default is not to move the citation).\n"
8325+
}
83128326
}
83138327
],
83148328
"schema/document-render.yml": [
@@ -12990,6 +13004,11 @@
1299013004
"short": "JSON file containing abbreviations of journals that should be used in\nformatted bibliographies.",
1299113005
"long": "JSON file containing abbreviations of journals that should be used in\nformatted bibliographies when <code>form=\"short\"</code> is specified.\nThe format of the file can be illustrated with an example:"
1299213006
},
13007+
"If true, citations will be hyperlinked to the corresponding\nbibliography entries (for author-date and numerical styles only).\nDefaults to false.",
13008+
{
13009+
"short": "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be\nrendered as hyperlinks.",
13010+
"long": "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be\nrendered as hyperlinks. (If an entry contains a DOI, PMCID, PMID, or\nURL, but none of these fields are rendered by the style, then the title,\nor in the absence of a title the whole entry, will be hyperlinked.)\nDefaults to true."
13011+
},
1299313012
{
1299413013
"short": "Format to read from",
1299513014
"long": "Format to read from. Extensions can be individually enabled or\ndisabled by appending +EXTENSION or -EXTENSION to the format name\n(e.g.&nbsp;markdown+emoji)."
@@ -13844,10 +13863,9 @@
1384413863
},
1384513864
"Disambiguating year suffix in author-date styles (e.g.&nbsp;“a” in “Doe,\n1999a”).",
1384613865
"internal-schema-hack",
13847-
"If true, citations will be hyperlinked to the corresponding\nbibliography entries (for author-date and numerical styles only).\nDefaults to false.",
1384813866
{
13849-
"short": "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be\nrendered as hyperlinks.",
13850-
"long": "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be\nrendered as hyperlinks. (If an entry contains a DOI, PMCID, PMID, or\nURL, but none of these fields are rendered by the style, then the title,\nor in the absence of a title the whole entry, will be hyperlinked.)\nDefaults to true."
13867+
"short": "Places footnote references or superscripted numerical citations after\nfollowing punctuation.",
13868+
"long": "If true (the default for note styles), Quarto (via Pandoc) will put\nfootnote references or superscripted numerical citations after following\npunctuation. For example, if the source contains blah blah <span class=\"citation\" data-cites=\"jones99\">[@jones99]</span>., the result\nwill look like blah blah.[^1], with the note moved after the period and\nthe space collapsed.\nIf false, the space will still be collapsed, but the footnote will\nnot be moved after the punctuation. The option may also be used in\nnumerical styles that use superscripts for citation numbers (but for\nthese styles the default is not to move the citation)."
1385113869
}
1385213870
],
1385313871
"schema/external-schemas.yml": [
@@ -14073,12 +14091,12 @@
1407314091
"mermaid": "%%"
1407414092
},
1407514093
"handlers/mermaid/schema.yml": {
14076-
"_internalId": 147227,
14094+
"_internalId": 147499,
1407714095
"type": "object",
1407814096
"description": "be an object",
1407914097
"properties": {
1408014098
"mermaid-format": {
14081-
"_internalId": 147219,
14099+
"_internalId": 147491,
1408214100
"type": "enum",
1408314101
"enum": [
1408414102
"png",
@@ -14094,7 +14112,7 @@
1409414112
"exhaustiveCompletions": true
1409514113
},
1409614114
"theme": {
14097-
"_internalId": 147226,
14115+
"_internalId": 147498,
1409814116
"type": "anyOf",
1409914117
"anyOf": [
1410014118
{

src/resources/schema/document-references.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,17 @@
111111
long: |
112112
If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be rendered as hyperlinks. (If an entry contains a DOI, PMCID, PMID, or URL, but none of
113113
these fields are rendered by the style, then the title, or in the absence of a title the whole entry, will be hyperlinked.) Defaults to true.
114+
115+
- name: notes-after-punctuation
116+
schema: boolean
117+
tags:
118+
formats: [$pdf-all, docx]
119+
description:
120+
short: Places footnote references or superscripted numerical citations after following punctuation.
121+
long: |
122+
If true (the default for note styles), Quarto (via Pandoc) will put footnote references or superscripted numerical citations after
123+
following punctuation. For example, if the source contains blah blah [@jones99]., the result will look like blah blah.[^1], with
124+
the note moved after the period and the space collapsed.
125+
126+
If false, the space will still be collapsed, but the footnote will not be moved after the punctuation. The option may also be used
127+
in numerical styles that use superscripts for citation numbers (but for these styles the default is not to move the citation).

0 commit comments

Comments
 (0)