darkdh / cconv

Automatically exported from code.google.com/p/cconv
GNU General Public License v2.0
0 stars 0 forks source link

建议支持GBK到GBK的简繁转换 #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
-f GBK -t GBK-CN
-f GBK -t GBK-TW
-f GBK -t GBK-HK
GBK 包含简体繁体, 虽然不是全部 BIG5, 还是挺有用的

Original issue reported on code.google.com by xue...@gmail.com on 17 Oct 2009 at 3:09

GoogleCodeExporter commented 9 years ago
谢谢提供意见,这个问题我之前想过,但由于GBK 对 
BIG5的不完全对包含关系,所以之前没有实现。

目前我现在研究iconv对GB18030的支持,如果是GB18030的话,应该�
��可以实现的。
如果比较顺利的话,我会把它加入到下一个版本中去的。

Original comment by xiao...@gmail.com on 19 Oct 2009 at 3:49

GoogleCodeExporter commented 9 years ago

Original comment by xiao...@gmail.com on 19 Oct 2009 at 3:49

GoogleCodeExporter commented 9 years ago
GBK对GBK的简繁转换, 还是在 GBK 范围内, 不涉及BIG5字符集 
(指charset, set是指集合, 不是
指encoding 编码方式). 
至于如何利用手头上的BIG5字符集范围内的map来生成GBK范围内�
��的确
是需要考虑, 或者在网上再搜一下, 似乎有:
http://www.google.com/search?q=%E7%AE%80%E7%B9%81%E8%BD%AC%E6%8D%A2&ie=utf-8&oe=
utf-8&aq=t&rls=org.mozilla:zh-CN:official&client=firefox-a
有js直接转的, 也就是可以从js里抠出来. 我已经搜到 iconv 
似乎这方面的能力

$ echo 測試 | iconv -f gbk -t big5 | iconv -f big5 -t gb2312
测试

$ echo 测试 | iconv -f gb2312 -t big5 | iconv -f big5 -t gbk
測試

$ echo 测试 | iconv -f gbk -t big5 | iconv -f big5 -t gbk
iconv: 未知 0 处的非法输入序列

似乎仅限于 gb2312<->big5, 要gbk只好再转一次

Original comment by xue...@gmail.com on 19 Oct 2009 at 4:25

GoogleCodeExporter commented 9 years ago

Original comment by xiao...@gmail.com on 23 Feb 2010 at 3:52