keyboard_layout_name with composed name

32 views
Skip to first unread message

Benoit Benedetti

unread,
Jul 13, 2017, 11:04:05 AM7/13/17
to imagr-discuss
Hi,

In the localize section of my plist, i have the following definition for the keyboard:

            <key>keyboard_layout_name</key>
            <string>French - PC</string>

But the keyboard layout being installed is 'French'. How to you configure such a layout name with Imagr?

Thank you

Graham Gilbert

unread,
Jul 13, 2017, 11:06:50 AM7/13/17
to imagr-...@googlegroups.com
It’s trial and error I’m afraid. They need to be the name that the OS expects in its plist (im mobile right now so I can’t be more exact - Ben Toms wrote most of the script included in Imagr, so maybe he can shed more light)

Sent from my iPhone

From: imagr-...@googlegroups.com <imagr-...@googlegroups.com> on behalf of Benoit Benedetti <benoit.b...@gmail.com>
Sent: Thursday, July 13, 2017 4:04:05 PM
To: imagr-discuss
Subject: [imagr-discuss] keyboard_layout_name with composed name
 
--
You received this message because you are subscribed to the Google Groups "imagr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to imagr-discus...@googlegroups.com.
To post to this group, send email to imagr-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/imagr-discuss/02464552-9b35-47bd-be97-b4db4840cf7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luc Lalonde

unread,
Apr 4, 2018, 1:18:51 PM4/4/18
to imagr-discuss
I'm having the same issue...  Whatever I put in I get the AZERTY FR keyboard.  Here's my latest iteration:

                     <dict>
                          <key>type</key>
                          <string>localize</string>
                          <key>keyboard_layout_name</key>
                          <string>Canadian - CSA</string>
                          <key>keyboard_layout_id</key>
                          <integer>80</integer>
                          <key>language</key>
                          <string>fr_CA</string>
                          <key>locale</key>
                          <string>fr_CA</string>
                          <key>timezone</key>
                          <string>America/Montreal</string>
                      </dict>

I want the French Canadian keyboard.   I can't seem to get this one right!

Luc Lalonde

unread,
Apr 4, 2018, 1:43:06 PM4/4/18
to imagr-discuss
Here's another clue of what I want:

defaults read /Users/wadmin/Library/Preferences/com.apple.HIToolbox

{
    AppleCurrentKeyboardLayoutInputSourceID = "com.apple.keylayout.Canadian-CSA";
    AppleEnabledInputSources =     (
                {
            InputSourceKind = "Keyboard Layout";
            "KeyboardLayout ID" = 80;
            "KeyboardLayout Name" = "Canadian - CSA";
        }
    );

Luc Lalonde

unread,
Apr 5, 2018, 10:41:00 AM4/5/18
to imagr-discuss
Ok, so I figured it out...

The localize.sh function does not deal well with spaces because the call to change the keyboard layout is inside a shell script.

You need to escape the spaces or special characters for it to work.

So in this case, here's what I had to put:


                     <dict>
                          <key>type</key>
                          <string>localize</string>
                          <key>keyboard_layout_name</key>
                          <string>Canadian\ -\ CSA</string>
                          <key>keyboard_layout_id</key>
                          <integer>80</integer>
                          <key>language</key>
                          <string>fr_CA</string>
                          <key>locale</key>
                          <string>fr_CA</string>
                          <key>timezone</key>
                          <string>America/Montreal</string>
                      </dict>

Hope this helps anyone who has the same problem...

Graham Gilbert

unread,
Apr 5, 2018, 12:29:18 PM4/5/18
to imagr-...@googlegroups.com
You could also update the wiki with this info so it’s there for others...

Sent from my iPhone

From: imagr-...@googlegroups.com <imagr-...@googlegroups.com> on behalf of Luc Lalonde <lalon...@gmail.com>
Sent: Thursday, April 5, 2018 3:41:00 PM
To: imagr-discuss
Subject: [imagr-discuss] Re: keyboard_layout_name with composed name
 
--
You received this message because you are subscribed to the Google Groups "imagr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to imagr-discus...@googlegroups.com.
To post to this group, send email to imagr-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages