在iOS 8中使用自定义键盘是否可以使用新角色? [英] Are new characters possible with a custom keyboard in iOS 8?

查看:119
本文介绍了在iOS 8中使用自定义键盘是否可以使用新角色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS 8中,Apple为开发人员提供了创建自定义键盘的能力。在文档中,Apple声明如果要支持iOS当前不支持的语言,则应创建新键盘。因此,如果您能够支持新语言,是否可以创建包含新表情符号字符的键盘?我认为Apple声称你可以支持一种新语言,他们会期望有自定义字符。如果包含自定义字符,其他设备(即使只有其他运行iOS 8的设备)如何显示新字符?

In iOS 8, Apple has given developers the ability to create custom keyboards. In the documentation, Apple states that you should create a new keyboard if you want to support a language that iOS does not currently support. Therefore, if you are able to support new languages, are you able to create a keyboard that contains new emoji characters? I would assume that by Apple stating that you can support a new language, they would expect there to be custom characters involved. If including custom characters is possible, how would other devices (even if only other devices running iOS 8) display the new characters?

推荐答案

根据应用程序扩展编程指南,自定义键盘接受触摸或手势输入(或其他任何,真正)并生成 NSString 对象以插入文本字段或其他文本基于控件。

Per the App Extension Programming Guide, a custom keyboard takes touch or gesture input (or whatever else, really) and produces NSString objects for insertion into text fields or other text-based controls.

因此,您的问题的答案通常是否定的 - 键盘只能输入系统视为文本的内容。

So, the answer to your question is mostly no -- a keyboard can input only things that the system sees as text.

然后,Apple如何谈论使用此功能添加新的键盘语言? Unicode涵盖了许多脚本。其中一些甚至在iOS附带的字体中都有字形,但Apple提供的键盘不包括这些字形。 (例如, Canadian Aboriginal 字母表。)第三方键盘可以涵盖此类一个脚本,为没有Apple键盘的语言提供支持。

How, then, does Apple talk of using this feature to add new keyboard languages? There are lots of scripts covered by Unicode. Some of them even have glyphs in the fonts that ship with iOS, but aren't covered by an Apple-provided keyboard. (For example, the Canadian Aboriginal alphabet.) A third-party keyboard could cover such a script to provide support for a language that doesn't have an Apple keyboard.

还有各种各样的Unicode脚本,iOS中的内置字体不包含这些脚本,包括许多真正的语言以及Unicode联盟无法识别的非正式标准 - 你会发现Klingon,Quenya和Dr. Suess' On Beyond Zebra 。第三方键盘也可以添加对此类脚本的支持,但前提是用户安装了适当的字体进行渲染。

There are also all sorts of scripts in Unicode not covered by the built in fonts in iOS, including many real languages as well as informal standards not recognized by the Unicode consortium -- there you'll find Klingon, Quenya, and Dr. Suess' On Beyond Zebra. A third-party keyboard could also add support for such scripts, but only if the user has appropriate fonts installed for rendering them.

因此,如果你想发明自己的表情符号,你必须提供:

So if you want to invent your own Emoji, you'll have to provide:


  • 自定义键盘

  • 带有你字符的字体(在Unicode中未使用的代码点)

  • 其他软件的用户/供应商社区,他们知道代码点到您发明的字形的映射

  • 并在其他应用程序和其他平台上使用自定义字体。

  • a custom keyboard
  • a font with your characters (at code points not otherwise used in Unicode)
  • a community of users / vendors of other software who know the mapping of code points to your invented glyphs
  • and are using your custom font in other apps and other platforms.

(如果您只想添加类似新发布的Unicode 7.0表情符号,你可以跳过第3步。)

(If you just want to add something like the newly announced Unicode 7.0 emoji, you can skip step 3.)

这篇关于在iOS 8中使用自定义键盘是否可以使用新角色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆