mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-16 19:07:33 +00:00
Merge branch 'master' into chore/core/12497-remove-km_core_keyboard_load
This commit is contained in:
commit
fe65eb2288
20 changed files with 23 additions and 16 deletions
|
|
@ -1,5 +1,12 @@
|
|||
# Keyman Version History
|
||||
|
||||
## 18.0.152 alpha 2024-12-04
|
||||
|
||||
* refactor(mac): pass kmx data blob to keyman core instead of file path (#12760)
|
||||
* fix(developer): honour provided script when checking for matching scripts (#12768)
|
||||
* chore(common): rename test files (#12709)
|
||||
* fix(common): rename test file (#12770)
|
||||
|
||||
## 18.0.151 alpha 2024-12-03
|
||||
|
||||
* feat(android): Enhance how ENTER key is handled for FV and KMSample2 (#12745)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
18.0.152
|
||||
18.0.153
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
module.exports = {
|
||||
parserOptions: {
|
||||
project: ["./tsconfig.json", "./test/tsconfig.json"],
|
||||
project: ["./tsconfig.json", "./tests/tsconfig.json"],
|
||||
},
|
||||
ignorePatterns: [
|
||||
".*/*",
|
||||
"build/*",
|
||||
"coverage/*",
|
||||
"node_modules/*",
|
||||
"test/fixtures/*",
|
||||
"tests/fixtures/*",
|
||||
"tools/*",
|
||||
"src/schemas/*"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ function do_test() {
|
|||
fi
|
||||
|
||||
eslint .
|
||||
tsc --build test
|
||||
tsc --build tests
|
||||
|
||||
readonly C8_THRESHOLD=60
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
"build": "tsc -b",
|
||||
"build:schema": "ajv compile",
|
||||
"lint": "eslint .",
|
||||
"test": "npm run lint && cd test && tsc -b && cd .. && c8 --skip-full --reporter=lcov --reporter=text mocha"
|
||||
"test": "npm run lint && cd tests && tsc -b && cd .. && c8 --skip-full --reporter=lcov --reporter=text mocha"
|
||||
},
|
||||
"author": "Marc Durdin <marc@keyman.com> (https://github.com/mcdurdin)",
|
||||
"license": "MIT",
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
"typescript": "^5.4.5"
|
||||
},
|
||||
"mocha": {
|
||||
"spec": "build/test/**/test-*.js",
|
||||
"spec": "build/tests/**/*.tests.js",
|
||||
"require": [
|
||||
"source-map-support/register"
|
||||
]
|
||||
|
|
@ -76,7 +76,7 @@
|
|||
"src/keyman-touch-layout/keyman-touch-layout-file-writer.ts",
|
||||
"src/osk/osk.ts",
|
||||
"src/schemas/*",
|
||||
"test/"
|
||||
"tests/"
|
||||
]
|
||||
},
|
||||
"sideEffects": false
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ import { fileURLToPath } from "url";
|
|||
* @param components One or more path components.
|
||||
*/
|
||||
export function makePathToFixture(...components: string[]): string {
|
||||
return fileURLToPath(new URL(path.join('..', '..', '..', 'test', 'fixtures', ...components), import.meta.url));
|
||||
return fileURLToPath(new URL(path.join('..', '..', '..', 'tests', 'fixtures', ...components), import.meta.url));
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@ import * as fs from 'fs';
|
|||
import 'mocha';
|
||||
import { makePathToFixture } from '../helpers/index.js';
|
||||
import KvkFileReader from "../../src/kvk/kvk-file-reader.js";
|
||||
import { verify_balochi_inpage, verify_khmer_angkor } from './test-kvk-utils.js';
|
||||
import { verify_balochi_inpage, verify_khmer_angkor } from './kvk-utils.tests.js';
|
||||
|
||||
describe('kvk-file-reader', function () {
|
||||
it('kvk-file-reader should read a valid file', function() {
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Keyman is copyright (C) SIL Global. MIT License.
|
||||
*
|
||||
*
|
||||
* Created by Dr Mark C. Sinclair on 2024-11-29
|
||||
*
|
||||
*
|
||||
* Test code for unicodeset-parser-api.ts
|
||||
*/
|
||||
|
||||
|
|
@ -4,13 +4,12 @@
|
|||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
"rootDirs": ["./", "../src/"],
|
||||
"outDir": "../build/test",
|
||||
"outDir": "../build/tests",
|
||||
"baseUrl": ".",
|
||||
"strictNullChecks": false, // TODO: get rid of this as some point
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"include": [
|
||||
"**/test-*.ts",
|
||||
"**/*.tests.ts",
|
||||
"./helpers/*.ts",
|
||||
],
|
||||
|
|
@ -575,11 +575,12 @@ export class KeyboardInfoCompiler implements KeymanCompiler {
|
|||
''
|
||||
);
|
||||
|
||||
const resolvedScript = locale.script ?? langtagsByTag[bcp47]?.script ?? langtagsByTag[locale.language]?.script ?? undefined;
|
||||
if(commonScript === null) {
|
||||
commonScript = tag?.script ?? undefined;
|
||||
commonScript = resolvedScript;
|
||||
} else {
|
||||
if(tag?.script !== commonScript) {
|
||||
this.callbacks.reportMessage(KeyboardInfoCompilerMessages.Hint_ScriptDoesNotMatch({commonScript, bcp47, script: tag?.script}))
|
||||
if(resolvedScript !== commonScript) {
|
||||
this.callbacks.reportMessage(KeyboardInfoCompilerMessages.Hint_ScriptDoesNotMatch({commonScript, bcp47, script: resolvedScript}))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue