Cũng có phân biệt giữa " và ' nhưng không đáng kể đâu. Người ta (kể cả tôi)
vẫn dùng lẫn lộn.
1+ cho thay thế tự động thành " hoặc '

2009/6/4 Nguyen Vu Hung <[email protected]>

> Chào các bác,
>
> Việc này nhỏ nhưng khá quan trọng.
>
> Hiện trạng.
>
> 1. OOo vi đang dùng guillemets '«' ,'»' .
> 2. Tiếng Việt không dùng guillemets.
>
> NVH đề xuất.
>
> 1. Thay thế tự động tất cả các guillements bằng DOUBLE QUOTATIONS.
>
> Risk:
>
> Trong tiếng Việt, single quotation và double quotation là phân biệt,
> do đó khi thế như vậy, chúng ta gặp một số bất cập.
> Theo cá nhân em thì mix giứa single quotation và double quotation là
> chấp nhận được nên chúng ta cứ tiến hành làm như đề xuất 1 ở
> trên.
>
> Các bác cho ý kiến và vote.
>
>
> ---------- Forwarded message ----------
> From: Nguyen Vu Hung <[email protected]>
> Date: Thu, Jun 4, 2009 at 11:17 AM
> Subject: Re: [translate-pootle] Replace a string in po file
> To: Christian Perrier <[email protected]>
> Cc: [email protected]
>
>
> On Wed, Jun 3, 2009 at 12:21 PM, Christian Perrier <[email protected]>
> wrote:
> > Quoting Nguyen Vu Hung ([email protected]):
> >> Hi all,
> >>
> >> I am sorry if this email is not suitable for the list.
> >>
> >> I am a member of OpenOffice.org Vietnamese translation team.
> >> The current translations in the .po files are using brackets like this.
> >>
> >> « Vietnamese »
> >>
> >> I want to replace all '«' with '\"' and '»' with '\"' in all the msgstr
> of
> >> .po files
> >> in a directory, recursively.
> >>
> >> The constrain here is that I must not touch msgid of any .po files.
> >>
> >> Is there any way I can do that with translate toolkit?
> >>
> >
> > With the TT, I don't know.
> >
> > With "standard" gettext tools and sed you probably can.
> >
> > This is untested but you'll get the point:
> >
> > msgcat --no-wrap foo.po | \
> >       sed '/msgstr \"/s/«/\"/g' | \
> >       sed '/msgstr \"/s/»/\"/g' | \
> >       msgcat >foo-fixed.po
> Nice script, I will try.
>
>
> > PS: you might also adapt the sed lines if the 'guillemets' are
> > followed by a space (or non-breaking space) for the opening one and
> > preceeded by a space for the closing one....just as it is done in
> > French, for instance. You might also want to check that double quotes
> > is the official typographical convention for Vietnamese but I guess
> > you already did (I would wirtually kill anyone suggesting such
> > replacement for French...:-))
> As far as I know, Vietnamese doesn't use guillemets,
> and the usages of single quotation and double quotation are different.
> Therefore, when we replace guillemets with double quotations,
> we still need to double check the output.
>
>
>
> --
> Best Regards,
> Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng )
> vuhung16plus{[email protected]<vuhung16plus%[email protected]>, 
> YIM: vuhung16 , Skype: vuhung16dg
> A brief profile: 
> http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html<http://www.hn.is.uec.ac.jp/%7Evuhung/Nguyen.Vu.Hung.html>
>
>
>
> --
> Best Regards,
> Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng )
> vuhung16plus{[email protected]<vuhung16plus%[email protected]>, 
> YIM: vuhung16 , Skype: vuhung16dg
> A brief profile: 
> http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html<http://www.hn.is.uec.ac.jp/%7Evuhung/Nguyen.Vu.Hung.html>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Phan Gia Anh Vu, EdD.
Dean of Faculty of Pedagogy
University of Dalat
01 Phu Dong Thien Vuong, Dalat City
Vietnam www.dlu.edu.vn

Trả lời cho