中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-11-10 11:27
47,815 topics / 349,930 posts / today 0 new / 48,291 members
DOS批处理 & 脚本技术(批处理室) » [Collaborative Participation] [Challenging Ideas] [Batch Processing: Easily Translate Words]
Printable Version  26,124 / 55
Floor31 pengfei Posted 2006-10-13 02:44
银牌会员 Posts 485 Credits 1,218 From 湖南.娄底
I wonder which fellow can get a text - format English - Chinese dictionary, this way it will be more enjoyable...
Floor32 namejm Posted 2006-10-13 06:34
荣誉版主 Posts 1,737 Credits 5,226 From 成都
The format of the dictionary needs to be defined by yourself. Don't look for ready-made dictionaries. Otherwise, it's difficult to handle with CMD.

If you only want the content of the dictionary, you can use the Kingsoft Word霸 dictionary extraction tool posted by Brother Wunaixie to extract the content. However, the extracted content is relatively messy.
Floor33 namejm Posted 2006-10-13 12:42
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Post a preliminary code for Chinese-English mutual translation, which can initially detect some error situations.

Because the function of displaying all words with the same header or the same meaning has been added, the method of using for /l %%i in (1,1,10000) do (>> word bank.txt echo var) to create a word bank file with tens of thousands of lines for testing can no longer be used. Therefore, only functional testing has been done and not efficiency testing. If any brother can obtain a word bank file that meets the format requirements of this code, please tell me the method or release the file. I would be very grateful.

Once again, it is emphasized that the key to success or failure lies in the format of the word bank file.


[ Last edited by namejm on 2006-10-15 at 00:40 ]
Floor34 namejm Posted 2006-10-17 12:11
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Today I suddenly thought that using the idea of 33F, a very practical thing like a public transportation route information query tool can be written. It is expected to achieve the following two functions:

① Enter the route name, and display all the stops of this route and the departure and arrival times;
② Enter the departure stop and the arrival stop, display the available trips, and display all the stops between these two stops in each route and the departure and arrival times;


Those who are interested may try to do it.

——————————————————————————————————————

The code of the public transportation route information query tool has been released. Please click here to view.

[ Last edited by namejm on 2006-11-15 at 01:37 PM ]
Floor35 zh159 Posted 2006-10-17 13:43
金牌会员 Posts 1,467 Credits 3,687
② Enter the departure and arrival stations, display the trains that can be taken, and display all stations between these two stations in each line and the departure and arrival times;


This is complicated. It is estimated that it is not easy to judge the intersection points of these trains, and there may be more than 3 trains.
Floor36 vkill Posted 2006-10-18 05:49
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
No translation needed as the content is already in Chinese but the task is to translate from Chinese to English. Wait, no, the original text is "不管做什么."数据库"txt的格式很重要", which should be translated as "No matter what you do, the format of the 'database' txt is very important".
Floor37 redtek Posted 2006-10-18 07:14
金牌会员 Posts 1,147 Credits 2,902
Originally posted by namejm at 2006-10-17 12:11:
  Today I suddenly thought that using the idea of 33F, one can write a very practical thing like a public transportation route information query tool. It is expected to achieve the following two functions:
  

  Those who are interested might as well try to...



namejm's idea is interesting, and it should be noted and kept well in mind~ : )
There are public transportation query systems everywhere, and there are also graduation projects for students. But for the DOS batch processing version, except for a few DOS experts, few people can imagine that DOS can still do these things, and it is very fast : )

Add 1 point to the moderator~ : )
Floor38 redtek Posted 2006-10-18 07:20
金牌会员 Posts 1,147 Credits 2,902
Originally posted by zxcv at 2006-10-17 13:43:


This is complicated. It is estimated that it is not easy to judge the meeting points of these train numbers, and there may be more than 3 train numbers.


These good ideas and the tools that create them can influence many people's thoughts and the depth of their understanding of a certain thing ~:)

More difficult things can still be left for use in the "Batch Processing Competition Activity" ~:)

This is really starting to contact and analyze some things from the bottom level, haha...
How many programmers use SQL to query many things every day and play with commands very brilliantly!
But how many programmers know what is actually done in the underlying layer of the SQL or other queries they are using...

These may not matter to 99%, and application is the process of production ~:)
I believe that the process of creation is also very wonderful, and it will be left for those who like it more to make it more wonderful ~:)

zxcv, hurry up and tell us your good ideas and algorithms ~:)
Floor39 goodfile Posted 2006-10-23 01:02
初级用户 Posts 6 Credits 112
Thanks
Floor40 zh159 Posted 2006-10-28 12:39
金牌会员 Posts 1,467 Credits 3,687
20F namejm moderator's script search, no problems found in 100,000 lines, the result came out in an instant.

[ Last edited by zxcv on 2006-10-29 at 02:02 AM ]
Floor41 zouzhxi Posted 2006-11-15 07:43
中级用户 Posts 177 Credits 430 From 广东深圳
Just by slightly modifying the BAT file of moderator namejm, it became a DOS version of the address book...
Now I will show you the screenshots...

First one

Second one is the add and delete window

Third one is the query window

Fourth one is the required files

This is the main file and a library file.
The Tel.db file is not there at the beginning. It will only appear when the user adds a contact.

Modification function cannot be realized temporarily, and can only be modified manually in the library.
Floor42 namejm Posted 2006-11-15 08:21
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Originally posted by zouzhxi at 2006-11-14 18:43:
Just modified the BAT of moderator namejm a little, and it became a DOS version of the address book...
Now I'll show you the screenshots...

Modification function is not available for the time being, and you can only modify it manually in the database.


  What kind of modification do you want to make? Do you want to replace certain characters with others, add content, or delete records? Some of these functions I asked about can be solved in batch processing.

[ Last edited by namejm on 2006-11-14 at 07:23 PM ]
Floor43 zh159 Posted 2006-11-15 09:29
金牌会员 Posts 1,467 Credits 3,687
His meaning is to modify or delete someone's information. Adding is quite convenient, just echo>> will do.
Floor44 namejm Posted 2006-11-15 09:47
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Deleting a certain record is also quite convenient. It's just that a temporary file needs to be generated. The idea is: use findstr /v to filter the content you want to delete, then echo the content that needs to be retained to the temporary file, and then use this temporary file to overwrite the current database. There are two difficulties: 1. How to accurately filter out the record you want to delete. This can be solved by using the regular expression of findstr; 2. How to obtain the information block to be filtered. This can be solved in combination with skip in the for statement.
Floor45 zh159 Posted 2006-11-15 13:12
金牌会员 Posts 1,467 Credits 3,687
Delete a certain phone book record:

bat


Tel.db


[ Last edited by zxcv on 2006-11-15 at 09:24 AM ]
Prev  1 2 3 4  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023