China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 14:53
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Collaborative Participation] [Challenging Ideas] [Batch Processing: Easily Translate Words] DigestI View 22,520 Replies 55
Floor 46 Posted 2006-11-15 21:03 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
It is suggested that the "Address Book" can be separately made into a finished product and posted in a new thread~ :) In the future, this "Address Book" will also be an eye-catching excellent forum resource~ :)
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 47 Posted 2006-11-15 21:30 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
It's really a good essence post. I upload an English-Chinese dictionary for computer and network for everyone to use temporarily. There's really no material of the full-length dictionary.

[ Last edited by ccwan on 2006-11-15 at 11:22 PM ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
redtek +1 2006-11-23 07:02
Attachments
计算机与网络英汉对照词典.txt (26.83 KiB, Credits to download 1 pts, Downloads: 45)
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 48 Posted 2006-11-16 02:06 ·  中国 广东 佛山 广东睿江科技有限公司
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Thanks to brother ccwan for providing the dictionary text. Can you tell me how you got this thing—downloaded from the internet or extracted by yourself? I once saw on some English forums that someone said that you can extract pure text format lexicon from large dictionary software for your own processing, and I really want to know how to do it.

I took a look at the dictionary format and found that some are word groups with spaces in between. It seems that my translator still needs to modify some code to adapt to this situation.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 49 Posted 2006-11-16 02:19 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
re: namejm moderator

The thing was downloaded from the internet.

For people like me with poor English, I am very concerned about such topics. I have searched for this thing on the internet for a long time, but unfortunately, there is no more complete one.

As for extracting the word library in plain text format from large dictionary software for self-processing, I will try it if I have time, hoping to help everyone.
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 50 Posted 2006-11-23 06:59
中级用户
★★
DOS之日
Credits 337
Posts 161
Joined 2006-11-04 05:27
19-year member
UID 69523
Gender Male
Status Offline
Bookmarked
for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul
Floor 51 Posted 2007-11-23 15:00 ·  中国 河南 郑州 教育网
新手上路
Credits 10
Posts 5
Joined 2007-11-23 14:36
18-year member
UID 103520
Gender Male
Status Offline
All experts!!! Top!!!
Floor 52 Posted 2007-12-20 08:46 ·  中国 山东 聊城 电信
新手上路
Credits 2
Posts 1
Joined 2007-08-01 21:36
18-year member
UID 94462
Gender Male
Status Offline
Originally posted by pengfei at 2006-10-11 12:05 AM:
Here I have an idea, not tested:

Search code:

@echo off
:: The use of labels is the key to improving data retrieval.
:: 1:
:: The condition is that the dictionary file has started with 26 letters...

:P
Floor 53 Posted 2007-12-20 11:31 ·  中国 浙江 温州 电信
中级用户
★★
Credits 458
Posts 196
Joined 2006-10-05 12:04
19-year member
UID 64614
Status Offline
Simple application of curl, submit online to the page for query

No temporary files are generated

Can set multi-language translation

langpair=en_zh is English-Chinese
langpair=zh_en is Chinese-English
and so on


curl.bat
-----------------------------------------
@echo off
set /p word=Please enter the word to query:
if "%word%"=="" goto :eof
for /f "tokens=1-10 delims=<>" %%a in ('curl -A "Mozilla/4.0" -d "from_content=%word%&langpair=en_zh" "http://trans.netat.net/index.php"^|find "textarea"') do @echo %%c
pause

[ Last edited by zerocq on 2007-12-20 at 11:48 AM ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
vkill +2 2007-12-20 21:16
Floor 54 Posted 2008-02-07 01:18 ·  中国 湖北 武汉 电信
新手上路
Credits 2
Posts 1
Joined 2007-09-14 11:32
18-year member
UID 97355
Gender Male
Status Offline
Worthy of learning, thank you very much
Floor 55 Posted 2010-08-24 11:22 ·  中国 广东 中山 电信
新手上路
Credits -1
Posts 1
Joined 2010-07-17 11:24
15-year member
UID 170634
Gender Male
Status Offline
Worth learning, thank you very much
Floor 56 Posted 2010-08-25 04:07 ·  中国 陕西 咸阳 电信
初级用户
★★
Credits 106
Posts 55
Joined 2010-08-04 19:41
15-year member
UID 171757
Gender Male
Status Offline
So complicated!
Forum Jump: