|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『楼 主』:
[讨论] 繁简字符转换
使用 LLM 解释/回答一下
由于工作的需要,我经常需要把繁体字符转换为简体字符或进行相反的转换,我通常的做法使用WORD的繁简转换,但是比较麻烦费时,如果电脑没有装WORD时又无能为力。希望大家讨论下能否使用批处理或脚本来实现这个功能。要求是:
1。能实现繁简的多编码转换。
2。能实现批量转换。
3。转化后的语言在记事本中打开后不是乱码,也就是在简体系统的记事本中如果打开转换后的繁体文件也不会是乱码,能正确显示繁体,反之已然。
Due to work needs, I often need to convert traditional Chinese characters to simplified Chinese characters or vice versa. My usual practice is to use the traditional-simplified conversion in WORD, but it is cumbersome and time-consuming. If the computer does not have WORD installed, there is nothing I can do. I hope everyone can discuss whether batch processing or scripts can be used to achieve this function. The requirements are:
1. Can achieve multi-encoding conversion between traditional and simplified.
2. Can achieve batch conversion.
3. The converted language is not garbled when opened in Notepad, that is, if the converted traditional Chinese file is opened in Notepad on a simplified Chinese system, it will not be garbled and can display traditional Chinese correctly, and vice versa.
|
|
2006-12-14 23:31 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
要有字库才可以。工程不小。
You need a font library. The project is not small.
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-12-14 23:33 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Originally posted by ccwan at 2006-12-14 23:33:
要有字库才可以。工程不小。
系统安装时一般都默认安装了字库的,如果没有安装,上网站时如果语言不同会提示安装。所以这个不再考虑之中。
我在繁体的记事本中转换繁体文件为简体后再用繁体系统的记事本打开简体的文件可正确显示了。如果直接打开则不行。
CN-DOS的网站也有繁体和简体语言两个版本,不知道设计这是设计的多个页面还是直接使用代码实现转换的。
www.ACCESS911.NET网站是用VB语言编写的,就是直接使用码表转换来实现繁简自动转换的。
Originally posted by ccwan at 2006-12-14 23:33:
You need a font library. The project is not small.
Generally, the font library is installed by default during system installation. If it is not installed, a prompt to install will appear when the language is different when visiting a website. So this is no longer considered.
I converted the traditional Chinese file to simplified Chinese in the traditional Chinese Notepad and then opened the simplified Chinese file with the traditional Chinese system's Notepad, which can be displayed correctly. If opened directly, it will not work.
The website of CN-DOS also has two versions in traditional Chinese and simplified Chinese. I don't know whether this is designed with multiple pages or directly implemented with code for conversion.
The www.ACCESS911.NET website is written in VB language, which directly uses code table conversion to realize automatic traditional-simplified conversion.
|
|
2006-12-14 23:44 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
批处理下要使用编码表(不是字库),这个编码表获取是个问题
In batch processing, using a coding table (not a font library) is needed, and obtaining this coding table is a problem.
|
|
2006-12-14 23:46 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Download the conversion tool on the 7th floor of the following post.
Help! About the problem of code conversion
http://www.cn-dos.net/forum/viewthread.php?tid=24680&fpage=1&highlight=%E7%B9%81%E4%BD%93
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-14 23:55 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
用工具是好,能否直接用批处理或VBS实现呢?
Using tools is good, can it be directly achieved with batch processing or VBS?
|
|
2006-12-15 02:12 |
|
|
lh82102849
初级用户
 
积分 24
发帖 11
注册 2006-9-30
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
等高手来解答问题啊
Wait for experts to answer the question
|
|
2006-12-15 03:04 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
|
2006-12-16 22:59 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
刚在Google.com上找的可能兄编程或是代码中能用上的部分内容:
[这个函数虽不属于批处理,但它带了千个相当于转换字库,所以编程时可以做成自己的转换字库]
[如果这数千个字库的比对做成批处理的话,可能……]
简体字转繁体字函数
http://www.cfcodes.com/?ID=593
[Excel VBA 代码,可以参考使用VBS后台调用Excel开发]
简单实用的繁体与简体互相转换的代码
http://www.excelfans.cn/Blog/article.asp?id=31
[用于网页开发]
ASP 简体转繁体
http://www.tsingfeng.com/article.asp?id=291
[现成的在线编码互换]
[其中还包括: 简体繁体互转
特殊字符及其代码对照
JS、HTML脚本运行工具
Encode加密解密
HTML TO JS
JS TO HTML
JS Debugger
Escape加密/UnEscape解密
JavaScript版代码高亮
]
汉字简体繁体转换
http://www.zayh.cn/tool/
[简体与繁体在线转换]
[同样,可以在批处理中使用 VBS 脚本调用远程这个网页并提交要转换的文本为参数,然后再远程取回,搜索论坛有相近例子]
在线汉字简体繁体转换
http://www.ee-studio.com/tools/sim_tra.html
另:上面链接中已经含有转换字库信息了,有了这些信息怎么编程应该不难,可以借鉴上面链接中的代码。
Last edited by redtek on 2006-12-16 at 10:35 AM ]
Just found some content on Google.com that might be useful for programming or code:
Simplified Chinese to Traditional Chinese function
http://www.cfcodes.com/?ID=593
Simple and practical code for mutual conversion between Traditional and Simplified Chinese
http://www.excelfans.cn/Blog/article.asp?id=31
ASP Simplified to Traditional Chinese
http://www.tsingfeng.com/article.asp?id=291
Chinese Simplified and Traditional Character Conversion
http://www.zayh.cn/tool/
Online Chinese Simplified and Traditional Character Conversion
http://www.ee-studio.com/tools/sim_tra.html
Also: The above links already contain character conversion library information. With these information, it should not be difficult to program, and you can refer to the codes in the above links.
Last edited by redtek on 2006-12-16 at 10:35 AM ]
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-16 23:34 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by redtek at 2006-12-16 23:34:
刚在Google.com上找的可能兄编程或是代码中能用上的部分内容:
[这个函数虽不属于批处理,但它带了千个相当于转换字库,所以编程时叠...
非常感谢redtek兄弟为我所做的一切,太辛苦你了。你所发的我都看了,受益非浅。
同时我也找了一上午,终于找到了一个工具可以在图形模式和DOS模式下都可以实现的繁体与简体互相转换的软件,而且改软件支持自定义词库和码表进行转化,速度相当快,非常的棒,所以特向大家推荐。
不过该软件只有30天的使用期(图形模式下),但是在命令模式下则没有此限制。所以使用批处理编程的有福音了。快去下吧。
下载地址:
http://www.wbj3000.com/CodeTrans.html
Originally posted by redtek at 2006-12-16 23:34:
What I just found on Google.com might be some content that can be used in programming or code:
I am very grateful to brother redtek for all that you have done for me. You have worked so hard. I have read all that you sent, and I have benefited a great deal.
At the same time, I also spent the whole morning and finally found a tool that can realize the mutual conversion between traditional Chinese and simplified Chinese in both graphical mode and DOS mode. Moreover, this software supports customizing word libraries and code tables for conversion, and the speed is quite fast. It is very excellent, so I specially recommend it to everyone.
However, this software only has a 30-day usage period (in graphical mode), but there is no such restriction in command mode. So those who use batch processing programming have good news. Hurry up and download it.
Download address:
http://www.wbj3000.com/CodeTrans.html
|
|
2006-12-17 04:01 |
|
|
tao0610
高级用户
    朦胧的世界
积分 579
发帖 218
注册 2006-10-24
状态 离线
|
|
2006-12-17 04:04 |
|