atp*_*atp 16 google-api ime google-input-tools
我注意到Google通过网址接受任何语言的音译和IME请求:
https://inputtools.google.com/request?text=$&itc=$&num=$\
&cp=0&cs=1&ie=utf-8&oe=utf-8&app=test
Run Code Online (Sandbox Code Playgroud)
$
对于任何语言和文本,where 是下面的变量.
例如,法语(试一试):
var text = "ca me plait",
itc = "fr-t-i0-und",
num = 10;
// Result:
[
"SUCCESS",
[
[
"ca me plait",
[
"ça me plaît"
]
]
]
]
Run Code Online (Sandbox Code Playgroud)
或者,普通话(试试):
var text = "shide",
itc = "zh-t-i0-pinyin",
num = 5;
// Result:
[
"SUCCESS",
[
[
"shide",
[
"??",
"??",
"??",
"??",
"??"
],
[],
{
"annotation": [
"shi de",
"shi de",
"shi de",
"shi de",
"shi de"
]
}
]
]
]
Run Code Online (Sandbox Code Playgroud)
所有语言都有效,并提供很好的建议 问题是我无法在网络上的任何地方找到这方面的文档,尽管它看起来像API.有没有人知道是否有正式的Google客户端,或者他们是否可以使用原始的,未经身份验证的请求?
它可能非常像jQuery.chineseIME.js这样的插件使用,但我会很感激任何官方使用信息.
归档时间: |
|
查看次数: |
5761 次 |
最近记录: |