If it can be uploaded somewhere, like I did for vimim.pinyin.txt, it
would be great! Again, I am not sure if Google like it or not.
I don't have google.dic. By looking at the code, I am wondering if it
is valid to change ^M to \r to make it portable? (I don't like ^M,
but it might be required somehow)
iconv -f gbk -t utf-8 "$@" | sed -e 's/ //g;s/\r$//g' | awk 'NR==1 {a=
$3; printf "%s %s",$3,$1; next; }{ if($3==a) printf " %s",$1;else
printf "\n%s %s",$3,$1; a=$3;}' | sort -d
Thanks
> google2vimim
> < 1KViewDownload
Wait ...
It seems possible to "port" the code to Vim script?
If it does, then I can include it in vimim.vim, and add one more
function.
Then, I don't need to upload/maintain pinyin datafile anymore!!!
The datafile is not supposed to be part of vimim.vim, in my opinion.
That is cool.
If it can be uploaded somewhere, like I did for vimim.pinyin.txt, it
would be great! Again, I am not sure if Google like it or not.
I don't have google.dic. By looking at the code, I am wondering if it
is valid to change ^M to \r to make it portable? (I don't like ^M,
but it might be required somehow)
iconv -f gbk -t utf-8 "$@" | sed -e 's/ //g;s/\r$//g' | awk 'NR==1 {a=
$3; printf "%s %s",$3,$1; next; }{ if($3==a) printf " %s",$1;else
printf "\n%s %s",$3,$1; a=$3;}' | sort -d
On May 21, 8:46 am, Wenbo Yang <sol...@gmail.com> wrote:
> Hi All,
>
> 我写了一个将 Google 拼音输入法词库转换为 Vimim 词库的脚本,贴在这里,希望对大家有用。
Please tell me if you cannot download from there.
Wenbo Yang wrote:
> Sharing my phrase dictionary will have some risk of leaking private
> information. I am sorry.
>
> 2009/5/22 wang feng <wanng...@gmail.com <mailto:wanng...@gmail.com>>