Skip to content

Commit 0cd3bd6

Browse files
authored
Merge pull request #9563 from keymanapp/chore/merge-master-into-package-metadata
chore: merge master into package-metadata 🎺
2 parents ff38c6d + 38b8cf7 commit 0cd3bd6

File tree

76 files changed

+2956
-755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2956
-755
lines changed

HISTORY.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
# Keyman Version History
22

3+
## 17.0.173 alpha 2023-09-13
4+
5+
* chore(common): Update to Unicode 15.1 (#9555)
6+
7+
## 17.0.172 alpha 2023-09-12
8+
9+
* fix(linux): Prevent exception if neither USER, LOGNAME nor SUDO_USER set (#9543)
10+
* chore(linux): Exclude environment.sh from build (#9553)
11+
12+
## 17.0.171 alpha 2023-09-01
13+
14+
* chore(linux): Add `clean` target to `rules` (#9531)
15+
16+
## 17.0.170 alpha 2023-08-31
17+
18+
* fix(common): builder_parse broke on option parameters (#9489)
19+
* docs(linux): Explicitly specify emscripten version (#9527)
20+
21+
## 17.0.169 alpha 2023-08-30
22+
23+
* fix(linux): Fix exception in km-kvk2ldml (#9523)
24+
25+
## 17.0.168 alpha 2023-08-29
26+
27+
* refactor(linux): Fix warning (#9513)
28+
29+
## 17.0.167 alpha 2023-08-25
30+
31+
* feat(core): implement mapped set mapping (#9504)
32+
* feat(resources): add pcm keyboard (#9508)
33+
34+
## 17.0.166 alpha 2023-08-24
35+
36+
* chore(common): Update crowdin strings for French (#9505)
37+
38+
## 17.0.165 alpha 2023-08-23
39+
40+
* feat(core): add display=id (#9484)
41+
42+
## 17.0.164 alpha 2023-08-22
43+
44+
* fix(common): don't crash on illegal unicodesets (#9492)
45+
46+
## 17.0.163 alpha 2023-08-21
47+
48+
* chore(web): Update keymanweb-osk.ttf to v. 3.0 (#9469)
49+
50+
## 17.0.162 alpha 2023-08-18
51+
52+
* (#9483)
53+
* fix(windows): allow QR share box to grow to edge of default configuration parent window (#9472)
54+
* chore(resources): update CLDR to post-PRI (#9482)
55+
356
## 17.0.161 alpha 2023-08-16
457

558
* (#9440)

VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17.0.162
1+
17.0.174

android/KMAPro/kMAPro/src/main/res/values-fr-rFR/strings.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3+
<!-- app_name removed in 16.0 beta. Set in build.gradle -->
34
<!-- Context: Menu Action -->
45
<string name="action_share" comment="Menu action to send text content to another app">Partager</string>
56
<!-- Context: Menu Action -->
@@ -25,13 +26,16 @@
2526
<!-- Context: Textfield prompt (&#8230; is the ellipsis character "...") -->
2627
<string name="textview_hint" comment="Prompt to start typing">Commencez à taper ici&#8230;</string>
2728
<!-- Context: Splash screen (version/copyright info currently disabled -->
29+
<string name="splash_blank" translatable="false" comment="Blank text while version info on splash page is disabled"></string>
2830
<!-- Context: Splash screen (version/copyright info currently disabled -->
2931
<!-- Context: Text Size dialog -->
3032
<string name="text_size" comment="Current text size (number)">Taille du texte : %1$d</string>
3133
<!-- Context: Text Size dialog -->
3234
<string name="ic_text_size_up" comment="Make text bigger">Augmenter la taille du texte</string>
3335
<!-- Context: Text Size dialog -->
3436
<string name="ic_text_size_down" comment="Make text smaller">Diminuer la taille du texte</string>
37+
<!-- Context: Text Size dialog -->
38+
<string name="ic_text_size_slider" comment="Adjust text size">Text size slider</string>
3539
<!-- Context: Clear Text dialog -->
3640
<string name="all_text_will_be_cleared" comment="Erase all the text">\nTout le texte sera effacé\n</string>
3741
<!-- Context: Get Started menu -->
@@ -82,7 +86,7 @@
8286
<!-- Context: Keyman Settings menu / Spacebar caption hint -->
8387
<string name="spacebar_caption_hint_blank" comment="Spacebar caption hint - blank">Ne pas afficher la légende sur la barre d\'espace</string>
8488
<!-- Context: Keyman Settings menu / Haptic feedback -->
85-
<string name="haptic_feedback" comment="haptic feedback on key press">Vibrate when typing</string>
89+
<string name="haptic_feedback" comment="haptic feedback on key press">Vibrer lors de la saisie</string>
8690
<!-- Context: Keyman Settings menu -->
8791
<string name="show_banner" comment="text suggestions banner">Toujours afficher la bannière</string>
8892
<!-- Context: Keyman Settings menu -->
@@ -154,7 +158,7 @@
154158
<!-- Context: KMP Package strings -->
155159
<string name="invalid_metadata" comment="kmp.json metadata file is invalid or missing in package">Métadonnées non valides/manquantes dans le package</string>
156160
<!-- Context: KMP Package strings -->
157-
<string name="minimum_keyboard_version_not_supported" comment="Notification when keyboard has functionality not supported by current Keyman"> Keyboard requires a newer version of Keyman</string>
161+
<string name="minimum_keyboard_version_not_supported" comment="Notification when keyboard has functionality not supported by current Keyman"> Le clavier nécessite une version plus récente de Keyman</string>
158162
<!-- Context: anywhere -->
159-
<string name="unable_to_open_browser" comment="Notification when a browser activity cannot be launched">Unable to launch web browser</string>
163+
<string name="unable_to_open_browser" comment="Notification when a browser activity cannot be launched">Impossible de lancer le navigateur web</string>
160164
</resources>

android/KMEA/app/src/main/res/values-fr-rFR/strings.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<!-- Context: Button label -->
4646
<string name="label_update" comment="Dialog button to update a resource">Mise à jour</string>
4747
<!-- Context: No internet for updates -->
48-
<string name="no_internet_connection" comment="Internet connection missing">No internet connection</string>
48+
<string name="no_internet_connection" comment="Internet connection missing">Aucune connexion internet</string>
4949
<!-- Context: Keyboard Updates -->
5050
<string name="cannot_connect" comment="Error message when network connection fails">Impossible de se connecter au serveur Keyman !</string>
5151
<!-- Context: Keyboard Updates -->
@@ -84,7 +84,7 @@
8484
<string name="fatal_keyboard_error_short" comment="Error in keyboard (keyboard ID::packageID for language)."> Erreur dans le clavier %1$s:%2$s pour la langue %3$s.</string>
8585
<!-- Context: Query for associated dictionary -->
8686
<string name="query_associated_model" comment="Check if there's an available dictionary to download">Vérification du dictionnaire associé à télécharger</string>
87-
<string name="cannot_query_associated_model" comment="Cannot reach server to check if there's an available dictionary to download"> Cannot connect to Keyman server to check for associated dictionary to download</string>
87+
<string name="cannot_query_associated_model" comment="Cannot reach server to check if there's an available dictionary to download"> Impossible de se connecter au serveur Keyman pour chercher un dictionnaire à télécharger</string>
8888
<!-- Context: Model Updates -->
8989
<string name="confirm_download_model" comment="Confirmation to download a dictionary update">Voulez-vous télécharger la dernière version de ce dictionnaire ?</string>
9090
<!-- Context: No associated dictionary found -->
@@ -128,11 +128,11 @@
128128
<!-- Context: Model Info -->
129129
<string name="confirm_delete_model" comment="Confirmation to delete a dictionary">Voulez-vous supprimer ce dictionnaire ?</string>
130130
<!-- Context: Model Deleted -->
131-
<string name="model_deleted" comment="Notification when a dictionary is deleted">Dictionary deleted</string>
131+
<string name="model_deleted" comment="Notification when a dictionary is deleted">Dictionnaire supprimé</string>
132132
<!-- Context: Language Settings Keyboard install strings -->
133133
<string name="keyboard_install_toast" comment="Notification when a keyboard is installed">Clavier %1$s installé</string>
134134
<!-- Context: Language Settings Keyboard uninstall strings -->
135-
<string name="keyboard_deleted_toast" comment="Notification when a keyboard is deleted">Keyboard deleted</string>
135+
<string name="keyboard_deleted_toast" comment="Notification when a keyboard is deleted">Clavier supprimé</string>
136136
<!-- Context: Language Settings menu strings -->
137137
<string name="enable_corrections" comment="Enable corrections from the suggestion banner">Activer les corrections</string>
138138
<!-- Context: Language Settings menu strings -->
@@ -145,7 +145,7 @@
145145
</plurals>
146146
<!-- Context: Language Settings menu substring - Check for available dictionary -->
147147
<string name="check_available_model" comment="Check for available dictionary">Vérifier les dictionnaires disponibles</string>
148-
<string name="check_model_online" comment="Check for dictionaries online">Check for dictionaries online</string>
148+
<string name="check_model_online" comment="Check for dictionaries online">Obtenir des dictionnaires en ligne</string>
149149
<!-- Context: Language Settings menu strings -->
150150
<string name="model_info_header" comment="Dictionary name">Dictionnaire : %1$s</string>
151151
<!-- Context: Language Settings menu strings -->
@@ -168,5 +168,5 @@
168168
<!-- Context: Other strings -->
169169
<string name="help_bubble_text">Appuyez ici pour changer de clavier</string>
170170
<!-- Context: anywhere -->
171-
<string name="unable_to_open_browser" comment="Notification when a browser activity cannot be launched">Unable to launch web browser</string>
171+
<string name="unable_to_open_browser" comment="Notification when a browser activity cannot be launched">Impossible de lancer le navigateur web</string>
172172
</resources>
4.12 KB
Binary file not shown.

android/Tests/KeyboardHarness/app/src/main/java/com/keyman/android/tests/keyboardHarness/MainActivity.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,20 @@ protected void onCreate(Bundle savedInstanceState) {
9595
KMManager.KMDefault_KeyboardFont);
9696
KMManager.addKeyboard(this, finalKBInfo);
9797

98+
// Issue #9469 Verify special characters in keyamnweb-osk.ttf keyboard
99+
Keyboard specialKBInfo = new Keyboard(
100+
"test9469",
101+
"test9469",
102+
"test9469 Keyboard",
103+
"en",
104+
"English",
105+
"1.0",
106+
"",
107+
"",
108+
true,
109+
KMManager.KMDefault_KeyboardFont,
110+
KMManager.KMDefault_KeyboardFont);
111+
KMManager.addKeyboard(this, specialKBInfo);
98112
}
99113

100114
@Override

common/web/types/src/kmx/kmx-plus-builder/build-disp.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { BUILDER_SECTION } from './builder-section.js';
1212
*/
1313
interface BUILDER_DISP_ITEM {
1414
to: BUILDER_STR_REF;
15+
id: BUILDER_STR_REF;
1516
display: BUILDER_STR_REF;
1617
};
1718

@@ -38,6 +39,7 @@ export function build_disp(kmxplus: KMXPlusData, sect_strs: BUILDER_STRS): BUILD
3839
for(let item of kmxplus.disp.disps) {
3940
disp.items.push({
4041
to: build_strs_index(sect_strs, item.to),
42+
id: build_strs_index(sect_strs, item.id),
4143
display: build_strs_index(sect_strs, item.display),
4244
});
4345
}

common/web/types/src/kmx/kmx-plus.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,10 @@ export class VarsItem extends Section {
320320
export class UnicodeSetItem extends VarsItem {
321321
constructor(id: string, value: string, sections: DependencySections, usetparser: UnicodeSetParser) {
322322
super(id, value, sections);
323-
// TODO-LDML: err on max buffer size
324323
const needRanges = sections.usetparser.sizeUnicodeSet(value);
325-
this.unicodeSet = sections.usetparser.parseUnicodeSet(value, needRanges);
326-
327-
// _unicodeSet may be null, indicating this is invalid.
328-
// A message will have been set in that case.
324+
if (needRanges >= 0) {
325+
this.unicodeSet = sections.usetparser.parseUnicodeSet(value, needRanges);
326+
} // otherwise: error (was recorded via callback)
329327
}
330328
unicodeSet?: UnicodeSet;
331329
valid() : boolean {
@@ -420,6 +418,7 @@ export class Vkey extends Section {
420418
// 'disp'
421419
export class DispItem {
422420
to: StrsItem;
421+
id: StrsItem;
423422
display: StrsItem;
424423
};
425424

@@ -671,6 +670,7 @@ export class KMXPlusFile extends KMXFile {
671670
// 'disp'
672671
this.COMP_PLUS_DISP_ITEM = new r.Struct({
673672
to: STR_REF,
673+
id: STR_REF,
674674
display: STR_REF,
675675
});
676676

common/web/types/src/ldml-keyboard/ldml-keyboard-xml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export interface LKDisplayOptions {
186186
export interface LKDisplay {
187187
to?: string;
188188
display?: string;
189-
id?: string; // TODO-LDML: This comes in a near-future CLDR update
189+
id?: string;
190190
};
191191

192192
export interface LKDisplays {

core/include/ldml/keyboardprocessor_ldml.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#define LDML_LENGTH_BKSP 0xC
5454
#define LDML_LENGTH_BKSP_ITEM 0x10
5555
#define LDML_LENGTH_DISP 0x10
56-
#define LDML_LENGTH_DISP_ITEM 0x8
56+
#define LDML_LENGTH_DISP_ITEM 0xC
5757
#define LDML_LENGTH_ELEM 0xC
5858
#define LDML_LENGTH_ELEM_ITEM 0x8
5959
#define LDML_LENGTH_ELEM_ITEM_ELEMENT 0x8

0 commit comments

Comments
 (0)