keyboards icon indicating copy to clipboard operation
keyboards copied to clipboard

[sil_euro_latin] feat: auto layer switch for hyphen could be more nuanced

Open mcdurdin opened this issue 2 years ago • 3 comments

From a team review of the Keyman for Android UX (keymanapp/keyman#7161)

If the user types a hyphen on the touch keyboard (which is on the punctuation layer), it drops back to the default layer automatically. This is good for typing hyphenated words. But perhaps when a space or digit is preceding, it would be better to stay on the punctuation layer (e.g. typing 3-1, or something -- something).

It might be good to analyse each of the common punctuation marks for similar scenarios and implement some rules to improve auto layer switches around them also.

mcdurdin avatar Aug 30 '22 20:08 mcdurdin

I don't feel this is something we can do without help from the development team.

LornaSIL avatar Jan 20 '23 20:01 LornaSIL

I don't think we'll be able to tackle this at the present time; will revisit in the future when we have some capacity

mcdurdin avatar Mar 29 '23 03:03 mcdurdin

It might be good to analyse each of the common punctuation marks for similar scenarios and implement some rules to improve auto layer switches around them also.

One idea would be for math equations. Loosely speaking...

store(digit)        "0123456789"
store(mathSymbol)   "+-/*^"

any(digit) any(whitespace) any(mathSymbol) > layer(&oldLayer)   c  block automatic layer swapping 

I kind of doubt that our keyboards are used that much for math equation typing though; again, this is just an idea.

jahorton avatar Feb 26 '24 08:02 jahorton