Skip to content

Commit

Permalink
add minimal documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
BalduinLandolt committed Jan 7, 2025
1 parent 323acb8 commit 52d847a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/03-endpoints/api-v2/text/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ This allows for the following markup:
- horizontal rules
- code blocks
- block quotes
- footnotes
- typographical markup
- italics
- bold
Expand Down
11 changes: 11 additions & 0 deletions docs/03-endpoints/api-v2/text/standard-standoff.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,21 @@ that are mapped to standoff classes and properties defined in the ontology:
- `<cite>``standoff:StandoffCiteTag`
- `<blockquote>``standoff:StandoffBlockquoteTag`
- `<code>``standoff:StandoffCodeTag`
- `<footnote content="footnote text">``standoff:StandoffFootnoteTag`

The HTML produced by CKEditor is wrapped in an XML doctype and a pair of root tags `<text>...</text>`
and then sent to the DSP-API.
The XML sent to the GUI by the DSP-API is unwrapped accordingly.
Although the GUI supports HTML5, it is treated as if it was XHTML in strict XML notation.

Text with standard standoff markup can be transformed to TEI XML as described [here](tei-xml.md).

## Footnotes

Footnote support is currently experimental and has some limitations:

- CKE does not support footnotes out of the box. DSP-APP uses a custom build of CKE that supports footnotes.
- The content of footnotes is not covered by the full text search.
- The content of footnotes may contain further markup, but this will internally not be converted to standoff.
For that reason, markup in footnotes can not be searched for through gravsearch
and hence outgoing and incoming links will not be displayed in DSP-APP.

0 comments on commit 52d847a

Please sign in to comment.