MrzParser
Parses MRZ text into an io.lightine.tessera.mrz.model.MrzDocument per ICAO Doc 9303.
Every entry point returns a ParseResult. The parser runs the validator on each document it builds and puts the outcome on the result metadata. It reports check digit mismatches, dates that are not in the calendar, and sex characters outside M, F, <, and X as validation failures. It reports MrzExpiryDatePast, MrzExpiryDateImplausiblyFar, MrzExpiryDateCenturyNotInferred, MrzExpiryDateAfterNonHarmonizedPassportLimit, MrzNameTruncated, MrzUnknownCountryCode, MrzUnknownDocumentTypeCode, MrzSexCharacterX, and MrzPersonalNumberCheckDigitFiller as warnings.
Every sex character other than M and F, including X and Z, maps to Sex.UNSPECIFIED; rawSex keeps the printed character. The reading method of every result is ReadMethod.BACKEND_STRING_INPUT.
Since
0.1.0