Description
Return a quote's signed offset relative to an anchor.
Digital editions connect textual witnesses, anchors, page images and source-specific labels. Literal identifier agreement and numerical offsets preserve a supplied convention without proving textual authority, complete coverage or correct editorial interpretation.
Return a quote's signed offset relative to an anchor.
When to use this tool
Use Citation Anchor Character Offset when checking supplied edition identifiers, ordering or coordinate conventions.
How to use the tool and how it works
- Enter anchorOffset, quoteOffset. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read relativeOffset. Use the output convention below.
Return a quote's signed offset relative to an anchor. Require nonnegative whole anchorOffset and quoteOffset; relativeOffset = quoteOffset-anchorOffset.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| anchorOffset | Anchor Offset | Required. Safe integer; minimum 0. |
| quoteOffset | Quote Offset | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| relativeOffset | quoteOffset-anchorOffset, in the caller-selected common character, byte or code-unit convention. | Required. Safe integer. |
{
"input": {
"anchorOffset": 100,
"quoteOffset": 125
},
"output": {
"relativeOffset": 25
}
} Limitations and assumptions
- The caller supplies a common character/byte/code-unit convention; no text is measured or citation resolved.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Inspect the original edition and its encoding model before treating local record agreement as meaningful textual or historical evidence.
References
Similar or alternative tools
- TEI Anchor Range Length
Return span length and endpoint offsets for named anchors.
- Annotation Quote Prefix Suffix Budget
Check a supplied quote-context character budget.