LiZunYuan / networkpx

Automatically exported from code.google.com/p/networkpx
0 stars 0 forks source link

Custom Layout Arrangement #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
How to make custom number of keys present in each row?
For my keyboard (Macedonian) I need layout with 12 in Row 0, 11 in Row 1
and 8 in Row 2.
Here is example from FW1.x keyboard:
http://i172.photobucket.com/albums/w36/Z36CBR/keyboard101.jpg?t=1205202030

Original issue reported on code.google.com by kosta.st...@gmail.com on 30 Jan 2009 at 2:06

GoogleCodeExporter commented 8 years ago
Use

arrangement = (12, 11, 8, 0);

Note that the spacing between 2 keys is fixed to 2 px following Apple's general
keyboard design, so the size of the keys won't be as nice as the 1.0 version.

Original comment by kennytm@gmail.com on 30 Jan 2009 at 2:22

GoogleCodeExporter commented 8 years ago
I've already tried that, but no success.
I'll try again and post the result.
Thank You.

Original comment by kosta.st...@gmail.com on 30 Jan 2009 at 2:24

GoogleCodeExporter commented 8 years ago
Here is what I've used:

<key>Alphabet</key>
    <dict>
        <key>arrangement</key>
        <string>(12, 11, 8, 0)</string>

No success. I only get Default layout when I use this.

Original comment by kosta.st...@gmail.com on 30 Jan 2009 at 2:40

GoogleCodeExporter commented 8 years ago
@3:

If you're using an XML plist file you have to do it like this:

<key>arrangement</key>
<array>
<integer>12</integer>
<integer>11</integer>
<integer>8</integer>
<integer>0</integer>
</array>

Original comment by kennytm@gmail.com on 30 Jan 2009 at 3:12

GoogleCodeExporter commented 8 years ago
That's what I need! :)
Thank you.

Any chance to make the spacing between 2 keys customizable in next version?

Original comment by kosta.st...@gmail.com on 30 Jan 2009 at 3:23

GoogleCodeExporter commented 8 years ago
@5:

I think yes.

(Since this issue is just a question on using plist instead of bug report I'll 
mark
this as Invalid.)

Original comment by kennytm@gmail.com on 30 Jan 2009 at 4:14