-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Web-based popup key issues #2990
Comments
This may be related to https://community.software.sil.org/t/keymanweb-keyboard-keycap-shows-u-0674-followed-by-dotted-circle/3247/5 |
The U+25CC dotted circle issue arises because KeymanWeb tries too hard to display diacritics well. It seems that the width calculation for a text run is inconsistent across systems. Example strings to test:
Reference code in visualKeyboard.ts:226: // Check the key's display width - does the key visualize well?
var width: number = OSKKey.getTextWidth(osk, keyText, styleSpec);
if(width == 0 && keyText != '' && keyText != '\xa0') {
// Add the Unicode 'empty circle' as a base support for needy diacritics.
keyText = '\u25cc' + keyText; I'd like to see other examples of the dotted circle in use. Given that this detail of adding U+25CC is specific to KeymanWeb, and does not happen on Windows, macOS or Linux, we should consider whether it is appropriate. We may need to roll this change back, or nuance it further. My preference: roll the change back in 13.0. |
Are you aware that U+0674 is NOT a combining mark? It's a Lo (Letter Other). |
Yes. The test in KMW does not have info on character classes. It simply measures the width of the text run and adds a dotted circle for zero width runs. |
Be sure to compare any changes against #1407, the original implementation for |
After the two PRs above are merged, I believe that all points (aside from point 4, the possible one-off) will have been addressed adequately. |
Originally posted by @mcdurdin in #2968 (comment)
Note that these issues came about due to the workaround introduced in #2968 for an iOS 13.4 bug. Should we ever revert the workaround (once Apple fixes the underlying bug), these would go away. Said bug is
FB7650067
on Apple's Feedback Assistant. I'd link it, but it seems like they keep the actual pages private between them and the submitter.I cannot replicate this on the standard KMW test pages; it may be specific to iOS-embedded, or due to special handling rules for embedded popup keys that should be dropped when using 'native' (web-based) popup keys.
This can be reproduced in plain 'native' KMW on existing test pages. It's actually a Web bug, but this went undetected until now.
As best as I can tell, this is existing 'touch' OSK behavior for native-web. It's a loss of quality from what iOS had before, though.
The text was updated successfully, but these errors were encountered: