Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 5x 5x 1x 1x 5x 5x 1x 1x 2x 2x 1x | // // Conforms to 45 // // The interfaces in this file are designed with reference to the mapped // structures produced by xml2js when passed a LDML keyboard .xml file. // // Using prefix LK for LDML Keyboard // export interface LDMLKeyboardXMLSourceFile { /** * <keyboard> -- the root element. */ keyboard3: LKKeyboard; }; export interface LKKeyboard { locale?: string; conformsTo?: string; locales?: LKLocales; version?: LKVersion; info?: LKInfo; settings?: LKSettings; keys?: LKKeys; flicks?: LKFlicks; forms?: LKForms; displays?: LKDisplays; layers?: LKLayers[]; variables?: LKVariables; transforms?: LKTransforms[]; }; /** * This is defined as an interface, but actually is resolved during the reading phase */ export interface LKImport { /** * import base, currently `cldr` is supported */ base?: 'cldr' | ''; /** * path to imported resource, of the form `45/*.xml` */ path: string; }; export interface LKLocales { locale: LKLocale[]; }; export interface LKLocale { id?: string; }; export interface LKVersion { number: string; // semver string } export interface LKInfo { name?: string; author?: string; layout?: string; indicator?: string; }; export interface LKSettings { normalization: "disabled"; }; export interface LKKeys { key: LKKey[]; flicks: LKFlicks[]; }; export interface LKKey { id?: string; flickId?: string; output?: string; gap?: boolean; layerId?: string; longPressKeyIds?: string; longPressDefaultKeyId?: string; multiTapKeyIds?: string; width?: number; }; export interface LKFlicks { flick?: LKFlick[]; }; export interface LKFlick { id?: string; flickSegment?: LKFlickSegment[]; }; export interface LKFlickSegment { directions?: string; keyId?: string; } export interface LKLayers { /** * `touch`, or hardware `us`, `iso`, `jis`, `abnt2` */ formId?: string; /** * Minimum width in millimeters */ minDeviceWidth?: number; layer?: LKLayer[]; }; export interface LKLayer { id?: string; modifiers?: string; row?: LKRow[]; }; export interface LKRow { keys?: string; }; export interface LKVariables { string?: LKString[]; set?: LKSet[]; uset?: LKUSet[]; }; /** * Shared interface for all three variable types */ export interface Variable { id?: string; value?: string; }; export interface LKString extends Variable {}; export interface LKSet extends Variable {}; export interface LKUSet extends Variable {}; export interface LKTransforms { type?: "simple" | "backspace"; transformGroup?: LKTransformGroup[]; }; export interface LKTransform { from?: string; to?: string; }; export interface LKTransformGroup { // one or the other, not both transform?: LKTransform[]; reorder?: LKReorder[]; }; export interface LKReorder { from?: string; before?: string; order?: string; tertiary?: string; tertiaryBase?: string; preBase?: string; }; export interface LKDisplayOptions { baseCharacter?: string; }; export interface LKDisplay { output?: string; display?: string; keyId?: string; }; export interface LKDisplays { display?: LKDisplay[]; displayOptions?: LKDisplayOptions; }; export interface LKForms { form?: LKForm[]; }; export interface LKForm { id?: string; scanCodes?: LKScanCodes[]; }; export interface LKScanCodes { codes?: string; }; /** * Utilities for determining the import status of items */ export class ImportStatus { /** item came in via implied (spec based) import, such as keys-Latn-implied.xml */ static impliedImport = Symbol('LDML implied import'); /** item came in via import */ static import = Symbol('LDML import'); /** item came in via local (not CLDR) import */ static localImport = Symbol('LDML local import'); /** @returns true if the object was loaded through an implied import */ static isImpliedImport(o : any) : boolean { return o && !!o[ImportStatus.impliedImport]; } /** @returns true if the object was loaded through an explicit import */ static isImport(o : any) : boolean { return o && !!o[ImportStatus.import]; } /** @returns true if the object was loaded through an explicit import */ static isLocalImport(o : any) : boolean { return o && !!o[ImportStatus.localImport]; } }; |