Skip to content

Main content

Persian Date Era Marker Tool

Retain and compare supplied era markers without converting Persian calendar dates.

Loading tool…

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

  1. Enter dateToken, eraMarker, expectedMarker. 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 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 fieldMeaning and unitsAccepted input
dateTokenDate TokenRequired. Text; maximum UTF-16 length 8192.
eraMarkerEra MarkerRequired. Text; maximum UTF-16 length 8192.
expectedMarkerExpected MarkerRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
matchesMatchesRequired. Boolean.
preservedPreservedRequired. Text; maximum UTF-16 length 8192.
json
{
  "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

  1. Calculation and input contract: middle-eastern-studies/persian-date-era-marker — tool.io

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.