-
Notifications
You must be signed in to change notification settings - Fork 0
/
008 谷歌拼音输入法扩展——数字序号.html
63 lines (62 loc) · 3.69 KB
/
008 谷歌拼音输入法扩展——数字序号.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<html>
<head>
<title>008 谷歌拼音输入法扩展——数字序号</title>
<basefont face="Tahoma" size="2" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="exporter-version" content="Evernote Windows/270217 (zh-CN); Windows/6.1.7600;"/>
<style>
body, td {
font-family: Tahoma;
font-size: 10pt;
}
</style>
</head>
<body>
<a name="1978"/>
<h1>008 谷歌拼音输入法扩展——数字序号</h1>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);"><strong style="font-weight: 600;">数字序号(谷歌拼音输入法扩展)</strong></p><p style="margin: 0px; padding: 5px 0px 5px 30px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);">方便输入数字序号,例如:①,⑵,Ⅲ<br>
效果图:<br><img src="008 谷歌拼音输入法扩展——数字序号_files/Image.png" type="image/png" alt="截图:输入序号(谷歌输入法扩展)" height="58" style="cursor: default;cursor: default;cursor: default;" width="236"/><br>
使用方法:下载后,双击文件即可自动打开谷歌拼音输入法的加载程序。<br>
下载输入法扩展:<a href="http://pan.baidu.com/share/link?shareid=395812&uk=304925281" style="color: rgb(0, 68, 153); text-decoration: none;" target="_blank">SerialNumber_by_Dramatea.lua</a></p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);">● 附相关链接:</p><p style="margin: 0px; padding: 5px 0px 5px 30px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);"><a href="http://www.google.com/intl/zh-CN/ime/pinyin/" style="color: rgb(0, 68, 153); text-decoration: none;" target="_blank">下载谷歌拼音输入法</a><br>
谷歌拼音输入法<a href="http://www.google.com/intl/zh-CN/ime/pinyin/api.html" style="color: rgb(0, 68, 153); text-decoration: none;" target="_blank">扩展API开发指南</a></p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);">● 附源代码:</p></div><div><br></div><div>-- encoding: UTF-8<br>
------------------------------------------------------<br>
-- by dramatea.com<br>
-- update:<br>
-- 2013-03-21<br>
-- http://dramatea.com/a/8<br>
-- CC BY-NC-SA<br>
-----------------------------------------------------<br><br>
_MAPPING_TABLE = [[<br>
0 〇,◎<br>
1 ①,⑴,Ⅰ<br>
2 ②,⑵,Ⅱ<br>
3 ③,⑶,Ⅲ<br>
4 ④,⑷,Ⅳ<br>
5 ⑤,⑸,Ⅴ<br>
6 ⑥,⑹,Ⅵ<br>
7 ⑦,⑺,Ⅶ<br>
8 ⑧,⑻,Ⅷ<br>
9 ⑨,⑼,Ⅸ<br>
10 ⑩,⑽,Ⅹ<br>
11 ⑪,⑾,Ⅺ<br>
12 ⑫,⑿,Ⅻ<br>
13 ⑬,⒀<br>
14 ⑭,⒁<br>
15 ⑮,⒂<br>
16 ⑯,⒃<br>
17 ⑰,⒄<br>
18 ⑱,⒅<br>
19 ⑲,⒆<br>
20 ⑳,⒇<br>
]]<br><br>
_MAPPING = ime.parse_mapping(_MAPPING_TABLE, "\n", " ", ",")<br><br>
function SerialNumber(input)<br>
if _MAPPING[input] then<br>
return _MAPPING[input]<br>
else<br>
error("Invalid argument")<br>
end<br>
end<br><br>
ime.register_command("xh", "SerialNumber", "数字序号","alpha","输入数字,例如1")</div><div><br></div></div>
</div></body></html>