Skip to content

Main content

Print State Number Token Tool

Read a positive decimal print-state number after an exact caller-supplied prefix.

Loading tool…

Description

Parse a print-state number after a supplied prefix.

Art catalogs and inscriptions encode editions, states, suffixes and transcribed lines through explicit notation. Literal tokens and line positions can be reconciled without authenticating an impression, assigning authorship or resolving differences between cataloging authorities. The supplied prefix, separator and numbering convention are part of the input.

Parse a print-state number after a supplied prefix.

When to use this tool

Use Print State Number Token when checking the stated inscription, edition or catalog-token convention.

How to use the tool and how it works

  1. Enter token, prefix. 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 state. Use the output convention below.

Parse a print-state number after a supplied prefix. Require nonempty matching prefix and canonical positive decimal suffix convertible to a safe whole number; return state.1

Input fieldMeaning and unitsAccepted input
tokenTokenRequired. Text; maximum UTF-16 length 8192.
prefixPrefixRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
stateStateRequired. Safe integer.
json
{
  "input": {
    "token": "state 3",
    "prefix": "state "
  },
  "output": {
    "state": 3
  }
}

Limitations and assumptions

  • Leading zero numbers are rejected; no actual print state, attribution or catalogue convention is authenticated.
  • 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 original inscription and authoritative catalog for attribution, edition identity and the notation used by the relevant collection.

References

  1. Calculation and input contract: art-history/print-state-number-token — tool.io

Similar or alternative tools