// Generated by ios/scripts/build-typing-config.py from ios/TypingConfig/limits.json. Do not edit. import CoreGraphics /// The typing config's limits (format 0): what a reader clamps to and what it skips. nonisolated enum TypingConfigLimits { static let format = "hex.typing-config" static let version = 0 static let maxBytes = 65536 static let noteMaxCharacters = 280 static let wordLetters = 2...32 static let maxKeep = 500 static let maxNeverCorrectTo = 500 static let maxFixes = 500 static let maxDictation = 200 static let dictationMaxWords = 3 static let maxContexts = 8 /// Contexts match on width rounded to this many points. static let contextWidthRound: CGFloat = 10 /// Keycap height and row pitch may differ from the context's by this share. static let contextGeometryTolerance: CGFloat = 0.15 /// Each axis of an aim offset, in keycaps. static let aimBound: CGFloat = 0.3 /// A zone moves an edge at most this many letter keycaps. static let zoneMaxMove: CGFloat = 0.25 /// Every key keeps its keycap's centre plus this share of its keycap each way. static let zoneKeepFromCentre: CGFloat = 0.3 /// The edges a zone may move, by key ("letter" is every letter key). static let zoneEdges: [String: [KeyboardZone.Edge]] = ["letter": [.top, .bottom, .left, .right], "space": [.top, .left, .right], "layer:numbers": [.top, .right], "return": [.top, .left], "shift": [.top, .right], "delete": [.top, .left]] /// The least evidence a part may claim (a reader skips one that claims less). static let keepMinTimes = 2 static let keepMinSessions = 2 static let neverCorrectToMinTakenBack = 2 static let fixMinTimes = 2 static let fixMinSessions = 2 static let dictationMinTimes = 2 static let aimMinTunedTaps = 40 static let aimMinCheckedTaps = 20 static let zoneMinTunedTaps = 15 static let zoneMinCheckedTaps = 10 /// A zone's words made right less words made wrong on the check half (expected counts). static let zoneMinNetCheckedWords: Double = 2 static let zoneMaxWrongShare: Double = 0.34 }