-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JATS: Footnote support #880
Comments
Thanks for raising this @rgieseke. I propose a new [
{
"type": "Paragraph",
"id": "p1",
"content": ["Text"]
},
{
"type": "Note",
"id": "idm6",
"noteType": "Footnote",
"content": [
{
"type": "Paragraph",
"id": "footnote1",
"content": ["Footy note about Text."]
}
]
},
{
"type": "Paragraph",
"content": [" begins and ends."]
}
] The title: Note
'@id': stencila:Note
extends: Entity
role: secondary
status: unstable
description: .
properties:
noteType:
'@id': stencila:noteType
description: Determines where the note content is displayed within document.
type: string
enum:
- Footnote
- Endnote
content:
'@id': stencila:content
description: Content of the note, usually a paragraph.
type: array
items:
$ref: BlockContent
$comment: |
Most notes will have a single paragraph but could have multiple
paragraphs, tables and even figures.
required:
- content But needs more research into how other document schemas represent footnotes etc e.g. JATS, Pandoc, MDAST. |
This sounds quite good! JATS describes
They can be grouped in
https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/fn.html Pandoc Markdown extension allows for footnotes like:
https://pandoc.org/MANUAL.html#footnotes It HTML sidenotes or margin notes are also quite common (e.g. https://edwardtufte.github.io/tufte-css/#sidenotes), but there is no implementation standard, so it would be difficult to parse and have a separate category to footnote/endnote.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside Should we continue this as a PR to |
Thanks for doing that research,, useful stuff.
Yes, if you could start one based on the above YAML that'd be great. |
WIP, based on discussions in stencila/encoda#880
Probably related to issue #144
How would one add support to read a footnote as an inline element as part of a paragraph?
Right now it's rendered as another paragraph next to the paragraph which has the annotated word as the last word.
E.g. JATS:
To JSON:
It should be inline like a mark i think:
I played around with adding a
decodeFootnote
function but don't really know what the best approach would be.The text was updated successfully, but these errors were encountered: