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-08-17 14:06
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » The interface, functions, and command-line parameters of EDITER2 are rich, standardized, and greatly improved! (15th floor) View 9,608 Replies 34
Original Poster Posted 2005-09-06 17:06 ·  中国 江苏 苏州 电信
中级用户
★★
Credits 220
Posts 82
Joined 2005-09-03 10:43
20-year member
UID 42197
Gender Male
Status Offline
HanHua Edit v2.0 Prompt Information Editor v2.0 (C)1993 Gong Chengbing Compiled (C)2002 Luo Ming'an Modified
Please see attachment! Download at floor 15!!!

Usage:
HH2 /S file to modify prompt file
Extract information with length >= n from 'file to modify' to 'prompt file' /A extract only English
For example: HH2 /S:3 edit.com edit.hh

HH2/S file to modify prompt file
Extract information with length == n from 'file to modify' to 'prompt file' /A extract only English
For example: HH2 /S=3 edit.com edit.hh

HH2/R file to modify prompt file
Replace the modified 'prompt file' into 'file to modify'
For example: HH2 /R edit.com edit.hh


'Prompt file' line format:

Type symbol at the beginning of the line (.=modify string ,=modify value others=not modify )
↓Offset address string length Prompt information string
↓  ↓  ↓  ↓
/000001A6 000B Prompt information string
Used for comparison or annotation; does not modify 'file to modify'

.000001A6 000B Prompt information string
Only modify the information inside ; string length must be equal!

,000001A6 0004 00 1F FE 08
Hexadecimal byte values must be entered manually: this is really a programmer's job, don't mess around!

Latest attachment please see http://www.cn-dos.net/forum/attachment.php?aid=271&checkid=bd5c5&download=1

[ Last edited by born2be on 2005-10-13 at 14:43 ]
Floor 2 Posted 2005-09-07 23:02 ·  中国 北京 大兴区 联通
初级用户
★★
Credits 185
Posts 82
Joined 2005-08-12 13:41
21-year member
UID 41586
Gender Male
Status Offline
Haha, I've been looking for it for a long time. Thanks to the landlord. Good things should be shared by everyone. This spirit should be persisted. Support you!
Floor 3 Posted 2005-09-15 23:09 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
What improvements are there between this version and the original version? Introduce it? Just changed the interface?

[ Last edited by bush on 2005-9-15 at 23:11 ]
Floor 4 Posted 2005-09-16 22:54 ·  中国 江苏 苏州 电信
中级用户
★★
Credits 220
Posts 82
Joined 2005-09-03 10:43
20-year member
UID 42197
Gender Male
Status Offline
My Improvements: Modify hexadecimal values, string delimiters, colorinterfaceboundariesdisplay

My Improvement 1: Now hexadecimal values can be modified! This means it can replace the E command function of DEBUG, modify special positions, and achieve specific purposes.

My Improvement 2: The string delimiter has been changed from ▏ to a character with ASCII value 0Ch to avoid possible conflicts with tab characters.

My Improvement 3: Changed to ]、colorinterfaceboundariesdisplay, which is clear in meaning and more powerful in explaining the purpose.

Just minor improvements! What's there to talk about!
Floor 5 Posted 2005-09-18 16:09 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re born2be:

I wonder if Brother born2be has ever encountered a situation where editor2 cannot replace certain files. I tried the improved HH2, and it shows the same problem as editor2. For specific description, see the discussion thread:

{16847}Question: Invalid write-back problem of editer2.0
http://www.cn-dos.net/forum/viewthread.php?tid=16847
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 6 Posted 2005-09-19 00:13 ·  中国 江苏 苏州 电信
中级用户
★★
Credits 220
Posts 82
Joined 2005-09-03 10:43
20-year member
UID 42197
Gender Male
Status Offline
I have tried 1.44MB files, and the HH2 Chinese localization writing back is normal. There is no problem of failed writing back, and there is no special effect on the attributes of the target file. Is it a problem with your system? Or is the source of your Editor2 suspicious—virus/prank? If not, please compress and package your localization tool, localization object, and localization text and send it over (lmayylxt@pub.sz.jsinfo.net) for me to study.
Floor 7 Posted 2005-09-19 08:39 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re born2be:

You can test the main file of the "Simple Romance of the Three Kingdoms" by bush in {16847}. Also, my test environment is WinXP Sp2 and MSDOS7.10, with file systems NTFS and FAT32.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 8 Posted 2005-09-20 01:58 ·  中国 江苏 苏州 电信
中级用户
★★
Credits 220
Posts 82
Joined 2005-09-03 10:43
20-year member
UID 42197
Gender Male
Status Offline
Testing Process and Results for Large File (1MB) Test:

1. make12.exe (see attachment)
Generate file 1 (80 Chinese characters per line) and 2 (40 corresponding Chinese characters' hex codes), each 1071KB long.

2. hh2/s 1 2.hh hh2/s 2 1 1.hh2.hh2

Use file 1 to generate file 2.hh2

Modify requirements for generating file 2 with file 1
Modify requirements for generating file 1 with file 2
That is: hope to completely swap the contents of file 1 and 2.

3. hh2/r 1 1.hh2
hh2/r 2 2.hh2
Modify file 1 with file 1.hh2
Modify file 2 with file 2.hh2
Result: The contents of file 1 and 2 are successfully swapped!


4. All similar tests of editer2 failed! I don't know why yet.

Also:
Test environment: Win98se/WinXPsp2/MsDos7.1, FAT32.

[ Last edited by born2be on 2005-9-20 at 02:05 ]
Attachments
Make12.rar (23.5 KiB, Credits to download 1 pts, Downloads: 74)
Floor 9 Posted 2005-09-21 23:52 ·  中国 江苏 苏州 电信
中级用户
★★
Credits 220
Posts 82
Joined 2005-09-03 10:43
20-year member
UID 42197
Gender Male
Status Offline
Floor 10 Posted 2005-09-30 23:26 ·  中国 江苏 苏州 电信
中级用户
★★
Credits 220
Posts 82
Joined 2005-09-03 10:43
20-year member
UID 42197
Gender Male
Status Offline
Latest Improvements:
1) Add the switch for searching only Chinese characters information!
2) The default value of minimum search string length is changed to 3 (originally 6), and the maximum search string length is changed to 100 (originally 3000h).


There was originally a switch /A on the command line for searching only English information.
Now a new switch /H for searching only Chinese characters information is added.
However, the search results with /A switch + the results with /H switch < the search results with only /S switch!!!
∵ The starting search length for mixed English and Chinese information may be less than the default value or specified value.
∴ The accumulation of multiple differences makes each larger!

The suggestion from moderator willsort is very good (http://www.cn-dos.net/forum/viewthread.php?tid=16847). The switch for searching only Chinese characters information is implemented first, and then the English description and the selection of limited search range will be done later.

Everyone is welcome to put forward more opinions and suggestions!

[ Last edited by born2be on 2005-9-30 at 23:38 ]
Attachments
HH2.RAR (3.19 KiB, Credits to download 1 pts, Downloads: 98)
Floor 11 Posted 2005-10-04 16:25 ·  中国 山西 大同 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re born2be:

Thanks a lot for your active contribution to the forum's development!

The new HH2 has been tested. No problems have been found in terms of functions, but there are some regrets regarding the help information. In the command line environment of WinXP, whether the code page is 437 (English) or 936 (Chinese), Chinese garbled characters are displayed because when executing 16-bit programs, the code page is automatically adjusted to 437. The solution is to run chcp 437 in the command line first, then run graftabl 936, and finally run hh2.

While in VPC's MSDOS7.10, I used three popular Chinese systems: tway streamlined version, UCDOS Lite, and CCDOS97. After running the Chinese platform, running hh2 will cause a crash, and the reason is to be investigated.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 12 Posted 2005-10-05 13:39 ·  中国 江苏 苏州 电信
中级用户
★★
Credits 220
Posts 82
Joined 2005-09-03 10:43
20-year member
UID 42197
Gender Male
Status Offline
If using Chinese-English automatic recognition always displays Chinese characters, just like my another software "Format Accelerator 4.COM=QF.COM+KILLER.EXE+SHELL+Always display Chinese characters!"(http://www.cn-dos.net/forum/viewthread.php?tid=17090&page=1&sid=R5nvvv#pid100738), is it okay? Please test the display effect by the way.

Moreover, does the moderator have a decrypted version of VPC? I want to use VPC, but I'm worried about its time limit. Thanks in advance!

Regarding the crash problem, I don't quite understand. First give an unencrypted hh2.com, please have a try!

[ Last edited by born2be on 2005-10-5 at 13:49 ]
Attachments
HH2.RAR (2.99 KiB, Credits to download 1 pts, Downloads: 89)
Floor 13 Posted 2005-10-09 21:29 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
The prompt file has a large difference from the original EDITER. Lines starting with / are for comparison;

This is very useful during manual translation, but sometimes it is also inconvenient.

Can you modify a version that does not use the comparison lines with "/" (the original software does not have this);

Or add a switch?
Floor 14 Posted 2005-10-10 08:03 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Re bush:
The suggestion is very good! We will consider it.

PS:
Hello, bush! It seems that you always use traditional Chinese characters. Are you a compatriot from Taiwan?
If so, I also want to ask you a favor: can you send me the small Chinese character systems used in Taiwan (no matter what internal code, input method, etc.)? Thank you in advance!!!

[ Last edited by 本是 on 2005-10-10 at 08:07 ]
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 15 Posted 2005-10-12 17:01 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
### Great interface changes! The command line is rich, distinct, and standardized!

Please try it out and return the situation! Thanks in advance!

Simplified Chinese character interface:
0  0 0  0 0000    000 00  0 0
0  0 0  0   0  0   0 0 0 0 0
0  0 0  0  0   0   0 0 0 0 0
00000 000000 0    0   0 0 0 0 0
0  0 0  0 00000 0 000  00 0 0 0
0  0 0  0*************************
0  0 0  0

G takes out the string, after translation, P writes back to file 1 in place

Information Messenger V2.0 (C)2003-50 Designed by Luo Ming'an
Email: lmayylxt@pub.sz.jsinfo.net

Based on the localization tool designed by Gong Chengbing Editer2(C)1993

HH2 G File to be fetched for string
HH2 G File to be fetched for string String information file
HH2 P Write to target file String value information file
Available commands:
G Fetch String information from 'File to be fetched for string'
P Write String value file to 'Write to target file'
Information file:
When the second file is omittedFetch string to screen (command G)
  Can be used for debugging - first take a look at the fetch string effect.

Must be provided for: command P

Default settings:
HH2 Fetch both Chinese and English at the same time & only display English &
Write comparison lines & n>=3

HH2 G //ES;n File to be fetched for string String information file
HH2 G -/CT=n File to be fetched for string String information file
HH2 P /S Write to target file String value information file
HH2 P -T Write to target file String value information file
Available switches(Switch character - or /):
/ Omit comparison line (starting with /)
C Only fetch C Chinese character string
E Only fetch E English string
S Display S simplified Chinese character information
T Display T traditional Chinese character information
;n >=n bytes (maximum: 100)
=n ==n bytes (maximum: 100)

Line format of 'Information file' is as follows:
Offset address String length String or value information
/000001A6 000B%|String information|%
String or value comparison line (maybe blank line / comment line )
.000001A6 000B%|String information
String or value information to be translated
,000001A6 0004%|00 1F FE 08
Hexadecimal value string to be written (for advanced users only)

Regarding the head and tail marks of string/value information:
The head mark always uses ;
The tail mark only appears on the comparison line where the head is /, and does not appear at the tail of the string/value of the line to be modified (to facilitate translation and editing).
Regarding the limitation on string length:
If the string or hexadecimal value string is overlong, the excess part is discarded;
If it is insufficient, spaces are added after the string, and the hexadecimal value string is not supplemented because it is dangerous.

English character interface is as shown in the screenshot.

Also: Run
HH2
HH2 /S
HH2 /T
to get the English, simplified Chinese, and traditional Chinese help screens respectively.

The latest attachment can be found at http://www.cn-dos.net/forum/attachment.php?aid=271&checkid=bd5c5&download=1

[ Last edited by 本是 on 2005-10-14 at 14:30 ]
Attachments
HH2E.JPG
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Forum Jump: