From f1f7be6910f96a61154d1a2fbb7f6d17f9072543 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Thu, 27 Jun 2024 19:42:19 -0500 Subject: [PATCH] [ldml_test] add experimental/sil/ldml_test - test out LDML keyboards in repo - https://github.com/keymanapp/keyman/issues/10505 --- experimental/sil/ldml_test/.gitignore | 2 + experimental/sil/ldml_test/HISTORY.md | 6 + experimental/sil/ldml_test/LICENSE.md | 21 +++ experimental/sil/ldml_test/README.md | 98 +++++++++++++ experimental/sil/ldml_test/ldml_test.kpj | 8 ++ .../sil/ldml_test/source/ldml_test-test.xml | 93 +++++++++++++ .../sil/ldml_test/source/ldml_test.kps | 71 ++++++++++ .../sil/ldml_test/source/ldml_test.xml | 129 ++++++++++++++++++ experimental/sil/ldml_test/source/readme.htm | 24 ++++ experimental/sil/ldml_test/source/welcome.htm | 26 ++++ 10 files changed, 478 insertions(+) create mode 100644 experimental/sil/ldml_test/.gitignore create mode 100644 experimental/sil/ldml_test/HISTORY.md create mode 100644 experimental/sil/ldml_test/LICENSE.md create mode 100644 experimental/sil/ldml_test/README.md create mode 100644 experimental/sil/ldml_test/ldml_test.kpj create mode 100644 experimental/sil/ldml_test/source/ldml_test-test.xml create mode 100644 experimental/sil/ldml_test/source/ldml_test.kps create mode 100644 experimental/sil/ldml_test/source/ldml_test.xml create mode 100644 experimental/sil/ldml_test/source/readme.htm create mode 100644 experimental/sil/ldml_test/source/welcome.htm diff --git a/experimental/sil/ldml_test/.gitignore b/experimental/sil/ldml_test/.gitignore new file mode 100644 index 0000000000..1c246cea86 --- /dev/null +++ b/experimental/sil/ldml_test/.gitignore @@ -0,0 +1,2 @@ +/build +/*.kpj.user diff --git a/experimental/sil/ldml_test/HISTORY.md b/experimental/sil/ldml_test/HISTORY.md new file mode 100644 index 0000000000..19368fb6b1 --- /dev/null +++ b/experimental/sil/ldml_test/HISTORY.md @@ -0,0 +1,6 @@ +LDML Test Change History +==================== + +1.0.0 (2024-02-14) +---------------- +* Created by Steven R. Loomis diff --git a/experimental/sil/ldml_test/LICENSE.md b/experimental/sil/ldml_test/LICENSE.md new file mode 100644 index 0000000000..e8462b78a1 --- /dev/null +++ b/experimental/sil/ldml_test/LICENSE.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright © 2024 Steven R. Loomis + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/experimental/sil/ldml_test/README.md b/experimental/sil/ldml_test/README.md new file mode 100644 index 0000000000..f05d95dedc --- /dev/null +++ b/experimental/sil/ldml_test/README.md @@ -0,0 +1,98 @@ +LDML Test keyboard +============== + +Description +----------- +Test Keyboard for LDML + + +Trying it Out +------------- + +This section describes how to test the keyboard. For example, typing 1 will produce `1:basic:OK`. Following these steps in order will make sure the keyboard (and the implementation) is working properly. + +Each of the steps produces output ending in `:OK`. You can press enter in between steps to put the output on separate lines. + +### Direct key output + +1. Press: 1 +2. Check: `1:basic:OK` + +### A simple transform + +1. Press: 2 +2. Check: `2:simple_transform:OK` + +### Marker transform + +1. Press: 3 +2. Check: `3:simple_marker:OK` + +### Simple reorder + +1. Press: 4 +2. Check: `4:simple_reorder:OK` + +### Variable substitution + +1. Press: 5 +2. Check: `5:simple_vars:OK` + +### Mapped variable substitution + +1. Press: 6 +2. Check: `6:map_var:OK` + +### Uset subtitution + +1. Press: 7 +2. Check: `7:simple_uset:OK` + +### Context + +1. Type or paste in: `ABC` and position the cursor after that text +2. Type: 8 +3. Check: `8:ctxt:OK` + +### Non-BMP Context + +1. Paste in: `𐓏` and position the cursor after that text +2. Type: 8 +3. Check: `8:ctxt:OK` + +### Two-part Non-BMP Context + +1. Paste in: `𐒻` and position the cursor after that text +2. Type: Shift8 +3. Type: 8 +4. Check: `8:ctxt:OK` + +### Two-part Marker Test + +1. Type: 9 (you will see FAIL temporarily, but continue to the next step) +2. Type: Shift9 +3. Check: `9:split_marker:OK` + + +Links +----- +Keyboard Homepage: https://keyman.com/keyboards/ldml_test + +Copyright +--------- +See [LICENSE.md](LICENSE.md) + +Supported Platforms +------------------- + * Windows + * macOS + * Linux + * Web + * iPhone + * iPad + * Android phone + * Android tablet + * Mobile devices + * Desktop devices + * Tablet devices + diff --git a/experimental/sil/ldml_test/ldml_test.kpj b/experimental/sil/ldml_test/ldml_test.kpj new file mode 100644 index 0000000000..7ed1ac72df --- /dev/null +++ b/experimental/sil/ldml_test/ldml_test.kpj @@ -0,0 +1,8 @@ + + + + 2.0 + True + True + + diff --git a/experimental/sil/ldml_test/source/ldml_test-test.xml b/experimental/sil/ldml_test/source/ldml_test-test.xml new file mode 100644 index 0000000000..2c08741232 --- /dev/null +++ b/experimental/sil/ldml_test/source/ldml_test-test.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experimental/sil/ldml_test/source/ldml_test.kps b/experimental/sil/ldml_test/source/ldml_test.kps new file mode 100644 index 0000000000..8ea3cc4bb0 --- /dev/null +++ b/experimental/sil/ldml_test/source/ldml_test.kps @@ -0,0 +1,71 @@ + + + + 17.0.267.0 + 7.0 + + + + readme.htm + ..\LICENSE.md + + + + + + + + + + LDML Test + Copyright © Steven R. Loomis + Steven R. Loomis + Test Keyboard + + + + + ..\build\ldml_test.kmx + + 0 + .kmx + + + ..\build\ldml_test.kvk + + 0 + .kvk + + + welcome.htm + + 0 + .htm + + + readme.htm + + 0 + .htm + + + ..\LICENSE.md + + 0 + .md + + + + + LDML Test + ldml_test + 1.0.0 + + English + + + + + + + diff --git a/experimental/sil/ldml_test/source/ldml_test.xml b/experimental/sil/ldml_test/source/ldml_test.xml new file mode 100644 index 0000000000..2e93fe7f99 --- /dev/null +++ b/experimental/sil/ldml_test/source/ldml_test.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/experimental/sil/ldml_test/source/readme.htm b/experimental/sil/ldml_test/source/readme.htm new file mode 100644 index 0000000000..193e77c91d --- /dev/null +++ b/experimental/sil/ldml_test/source/readme.htm @@ -0,0 +1,24 @@ + + + + + + LDML Test + + + + +

LDML Test

+ +

+ Test Keyboard +

+ +

Copyright © Steven R. Loomis

+ + + diff --git a/experimental/sil/ldml_test/source/welcome.htm b/experimental/sil/ldml_test/source/welcome.htm new file mode 100644 index 0000000000..2e0ad032e8 --- /dev/null +++ b/experimental/sil/ldml_test/source/welcome.htm @@ -0,0 +1,26 @@ + + + + + + Start Using LDML Test + + + + +

Start Using LDML Test

+ +

+ Test Keyboard +

+ +

Keyboard Layout

+ + + + + \ No newline at end of file