Commit graph

4256 commits

Author SHA1 Message Date
Marc Durdin
d2b3ef1b58 chore(developer): preserve const enums in kmc-kmn 2024-01-24 11:29:43 +07:00
Marc Durdin
e04db1da27 fix(developer): sentry-cli no longer injects into .d.ts
Fixes #10490.

Note that the default is to inject into .js, .mjs, .cjs, so we don't
need to override that.
2024-01-24 10:22:08 +07:00
Marc Durdin
9d47490e2f chore(developer): one component per file 2024-01-24 10:17:32 +07:00
Marc Durdin
525eed8a34 chore(developer): duplicate id in wxs 2024-01-24 09:42:36 +07:00
Marc Durdin
4188a3ff4b fix(developer): include ldml techpreview imports in msi
Fixes #10485.
2024-01-24 08:15:27 +07:00
Marc Durdin
4906545e31
Merge branch 'epic/core/9999-normalization' into refactor/core/10431-remove-unused-core-context-apis 2024-01-24 12:14:11 +11:00
Marc Durdin
c4b1054f02 fix(developer): tidy up LDML keyboard project template
Fixes #10470.
2024-01-23 14:00:39 +07:00
Marc Durdin
7b0406d64d fix(developer): use keyboard3 tag rather than DTD to identify LDML keyboard xml files
Fixes #10469.
2024-01-23 13:37:57 +07:00
Marc Durdin
ebccb23c41 chore(developer): remove old proc reference 2024-01-23 13:34:41 +07:00
Marc Durdin
7e41ecb358 feat(developer): LDML keyboard test window marker support
Fixes #10458.

Refactors the LDML keyboard test window significantly, in order to be
able to support markers. Cleans up the state machine for the debug
window in the process, as that was complicating the changes. Removes
a lot of extraneous code in the debug window.
2024-01-23 12:42:28 +07:00
Marc Durdin
39b64be67a refactor(developer): use km_core_state_get_actions for LDML keyboard debugger
Relates to #10416.

Moves from using action queue to action struct for the LDML keyboard
debugger. Does not do the same for the KMX keyboard debugger, because
that relies on action items to do single-step debugging.
2024-01-23 12:42:27 +07:00
Marc Durdin
aee59db892 refactor(developer): update app context as well as cached context for KMN keyboard debugger
Fixes #10214.
2024-01-22 08:42:00 +07:00
Marc Durdin
fe88d04bdf refactor(developer): update app context as well as cached context for LDML keyboard debugger
Relates to #10214.
2024-01-22 08:30:17 +07:00
Marc Durdin
0c3b153ca0 fix(developer): support for char + code font in LDML keyboard editor
Fixes #10456.
2024-01-22 07:45:37 +07:00
Marc Durdin
ee9763d43a fix(developer): Use XML mode for LDML keyboard editor
Fixes #10457.
2024-01-22 06:50:53 +07:00
Marc Durdin
236865f046 feat(developer): LDML Keyboard Test Window
Fixes #10420.

Implements a basic LDML keyboard test window. Press F5 or Keyboard/Test
to start test. Shows a character grid for each character in the text.

Does not yet support display of markers (#10458). Does not support
interactive debugging, nor any more detailed status information.
2024-01-22 06:41:13 +07:00
Marc Durdin
5df9464a30 chore(developer): let ngrok choose region -- experimental 2024-01-19 13:56:51 +07:00
Marc Durdin
cb6968b1c0 chore(developer): fixup generated xml to valid sample keyboard 2024-01-19 11:47:20 +07:00
Marc Durdin
2b02d73347 feat(developer): New LDML Keyboard Project form
Fixes #10135.

Adds a new LDML Keyboard Project template and form, and allows
instantiation from kmconvert command-line and from the New Project
dialog in Keyman Developer IDE.
2024-01-18 15:19:41 +07:00
Marc Durdin
83f80c061a refactor(core): remove unused context APIs
Fixes #10431.

The `km_core_` prefix has been removed from internal-only functions, and
these function declarations moved to context.hpp.

The functions have not been moved from km_core_context_api.cpp at this
stage.

Rewrote the function documentation in Javadoc style comments for the
internal use functions.
2024-01-18 12:18:07 +07:00
Steven R. Loomis
e4e7d9fd27
Merge branch 'feat/core/10319-escaping-you-epic-ldml' into feat/developer/10319-remove-old-escape-epic-ldml 2024-01-17 18:49:50 -06:00
Steven R. Loomis
9e828b1369
Merge branch 'master' into feat/core/10319-escaping-you-epic-ldml 2024-01-17 18:49:26 -06:00
Marc Durdin
d2580c6a73
Merge pull request #10258 from keymanapp/feat/developer/10150-control-message-severity
feat(developer): add `-m` parameter to kmc to control message severity
2024-01-16 14:01:27 +11:00
Steven R. Loomis
eb39bba374 chore(developer,core): change sample and test files to use \u{…} 🙀
- #10389 will require this, but at least change the test files

#10319
2024-01-15 17:27:41 -06:00
Steven R. Loomis
c0928e1835
Merge branch 'master' into feat/core/10319-escaping-you-epic-ldml 2024-01-15 16:45:38 -06:00
Steven R. Loomis
e0a2ce22d7 feat(developer): 32 bit escapades 🙀
- basic.txt fixup

#10319
2024-01-15 14:06:50 -06:00
Marc Durdin
779196e1fd
Merge pull request #10364 from keymanapp/feat/developer/10191-warn-on-gestures-downlevel
feat(developer): warn on gesture support for downlevel
2024-01-15 12:34:37 +11:00
Eberhard Beilharz
67cf76362d
Merge pull request #10354 from keymanapp/refactor/linux/10212_set-context
refactor(linux): Use `km_core_state_context_set_if_needed`
2024-01-12 08:54:21 +01:00
Joshua Horton
daba49ec83
Merge pull request #10328 from keymanapp/fix/developer/test-page-model-register
fix(developer): test-page model loading
2024-01-12 14:00:59 +07:00
Marc Durdin
9830f9ea24 refactor(core): use km_core_state_context_clear where possible
Relates to #10365.

Use `km_core_state_context_clear()` instead of `km_core_context_clear()`
as part of eliminating use of `km_core_state_context()`.
2024-01-12 12:05:00 +07:00
Steven R. Loomis
d662f67955 feat(developer,common): all unescaping as \uXXXX 🙀
- update unescaping from \u{…} to \uXXXX in regex
- re-unescape in the string analyzr (empty-compiler.ts) so that we catch PUA etc.
- fix some XML files that had bad DTDs
- common; updates to string util api

#10319
2024-01-11 13:07:26 -06:00
Steven R. Loomis
c49dab2103 feat(core): unscape u 🙀
- update unescaping from \u{…} to \uXXXX

#10319
2024-01-11 11:43:14 -06:00
Marc Durdin
d0aa477ca5 feat(developer): warn on gesture support for downlevel
Fixes #10191.
2024-01-11 15:36:35 +07:00
Marc Durdin
33f0faf4f7
Merge pull request #10323 from keymanapp/fix/developer/10276-new-file-for-2.0-projects
fix(developer): new file support for project 2.0
2024-01-11 18:40:26 +11:00
Marc Durdin
ade94d67ca
Merge pull request #10322 from keymanapp/fix/developer/10315-fill-from-layout-handle-new-file
fix(developer): cleanly handle filling a new osk file from layout
2024-01-11 18:40:14 +11:00
Marc Durdin
a24b672a88 chore(developer): upgrade ngrok package to 5.0 beta 2024-01-11 09:57:32 +07:00
Marc Durdin
c5e3309c9a chore(developer): upgrade ngrok to v3
Fixes #10357.
2024-01-11 09:29:46 +07:00
Marc Durdin
50d248f57d chore(developer): address review comments 2024-01-10 14:25:58 +07:00
Marc Durdin
af5e073b11 chore(developer): fixup reference to kmc-model-info 2024-01-10 14:13:57 +07:00
Joshua A. Horton
3870509465 fix(developer): model should activate instantly if matching keyboard exists when registered 2024-01-08 10:00:07 +07:00
Joshua A. Horton
b4944c7b5a fix(developer): fixes test-page model registration hook 2024-01-08 09:44:37 +07:00
Marc Durdin
070ead74cf fix(developer): new file support for handle project 2.0
Fixes #10276.

Adding new files to a v2.0 project was unsupported. This requires a
little bit of a logic change to the two new File New dialogs:

1. The New File Details dialog does not allow changing from the
   SourcePath of the project.
2. The New File dialog does allow changing to any path. If you select a
   path outside the project path, it will open in a new window.
2024-01-05 14:19:02 +07:00
Marc Durdin
beddf05afa fix(developer): cleanly handle filling a new osk file from layout
Fixes #10315.

When filling from layout, if the .kvks file did not exist, an obscure
error was generated:

    Error: 2908 Error encountered parsing eo_plus.kvks: TypeError: Cannot read properties of null (reading 'byteLength')

Fixed this by checking for file existence before attempting to process,
which then reports a more understandable error of 'file not found'.

Then, needed to tweak the caller in Keyman Developer IDE to remove the
reference to the .kvks file before attempting to build
(chicken-and-egg).
2024-01-05 13:35:43 +07:00
Marc Durdin
84ff0424c3 fix(developer): remove unused tools/customise menu 2024-01-05 12:49:39 +07:00
Steven R. Loomis
8b65010892
Merge pull request #10306 from keymanapp/feat/developer/9121-reject-bad-regex-epic-ldml
feat(developer): escape bad markers 🙀
2024-01-03 11:47:11 -06:00
Steven R. Loomis
54c77e2de9
Merge pull request #10300 from keymanapp/fix/developer/10291-layer-errs-epic-ldml
fix(developer): quell internal error when  a section fails 🙀
2024-01-02 17:05:00 -06:00
Steven R. Loomis
a6151e681b
Merge branch 'chore/core/ldml-test-robust-epic-ldml' into feat/developer/9121-reject-bad-regex-epic-ldml 2024-01-02 17:04:37 -06:00
Marc Durdin
d6b296c5f3 chore(developer): fix typo 2024-01-02 13:01:22 +07:00
Marc Durdin
ee6814c67a
Merge pull request #10218 from keymanapp/chore/developer/10162-honor-prompt-to-upgrade-in-kmc
chore(developer): honor prompt to upgrade in kmc
2024-01-02 15:36:48 +11:00
Marc Durdin
edc950727f
Merge pull request #10208 from keymanapp/feat/developer/9473-kmc-module-api-consolidation
feat(developer): Consolidate public APIs for kmc modules
2024-01-02 15:35:47 +11:00