RE: Question about unicon-im and chinput
hi all
> [1] $HOME/.pyinput 这个目录应该是 chinput 生成的吧?
>
by unicon-im and chinput
> [2] ysu@hua:~/.pyinput$ ls
> sysfrequency.tab usrphrase.tab
> 这两个文件是有 x 属性的, 应该算是 bug 吧?
>
这个x位不会造成安全问题,不过的确没有什么用。
> [3] /usr/lib/unicon/bin/tab2txt 是 unicon 的一个程序.
> 我想用它把 usrphrase.tab 转化为 text 看看.
> bash:~/.pyinput$ /usr/lib/unicon/bin/tab2txt usrphrase.tab user.txt
> ./pinyin.map file not found
>
> 看到 unicon-im 里有一个 pinyin.map, 就 copy 过来.
> bash:~/.pyinput$ cp /usr/lib/unicon/modules/cce/dict/pinyin.map .
> bash:~/.pyinput$ /usr/lib/unicon/bin/tab2txt usrphrase.tab user.txt
> usrphrase.tab is not a valid pinyin phrase file.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ???
It's a bug, and has been fixed in unicon_3.0.3-7 You needn't copy pinyin.map to that directory.
It works for me now.
ii unicon-im 3.0.4-1 Chinese Input Method Libaray
ygh@saka:~/.pyinput$ /usr/lib/unicon/bin/tab2txt usrphrase.tab out.txt
ygh@saka:~/.pyinput$ ls -l
total 60
-rw-r--r-- 1 ygh ygh 2181 10月 2 08:50 out.txt
-rw------- 1 ygh ygh 43864 9月 22 20:32 sysfrequency.tab
-rwxr-xr-x 1 ygh ygh 6012 10月 2 08:50 tab2txt
-rw------- 1 ygh ygh 2116 9月 22 20:32 usrphrase.tab
ygh@saka:~/.pyinput$ more out.txt
奥斯卡 ao si ka 1
报价 bao ji 3
报修 bao xiu 3
播号 bo hao 1
不怪 bu guai 1
不停 bu tie 3
不肯 bu ke 1
不就 bu jiong 1
重写 chong xiao 1
...
>
> [4] chinput 的 source 没有 .changes 文件, (当然我也发现很多别的
> package 同样没有), 如果没有 .changes, 我们如何用 lintian 对 package
> 的合理性进行检查?
>
你指的是unicon_3.0.4-1_i386.changes吗? 这个是制作deb包时自动生成的.
It's not a part of source.
> [5] chinput 有两个 binary -- chinput & kpengine, 但是却没有相应的
> man page, 这是否符合 debian 的 policy ?
>
不符合,但问题不很严重。;-)
Reply to: