Skip to content

Main content

Manuscript Folio Side Token Tool

Parse a supplied public manuscript prefix/digit/side grammar while distinguishing foliation from modern pagination.

Loading tool…

Description

Strip prefix and, unless pagination is true, require exactly one matching recto or verso suffix.

Manuscript and inscription tokens depend on editorial conventions for folios, sides, lacunae, and date labels. Parsing a convention preserves structure without interpreting the source text.

Strip prefix and, unless pagination is true, require exactly one matching recto or verso suffix.

When to use this tool

Use Manuscript Folio Side Token when you need a caller-defined manuscript notation or layout check.

How to use the tool and how it works

  1. Enter token, prefix, rectoSuffix, versoSuffix, pagination, source. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read number, numberToken, side, sourceKey. Use the output convention below.

Strip prefix and, unless pagination is true, require exactly one matching recto or verso suffix. Parse the remaining positive decimal integer, preserve its digit token, and return a source key.1

Input fieldMeaning and unitsAccepted input
tokenTokenRequired. Text; maximum UTF-16 length 8192.
prefixPrefixRequired. Text; maximum UTF-16 length 8192.
rectoSuffixRecto SuffixRequired. Text; maximum UTF-16 length 8192.
versoSuffixVerso SuffixRequired. Text; maximum UTF-16 length 8192.
paginationPaginationRequired. Boolean.
sourceSource identifier or source selector, interpreted under the calculation above.Required. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
numberNumberRequired. Safe integer.
numberTokenNumber TokenRequired. Text; maximum UTF-16 length 8192.
sideSideRequired. Text; maximum UTF-16 length 8192.
sourceKeySerialized source-scoped key preserving the supplied token.Required. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "token": "f.012v",
    "prefix": "f.",
    "rectoSuffix": "r",
    "versoSuffix": "v",
    "pagination": false,
    "source": "MS-A"
  },
  "output": {
    "number": 12,
    "numberToken": "012",
    "side": "verso",
    "sourceKey": "[\"MS-A\",\"f.012v\"]"
  }
}

Limitations and assumptions

  • Overlapping suffix matches are rejected; pagination returns side page. No physical foliation or manuscript identity is verified.
  • 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.

Alternative or Complementary methods

Consult the edition's transcription and foliation policy and inspect the source image for textual interpretation.

References

  1. Calculation and input contract: middle-eastern-studies/manuscript-folio-side-token — tool.io

Similar or alternative tools