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
- Enter token, prefix, rectoSuffix, versoSuffix, pagination, source. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| token | Token | Required. Text; maximum UTF-16 length 8192. |
| prefix | Prefix | Required. Text; maximum UTF-16 length 8192. |
| rectoSuffix | Recto Suffix | Required. Text; maximum UTF-16 length 8192. |
| versoSuffix | Verso Suffix | Required. Text; maximum UTF-16 length 8192. |
| pagination | Pagination | Required. Boolean. |
| source | Source identifier or source selector, interpreted under the calculation above. | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| number | Number | Required. Safe integer. |
| numberToken | Number Token | Required. Text; maximum UTF-16 length 8192. |
| side | Side | Required. Text; maximum UTF-16 length 8192. |
| sourceKey | Serialized source-scoped key preserving the supplied token. | Required. Text; maximum UTF-16 length 8192. |
{
"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
Similar or alternative tools
- Manuscript Catchword Position
Validate a positive leaf, positive linesOnLeaf, and line within the selected zero- or one-based range.
- Public Inscription Gap Marker
Parse the enclosed ASCII decimal digits into a nonnegative safe integer missingUnits.