IcaoDefaultTransliterationProfile

The default profile: the tables of ICAO Doc 9303 Part 3 Section 6 for Latin (6.A, no expansion), Cyrillic (6.B, main values) and Arabic script (6.C).

Letters the Cyrillic table does not list include the soft sign (Ь U+042C, ь U+044C), Tshe (Ћ U+040B, ћ U+045B), and Gje (Ѓ U+0403, ѓ U+0453). They become < unless the app overrides them, for example 'Ь' to "". Arabic presentation forms in U+FB50 to U+FEFF are not folded: input is normalized to NFC only, so they become <.

Since

0.1.0

Properties

Link copied to clipboard
const val IDENTIFIER: String

The profile identifier: ICAO.

Link copied to clipboard
open override val identifier: String

The profile identifier: IDENTIFIER.

Functions

Link copied to clipboard
open override fun toMrzAlphabet(normalizedInput: String): TransliterationResult

Maps text to the MRZ alphabet and always succeeds.

Link copied to clipboard

Normalizes text to Unicode NFC, then applies this profile.

Link copied to clipboard
fun withOverrides(identifier: String, overrides: Map<Char, String>): TransliterationProfile

Builds a profile that applies overrides first and follows this profile for every other character.