LiZunYuan / networkpx

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

Documentation for more complex cases (combining layout.plist with input managers) #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying to combine a layout.plist with an input manager.

Here's the relevant plist:

{
    CFBundleDisplayName = GreekOrestis;
    "UIKeyboardLayoutClass" = "layout.plist";
    "UIKeyboardInputManagerClass" = OMGreekInputManager;
    CFBundleExecutable = OMGreekInput;
}

This displays the desired layout, but I never see any corrections. If I change 
layout.plist to 
'=en_US' then I get corrections, but of course not the layout. Is there a way 
to combine these two 
together?

Original issue reported on code.google.com by orestis on 30 Jan 2009 at 12:12

GoogleCodeExporter commented 8 years ago
Since I can properly combine Colemak & L33tTyper I bet your code has something 
wrong.

My plist was:

{
    "UIKeyboardLayoutClass" = "layout.plist";
    "UIKeyboardInputManagerClass" = L33tTyperManager;
    CFBundleExecutable = L33tTyper;
    CFBundleDisplayName = Colemak;
}

Make sure the class you've implemented is called OMGreekInputManager, and the
executable OMGreekInput is compiled with the -dynamiclib or -bundle option....

You shouldn't see autocorrection of English because the input manager is not an
autocorrection engine of English...

You can also reference to L33tTyper's source code to know how to write an
autocorrection manager...

Original comment by kennytm@gmail.com on 30 Jan 2009 at 6:25

GoogleCodeExporter commented 8 years ago
The input manager works stand-alone, when I set the layout to =en_US. It's the 
same code as L33tTyper but 
returning an uppercase string. I've seen it working. Perhaps something is the 
problem with unicode characters 
again? I'll try a simpler layout (perhaps colemak) and report back.

Original comment by orestis on 30 Jan 2009 at 9:07

GoogleCodeExporter commented 8 years ago
I tried once more doing voodoo magic and it works. Not sure what the original 
problem was. I've found that the 
safest way to update my keyboard bundle is to rm * inside the directory and 
copy back everything. Feel free to 
close the issue.

Original comment by orestis on 31 Jan 2009 at 10:35

GoogleCodeExporter commented 8 years ago
@3:

rm * inside which directory? o_O

Original comment by kennytm@gmail.com on 1 Feb 2009 at 9:00

GoogleCodeExporter commented 8 years ago

Original comment by kennytm@gmail.com on 1 Feb 2009 at 9:00