Skip to content

[Web] Chiral font update#452

Merged
jahorton merged 7 commits intomasterfrom
web-340-chiral-font
Feb 13, 2018
Merged

[Web] Chiral font update#452
jahorton merged 7 commits intomasterfrom
web-340-chiral-font

Conversation

@jahorton
Copy link
Copy Markdown
Contributor

@jahorton jahorton commented Nov 28, 2017

Addresses part of #340.

The only item remaining for #340 should be the need stress-testing of the new chiral features (overall), which may be possible soon via automation with #585.

Comment thread web/source/kmwosk.js
return oldText;
osk.renameSpecialKey = function(oldText) {
// If a 'special key' mapping exists for the text, replace it with its corresponding special OSK character.
return osk.specialCharacters[oldText] ? String.fromCharCode(0XE000 + osk.specialCharacters[oldText]) : oldText;
Copy link
Copy Markdown
Contributor

@darcywong00 darcywong00 Dec 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this throw if oldText isn't found in specialCharacters?

Copy link
Copy Markdown
Contributor Author

@jahorton jahorton Dec 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If oldText isn't found in specialCharacters, JavaScript will return undefined.

From there, undefined ? 'a' : 'b' returns 'b'.

darcywong00
darcywong00 previously approved these changes Dec 12, 2017
@mcdurdin mcdurdin modified the milestones: P2S9, P2S10 Dec 17, 2017
@mcdurdin mcdurdin self-requested a review January 3, 2018 23:25
Copy link
Copy Markdown
Member

@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be approved as it is still WIP

@darcywong00 darcywong00 dismissed their stale review January 5, 2018 01:29

still WIP

@mcdurdin mcdurdin modified the milestones: P2S10, P2S11 Jan 16, 2018
@mcdurdin mcdurdin modified the milestones: P2S11, P2S12 Jan 29, 2018
@mcdurdin mcdurdin modified the milestones: P2S12, P2S13 Feb 9, 2018
kingsuper195 pushed a commit to kingsuper195/keyman that referenced this pull request Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants