All:
Can one of you guys tell me what the preferred locales for Chinese Simplified and Traditional are on Linux?
Also, have any of you seen msgfmt error indicating bad escape sequences when compiling these resources?
Thanks Steve
sholmes@novell.com
------------------------ Yahoo! Groups Sponsor ---------------------~--> Get your FREE VeriSign guide to security solutions for your web site: encrypting transactions, securing intranets, and more! http://us.click.yahoo.com/UnN2wB/m5_CAA/yigFAA/23wwlB/TM ---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to: i18n-chinese-unsubscribe@egroups.com
URL to this group: http://www.egroups.com/group/i18n-chinese
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
On Thu, Oct 04, 2001 at 03:55:52PM -0000, stephen.holmes@eircom.net wrote:
All:
Can one of you guys tell me what the preferred locales for Chinese Simplified and Traditional are on Linux?
Simplified Chinese:
zh_CN.GB2312 zh_CN.GBK zh_CN.GB18030
Traditional Chinese (Taiwan)
zh_TW.Big5
Traditional Chinese (Hong Kong)
zh_HK.Big5-HKSCS
Also, have any of you seen msgfmt error indicating bad escape sequences when compiling these resources?
You mean gettext *.po / *.mo files? And you mean you get the error when making zh_TW.Big5 *.mo files with the latest versions of gettext? (0.10.36 or later versions)? :-)
(Someone posted a solution of the above, but I want to make sure the above is indeed the error you encountered before I go and try to dig up that e-mail message. :-)
Cheers,
Anthony
Hi again,
I have a bunch of Big5 PO files. I want to compile them to MO but am getting the error as msgfmt attempts to compile some of the strings. Converting to EUC-TW etc, works just fine. This only occurs in Big5. Now, these files do compile on Solaris 8 as Big 5, so I suspect that it's related to the \ that is part of some of the double- byte trail-byte sequence in some of the GNU packages.
What is the recommended version?
Cheers Steve.
--- In i18n-chinese@y..., Anthony Fok <foka@d...> wrote:
On Thu, Oct 04, 2001 at 03:55:52PM -0000, stephen.holmes@e... wrote:
All:
Can one of you guys tell me what the preferred locales for
Chinese
Simplified and Traditional are on Linux?
Simplified Chinese:
zh_CN.GB2312 zh_CN.GBK zh_CN.GB18030
Traditional Chinese (Taiwan)
zh_TW.Big5
Traditional Chinese (Hong Kong)
zh_HK.Big5-HKSCS
Also, have any of you seen msgfmt error indicating bad escape sequences when compiling these resources?
You mean gettext *.po / *.mo files? And you mean you get the error when making zh_TW.Big5 *.mo files with the latest versions of
gettext?
(0.10.36 or later versions)? :-)
(Someone posted a solution of the above, but I want to make sure
the above
is indeed the error you encountered before I go and try to dig up
that
e-mail message. :-)
Cheers,
Anthony
-- Anthony Fok Tung-Ling ThizLinux developer <anthony@t...> http://www.thizlinux.com/ Debian Chinese Project <foka@d...>
http://www.debian.org/intl/zh/
Chinese GNU/Linux Extension
Come visit Our Lady of Victory Camp!
------------------------ Yahoo! Groups Sponsor ---------------------~--> Pinpoint the right security solution for your company- Learn how to add 128- bit encryption and to authenticate your web site with VeriSign's FREE guide! http://us.click.yahoo.com/yQix2C/33_CAA/yigFAA/23wwlB/TM ---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to: i18n-chinese-unsubscribe@egroups.com
URL to this group: http://www.egroups.com/group/i18n-chinese
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Kaixo!
On Mon, Oct 08, 2001 at 03:07:25PM -0000, stephen.holmes@eircom.net wrote:
Hi again,
I have a bunch of Big5 PO files. I want to compile them to MO but am getting the error as msgfmt attempts to compile some of the strings. Converting to EUC-TW etc, works just fine. This only occurs in Big5. Now, these files do compile on Solaris 8 as Big 5, so I suspect that it's related to the \ that is part of some of the double- byte trail-byte sequence in some of the GNU packages.
Yes, the problem is the "" used by big5 (big5 encoding is a very bad encoding for programmers). Previous versions of GNU gettext didn't have any notion of charset; they handled only sequences of bytes; and "" had a special meaning, so it had to be escaped (wirtten as "\") when part of a mutlibyte big5 char.
The result was that po files were not in big5, but in a bizarre encoding similar to big5 but incompatible with it...
Now, newer versions of gettext know about charsets, and they can see *chars* instead of bytes; and they can detect invalid byte sequences for a given charset. Those new versions require that real big5 be used.
What is the recommended version?
The new versions of GNU gettext are better, as the allow using real big5 encoding, that is, the po files can be read and edit with any text editor; which is a big plus.
PS: note that the produced *.mo file are the same in both cases; so you can keep a copy of old msgfmt, and convert the files with:
msgfmt.old -o tmpfile foo.po msgunfmt -o foo.po tmpfile
Note also that the encoding used for the po files is independent of the encoding used to display the text to the user (gettext does the conversion if needed); so you can use utf-8 for the po files if you want. It is also adviced to not put the encoding name in the file name; that is, the po files should be named zh_TW.po and zh_CN.po and not zh_TW.Big5.po or zh_CN.GB2312.po. The use of "zh" alone should be avoided too, as it is completly ambiguous, it doesn't allow to know if it is traditionnal or simplified Chinese.
Hi Steve,
For simplified Chinese, use zh_CN For traditional Chinese, use zh_TW
never seen conlict with escape sequences in zh_CN.
hope this help, Danny
At 23:55 2001-10-4, you wrote:
All:
Can one of you guys tell me what the preferred locales for Chinese Simplified and Traditional are on Linux?
Also, have any of you seen msgfmt error indicating bad escape sequences when compiling these resources?
Thanks Steve
sholmes@novell.com
Yahoo! Groups Sponsor http://rd.yahoo.com/M=212180.1660613.3195489.1269402/D=egroupweb/S=1707281910:HM/A=812074/R=0/*http://www.verisign.com/cgi-bin/go.cgi?a=b1533402700030003af7864.jpg
3af78b4.jpg
To unsubscribe from this group, send an email to: i18n-chinese-unsubscribe@egroups.com
URL to this group: http://www.egroups.com/group/i18n-chinesehttp://www.egroups.com/group/i18n-chinese
Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.
------------------------ Yahoo! Groups Sponsor ---------------------~--> Get your FREE VeriSign guide to security solutions for your web site: encrypting transactions, securing intranets, and more! http://us.click.yahoo.com/UnN2wB/m5_CAA/yigFAA/23wwlB/TM ---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to: i18n-chinese-unsubscribe@egroups.com
URL to this group: http://www.egroups.com/group/i18n-chinese
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
zh-l10n-archive@lists.slat.org