Marc Durdin
da2ad21674
[Common] Support for g++ for debug macros
2018-11-14 06:07:44 +11:00
Marc Durdin
53d24d0850
[Common] Convert from wchar_t to km_kbp_cp, stage 1
2018-11-14 05:52:18 +11:00
glasseyes
6ef3996018
Merge branch 'master' into linux-ibus-keyman
2018-11-13 16:52:00 +07:00
Daniel Glassey
adf5451ddb
[KPAPI] put punctuation in right place ( #1315 )
...
* put punctuation in right place
* comment array rows with hex ranges
2018-11-13 16:40:03 +07:00
Marc Durdin
d9d5824b17
[Common] Remove unused includes
2018-11-13 14:15:40 +11:00
glasseyes
503cdea611
Merge branch 'master' into linux-ibus-keyman
2018-11-13 08:58:04 +07:00
Marc Durdin
c3b301cc6a
[Common] More refactoring into classes
2018-11-13 11:58:21 +11:00
Marc Durdin
73b9d95bbe
[Common] First round of class refactor
2018-11-13 11:09:08 +11:00
Marc Durdin
28a8911a44
[Common] Rename files in preparation for class structuring
2018-11-13 10:36:14 +11:00
Marc Durdin
855e72c14c
[Common] Eliminate file-local global variables
2018-11-13 10:09:33 +11:00
Marc Durdin
e7ccd49117
[Common] Add deadkey tests, fix backspace+deadkey output, small refactors
2018-11-13 10:02:15 +11:00
glasseyes
97e618ba71
Merge branch 'master' into linux-ibus-keyman
2018-11-12 18:42:38 +07:00
glasseyes
899a9ae1e6
dispose things in tests that were memleaks
2018-11-12 15:55:28 +07:00
Marc Durdin
9ca7bab5f9
[Common] Final checks
2018-11-12 19:23:54 +11:00
Marc Durdin
1ab04f681a
[Common] Code Review updates, some minor changes to API, mostly comments and tests; one bug fix
2018-11-12 19:12:59 +11:00
Joshua A. Horton
5cf8b136cb
Adds infrastructure for browser-based testing.
2018-11-12 09:34:13 +07:00
Joshua A. Horton
67a6113b59
Basic test script and rigging added for headless JS tests.
2018-11-12 08:36:41 +07:00
Marc Durdin
cb66bd573d
[Common] Complete initial test cases and fix ordering bug for deleting deadkeys from context
2018-11-10 07:12:55 +11:00
Eddie Antonio Santos
a72e593f6c
Replace Ava with Mocha/Chai.
2018-11-09 11:05:25 -07:00
glasseyes
60619dc8de
add km_kbp_context_items_from_utf8
...
avoids unnecessary conversions and string duplication
utf8codec private vars needed in cpp for
linker to find them?
2018-11-09 16:50:52 +07:00
Marc Durdin
1aea5cdd9b
[Common] Test cases for kmxtest
2018-11-09 16:33:10 +11:00
Marc Durdin
a36c6b312e
[Common] Remove <windows.h> references and add typedefs, part 1
2018-11-09 06:21:32 +11:00
Marc Durdin
4a1ec013be
[Common] More cleanup
2018-11-09 05:26:07 +11:00
glasseyes
2ae42fdd18
refer to the library in the pkg-config file
2018-11-07 10:27:59 +07:00
Marc Durdin
206caa752e
[Common] More cleanup
2018-11-07 11:19:22 +11:00
Marc Durdin
8141d22752
[Common] Remove unused code and cleanup debug logging
2018-11-07 11:01:40 +11:00
Tim Eves
6e09aa4a06
Add comments for namespace closing braces that are far from their opening statements
2018-11-07 05:15:25 +07:00
Tim Eves
fe4beb0197
Make sure to convert path to utf8 for json output of folder name.
2018-11-07 05:04:22 +07:00
Tim Eves
61f90b172e
Fix path handling so it's wchar_t const * on windows and char const * on linux
2018-11-07 04:49:56 +07:00
Tim Eves
689e21856b
Explicitly declare test json doc strings as utf8 for Windows compiler
2018-11-07 04:30:09 +07:00
Tim Eves
4afe030627
Add number USVs erased to BACK action item
...
Possible but difficult to get from state object if not provided. IBus
will use this.
2018-11-07 04:26:49 +07:00
Tim Eves
d70fe629e8
Fix state API implmentation to use new options, keyboard and context objects.
2018-11-07 04:25:28 +07:00
Tim Eves
b27fc67259
Rework keyboard API and add more robust checking.
2018-11-07 03:04:45 +07:00
Tim Eves
242105216a
Rename options_set -> options and option -> option_item
2018-11-07 02:13:40 +07:00
Tim Eves
9cb22221c6
Rework options API per review
...
Additionally refactored option.hpp into option.hpp & option.cpp.
lookup now returns just the value since scope and key are fully
specified in the arguments, but updates and SAVE/RESET action items
still provide scope, key & value.
2018-11-07 01:37:32 +07:00
Marc Durdin
140869d28f
[Common] Continuing kmxtest refactor
2018-11-06 21:16:38 +11:00
Marc Durdin
3d4aff5d62
[Common] Continue refactoring, add support for supplying context from command line
2018-11-06 20:24:43 +11:00
Tim Eves
93c76c14df
Move headers into include/keyman from include/
...
Necessary to allow keyboardprocessor.h to refer to auxillary headers as
<keyboard/header.h>
2018-11-06 16:19:14 +07:00
Marc Durdin
e4deaacd85
[Common] First test framework for kmx processor
2018-11-06 19:30:09 +11:00
Tim Eves
333ef283c8
Make constext API more consistent and robust with use of km_kbp_status.
...
In addition:
Add asserts and checks to better validate the inputs.
Add documentation describing design patterns behind differet types of
call.
2018-11-06 14:53:33 +07:00
Eddie Antonio Santos
b8b8e57fd2
Make the build script executable.
2018-11-01 13:30:03 -06:00
Joshua A. Horton
e875ba022b
Created an initial build script for use in common/predictive-text
2018-11-01 08:04:06 +07:00
Joshua A. Horton
e83b5392d2
Merge branch 'lmlayer-init' into lmlayer-CI
2018-11-01 07:44:21 +07:00
Eddie Antonio Santos
4d4bd6fed8
Fix minor compilation issues.
...
* Add (...args: any[]) to a parameter list
* Remove hack for Node's `global` object.
* Add --lib WebWorker to TSC's options
2018-10-31 09:45:42 -06:00
Tim Eves
4d4bb125b6
Add the last of the kmnkbd unit tests for state and engine api.
2018-10-31 16:05:17 +07:00
Tim Eves
6f5fd7af45
Fix shift state to index calculation in dummy keyboard processor.
2018-10-31 16:04:37 +07:00
Tim Eves
326b30c05a
Stop compiler coercing utf8 pointers into bools when json printing.
2018-10-31 16:03:36 +07:00
Tim Eves
a70ce3c2ba
Ensure we include the null when calculating size if state_to_json
2018-10-31 16:02:38 +07:00
Tim Eves
5ac0c3ff9b
Ensure that the keyboard object has an empty option_set instead of null
...
Make sure the default_options attribute points to something, so we don't
crash the json debug output.
2018-10-31 16:01:48 +07:00
Joshua A. Horton
c5dd0bab9b
Started work on a basic TypeScript compilation configuration.
2018-10-31 14:01:32 +07:00