From: Alecs K. <al...@pe...> - 2004-07-13 18:44:21
|
Hi, all After talking with lang2 (see another thread on our ML), i improved the install script for most portability (hopefully works on most UN*X platforms) as well as other tweaks. Highlights: 1) ./vimcdoc.sh install|uninstall ==> ./vimcdoc.sh -i|-u 2) Auto-detect $VIM 3) Echo installing process For details, do a cvs diff. =) Tested on fbsd. Please run it on your system and do tell me if something's wrong or needed to be polished. Thanks & Regards. -- Alecs King |
From: Simon L. <wzh...@sp...> - 2004-07-14 08:52:30
|
> > 1) ./vimcdoc.sh install|uninstall ==> ./vimcdoc.sh -i|-u Besides less typing, is there more reason for this? lang2 -- Simon Liang wzh...@sp... |
From: Alecs K. <al...@pe...> - 2004-07-14 11:23:38
|
On Wed, Jul 14, 2004 at 09:52:26AM +0100, Simon Liang wrote: > > > > 1) ./vimcdoc.sh install|uninstall ==> ./vimcdoc.sh -i|-u > > Besides less typing, is there more reason for this? No. Reducing key strokes is the very reason. Not a good idea? -- Alecs King |
From: Simon L. <wzh...@sp...> - 2004-07-14 12:34:15
|
> > Besides less typing, is there more reason for this? > > No. Reducing key strokes is the very reason. Not a good idea? The drawback I can see is that a user that is used to the old installation will type 'vimcdoc install' straight away and see an error. But heck. Let's leave it as it is. lang2 -- Simon Liang wzh...@sp... |
From: James He <ic...@us...> - 2004-07-16 07:17:46
|
on Wed, 14 Jul 2004 02:45:30 +0800 Alecs King <al...@pe...> wrote: > Please run it on your system and do tell me if something's wrong or > needed to be polished. I have tested the script on my Debian(sid) box. I seems that '.cnx' in the script should be changed into '.txt' because we only get *.txt files if we do a 'cvs co doc'. Also, it seems that we should rename the file 'tags' to 'tags-cn'. Another problem, should we add 'set helplang=cn' automatically for users? I think those who would like to install our package are willing to use the translated documents right after they install them. So why not change .vimrc file for them? :) (the same thing happens on the windows setup script) Best regards, -- James He |
From: Simon L. <wzh...@sp...> - 2004-07-16 09:25:29
|
> I have tested the script on my Debian(sid) box. Thanks, > I seems that '.cnx' in > the > script should be changed into '.txt' because we only get *.txt files if > we do > a 'cvs co doc'. You are not meant to install from a CVS sandbox. It won't work. If you have aap, do a 'aap release' to generate a release tarball and test from that. Alternatively, you can download the 0.7.0 release and replace the vimcdoc.sh script. > > Another problem, should we add 'set helplang=cn' automatically for users? I'd say no. > I think those who would like to install our package are willing to use > the > translated documents right after they install them. So why not change > .vimrc > file for them? :) I'd also say if a user is happy enough about Vim, he is happy enough to hack his own .vimrc file, or so he should be. > (the same thing happens on the windows setup script) ?? hmmm? No. The windows setup program doens't change the rc file. It only does :he @cn lang2 -- Simon Liang wzh...@sp... |
From: James He <ic...@us...> - 2004-07-16 10:44:31
|
on Fri, 16 Jul 2004 10:25:26 +0100 "Simon Liang" <wzh...@sp...> wrote: > You are not meant to install from a CVS sandbox. It won't work. If you > have aap, do a 'aap release' to generate a release tarball and test from > that. Alternatively, you can download the 0.7.0 release and replace the > vimcdoc.sh script. 哦,我的失误。我从cvs中安装的,改了doc目录的文件名之后 用新的 vimcdoc.sh 可以成功安装 :) > > (the same thing happens on the windows setup script) > ?? hmmm? > No. The windows setup program doens't change the rc file. It only does > :he @cn 表达的不对,我的意思是说如果*nix的安装脚本自动加入 set helplang=cn 的话 windows的安装脚本也应该相应的修改 :) 看来是不必了,呵呵 Best regards, -- James He |
From: Simon L. <wzh...@sp...> - 2004-07-16 10:56:54
|
> =B1=ED=B4=EF=B5=C4=B2=BB=B6=D4=A3=AC=CE=D2=B5=C4=D2=E2=CB=BC=CA=C7=CB=B5= =C8=E7=B9=FB*nix=B5=C4=B0=B2=D7=B0=BD=C5=B1=BE=D7=D4=B6=AF=BC=D3=C8=EB set = helplang=3Dcn =B5=C4=BB=B0 > windows=B5=C4=B0=B2=D7=B0=BD=C5=B1=BE=D2=B2=D3=A6=B8=C3=CF=E0=D3=A6=B5=C4= =D0=DE=B8=C4 :) =BF=B4=C0=B4=CA=C7=B2=BB=B1=D8=C1=CB=A3=AC=BA=C7=BA=C7 To wandys: Do you agree? lang2 --=20 Simon Liang wzh...@sp... |
From: Alecs K. <al...@pe...> - 2004-07-16 18:47:53
|
On Fri, Jul 16, 2004 at 11:56:52AM +0100, Simon Liang wrote: > > 表达的不对,我的意思是说如果*nix的安装脚本自动加入 set helplang=cn 的话 > > windows的安装脚本也应该相应的修改 :) 看来是不必了,呵呵 > > To wandys: Do you agree? I just thought this question the other day before. :h translated shows, "The 'helplang' option can be set to the preferred language(s). The default is set according to the environment." ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ So maybe we shouldnt set it explicitly in our script. But seems under zh_CN.XXX locale, helplang is set to 'zh' instead of 'cn'. What's it on your systems, pals? Is this a Vim bug? -- Alecs King |
From: Simon L. <wzh...@sp...> - 2004-07-17 12:26:44
|
> > I just thought this question the other day before. :h translated shows, > "The 'helplang' option can be set to the preferred language(s). The > default is set according to the environment." > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > So maybe we shouldnt set it explicitly in our script. But seems under > zh_CN.XXX locale, helplang is set to 'zh' instead of 'cn'. > > What's it on your systems, pals? Is this a Vim bug? 'zh'. I suppose if we make a link from 'tags-cn' to 'tags-zh', things would work. But it is not ideal. The reason why 'cn' is used is to allow a future translation work from 'tw'. But I dout it. I think I will ask Bram. lang2 -- Simon Liang wzh...@sp... |
From: Alecs K. <al...@pe...> - 2004-07-17 21:56:09
|
On Sat, Jul 17, 2004 at 01:26:37PM +0100, Simon Liang wrote: > > > > I just thought this question the other day before. :h translated shows, > > "The 'helplang' option can be set to the preferred language(s). The > > default is set according to the environment." > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > > So maybe we shouldnt set it explicitly in our script. But seems under > > zh_CN.XXX locale, helplang is set to 'zh' instead of 'cn'. > > > > What's it on your systems, pals? Is this a Vim bug? > > 'zh'. I suppose if we make a link from 'tags-cn' to 'tags-zh', things > would work. But it is not ideal. The reason why 'cn' is used is to > allow a future translation work from 'tw'. Yes, from your forwarded mail, Bram said he'd use 'cn' for tags naming. I just took a look at the Vim source code, did some grep and found what possibly caused this bug: vim63/src/options.c: around the line 3161: ------------------------------------------------------------------ #if defined(FEAT_MULTI_LANG) || defined(PROTO) /* * When 'helplang' is still at its default value, set it to "lang". * Only the first ___TWO___ characters of "lang" are used. */ ^^^^^^^^^ void set_helplang_default(lang) char_u *lang; { int idx; if (lang == NULL || STRLEN(lang) < 2) /* safety check */ return; idx = findoption((char_u *)"hlg"); if (!(options[idx].flags & P_WAS_SET)) { if (options[idx].flags & P_ALLOCED) free_string_option(p_hlg); p_hlg = vim_strsave(lang); if (p_hlg == NULL) p_hlg = empty_option; else p_hlg[2] = NUL; options[idx].flags |= P_ALLOCED; } } #endif ------------------------------------------------------------------ Easy to apply a dirty patch. But lets wait and see what Bram would say about this. Thanks & Regards, -- Alecs King |
From: Simon L. <wzh...@sp...> - 2004-07-20 15:41:43
|
Bram has made the patch available for 6.3 by patch 6.3.014. (It was only available for Vim 7). > > > What's it on your systems, pals? Is this a Vim bug? > > > > 'zh'. I suppose if we make a link from 'tags-cn' to 'tags-zh', things > > would work. But it is not ideal. The reason why 'cn' is used is to > > allow a future translation work from 'tw'. > > Yes, from your forwarded mail, Bram said he'd use 'cn' for tags naming. -- Simon Liang wzh...@sp... |