Skip to content
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

[Mac] Can we do language tagging? #2237

Open
mcdurdin opened this issue Oct 21, 2019 · 0 comments
Open

[Mac] Can we do language tagging? #2237

mcdurdin opened this issue Oct 21, 2019 · 0 comments
Labels
m:bcp47 Any interop issues relating to BCP 47 tags mac/ question
Milestone

Comments

@mcdurdin
Copy link
Member

mcdurdin commented Oct 21, 2019

Ideally, we want to list each keyboard separately through the Apple IM UX, rather than the approach we currently take of having Keyman listed as an IM with each keyboard in a submenu under that.

@jahorton wrote:

For iOS: https://developer.apple.com/documentation/uikit/uiinputviewcontroller/1618200-primarylanguage

If Apple's done it for iOS, there's likely something similar for macOS input methods somewhere. Linking it here since the paradigms involved are likely similar.

... but, I'm having a lot of trouble finding anything similar on the macOS end.

Tom wrote:

An IM can definitely be installed as a keyboard for a specific language, as long as it's one of the ones that is predefined in the OS. However, I think it would require a completely separate installation.


Per https://docs.google.com/document/d/1nQi65m2i9DrAmwG_ahdYtn5JcWYTwI_kJoSLeK2nPAs/edit:

It appears that the list of native languages is fairly limited and not extensible, so there is no way to identify a new language (either in Language & Region, or in Input Methods) by entering a new BCP-47 language tag. Also, I have not yet been able to find any way to install/develop a new input method for an existing language. Keyman for macOS is added as a keyboard under “Multiple Languages”. And it looks like maybe that is the only way. (More research needed…)

This page notes that TISIntendedLanguage is a Plist key that can be used to supply a BCP-47 value to indicate the intended language for a keyboard. Keyman specifies “mul”, which causes the UI to show Multiple Languages.

"However, iOS and OS X only support the language ID syntax consisting of a language designator and optional region or script designator." - https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html


See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
m:bcp47 Any interop issues relating to BCP 47 tags mac/ question
Projects
None yet
Development

No branches or pull requests

1 participant