You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(30) |
Dec
(124) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(67) |
Feb
(9) |
Mar
(22) |
Apr
(1) |
May
(14) |
Jun
(8) |
Jul
|
Aug
(20) |
Sep
(120) |
Oct
(49) |
Nov
(11) |
Dec
(12) |
| 2004 |
Jan
(7) |
Feb
|
Mar
(61) |
Apr
(11) |
May
(30) |
Jun
(11) |
Jul
(50) |
Aug
|
Sep
(2) |
Oct
(6) |
Nov
(3) |
Dec
(13) |
| 2005 |
Jan
(29) |
Feb
(1) |
Mar
(24) |
Apr
(11) |
May
|
Jun
(20) |
Jul
(12) |
Aug
|
Sep
|
Oct
|
Nov
(16) |
Dec
(4) |
| 2006 |
Jan
|
Feb
(2) |
Mar
(21) |
Apr
(5) |
May
(21) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
(7) |
Aug
(3) |
Sep
(11) |
Oct
(5) |
Nov
(27) |
Dec
(29) |
| 2009 |
Jan
(10) |
Feb
(17) |
Mar
(13) |
Apr
(20) |
May
(40) |
Jun
(28) |
Jul
(22) |
Aug
(6) |
Sep
(3) |
Oct
|
Nov
|
Dec
(9) |
| 2010 |
Jan
(6) |
Feb
(3) |
Mar
(8) |
Apr
|
May
(2) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(2) |
| 2011 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(2) |
| 2012 |
Jan
|
Feb
(1) |
Mar
(9) |
Apr
(3) |
May
(1) |
Jun
(1) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
| 2013 |
Jan
|
Feb
(1) |
Mar
(9) |
Apr
(4) |
May
(2) |
Jun
(5) |
Jul
(3) |
Aug
(10) |
Sep
(4) |
Oct
(2) |
Nov
(3) |
Dec
(3) |
| 2014 |
Jan
(4) |
Feb
(2) |
Mar
(5) |
Apr
(3) |
May
(2) |
Jun
(5) |
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
(3) |
Nov
(5) |
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2016 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(3) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: wandys <al...@so...> - 2003-09-13 18:03:56
|
Test |
|
From: Dasn C. <da...@us...> - 2003-09-13 01:33:27
|
On Fri, Sep 12, 2003 at 03:06:02AM -0800, Simon Liang wrote: > Hi all, > > We've just made a new release (0.3.5) of the greate > vimcdoc project! :-) > https://sourceforge.net/project/showfiles.php?group_id=56777 > Enjoy! > > > Notes: > Mainly a fixing release. Loads of reviews and corrections. > New files translated. > > > Changes: > New file translated: > gui_w32.txt by dasn > gui_w16.txt by dasn > > Reviewed: > usr_05.txt by Dasn > usr_12.txt by Dasn > usr_31.txt by Dasn > usr_40.txt by Dasn > usr_30.txt by lang2 > usr_29.txt by lang2 > usr_28.txt by lang2 > usr_27.txt by lang2 > usr_26.txt by lang2 > usr_25.txt by lang2 > usr_24.txt by lang2 > usr_23.txt by lang2 > usr_22.txt by lang2 > -- > Simon Liang > wzh...@sp... > > -- > http://www.fastmail.fm - The way an email service should be > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Vimcdoc-translate mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vimcdoc-translate Well, got it. /* Don't frown. * Don't complain. * Don't touch yourself. */ Best Regards... Dasn |
|
From: Simon L. <wzh...@sp...> - 2003-09-12 11:06:05
|
Hi all, We've just made a new release (0.3.5) of the greate vimcdoc project! :-) https://sourceforge.net/project/showfiles.php?group_id=56777 Enjoy! Notes: Mainly a fixing release. Loads of reviews and corrections. New files translated. Changes: New file translated: gui_w32.txt by dasn gui_w16.txt by dasn Reviewed: usr_05.txt by Dasn usr_12.txt by Dasn usr_31.txt by Dasn usr_40.txt by Dasn usr_30.txt by lang2 usr_29.txt by lang2 usr_28.txt by lang2 usr_27.txt by lang2 usr_26.txt by lang2 usr_25.txt by lang2 usr_24.txt by lang2 usr_23.txt by lang2 usr_22.txt by lang2 -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - The way an email service should be |
|
From: Simon L. <wzh...@sp...> - 2003-09-09 09:05:09
|
Thunder, On Tue, 9 Sep 2003 09:41:52 +0800, "Thunder White" <th...@cu...> said: > > I had a view on usr_01.txt today. And I found that brackets are used at > random. Sometime Chinese brackets while English brackets another time. > Even > mixed up in one single sentence. I suggest that should we always use > "()",because that Chinese brackets is wasting room and is less nice than > English one. We had a debate on this on early in the project and decided to go with Chinese ones at most of the time. But bracket can be different. What you can do is make the changes you think that is approprite and we will review the difference quickly. lang2 > > > > thunder > > > -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - Access all of your messages and folders wherever you are |
|
From: Thunder W. <th...@cu...> - 2003-09-09 01:42:10
|
Hello everyone, I had a view on usr_01.txt today. And I found that brackets are used at random. Sometime Chinese brackets while English brackets another time. Even mixed up in one single sentence. I suggest that should we always use "()",because that Chinese brackets is wasting room and is less nice than English one. thunder |
|
From: Simon L. <wzh...@sp...> - 2003-09-08 21:48:20
|
Hi all, I am glad to introduce a new member - 'Thunder White' (thunderw). Thunder is a programmer in Shanghai and is replacing 'ultraedit' with Vim. :-) I've added him to the developer list and will update the web page when I have a chance. cheers, lang2 -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - A no graphics, no pop-ups email service |
|
From: Leslie J. <in...@so...> - 2003-08-29 19:32:17
|
Test -- Leslie Jackson |
|
From: Simon L. <wzh...@sp...> - 2003-08-29 14:29:46
|
All, I will be away for a week or so. So don't be suprised to see I quite down again for a while. And I hope you got everything finished when I come back. ;-) lang2 -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - The professional email service |
|
From: Simon L. <wzh...@sp...> - 2003-08-28 12:50:26
|
good work dasn!! -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - A no graphics, no pop-ups email service |
|
From: Dasn C. <das...@em...> - 2003-08-28 09:29:44
|
-- http://www.fastmail.fm - Faster than the air-speed velocity of an unladen european swallow |
|
From: Simon L. <wzh...@sp...> - 2003-08-27 08:49:01
|
On Wed, 27 Aug 2003 07:14:55 +0800, "Cups Dasn" <das...@ho...> said: > Hi guys, please follow this thread, because I wanna know whether I can=20 > receive from the mailing list. Thanx. OK here. >=20 > Best Regards > Dasn >=20 > _________________________________________________________________ > =D3=EB=C1=AA=BB=FA=B5=C4=C5=F3=D3=D1=BD=F8=D0=D0=BD=BB=C1=F7=A3=AC=C7=EB= =CA=B9=D3=C3 MSN Messenger: http://messenger.msn.com/cn=20=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Vimcdoc-translate mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vimcdoc-translate --=20 Simon Liang wzh...@sp... --=20 http://www.fastmail.fm - Or how I learned to stop worrying and love email again |
|
From: Cups D. <das...@ho...> - 2003-08-26 23:15:27
|
Hi guys, please follow this thread, because I wanna know whether I can receive from the mailing list. Thanx. Best Regards Dasn _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn |
|
From: Simon L. <wzh...@sp...> - 2003-08-26 14:37:30
|
On Mon, 25 Aug 2003 12:42:37 +0800, "Dasn Cups" <Da...@my...> said: > gui_w32.txt done. Well done. And I see you picked up gui_w16.txt already. Translation work on gui_x11.txt has been taken by yemao but no progress made since. It would be good if we can finish that one as well. Unfortunately I am trying to review as many documents as I can. So could someone else look after that? bitter_swt, corass, this would be a good time to start. -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - I mean, what is it about a decent email service? |
|
From: Dasn C. <Da...@my...> - 2003-08-26 14:08:32
|
gui_w32.txt done. I have committed that file to the CVS server. thanks. /* * Don't frown. * Don't complain. * Don't touch yourself. */ |
|
From: Simon L. <wzh...@sp...> - 2003-08-26 09:04:45
|
Dasn, Can you write up a short description of this plugin? What is it good at exactly? I nearly had to go through the code to figure out. On Mon, 25 Aug 2003 14:26:26 +0800, "Dasn Cups" <Da...@my...> said: > I happened to find this plugin file which can help us format multibyte > text. I hope it can be useful. -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - IMAP accessible web-mail |
|
From: Simon L. <wzh...@sp...> - 2003-08-26 04:32:58
|
Dasn, On Fri, 22 Aug 2003 12:17:07 +0800, "Dasn Cups" <Da...@my...> said: > Hi guys=A3=A1I finally joined this mail list.:) I hope at least you can receive mail from mailing list without problem. >=20 > I got a problem that how did you deal with the "space" characters? I'd > like to set the 'expandtab' option on when I use Vim, what about u? Did > we have a standard for that when we translating? Thanks No. Don't 'expandtab'. The Vim helpfile has a certain syntax that depends= =20 on tabbing. So keep them and make sure you don't change the syntax hilighting of the document. I always have 'list' option turned on when translating and found that very useful. --=20 Simon Liang wzh...@sp... --=20 http://www.fastmail.fm - Access all of your messages and folders wherever you are |
|
From: Dasn C. <Da...@my...> - 2003-08-25 22:11:41
|
I happened to find this plugin file which can help us format multibyte text=
. I hope it can be useful.
"=09=09=09=09=09=09=09=09 Version 1.5
" format.vim -=09Format multibyte text, for tha languages, which can split
"=09=09line anywhere, unless prohibited. (for Vim 6.0 alpha)
"
" Last Change:=09 12-Jan-2002.
" Maintainer:=09 Muraoka Taro <ko...@tk...>
" Practised By:=09 Takuhiro Nishioka <tak...@su...>
" Base Idea:=09 Muraoka Taro <ko...@tk...>
" Copyright:=09 Public Domain
" Modified:=09 Edward G.J. Lee <ed...@sp...> 2002.02.11
" =D7=D4=D0=D0=B8=FC=B8=C4=CE=AA cp950 =D2=D4=CA=CA=BA=CF=B7=B1=CC=E5=D6=D0=
=CE=C4
scriptencoding cp950
" function Format(start_line_number, end_line_number)
"=20
" Format() will allow format multibyte text. In some of East Asian
" languages, the line can break anywhere, unless prohibited. Original Vim'=
s
" "gq" format command doesn't allow to break line at the midst of word.
" This function split line at each multibyte character. And it can handle
" prohibited line break rules.
"
" This function is following Vim's "gq" command. But there will be lack of
" something.
if exists('plugin_format_disable')
finish
endif
"--------------------------------------------------------------------------=
-
"=09=09=09=09 Options
"
" "format_command"
"
" Specifies the format command that format lines to the width the
" 'textwidth' option specifies. The "Q" command formerly did this, so if yo=
u
" still want to use "Q", set this to "Q"
"
"let format_command =3D "Q"
if !exists('format_command')
let format_command =3D "gq"
endif
"
" "format_join_spaces"
"
" Delete a space , when joining lines, according to the following rules.
" This rule is also applied to "J" command
" 1=09line end with AND next line start with a multibyte char
" 2=09line end with OR next line start with a multibyte char
" 3=09same with original join command
"
if !exists("g:format_join_spaces")
let g:format_join_spaces =3D 1
endif
"
" "format_follow_taboo_rule"
"
" Move to a point that will not break forbidden line break rules. If you
" don't want to do this, set this to "0".
"
if !exists("g:format_follow_taboo_rule")
let g:format_follow_taboo_rule =3D 1
endif
"
" "format_allow_over_tw"
"
" The width that can over 'textwidth'. This variable is used for taboo rule=
.
"
if !exists("g:format_allow_over_tw")
let g:format_allow_over_tw =3D 2
endif
"
" "format_indent_sensitive"
"
" When the indentation changes, it's the end of a paragraph. Note that if
" this option is set, second indentation is disabled.
"
if !exists("g:format_indent_sensitive")
let g:format_indent_sensitive =3D 0
endif
"--------------------------------------------------------------------------=
-
"=09=09=09=09 Sub Options
"
" "g:format_no_begin"
"
" This option is space-separated list of characters, that are forbidden to
" be at beginning of line. Add two spaces for ASCII characters. See also
" TabooRuleMatch()
let g:format_no_begin =3D "! , . ? ) ] } - _ ~ : ; =A3=A1 =A3=
=AC =A1=A3 =A3=BF =A3=A9 =A3=BA =A3=BB "
"
" "g:format_no_end"
"
" This option is space-separated list of characters, that are forbidden to
" be at end of line. Add two spaces for ASCII characters. See also
" TabooRuleMatch()
"
let g:format_no_end =3D "( [ { "
"
" For Japanese. There are encoding name aliases, so we cannot directly
" compare option 'encoding' with locale name (ex: 'japan').
"
"let s:save_encoding =3D &encoding
"let &encoding =3D 'japan'
"if &encoding =3D=3D s:save_encoding
" let no_b =3D ''
" let no_b =3D no_b . "?? ?? ?f ?h ?? ?? ?? ?? ?A ?B ?X ?r ?t ?v ?x ?z ?l =
"
" let no_b =3D no_b . "?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?J ?K ?T ?U "
" let no_b =3D no_b . "?@ ?B ?D ?F ?H ?b ?? ?? ?? ?? ?? ?? "
" let no_b =3D no_b . "?E ?[ ?R ?S ?I ?? ?j ?C ?D ?F ?G ?H ?n ?p ?c ?` "
" let no_e =3D ''
" let no_e =3D no_e . "?? ?e ?g ?q ?s ?u ?w ?y ?k ?? ?i ?m ?o ?? "
" let g:format_no_begin =3D g:format_no_begin . no_b
" let g:format_no_end =3D g:format_no_end . no_e
" unlet no_b no_e
"endif
"let &encoding =3D s:save_encoding
"unlet s:save_encoding
"
" "s:format_motion_list"
"
" Specifiles the motion command that could follow "format_command". These
" are pairs of two letters. Note that not all motion commands can be
" specified here. Use visual mode for other motions.
"
let m_list =3D "apawaWasa]a[a)a(aba>a}a{aB"
let m_list =3D m_list . "ipiwiWisi]i[i)i(ibi>i}i{iB"
let m_list =3D m_list . "gqq "
let m_list =3D m_list . "h j k l 0 ^ $ ; , - + w W e E b B "
let m_list =3D m_list . "( ) { } n N % H M L G / ? "
let m_list =3D m_list . "gjgkggg0g^gmgegEg$]][[][[[[]''``"
let m_list =3D m_list . "'[`[']`]'<`<'>`>'\"`\""
let m_list =3D m_list . "[([{])]}]m]M[m[M[#]#[*[/"
let m_list =3D m_list . "'a'b'c'd'e'f'g'h'i'j'k'l'm'n'o'p'q'r's't'u'v'w'x'y=
'z"
let m_list =3D m_list . "`a`b`c`d`e`f`g`h`i`j`k`l`m`n`o`p`q`r`s`t`u`v`w`x`y=
`z"
let m_list =3D m_list . "2j3j4j5j6j7j8j9j"
let m_list =3D m_list . "2k3k4k5k6k7k8k9k"
let m_list =3D m_list . "2H3H4H5H6H7H8H9H"
let m_list =3D m_list . "2L3L4L5L6L7L8L9L"
let s:format_motion_list =3D m_list
unlet m_list
"--------------------------------------------------------------------------=
-
"
" DoMappings()
" Do mappings.
"
function! DoMappings()
" Normal mode mappings.
let length =3D strlen(s:format_motion_list)
let i =3D 0
while i <=3D length - 2
let motion =3D strpart(s:format_motion_list, i, 2)
let motion =3D substitute(motion, " $", "", "")
execute "nmap <silent> " . g:format_command . motion . " :call " . "<SI=
D>FormatWorkhorse(\"" . motion . "\")<CR>"
let i =3D i + 2
endwhile
" Visual mode mapping.
execute "vmap <silent> ".g:format_command." <ESC>:call"." <SID>Format(lin=
e(\"'<\"), line(\"'>\"))<CR>"
" Change "J" to follow "g:format_join_spaces"
nmap <silent> J :call <SID>DoRangeJoin("")<CR>
vmap <silent> J <ESC>:call <SID>DoJoinRange(line("'<"), line("'>"))<CR>
endfunction
"
" FormatWorkhorse(motion)
" Select the area that moves over, then pass the start and end line numbe=
r
" of the area to Format()
"
function! s:FormatWorkhorse(motion)
if a:motion =3D=3D "gq" || a:motion =3D=3D "q"
execute "normal! V\<ESC>"
elseif a:motion =3D=3D "/" || a:motion =3D=3D "?"
execute "let pattern =3D input(\"" . a:motion . "\")"
execute "normal! v" . a:motion . pattern . "\<CR>\<ESC>"
else
execute "normal! v" . a:motion . "\<ESC>"
endif
call s:Format(line("'<"), line("'>"))
endfunction
"
" Format(start_lnum, end_lnum)
" Format the area from the start line number to the end line number.
"
function! s:Format(start_lnum, end_lnum)
let count_nr =3D a:end_lnum - a:start_lnum + 1
let advance =3D 1
" current line is the start of a paragraph.
let first_par_line =3D 1
" the second indent
let second_indent =3D "default"
" Check 2 in the formatoptions
let do_second_indent =3D s:HasFormatOptions('2')
let showcmd_save =3D &showcmd
set noshowcmd
let wrap_save =3D &wrap
set nowrap
let lazyredraw_save =3D &lazyredraw
set lazyredraw
" Set cursor to the start line number.
call s:SetCursor(a:start_lnum)
" Get info about the previous and current line.
if a:start_lnum =3D=3D 1
" current line is not part of paragraph
let is_not_par =3D 1
else
normal! k
" the commet leader of current line
let leader =3D s:GetLeader()
let is_not_par =3D s:FmtCheckPar(leader)
normal! j
endif
" the commet leader of next line
let next_leader =3D s:GetLeader()
" next line not part of paragraph
let next_is_not_par =3D s:FmtCheckPar(next_leader)
" at end of paragraph
let is_end_par =3D is_not_par || next_is_not_par
" operation top
let op_top =3D 1
while count_nr > 0
" Advance to next paragraph.
if advance
if op_top
=09let op_top =3D 0
else
=09normal! j
endif
let leader =3D next_leader
let is_not_par =3D next_is_not_par
" previous line is end of paragraph
let prev_is_end_par =3D is_end_par
endif
" The last line to be formatted.
if count_nr =3D=3D 1
let next_leader =3D ""
let next_is_not_par =3D 1
else
normal! j
let next_leader =3D s:GetLeader()
let next_is_not_par =3D s:FmtCheckPar(next_leader)
normal! k
endif
let advance =3D 1
let is_end_par =3D is_not_par || next_is_not_par
" Skip lines that are not in a paragraph.
if !is_not_par
" For the first line of a paragraph, check indent of second line.
" Don't do this for comments and empty lines.
if first_par_line
=09 \&& do_second_indent
=09 \&& prev_is_end_par
=09 \&& leader =3D~ "^\\s*$"
=09 \&& next_leader =3D~ "^\\s*$"
=09 \&& getline(line(".") + 1) !~ "^$"
=09let second_indent =3D next_leader
endif
" When the comment leader changes, it's the end of the paragraph
if !s:SameLeader(leader, next_leader)
=09let is_end_par =3D 1
endif
" If we have got to the end of a paragraph, format it.
if is_end_par
=09" do the formatting
=09call s:FormatLine(second_indent)
=09let second_indent =3D "default"
=09let first_par_line =3D 1
endif
" When still in same paragraph, join the lines together.
if !is_end_par
=09let advance =3D 0
=09" join current line and next line without the comment leader
=09call s:DoJoin(next_leader)
=09let first_par_line =3D 0
endif
endif
let count_nr =3D count_nr - 1
endwhile
if wrap_save
set wrap
endif
if !lazyredraw_save
set nolazyredraw
endif
if showcmd_save
set showcmd
endif
endfunction
"
" FormatLine(second_indent)
" Format currentline.
"
function! s:FormatLine(second_indent)
" check textwidth
if &textwidth =3D=3D 0
let textwidth =3D 76
else
let textwidth =3D &textwidth
endif
let do_second_indent =3D s:HasFormatOptions("2")
let fo_do_comments =3D s:HasFormatOptions("q")
let second_indent =3D a:second_indent
" save the original option's value
let formatoptions_save =3D &formatoptions
let iskeyword_save =3D &iskeyword
let leader_width =3D s:GetLeader("get_leader_width")
" When fo_do_comments is TRUE, set formatoptions value so that the commen=
t
" leader is set for next line.
if fo_do_comments
set formatoptions+=3Dr
else
set formatoptions-=3Dr
endif
" Set iskeyword option value to every printable ascii characters, so that
" "w" can stop at only multibyte-ascii boundary or white space.
set iskeyword=3D"!-~"
call s:SetCursor(line("."), textwidth)
while s:GetWidth() > virtcol(".")
let finish_format =3D 0
let force_fold =3D 0
let do_insert =3D 0
let max_width =3D virtcol(".") + g:format_allow_over_tw
let ch =3D s:GetCharUnderCursor()
normal! l
let next_ch =3D s:GetCharUnderCursor()
normal! h
" English word folding
if ch =3D~ "[!-~]\\{1}" && next_ch =3D~ "[!-~]\\{1}"
call s:MoveToWordBegin()
if virtcol(".") - 1 > leader_width
=09" move to previous word end
=09normal! ge
endif
endif
" Skip white spaces
if ch =3D~ "\\s"
while ch =3D~ "\\s" && virtcol(".") - 1 > leader_width
=09normal! h
=09let ch =3D s:GetCharUnderCursor()
endwhile
let force_fold =3D 1
endif
if virtcol(".") - 1 <=3D leader_width
call s:MoveToFirstWordEnd(leader_width)
let force_fold =3D 1
if s:GetWidth() =3D=3D virtcol(".")
=09let finish_format =3D 1
endif
endif
" Taboo rule
if !finish_format && !force_fold && g:format_follow_taboo_rule
normal! l
let next_ch =3D s:GetCharUnderCursor()
normal! h
if s:TabooRuleMatch(g:format_no_begin, next_ch)
=09normal! l
=09while s:TabooRuleMatch(g:format_no_begin, next_ch)
=09 " if cursor is at the line end, break.
=09 if s:GetWidth() =3D=3D virtcol(".")
=09 let finish_format =3D 1
=09 break
=09 endif
=09 normal! l
=09 let next_ch =3D s:GetCharUnderCursor()
=09endwhile
=09if !finish_format
=09 normal! h
=09endif
endif
let ch =3D s:GetCharUnderCursor()
if virtcol(".") > max_width
=09let finish_format =3D 0
=09while s:TabooRuleMatch(g:format_no_begin, ch)
=09 \&& virtcol(".") - 1 > leader_width
=09 normal! h
=09 let ch =3D s:GetCharUnderCursor()
=09endwhile
=09if ch =3D~ "[!-~]\\{1}"
=09 call s:MoveToWordBegin()
=09 if virtcol(".") - 1 > leader_width
=09 normal! ge
=09 else
=09 call s:MoveToFirstWordEnd(leader_width)
=09 let force_fold =3D 1
=09 endif
=09else
=09 let do_insert =3D 1
=09endif
endif
let ch =3D s:GetCharUnderCursor()
if s:TabooRuleMatch(g:format_no_end, ch) && !force_fold
=09let do_insert =3D 0
=09while s:TabooRuleMatch(g:format_no_end, ch)
=09 \&& virtcol(".") -1 > leader_width
=09 normal! h
=09 let ch =3D s:GetCharUnderCursor()
=09endwhile
=09if virtcol(".") -1 <=3D leader_width
=09 call s:MoveToFirstWordEnd(leader_width)
=09endif
endif
endif
if finish_format
break
endif
if do_insert
call s:InsertNewLine()
else
call s:AppendNewLine()
endif
if do_second_indent && second_indent !=3D "default"
call setline(line(".")
=09 \, second_indent . substitute(getline("."), "^\\s*", "", ""))
let do_second_indent =3D 0
if strlen(second_indent) > 0
=09normal! h
endif
endif
if virtcol(".") =3D=3D 1
let leader_width =3D 0
else
let leader_width =3D virtcol(".")
endif
call s:SetCursor(line("."), textwidth)
endwhile
execute "set formatoptions=3D" . formatoptions_save
execute "set iskeyword=3D" . iskeyword_save
endfunction
"
" GetLeader(...)
" Get the comment leader string from current line. If argument
" is specified, then return the comment leader width. Note that
" returned comment leader and the current line's comment leader is
" not always same.
"
function! s:GetLeader(...)
if !s:HasFormatOptions('q')
if a:0 =3D=3D 1
return 0
endif
return ""
endif
let col_save =3D virtcol(".")
let formatoptions_save =3D &formatoptions
let autoindent_save =3D &autoindent
let cindent_save =3D &cindent
let smartindent_save =3D &smartindent
set formatoptions+=3Do
set autoindent
set nocindent
set nosmartindent
execute "normal! ox\<ESC>\"_x"
if a:0 =3D=3D 1
if getline(".") =3D~ "^$"
let leader_width =3D 0
else
let leader_width =3D virtcol(".")
endif
endif
let leader =3D getline(".")
if line(".") =3D=3D line("$")
normal! "_dd
else
normal! "_ddk
endif
execute "set formatoptions=3D" . formatoptions_save
if !autoindent_save
set noautoindent
endif
if cindent_save
set cindent
endif
if smartindent_save
set smartindent
endif
execute "normal! " . col_save . "|"
if a:0 =3D=3D 1
return leader_width
else
return leader
endif
endfunction
"
" FmtCheckPar(leader)
" Blank lines, lines containing only white space or the comment leader,
" are left untouched by the formatting. The function returns true in this
" case.
"
function! s:FmtCheckPar(leader)
let three_start =3D substitute(&com, '.*s[^:]*:\([^,]*\),.*', '\1', '')
let three_end =3D substitute(&com, '.*e[^:]*:\([^,]*\),.*', '\1', '')
let line =3D substitute(getline("."), "\\s*$", "", "")
let line =3D substitute(line, "^\\s*", "", "")
let leader =3D substitute(a:leader, "\\s*$", "", "")
let leader =3D substitute(leader, "^\\s*", "", "")
if line =3D=3D three_start || line =3D=3D three_end
return 1
endif
return line =3D=3D leader
endfunction
"
" SameLeader(leader1, leader2)
" Return true if the two comment leaders given are the same. White-space =
is
" ignored.
"
function! s:SameLeader(leader1, leader2)
if g:format_indent_sensitive
return a:leader1 =3D=3D a:leader2
else
return substitute(a:leader1, "\\s\\+$", "", "")
=09\=3D=3D substitute(a:leader2, "\\s\\+$", "", "")
endif
endfunction
"
" SetCursor(lnum, width)
" Set cursor to the line number, then move the cursor to within the width
" and the most right virtual column.
"
function! s:SetCursor(lnum, ...)
execute a:lnum
if a:0 =3D=3D 1
execute "normal! " . a:1 . "|"
if a:1 > 2 && virtcol(".") > a:1
normal! h
endif
endif
endfunction
"
" HasFormatOptions(x)
" Return true if format option 'x' is in effect. Take care of no
" formatting when 'paste' is set.
"
function! s:HasFormatOptions(x)
if &paste
\|| (a:x =3D=3D "2" && !&autoindent)
\|| (a:x =3D=3D "2" && g:format_indent_sensitive)
return 0
endif
return &formatoptions =3D~ a:x
endfunction
"
" DoRangeJoin(next_leader)
" DoJoin driver, able to support range.
"
function! s:DoRangeJoin(next_leader) range
if count > 2
let repeat =3D count - 1
else
let repeat =3D 1
endif
while repeat
call s:DoJoin(a:next_leader)
let repeat =3D repeat - 1
endwhile
endfunction
"
" DoJoin(next_leader)
" Join line and next line ,according to g:format_join_spaces. The comment
" leader will be removed.
"
function! s:DoJoin(next_leader)
if line(".") =3D=3D line("$")
return
endif
let showcmd_save =3D &showcmd
set noshowcmd
let wrap_save =3D &wrap
set nowrap
let lazyredraw_save =3D &lazyredraw
set lazyredraw
normal! $
let end_char =3D s:GetCharUnderCursor()
if s:HasFormatOptions("q") && a:next_leader !=3D ""
let next_leader =3D escape(a:next_leader, '^.*\$~[]')
let next_leader =3D "^" . substitute(next_leader, "\\s*$", "", "")
normal! j0
if getline(".") =3D~ next_leader
call setline(line("."), substitute(getline("."), next_leader, "", "")=
)
else
let leader_width =3D s:GetLeader("get_leader_width")
let i =3D leader_width + 1
execute "normal! 0\"_d" . i . "|"
endif
normal! k
endif
normal! J
if s:GetWidth() > virtcol(".") && s:GetCharUnderCursor() =3D=3D " "
normal! l
let begin_char =3D s:GetCharUnderCursor()
normal! h
if g:format_join_spaces =3D=3D 1
=09\&& (strlen(end_char) > 1 && strlen(begin_char) > 1)
normal! "_x
elseif g:format_join_spaces =3D=3D 2
=09\&& (strlen(end_char) > 1 || strlen(begin_char) > 1)
normal! "_x
endif
endif
if wrap_save
set wrap
endif
if !lazyredraw_save
set nolazyredraw
endif
if showcmd_save
set showcmd
endif
endfunction
"
" DoJoinRange(start_lnum, end_lnum)
" Join lines from start_lnum to end_lnum, according to the
" "$fomrat_join_spaces"
"
function! s:DoJoinRange(start_lnum, end_lnum)
let count_nr =3D a:end_lnum - a:start_lnum
call s:SetCursor(a:start_lnum)
while count_nr > 0
call s:DoJoin("")
let count_nr =3D count_nr - 1
endwhile
endfunction
"
" GetWidth()
" Return the current line width. If the line is empty returns 0. Note tha=
t
" if the character at the line end is a multibyte character, this returns
" real width minus 1, same as virtcol().
"
function! s:GetWidth()
return virtcol("$") - 1
endfunction
"
" GetCharUnderCursor()
" Get (multibyte) character under current cursor.
"
function! s:GetCharUnderCursor()
let str =3D getline(".")
let idx =3D col(".") - 1
let ch =3D str[idx]
if char2nr(ch) >=3D 128
return strpart(str, idx, 2)
else
return ch
endif
endfunction
"
" AppendNewLine()
" Insert newline after cursor.
"
function! s:AppendNewLine()
execute "normal! a\<CR>\<ESC>"
endfunction
"
" InsertNewLine()
" Insert newline before cursor.
"
function! s:InsertNewLine()
execute "normal! i\<CR>\<ESC>"
endfunction
"
" MoveToWordEnd()
" Move to the word end.
"
function! s:MoveToWordEnd()
if line(".") =3D=3D 1
normal! wge
else
normal! gee
endif
endfunction
"
" MoveToWordBegin()
" Move to the word begin.
"
function! s:MoveToWordBegin()
if line(".") =3D=3D 1
normal! wb
else
normal! gew
endif
endfunction
"
" MoveToFirstWordEnd()
" Move to the first word end after the comment leader.
"
function! s:MoveToFirstWordEnd(leader_width)
let i =3D a:leader_width + 1
execute "normal! " . i . "|"
call s:MoveToWordEnd()
endfunction
"
" TabooRuleMatch(taboo_rule_list, char)
" Return true when the character matches one of taboo_rule_list
"
function! s:TabooRuleMatch(taboo_rule_list, char)
" add spaces to char so to match exactly one of the list
if strlen(a:char) > 1
let ch =3D a:char . " "
else
let ch =3D a:char . " "
endif
" escape the special character
return a:taboo_rule_list =3D~ escape(ch, '^.*\$~[]')
endfunction
call DoMappings()
" vi:set ts=3D8 sts=3D2 sw=3D2 tw=3D0:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
/*
* Don't frown.
* Don't complain.
* Don't touch yourself.
*/
|
|
From: Simon L. <wzh...@sp...> - 2003-08-25 16:34:13
|
Hi Dasn, On Mon, 25 Aug 2003 14:24:3 +0800, "Dasn Cups" <da...@my...> said: > Hi, wzhliang > Can u receive this letter? I hope u can. Yes I can. > I met a problem that our mailing list couldn't receive my emails when > I sent the mail via SMTP, but it could via Web. I registered to this > mailing list using Web client. Any idea? Either way you should be fine. Unless sourceforge is blocking some email from certain smtp server. I don't know. > Anyway, I finished gui_w32.txt that had been committed to the CVS, and I happened to find an interesting file plugin which can help us format multibyte text. All these files are included in the attachment. Thanks. That was quick. I've made according to your mistakes.txt. Good spots. You can check the changes to make sure I did them correctly if you like. I will try the plugin later. -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - The professional email service |
|
From: Dasn C. <Da...@my...> - 2003-08-24 23:02:32
|
Hi,Leslie Jackson =09I did set 'expandtab' option because the spaces can keep the texts' styl= e from being changed when users reading them by using other programs, such as cat, less, more, etc. Anytime, few pepole read Vim manuals without Vim. =09Thanks for your advice, I'll change it back soon. =09=09=09 Best Regards Dasn -----Original Message----- From: Leslie Jackson <cew...@16...> To: vim...@li... Date: Fri, 22 Aug 2003 14:15:39 +0800=20 Subject: Re: [Vimcdoc-translate] Tab or Space? On Fri, 22 Aug 2003 12:17:07 +0800 "Dasn Cups" <Da...@my...> wrote: > Hi guys=A3=A1I finally joined this mail list.:) Congrats. > I got a problem that how did you deal with the "space" characters?=20 > I'd like to set the 'expandtab' option on when I use Vim, what about > u? Did we have a standard for that when we translating?=20 Remain it as is (in the original English docs). --=20 Leslie Jackson ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/= 0 _______________________________________________ Vimcdoc-translate mailing list Vim...@li... https://lists.sourceforge.net/lists/listinfo/vimcdoc-translate /* * Don't frown. * Don't complain. * Don't touch yourself. */ |
|
From: Leslie J. <cew...@16...> - 2003-08-22 06:16:05
|
On Fri, 22 Aug 2003 12:17:07 +0800 "Dasn Cups" <Da...@my...> wrote: > Hi guys!I finally joined this mail list.:) Congrats. > I got a problem that how did you deal with the "space" characters? > I'd like to set the 'expandtab' option on when I use Vim, what about > u? Did we have a standard for that when we translating? Remain it as is (in the original English docs). -- Leslie Jackson |
|
From: Dasn C. <Da...@my...> - 2003-08-22 04:17:25
|
Hi guys=A3=A1I finally joined this mail list.:) I got a problem that how did you deal with the "space" characters? I'd lik= e to set the 'expandtab' option on when I use Vim, what about u? Did we h= ave a standard for that when we translating? Thanks |
|
From: Leslie J. <cew...@16...> - 2003-08-18 12:39:46
|
On Mon, 18 Aug 2003 01:15:21 -0800 "Simon Liang" <wzh...@sp...> wrote: > Welcome dasn. This is getting a bit exciting now. > We have 2 new member joining in about a week! > Welcome aboard, corass & dasn :) Thanks for joining us. -- Leslie Jackson |
|
From: Simon L. <wzh...@sp...> - 2003-08-18 09:19:34
|
Hi Dasn, > I'm sorry that I was not familar with the mail system of sourceforge.net, > so I send this message to u again but this time with a accessory. As you can see, I received your mail without problem. Apologize for the late response - I was away for the weekend. Did you subscribe to the mailing list? If you have any problem, let me know. > I have read through your project, and found a few mistakes(maybe:-)). Great!!! I am in a reviewing process (well, supposed to be) and this can be very useful. I will check it out! Thanks for that. lang2 -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - Access all of your messages and folders wherever you are |
|
From: Simon L. <wzh...@sp...> - 2003-08-18 09:15:24
|
Welcome dasn. This is getting a bit exciting now. We have 2 new member joining in about a week! I'll do the normal... adding you to the member list and maybe update the status page. Can I ask you to check out the file you are working on? Thanks, lang2 On Fri, 15 Aug 2003 16:07:12 -0700, "Dasn Cups" <da...@us...> said: > > user_name: dasn > user_id: 843591 > > I'm now working on gui_w32.txt > thanks! -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - A fast, anti-spam email service. |
|
From: Simon L. <wzh...@sp...> - 2003-08-11 09:09:23
|
Hi corass, > 你好: > 我是一位开源爱好者,希望能加入你们。 > 我的SF ID:corass Greate!! Thanks for the interest. We will be very happy to have you join us. I've added you id to the developer list asap! Could you subscribe to our mailing list as well? I am kind of trapped by other annoying things at the moment and may seem a bit quiet but will be back soon. For a start, if you could check out the 'data' module and read guide.txt. If you have any question, please do not hesitate to ask. > > 非常感谢! Rgds, lang2 -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - One of many happy users: http://www.fastmail.fm/docs/quotes.html |