Chemical structures (spec/18 section 18.6) and biological sequences (18.7) tied to
the words of a paper. Minor change: two new body kinds, optional properties and
seven rules, with no valid file made invalid.
- annotation schema: structure (SMILES or SMARTS, role, identity, written, label,
accessions, force-field terms) and sequence (alphabet, role, identity, start,
organism, regions, variants); body_kind in sql/store.sql; nine terms in the
JSON-LD context; rules layer.structure.{value,identity,term} and
layer.sequence.{value,identity,region,variant}.
- paperspec.structures reads the atoms and bonds of a SMILES or SMARTS with the
standard library, so a term's atoms are checked without a toolkit; checked against
RDKit on a corpus and random texts. paperspec.sequences checks alphabets,
identities, regions and variants.
- fixtures/records/chemistry (on the main example) and biology (on the draft, which
gains a last sentence), vectors/structures.jsonl and vectors/sequences.jsonl;
check.py runs both layers and the vectors; counts, guides and CHANGELOG updated.
- the prose check no longer takes organism for a UK spelling.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8cL4zN4XpaQF5cBtASzfq
Fixture sources
Each source describes a document as a converter first read it, mistakes included, in a shorthand that paperspec build expands.
The build mints IDs, applies the listed corrections, lays out synthetic geometry, signs the listed receipts and writes the package.
The shorthand is tooling, not a format.
| Shorthand | Becomes |
|---|---|
{"p": [...]} |
A paragraph of the listed sentences. |
{"s": [...]} |
A sentence; a string part is a text run. |
{"sup": t}, {"sub": t}, {"em": t} |
A styled text run. |
{"m": src}, {"t": src} |
A TeX or Typst math run. |
{"cite": [...], "text": t}, {"xref": target, "text": t}, {"fn": name, "text": t} |
Citation, cross-reference and footnote-mark runs. |
{"eq": {...}} |
A display equation inside the sentence. |
{"row": [...]}, {"c": [...]} |
A table row, and a cell with role, rowspan, colspan and col. |
"name": "@x" |
A local name, replaced by the minted ID; ext:<doc>:@x names a node of another source. |
"page": n |
The page the node and its descendants are laid out on. |
corrections lists the operations in order, naming nodes by local name; crop names the node whose crop is the evidence.
anchors_at_rev0 lists the anchors whose resolution vectors/resolve.jsonl records, and receipts the receipts, spot-checks and revocations to sign.