Description
Require nonempty eraMarker and expectedMarker, compare them exactly, and preserve dateToken with eraMarker in a serialized pair.
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.
Require nonempty eraMarker and expectedMarker, compare them exactly, and preserve dateToken with eraMarker in a serialized pair.
When to use this tool
Use Persian Date Era Marker when you need a caller-defined manuscript notation or layout check.
How to use the tool and how it works
- Enter dateToken, eraMarker, expectedMarker. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read matches, preserved. Inspect matches before interpreting the associated values.
Require nonempty eraMarker and expectedMarker, compare them exactly, and preserve dateToken with eraMarker in a serialized pair.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| dateToken | Date Token | Required. Text; maximum UTF-16 length 8192. |
| eraMarker | Era Marker | Required. Text; maximum UTF-16 length 8192. |
| expectedMarker | Expected Marker | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| matches | Matches | Required. Boolean. |
| preserved | Preserved | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"dateToken": "1403",
"eraMarker": "SH",
"expectedMarker": "SH"
},
"output": {
"matches": true,
"preserved": "[\"1403\",\"SH\"]"
}
} Limitations and assumptions
- This retains an era label without converting Persian dates or validating the date token.
- 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
- Public Era Date Precision Width
Subtract earliestCoordinate from latestCoordinate and add positive quantum only when endpointsInclusive is true.
- Public Colophon Date Label Depth
Map dateLabels into its indices, count recognized and unrecognized labels, and require strictly increasing recognized positions for hierarchyConsistent.