@keymanapp/kmc 17.0.81-alpha → 17.0.83-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -180767,8 +180767,10 @@ var KVKFile = class {
180767
180767
  // ../../../common/web/types/src/consts/virtual-key-constants.ts
180768
180768
  var virtual_key_constants_exports = {};
180769
180769
  __export(virtual_key_constants_exports, {
180770
+ ABNT2VirtualKeyMap: () => ABNT2VirtualKeyMap,
180770
180771
  HardwareToKeymap: () => HardwareToKeymap,
180771
180772
  ISOVirtualKeyMap: () => ISOVirtualKeyMap,
180773
+ JISVirtualKeyMap: () => JISVirtualKeyMap,
180772
180774
  LdmlVkeyNames: () => LdmlVkeyNames,
180773
180775
  USVirtualKeyCodes: () => USVirtualKeyCodes,
180774
180776
  USVirtualKeyMap: () => USVirtualKeyMap
@@ -180901,10 +180903,26 @@ var ISOVirtualKeyMap = [
180901
180903
  [k.K_oE2, k.K_Z, k.K_X, k.K_C, k.K_V, k.K_B, k.K_N, k.K_M, k.K_COMMA, k.K_PERIOD, k.K_SLASH],
180902
180904
  [k.K_SPACE]
180903
180905
  ];
180906
+ var JISVirtualKeyMap = [
180907
+ [k.K_1, k.K_2, k.K_3, k.K_4, k.K_5, k.K_6, k.K_7, k.K_8, k.K_9, k.K_0, k.K_HYPHEN, k.K_EQUAL, k.K_oE2],
180908
+ [k.K_Q, k.K_W, k.K_E, k.K_R, k.K_T, k.K_Y, k.K_U, k.K_I, k.K_O, k.K_P, k.K_BKQUOTE, k.K_LBRKT],
180909
+ [k.K_A, k.K_S, k.K_D, k.K_F, k.K_G, k.K_H, k.K_J, k.K_K, k.K_L, k.K_COLON, k.K_QUOTE, k.K_BKSLASH],
180910
+ [k.K_Z, k.K_X, k.K_C, k.K_V, k.K_B, k.K_N, k.K_M, k.K_COMMA, k.K_PERIOD, k.K_SLASH, k.k_oC1],
180911
+ [k.K_SPACE]
180912
+ ];
180913
+ var ABNT2VirtualKeyMap = [
180914
+ [k.K_BKQUOTE, k.K_1, k.K_2, k.K_3, k.K_4, k.K_5, k.K_6, k.K_7, k.K_8, k.K_9, k.K_0, k.K_HYPHEN, k.K_EQUAL],
180915
+ [k.K_Q, k.K_W, k.K_E, k.K_R, k.K_T, k.K_Y, k.K_U, k.K_I, k.K_O, k.K_P, k.K_LBRKT, k.K_RBRKT],
180916
+ [k.K_A, k.K_S, k.K_D, k.K_F, k.K_G, k.K_H, k.K_J, k.K_K, k.K_L, k.K_COLON, k.K_QUOTE, k.K_BKSLASH],
180917
+ [k.K_oE2, k.K_Z, k.K_X, k.K_C, k.K_V, k.K_B, k.K_N, k.K_M, k.K_COMMA, k.K_PERIOD, k.K_SLASH, k.k_oC1],
180918
+ [k.K_SPACE]
180919
+ ];
180904
180920
  var HardwareToKeymap = /* @__PURE__ */ new Map(
180905
180921
  [
180906
180922
  ["us", USVirtualKeyMap],
180907
- ["iso", ISOVirtualKeyMap]
180923
+ ["iso", ISOVirtualKeyMap],
180924
+ ["jis", JISVirtualKeyMap],
180925
+ ["abnt2", ABNT2VirtualKeyMap]
180908
180926
  ]
180909
180927
  );
180910
180928
  var LdmlVkeyNames = {
@@ -181675,7 +181693,7 @@ __publicField(CompilerMessages, "Error_InvalidLocale", (o) => CompilerMessageSpe
181675
181693
  __publicField(CompilerMessages, "ERROR_InvalidLocale", SevError2 | 2);
181676
181694
  __publicField(CompilerMessages, "Error_HardwareLayerHasTooManyRows", () => CompilerMessageSpec(_CompilerMessages.ERROR_HardwareLayerHasTooManyRows, `'hardware' layer has too many rows`));
181677
181695
  __publicField(CompilerMessages, "ERROR_HardwareLayerHasTooManyRows", SevError2 | 3);
181678
- __publicField(CompilerMessages, "Error_RowOnHardwareLayerHasTooManyKeys", (o) => CompilerMessageSpec(_CompilerMessages.ERROR_RowOnHardwareLayerHasTooManyKeys, `Row #${o.row} on 'hardware' ${o.hardware} layer has too many keys`));
181696
+ __publicField(CompilerMessages, "Error_RowOnHardwareLayerHasTooManyKeys", (o) => CompilerMessageSpec(_CompilerMessages.ERROR_RowOnHardwareLayerHasTooManyKeys, `Row #${o.row} on 'hardware' ${o.hardware} layer for modifier ${o.modifier || "none"} has too many keys`));
181679
181697
  __publicField(CompilerMessages, "ERROR_RowOnHardwareLayerHasTooManyKeys", SevError2 | 4);
181680
181698
  __publicField(CompilerMessages, "Error_KeyNotFoundInKeyBag", (o) => CompilerMessageSpec(_CompilerMessages.ERROR_KeyNotFoundInKeyBag, `Key '${o.keyId}' in position #${o.col} on row #${o.row} of layer ${o.layer}, form '${o.form}' not found in key bag`));
181681
181699
  __publicField(CompilerMessages, "ERROR_KeyNotFoundInKeyBag", SevError2 | 5);
@@ -182052,7 +182070,8 @@ var KeysCompiler = class extends SectionCompiler {
182052
182070
  }
182053
182071
  const keymap = virtual_key_constants_exports.HardwareToKeymap.get(hardware);
182054
182072
  if (!keymap) {
182055
- throw Error(`TODO-LDML: ${hardware} not supported, see #8161`);
182073
+ this.callbacks.reportMessage(CompilerMessages.Error_InvalidHardware({ form: hardware }));
182074
+ valid = false;
182056
182075
  }
182057
182076
  const uniqueKeys = calculateUniqueKeys([...this.keyboard.keys?.key]);
182058
182077
  if (layer.row.length > keymap.length) {
@@ -182062,7 +182081,7 @@ var KeysCompiler = class extends SectionCompiler {
182062
182081
  for (let y = 0; y < layer.row.length && y < keymap.length; y++) {
182063
182082
  const keys = layer.row[y].keys.split(" ");
182064
182083
  if (keys.length > keymap[y].length) {
182065
- this.callbacks.reportMessage(CompilerMessages.Error_RowOnHardwareLayerHasTooManyKeys({ row: y + 1, hardware }));
182084
+ this.callbacks.reportMessage(CompilerMessages.Error_RowOnHardwareLayerHasTooManyKeys({ row: y + 1, hardware, modifier }));
182066
182085
  valid = false;
182067
182086
  }
182068
182087
  let x = -1;
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "type": "git",
70
70
  "url": "git+https://github.com/keymanapp/keyman.git"
71
71
  },
72
- "version": "17.0.81-alpha"
72
+ "version": "17.0.83-alpha"
73
73
  }