Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何编译字典 #3

Closed
shz2050 opened this issue Jan 12, 2017 · 12 comments
Closed

请问如何编译字典 #3

shz2050 opened this issue Jan 12, 2017 · 12 comments

Comments

@shz2050
Copy link

shz2050 commented Jan 12, 2017

我已经完成了iRime的编译,将其安装在手机上。但是发现现在还无法实现输入,提示需要将字典编译上传手机,请问有相关的教程可以参考么?

@bms3-33
Copy link

bms3-33 commented Jan 12, 2017

字典编译是不是就是:在电脑PC用小狼毫,Mac用Squirrel deploy一次,生成的.bin文件。

@shz2050
Copy link
Author

shz2050 commented Jan 12, 2017

感觉有可能哦,但是需要传输哪些文件呢。我试试

@bms3-33
Copy link

bms3-33 commented Jan 12, 2017

比如五笔的话有:
wubi86.dict.yaml
wubi86.reverse.bin
wubi86.table.bin
wubi86.schema.yaml.
我是直接把Squirrel里面的配置文件全部上传到irime里,能通用的,(安装的App Store的)
顺便问一下,你是怎么编译成功的呢, 我一直都是出现我提的issue的错误,难倒是要有开发者账号才行吗?谢谢

@shz2050
Copy link
Author

shz2050 commented Jan 12, 2017

应该不是,你有添加app group么?我编译的时候只出现一个脚本运行问题,注释掉就好。但应该不是你提的issue

@shz2050
Copy link
Author

shz2050 commented Jan 12, 2017

无法上传哦,显示
Not Found: Failed retrieving contents of "null"
Failed creating folder "UserDate" in "null"
请问该如何操作

@jimmy54
Copy link
Owner

jimmy54 commented Jan 13, 2017

手机内存太小无法编译字典。字典需要在电脑上编译。

第一次安装,需要打下一下iRime。让生成配置文件。
@shz2050

@shz2050
Copy link
Author

shz2050 commented Jan 13, 2017

请问需要通过什么方式编译字典呢?

@jimmy54
Copy link
Owner

jimmy54 commented Jan 13, 2017

@shz2050 电脑装上RIME.安装RIME的字典编译方式编译就行。去看看RIME.IM的教程。

@bms3-33
Copy link

bms3-33 commented Jan 13, 2017

@shz2050
编译安装 librime
使用rime_deployer --compile x.schema.yaml,(需要有x.dict.yaml和x.schema.yaml两个文件)
这样会生成二进制的字典。
当然如果你的Mac安装了Squirrel输入法,可以直接用路径(/Users/yourName/Library/Rime/)的配置文件。

@jimmy54
Copy link
Owner

jimmy54 commented Jan 13, 2017

@bms3-33 正解

@bms3-33
Copy link

bms3-33 commented Jan 13, 2017

@shz2050
麻烦请告知注释脚本的哪一行,谢谢

Downloads/iRime-master/iRime/Build/Intermediates/iRime.build/Debug-iphoneos/iRime.build/Script-0C0C7DC41D2CAE2E0026CA4F.sh: line 2: /usr/local/bin/carthage: No such file or directory

brew install carthage
安装carthage后,编译成功。

@jimmy54 jimmy54 closed this as completed Jan 23, 2017
@shz2050
Copy link
Author

shz2050 commented Feb 8, 2017

无法上传哦,显示
Not Found: Failed retrieving contents of "null"
Failed creating folder "UserDate" in "null"
请问该如何操作

之前提的这个问题我找到原因了,由于使用你的证书我无法在真机上运行,所以我改成我的证书,同时只更改了Target->iRime/Keyboard->Capabilities->App groups,没有更改NSString+Path里的GROUP_ID,所以在获取[NSString rimeResource]时得到了nil。
从而得到上面这个错误。现在将GROUP_ID修改成新的groupid就ok了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants