5

I try add my own characters in keyboard. I expand key 'z' by code to "Keyboard-en.plist":

"Roman-Accent-z" =     {
    Keycaps = "z mylongstringtitle ..."; // ... == \U017e \U017a \U017c characters ('z' with apostrophes and dots)
    Strings = "z mylongstringvalue ...";
};

But keyboard not shown my string 'mylongstringtitle', only blank space ' ': enter image description here

I can add only string 4 chars length on normal font and 7 chars on small font on 'button'. But I need add a long string.

Can I add 'mylongstringtitle' inside keycaps's string? May be I need set special parameters for long string? This is possible?

Nas Banov
  • 28,347
  • 6
  • 48
  • 67
Tapa Save
  • 4,769
  • 5
  • 32
  • 54

2 Answers2

0

I don't think you will be able to add long string to be displayed in keyboard-en.plist. I believe the limitations of 4/7chars that you discovered are hard-coded in desire to avoid disfigured popup.

Nas Banov
  • 28,347
  • 6
  • 48
  • 67
0

This keyboard behavior is not supported by Apple (it's not documented on http://developer.apple.com, or http://devforums.apple.com). Use of this feature in your app, therefore, is undefined behavior, which is considered programmer error.

That said, it's a neat feature. The limits of 4 and 7 characters for keycaps are hardcoded on iOS. I can't find them in any of the keyboard plists. You'd probably have to modify the keyboard binary to do what you want. (On OS X, on the other hand, this limit does not exist.)

A few alternatives exist, which you might know about:

Aaron Brager
  • 65,323
  • 19
  • 161
  • 287
  • Aaron Brager, Thank you! I try create keyboard with added my long-strings inside keyboard (email, logins, etc.). And this keyboard must be available from any application in iOS (not my application, any!)... I need solution for 'system' keyboard. – Tapa Save Jan 09 '14 at 05:54