Closed rc-swag closed 1 week ago
Test specification and instructions
TEST_KEYBOARD_WITH_FONTS (PASSED): Tested with the attached PR build (keyman 17.0.312-beta-test-11282) on Windows 10 OS and here is my observation: 1. Installed Simplified Chinese, Tamil99 Basic and Ahom Star keyboards. 2. Started Keyman app. 3. Selected Tamil_99 from the language selector. 4. Right-clicked on the keyman icon to bring up the context menu. Selected the "Font Helper". Verified that it loads some suggested fonts with the characters in a grid display. Seems to be working as expected.
TEST_KEYBOARD_WITHOUT_FONTS (FAILED): 1. Installed a Simplified Chinese (cs-pinyin) keyboard. 2. Noticed that the installed cs-pinyin keyboard was missing in the keyman menu list. But it appears in the Keyboard Layouts window. Seems to be an issue.
@bharanidharanj This could be a side effect of running out of transient languages which will be addressed by #9422, I have raised issue #11313.
In order to enable you to continue with testing can you select Add/remove language...
in the Keyboard Layouts
tab of Keyman Configuration
and then add any en
language you may have already installed on your machine.
Once you have a language associated with the keyboard you should be able to continue the test for this PR.
@bharanidharanj This could be a side effect of running out of transient languages which will be addressed by #9422, I have raised issue #11313. In order to enable you to continue with testing can you select
Add/remove language...
in theKeyboard Layouts
tab ofKeyman Configuration
and then add anyen
language you may have already installed on your machine. Once you have a language associated with the keyboard you should be able to continue the test for this PR.
@rc-swag Okay, Thanks for the clarification. Could you please reassign me for retesting?
@keymanapp-test-bot retest TEST_KEYBOARD_WITHOUT_FONTS TEST_KEYBOARD_FONT_HELPER_SELECT_KEYBOARDS @bharanidharanj here you go
TEST_KEYBOARD_WITHOUT_FONTS (PASSED): Retested as per Ross's suggestion and here is my observation: 1. Removed some installed languages from the Windows Language settings menu. 2. Downloaded and installed cs_pinyin keyboard from keyman site. 3. Select cs_pinyin keyboard from Keyman menu list. 4. Clicked the Font Helper window. Verified that it displays 'No fonts have found as suggestions for cs-pinyin".
..cs_pinyin keyboard
..Tamil99 keyboard
..Ahom Star keyboard
Changes in this pull request will be available for download in Keyman version 17.0.316-beta
Fixes: #10933 This change is to check the number of fonts found for the keyboard to guard against trying to index it when there are no fonts.
FormatGrid
check the font count if it is zero exit straight away.DisplayKeyboardFonts
to let the user know that no fonts were found as a suggestion.Note: This line in
DisplayKeyboardFonts
grid.RowCount cannot be less than 1. Therefore if font count is 0 the row count value will be 1 after this assignment.
User Testing
TEST_KEYBOARD_WITH_FONTS
TEST_KEYBOARD_WITHOUT_FONTS
No fonts have been found as suggestions for Keyboard %1$s.
TEST_KEYBOARD_FONT_HELPER_SELECT_KEYBOARDS
No fonts have been found as suggestions for Keyboard %1$s.
No fonts have been found as suggestions for Keyboard %1$s.
is displayed