Skip to content

Instantly share code, notes, and snippets.

@wd wd/skin_port_py_26.ini
Last active Feb 24, 2018

Embed
What would you like to do?
ios 百度输入法默认皮肤上面增加符号,同时去掉了逗号句号那个按钮,然后扩大了空格的长度,上滑输入的是半角符号,下滑输入的是全角的
[INPUT]
[CAND]
VIEW_RECT=0,0,1242,40
LAYOUT_NAME=cand
TYPE=2
[PANEL]
BACK_STYLE=147
SIZE=1242,648
NO_BLUR=1
KEY_NUM=34
TIP_NUM=22
OFFSET_NUM=2
[MORE]
SYM_LAYOUT=symbol
LAYOUT_NAME=sel_ch
[HINT]
LAYOUT_NAME=hint_def26
ANCHOR_TYPE=1
[KEY1]
BACK_STYLE=148
FORE_STYLE=31,301
POS_TYPE=4,9
VIEW_RECT=12,22,108,132
TOUCH_RECT=0,0,130,176
UP=1
DOWN=1
CENTER=q
[KEY2]
BACK_STYLE=148
FORE_STYLE=32,302
POS_TYPE=4,9
VIEW_RECT=138,22,105,132
TOUCH_RECT=130,0,125,176
UP=2
DOWN=2
CENTER=w
[KEY3]
BACK_STYLE=148
FORE_STYLE=33,303
POS_TYPE=4,9
VIEW_RECT=261,22,105,132
TOUCH_RECT=255,0,123,176
UP=3
DOWN=3
CENTER=e
[KEY4]
BACK_STYLE=148
FORE_STYLE=34,304
POS_TYPE=4,9
VIEW_RECT=384,22,105,132
TOUCH_RECT=378,0,123,176
UP=4
DOWN=4
CENTER=r
[KEY5]
BACK_STYLE=148
FORE_STYLE=35,305
POS_TYPE=4,58
VIEW_RECT=507,22,105,132
TOUCH_RECT=501,0,123,176
UP=5
DOWN=5
CENTER=t
[KEY6]
BACK_STYLE=148
FORE_STYLE=36,306
POS_TYPE=4,9
VIEW_RECT=630,22,105,132
TOUCH_RECT=624,0,122,176
UP=6
DOWN=6
CENTER=y
[KEY7]
BACK_STYLE=148
FORE_STYLE=37,307
POS_TYPE=4,9
VIEW_RECT=753,22,105,132
TOUCH_RECT=746,0,123,176
UP=7
DOWN=7
CENTER=u
[KEY8]
BACK_STYLE=148
FORE_STYLE=38,308
POS_TYPE=4,9
VIEW_RECT=876,22,105,132
TOUCH_RECT=869,0,124,176
UP=8
DOWN=8
CENTER=i
[KEY9]
BACK_STYLE=148
FORE_STYLE=39,309
POS_TYPE=4,9
VIEW_RECT=999,22,105,132
TOUCH_RECT=993,0,124,176
UP=9
DOWN=9
CENTER=o
[KEY10]
BACK_STYLE=148
FORE_STYLE=40,310
POS_TYPE=4,9
VIEW_RECT=1123,22,106,132
TOUCH_RECT=1117,0,125,176
UP=0
DOWN=0
CENTER=p
[KEY11]
BACK_STYLE=149
FORE_STYLE=41,58
POS_TYPE=4,9
VIEW_RECT=75,183,108,132
TOUCH_RECT=0,176,193,152
UP=!
DOWN=!
CENTER=a
[KEY12]
BACK_STYLE=149
FORE_STYLE=42,59
POS_TYPE=4,9
VIEW_RECT=200,183,105,132
TOUCH_RECT=193,176,124,152
UP=@
DOWN=@
CENTER=s
[KEY13]
BACK_STYLE=149
FORE_STYLE=43,60
POS_TYPE=4,9
VIEW_RECT=324,183,105,132
TOUCH_RECT=317,176,124,152
UP=#
DOWN=#
CENTER=d
[KEY14]
BACK_STYLE=149
FORE_STYLE=44,61
POS_TYPE=4,9
VIEW_RECT=447,183,105,132
TOUCH_RECT=441,176,123,152
UP=$
DOWN=¥
CENTER=f
[KEY15]
BACK_STYLE=149
FORE_STYLE=45,62
POS_TYPE=4,9
VIEW_RECT=570,183,105,132
TOUCH_RECT=564,176,122,152
UP=%
DOWN=%
CENTER=g
[KEY16]
BACK_STYLE=149
FORE_STYLE=46,63
POS_TYPE=4,9
VIEW_RECT=693,183,105,132
TOUCH_RECT=686,176,124,152
UP=&
DOWN=&
CENTER=h
[KEY17]
BACK_STYLE=149
FORE_STYLE=47,64
POS_TYPE=4,9
VIEW_RECT=816,183,105,132
TOUCH_RECT=810,176,121,152
UP=*
DOWN=*
CENTER=j
[KEY18]
BACK_STYLE=149
FORE_STYLE=48,65
POS_TYPE=4,9
VIEW_RECT=939,183,105,132
TOUCH_RECT=931,176,124,152
UP=(
DOWN=(
CENTER=k
[KEY19]
BACK_STYLE=149
FORE_STYLE=49,66
POS_TYPE=4,9
VIEW_RECT=1062,183,106,132
TOUCH_RECT=1055,176,186,152
UP=)
DOWN=)
CENTER=l
[KEY20]
BACK_STYLE=150
FORE_STYLE=50,67
POS_TYPE=4,9
VIEW_RECT=200,345,105,132
TOUCH_RECT=177,328,140,163
UP=~
DOWN=…
CENTER=z
[KEY21]
BACK_STYLE=150
FORE_STYLE=51,68
POS_TYPE=4,9
VIEW_RECT=324,345,105,132
TOUCH_RECT=317,328,124,163
UP=:
DOWN=:
CENTER=x
[KEY22]
BACK_STYLE=150
FORE_STYLE=52,69
POS_TYPE=4,9
VIEW_RECT=447,345,105,132
TOUCH_RECT=441,328,123,163
UP='
LEFT=「
RIGHT=」
DOWN='
CENTER=c
[KEY23]
BACK_STYLE=150
FORE_STYLE=53,70
POS_TYPE=4,9
VIEW_RECT=570,345,105,132
TOUCH_RECT=564,328,122,163
UP=_
DOWN=-
CENTER=v
[KEY24]
BACK_STYLE=150
FORE_STYLE=54,71
POS_TYPE=4,9
VIEW_RECT=693,345,105,132
TOUCH_RECT=686,328,124,163
UP=,
DOWN=,
CENTER=b
[KEY25]
BACK_STYLE=150
FORE_STYLE=55,72
POS_TYPE=4,9
VIEW_RECT=816,345,105,132
TOUCH_RECT=810,328,121,163
UP=.
DOWN=。
CENTER=n
[KEY26]
BACK_STYLE=150
FORE_STYLE=56,73
POS_TYPE=4,9
VIEW_RECT=939,345,105,132
TOUCH_RECT=931,328,140,163
UP=?
DOWN=?
CENTER=m
[KEY27]
BACK_STYLE=151
FORE_STYLE=209,312,355
POS_TYPE=64,40,63
VIEW_RECT=447,505,474,132
TOUCH_RECT=441,491,490,157
CENTER=F38
HOLD=F72
STAT_STYLE=S38_22
[KEY28]
BACK_STYLE=152
FORE_STYLE=274
VIEW_RECT=12,345,135,132
TOUCH_RECT=0,328,159,157
UP=F7
CENTER=F1
HOLD=F7
STAT_STYLE=S4_16
[KEY29]
BACK_STYLE=152
FORE_STYLE=22
VIEW_RECT=1095,345,135,132
TOUCH_RECT=1080,328,159,155
UP=F40
DOWN=F40
LEFT=F40
CENTER=F36
[KEY30]
BACK_STYLE=153
FORE_STYLE=21
VIEW_RECT=11,505,138,132
TOUCH_RECT=0,491,156,157
CENTER=F16
[KEY31]
BACK_STYLE=153
FORE_STYLE=294
VIEW_RECT=169,505,137,132
TOUCH_RECT=161,504,146,132
CENTER=F62
STAT_STYLE=S4_20|S38_21
[KEY32]
BACK_STYLE=153
FORE_STYLE=23
VIEW_RECT=324,505,105,132
TOUCH_RECT=314,491,127,157
CENTER=F6
STAT_STYLE=S4_18
[KEY33]
BACK_STYLE=153
FORE_STYLE=4
VIEW_RECT=939,505,290,132
TOUCH_RECT=931,491,311,157
CENTER=F39
STAT_STYLE=S11_1|S9_2|S10_3|S16_5|S17_4|S18_6|S19_7|S20_8|S21_9|S22_10|S23_11|S24_12|S25_13|S26_14|S27_15|S28_17
[TIP1]
BACK_STYLE=158
FORE_STYLE=199
CENTER=F39
[TIP2]
BACK_STYLE=158
FORE_STYLE=15
CENTER=F54
[TIP3]
BACK_STYLE=162
FORE_STYLE=12
CENTER=F39
[TIP4]
BACK_STYLE=158
FORE_STYLE=204
CENTER=F39
[TIP5]
BACK_STYLE=162
FORE_STYLE=9
CENTER=F39
[TIP6]
BACK_STYLE=162
FORE_STYLE=201
CENTER=F39
[TIP7]
BACK_STYLE=158
FORE_STYLE=202
CENTER=F39
[TIP8]
BACK_STYLE=162
FORE_STYLE=10
CENTER=F39
[TIP9]
BACK_STYLE=158
FORE_STYLE=11
CENTER=F39
[TIP10]
BACK_STYLE=162
FORE_STYLE=203
CENTER=F39
[TIP11]
BACK_STYLE=158
FORE_STYLE=5
CENTER=F39
[TIP12]
BACK_STYLE=162
FORE_STYLE=7
CENTER=F39
[TIP13]
BACK_STYLE=158
FORE_STYLE=6
CENTER=F39
[TIP14]
BACK_STYLE=162
FORE_STYLE=200
CENTER=F39
[TIP15]
BACK_STYLE=158
FORE_STYLE=14
CENTER=F39
[TIP16]
BACK_STYLE=152
FORE_STYLE=25
CENTER='
[TIP17]
BACK_STYLE=151
FORE_STYLE=317
UP=。
CENTER=,
[TIP18]
BACK_STYLE=151
FORE_STYLE=318
CENTER=。
[TIP19]
BACK_STYLE=158
FORE_STYLE=255
CENTER=F39
[TIP20]
BACK_STYLE=151
FORE_STYLE=317
CENTER=,
HOLD=. .com .cn .net
[TIP21]
BACK_STYLE=153
FORE_STYLE=357
CENTER=F72
[TIP22]
BACK_STYLE=151
FORE_STYLE=360,207
CENTER=F38
HOLD=F72
@wd

This comment has been minimized.

Copy link
Owner Author

wd commented Feb 22, 2018

输入法皮肤的制作文档,可以通过搜索找到

下载最新的 ipa 文件,解压 unzip baiduInput-v8.0.0.ipa,然后把 Payload/BaiduInputMethodContainer.app/PlugIns/com.baidu.ime.BaiduInputMethodContainer.BaiduInputMethod.appex/UnzipPath/iPhone@3x/默认皮肤/skin 目录复制出来,我用的是 iphone x,是 3x 屏幕,用的是这个皮肤。

我只修改了竖屏的输入法皮肤,拼音输入法的键盘配置文件是 skin/port/py_26.ini,用我上面贴的文件覆盖掉这个文件。然后修改一下skin/Info.txt里面的皮肤的名字信息,我只改了 NameAuthor 字段。重新打包皮肤 zip -r wd.bdi skin/。然后就是传到手机上面,可以通过邮件,微信等方法,点击之后使用百度输入法打开就会提示在导入了。

@wd

This comment has been minimized.

Copy link
Owner Author

wd commented Feb 22, 2018

效果是这样的。其实输入法自带的皮肤里面,有一个带符号的,但是我不喜欢那个样式,感觉那个样式有点老,好像是基于 ios8 的。默认的皮肤样式好看一点,所以基于默认样式折腾了一下。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.