Commit graph

3752 commits

Author SHA1 Message Date
Marc Durdin
9cf09a5140 refactor(common): move kpj-related files into developer-utils
Relates to #9665.
2024-06-12 16:31:52 +07:00
Marc Durdin
4ed88d8fa6 refactor(developer): move developer-utils files into src/ and sub-folder
In preparation for moving source file types into developer-utils, move
the existing developer-utils files into src/ and src/utils subfolders.
2024-06-12 16:31:50 +07:00
Marc Durdin
2dcc8fb948 fix(developer): prevent non-BMP characters in key part of rule
Currently, keys must be a UTF-16 code unit or a virtual key. Non-BMP
characters are unsupported. Technically, there is space available in the
.kmx `COMP_KEY` structure to accommodate UTF-32 codepoints, from
kmx_file.h:

    KMX_WORD_unaligned Key;
    KMX_WORD_unaligned _reserved;

However, the utility of this is almost nil, as it is very unlikely we
will encounter base keyboards (for mnemonic layouts) that generate any
characters outside the BMP, so there is little value in adding support
for this at this time.

The compiler will generate an error if this is encountered.

Fixes: #11643
2024-06-12 16:23:32 +07:00
Meng-Heng
2d6d007f74 docs(developer): context help in package-editor and put the context help in their tabs
Fixes a portion of #2131:
2024-06-12 15:35:17 +07:00
Marc Durdin
074c8f7dac fix(developer): show message if no more platforms to add to touch layout editor
Fixes: #11646
Fixes: KEYMAN-DEVELOPER-1X2
2024-06-12 14:52:38 +07:00
MengHeng
4116f73ecc
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-06-12 11:50:07 +07:00
Meng-Heng
be78b58df1 docs(developer): context help in keyboard-editor section
Fixes: #2131
2024-06-11 14:36:19 +07:00
Dr Mark C. Sinclair
c5423201b5 chore(developer): remove unnecessary whitespace 2024-06-10 10:48:53 +01:00
Dr Mark C. Sinclair
92dd72f5fd chore(developer): change includes to use forward slashes (see #11749) 2024-06-10 10:17:02 +01:00
Dr Mark C. Sinclair
13df1cdd33 chore(developer): edits for clarity and visibility, incl add token local variable to GetXStringImpl test 2024-06-10 09:49:50 +01:00
Joshua A. Horton
2340048a27 fix(developer): run compiled version of dev-server's unit test 2024-06-10 14:39:08 +07:00
Joshua A. Horton
e87395038d chore(common): Merge branch 'fix/common/update-subpackage-ts-entries' into chore/common/remove-ts-node 2024-06-10 14:35:22 +07:00
Joshua A. Horton
813d39b12e chore(common): Merge branch 'fix/developer/include-path-slashes' into fix/common/update-subpackage-ts-entries 2024-06-10 14:34:06 +07:00
Joshua A. Horton
fb67d1ddf5 fix(developer): fix include paths
Backslashes in paths are Windows-only, may have caused recent *nix CI-build failures.
2024-06-10 13:58:17 +07:00
Joshua A. Horton
d07fa7e953 chore(common): eliminate ts-node ref from most subpackages 2024-06-10 10:07:58 +07:00
Joshua A. Horton
cb9ac807e0 change(developer): precompile create-override-script-regexp.ts 2024-06-10 09:43:56 +07:00
Joshua A. Horton
e527317d3a fix(common): remove subpackge entries for older TS version 2024-06-10 09:14:03 +07:00
Dr Mark C. Sinclair
4d90753e0d chore(developer): remove left over merge conflict markers 2024-06-08 15:28:16 +01:00
Dr Mark C. Sinclair
4995f56ad6 chore(developer): Merge branch 'master' into test/developer/kmcmplib-compiler-unit-tests-2 2024-06-08 15:25:35 +01:00
Dr Mark C. Sinclair
d7e071f66d chore(developer): Merge branch 'master' into fix/developer/refactor-kmcmplib-compiler-messages-to-use-map 2024-06-08 15:08:35 +01:00
Dr Mark C. Sinclair
6ffbe9a80a chore(developer): Merge branch 'master' into test/developer/kmcmplib-compiler-unit-tests
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2024-06-08 13:26:19 +01:00
Dr Mark C. Sinclair
3ad704d891 chore(developer): add comment on deadkeys 2024-06-08 13:11:39 +01:00
Dr Mark C. Sinclair
f1ad109b6f chore(developer): add comment on deadkeys 2024-06-08 13:09:47 +01:00
Dr Mark C. Sinclair
1912f4a103 chore(developer): replace type int literals in GetXStringImpl test names with char names 2024-06-08 13:00:09 +01:00
Dr Mark C. Sinclair
467b768ef0 chore(developer): replace type int literals in GetXStringImpl test names with char names 2024-06-08 12:50:50 +01:00
Dr Mark C. Sinclair
54d82b5052 chore(developer): add initFileKeyboard() method 2024-06-08 12:38:21 +01:00
Dr Mark C. Sinclair
cdb71f4329 chore(developer): add initFileKeyboard() method 2024-06-08 12:36:11 +01:00
Dr Mark C. Sinclair
5a06b28afb chore(developer): generalise googletest line in .gitignore 2024-06-08 12:30:05 +01:00
Dr Mark C. Sinclair
c1d5d45b8f chore(developer): generalise googletest line in .gitignore 2024-06-08 12:20:58 +01:00
Marc Durdin
c6d298d737
Merge pull request #11737 from keymanapp/feat/developer/support-language-reference-in-context-help
feat(developer): support language reference in context help
2024-06-08 10:46:47 +10:00
Marc Durdin
577986bb50
Merge pull request #11523 from keymanapp/chore/common/8399-cleanup-meson-warnings
chore(common): cleanup meson deprecations and warnings
2024-06-08 10:46:41 +10:00
Marc Durdin
5cdad488aa
test(developer): add extra email address tests
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2024-06-08 10:46:31 +10:00
Marc Durdin
eb0fff2363
Merge pull request #11717 from keymanapp/fix/developer/11715-prevent-two-touch-layout-editors-opening-for-same-file
fix(developer): prevent two touch layout editors opening for the same file
2024-06-08 10:44:31 +10:00
Dr Mark C. Sinclair
9f91713492 chore(developer): remove unnecessary initialisation from GetXStringImpl_type4 test 2024-06-07 20:25:09 +01:00
Dr Mark C. Sinclair
2ad8a76a9d chore(developer): delete commented out code 2024-06-07 19:04:26 +01:00
Dr Mark C. Sinclair
810beabb8a chore(developer): fix heap corruption by removing unnecessary delete 2024-06-07 19:01:44 +01:00
Dr Mark C. Sinclair
df226db36a chore(developer): add additional use of fileKeyboard fixture 2024-06-07 18:53:54 +01:00
Dr Mark C. Sinclair
a679d5bca6 chore(developer): add fileKeyboard fixture and initFileKeyboard() method 2024-06-07 18:37:53 +01:00
Dr Mark C. Sinclair
f4dabd1ccc chore(developer): add fileKeyboard fixture and initFileKeyboard() method 2024-06-07 18:14:32 +01:00
Dr Mark C. Sinclair
e3b18d3800 chore(developer): add initGlobals() method 2024-06-07 12:09:55 +01:00
Dr Mark C. Sinclair
5492a1670a chore(developer): add initGlobals() method 2024-06-07 11:57:51 +01:00
Dr Mark C. Sinclair
8dde071b89 chore(developer): moved CompMsg.cpp refactor to fix #11738 2024-06-07 11:46:49 +01:00
Dr Mark C. Sinclair
f5a7d73c73 chore(developer): moved CompMsg.cpp refactor to fix #11738 2024-06-07 11:26:26 +01:00
Dr Mark C. Sinclair
f473b4ff0d fix(developer): googletest for compiler messages, plus refactor of CompMsg.cpp to use map 2024-06-07 11:03:01 +01:00
Marc Durdin
43e63246d8
Merge branch 'master' into fix/developer/11362-verify-email-addresses-in-package 2024-06-07 17:59:10 +10:00
Marc Durdin
1a3828d6c2 feat(developer): support language reference in context help
Adds support for `<LanguageReference Name='keyword'>` in
contexthelp.xml.
2024-06-07 14:55:51 +07:00
Marc Durdin
e5638cef0d
Merge pull request #11711 from keymanapp/fix/developer/11710-handle-encoding-errors-when-loading-wordlists
fix(developer): handle encoding errors when loading wordlists
2024-06-07 16:40:20 +10:00
Marc Durdin
49b0fd2388
Merge pull request #11707 from keymanapp/chore/developer/11706-add-extra-logging-for-backspace-assertion
chore(developer): add extra logging for assertion failure when pressing backspace in debugger
2024-06-07 16:39:58 +10:00
Marc Durdin
2506ff7c01 fix(developer): verify email addresses in .kps and .keyboard_info
Add verification of email address formats to kmc-package,
kmc-keyboard-info, and kmc-model-info. Add corresponding unit tests for
kmc-package and kmc-keyboard-info (kmc-model-info unit tests will be a
later addition). Uses AJV's email validation regex, as we rely on AJV
for schema compliance tests.

Fixes: #11362
Fixes: KEYMAN-DEVELOPER-1XE
2024-06-07 13:30:21 +07:00
Marc Durdin
1cc679bf8f
Merge branch 'master' into fix/developer/11719-handle-missing-osk-when-importing-windows-keyboard 2024-06-07 09:26:38 +07:00