Description
Return signed second-first gap and max(0, absolute gap minus one) as skippedLeaves.
Source-scoped cultural and historical records preserve an edition, naming convention, or local identifier. Literal agreement is useful bookkeeping but does not establish interpretation, authenticity, or authority.
Return signed second-first gap and max(0, absolute gap minus one) as skippedLeaves.
When to use this tool
Use Archival Leaf Number Gap when you need a precise source-token or range consistency check.
How to use the tool and how it works
- Enter first, second. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read gap, skippedLeaves. Use the output convention below.
Require positive integer first and second leaf numbers. Return signed second-first gap and max(0, absolute gap minus one) as skippedLeaves.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| first | First | Required. Safe integer; minimum 1. |
| second | Second | Required. Safe integer; minimum 1. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| gap | Signed difference under the stated subtraction order. | Required. Safe integer. |
| skippedLeaves | Skipped Leaves | Required. Safe integer. |
{
"input": {
"first": 12,
"second": 16
},
"output": {
"gap": 4,
"skippedLeaves": 3
}
} Limitations and assumptions
- Equal or adjacent numbers have zero skippedLeaves; this numeric label calculation does not verify actual missing leaves, foliation conventions, or manuscript completeness.
- 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
Consult the source edition and relevant community or scholarly guidance before interpreting or reusing the material.
References
Similar or alternative tools
- Archival Page Sequence Increment
Parse pageDigits as 1-128 decimal digits and add the signed decimal-integer increment exactly, requiring a nonnegative result.
- Section Ribbon Skipped Count
Verify duplicateSkipped equals repeated skip records, then subtract distinct skipped indexes from nominalSections.