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-20 08:02
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » Let non-Chinese character systems display Chinese characters! Version 5.20 New Edition DigestI View 81,413 Replies 373
Original Poster Posted 2005-11-03 23:40 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Display Chinese Characters in Non-Chinese Character Systems! Version 5.20 New Edition

===============================================
Latest VersionVTmagic.COM 5.20 new version is on page 333 (http://www.cn-dos.net/forum/viewthread.php?tid=17591&fpage=0&highlight=&page=23)
===============================================
〖Brief Introduction〗
  The dot matrix character set of EGA/VGA is stored in bit plane 2 (i.e., display RAM) of the display card. Users can modify the dot matrix character set information through the interface provided by EGA/VGA to load (without changing the display information on the current screen) and use the font they like. Then, the new glyphs can be displayed in text video mode. This is the "technology to display Chinese characters without loading a Chinese character system", which is fast, the same as English, and does not consume memory. It can be used under the DOS prompt to replace the Chinese character system to realize Chinese character glyph display, and even used for the Chinese startup of the MS-DOS system.

  Note: The system menu of MS-DOS cannot display Chinese character menu items before selection! Therefore, please use third-party tools such as ConMenu.SYS or ConfigP.mnu or BOOT.SYS or BOOTCON.SYS, etc. .
This can be said to be a very efficient technology, but the program to generate "a program to display Chinese characters without a Chinese character system" is generally by BT.EXE, but it is too large in size and very troublesome to use - you need to input extended ASCII code characters by referring to the ASCII code table by yourself. Therefore, I made a small-sized (about 10K in the new version) generator VTmagic.COM, which can automatically generate

  1. A program.EXE that displays Chinese characters without starting the Chinese character system (universal for the DOS prompt line and CONFIG.SYS file!)
  2. New internal code text.NEW (No need to manually input like using BT.EXE anymore!)

  VTmagic.COM is a Chinese character font pattern extraction and loading program, so as to display replaceable character sets (currently limited to replacing extended ASCII code characters, and at most 64 different Chinese characters can be displayed on the same screen) in the VGA screen text state. This is also the so-called "technology to display Chinese characters without starting the Chinese character system", and this program can also make the Chinese characters displayed exactly the same as those displayed after starting the Chinese character system (that is, seamless - no breaks in the middle)! The new version can also automatically generate a new internal code file corresponding to the original string or text file, so there is no need to manually input like using BT.EXE anymore! How much trouble is saved.


〖Special Thanks〗
  Thanks to the creative continuous suggestions from version master willsort!
  Thanks to experts like YAYA for providing CONFIG.SYS tools!
  Thanks to the netizens for continuously feeding back BUGS and opinions!


〖Getting Started for Newcomers〗

1. Under the DOS command prompt,
Display VT Chinese characters through VTmagic.com
(Need HZK16 when displaying Chinese characters)

EDIT myText.txt || Edit file
VTmagic /T myText.txt || Load font pattern and display file

2. Under the DOS command prompt,
Replace HZK16 through myText.exe
(No need for HZK16 when displaying Chinese characters)

EDIT myText.txt || Edit file
VTmagic /t myText.txt || Generate EXE that loads font pattern and new internal code Chinese character NEW file
EDIT myText.txt || View file

3. In CONFIG.SYS,
Replace through DEVICE=CONFIG.EXE
(No need for HZK16 when displaying Chinese characters)

EDIT config.sys || Edit file
VTmagic /t config.sys || Generate EXE that loads font pattern and new internal code Chinese character NEW file
REN config.sys *.sy0 || Keep original internal code Chinese character file
REN config.new *.sys || Use new internal code Chinese character file, please copy config.sys/config.exe
|| /conmenu.sys to the root directory of the boot disk


〖〗〖〗Note: The following CONFIG.SYS must be processed with VTmagic.com before it can be used for the boot disk! ! !〖〗〖〗

Example of CONFIG.SYS using BootCon.sys:
DEVICE=HIMEM.SYS || This segment is the previous block
DOS=HIGH,UMB ||
||
DEVICE=VTHZ.EXE || Load Chinese character font pattern
||
DEVICE=BOOTCON.SYS || Enter BOOTCON control range
||
REM BC =

|| End mark of block
||
REM BC =

||
||
REM BC =
||
||
LASTDRIVE=M || Later block
||
REM BC = || Exit BOOTCON control range


Example of CONFIG.SYS using Boot.sys:

DEVICE=c:\bin\BOOT.SYS

DEVICE=TOP
DEVICE=TOP Select one of the following choices by
DEVICE=TOP pressing the corresponding digit key, or by
DEVICE=TOP moving the arrow with the Cursor-Up, Cursor-
DEVICE=TOP Down, Home and End keys and pressing Enter
DEVICE=TOP (or Cursor-Right):
DEVICE=TOP

DEVICE=BOOT.1 no RAM disk
DEVICE=BOOT.SET boot=no_vdisk

DEVICE=BOOT.2 64K RAM disk
DEVICE=c:\dos\VDISK.SYS size=64 sector=512 dir=64
DEVICE=BOOT.SET boot=vdisk

DEVICE=BOOT.3 128K RAM disk
DEVICE=c:\dos\VDISK.SYS size=128 sector=512 dir=64
DEVICE=BOOT.SET boot=vdisk

DEVICE=BOOT.END


AUTOEXEC.BAT
c:\bin\BOOT SET
IF ERRORLEVEL 10 GOTO not_installed
GOTO %boot%

:vdisk
COPY c:\COMMAND.COM d:
SET COMSPEC=d:\COMMAND.COM
GOTO done

:no_vdisk
ECHO Sorry, there is no RAM disk
GOTO done

:not_installed
ECHO BOOT.SYS is not installed!

:done
PATH c:\dos;c:\bin



Example of CONFIG.SYS using ConMenu.sys:

device=config.exe
device=ConMenu.sys

rem color=1e
rem default=e,30
rem caption= 中文 MSDOS 7.1 启动盘
rem caption=============================
rem endnote=按↑↓或相应字母选择菜单项
rem endnote=在单选菜单按回车确定

rem cm0=
A

rem cm0=


B

rem cm0=


C

devicehigh=vide-cdd.sys /d:ide-cd

dos=high,umb,auto
fcbshigh=4,0
fileshigh=30
buffershigh=30,0
lastdrivehigh=32
stackshigh=9,256

rem cm0=



Example of CONFIG.SYS using ConfigP.mnu:

device=config.exe
device=ConfigP.Mnu /s

rem 0NestMenu=
rem color=17,c
rem time=30,剩余时间
rem caption=
rem caption=
rem caption=3, 中文 MSDOS_7.1 启动盘
rem caption=4,================================================
rem endnote=2,按↑↓键或相应字母键选择项目,按空格键设定项目
rem endnote=2,按→键向后连续选择,按←键顺序返回,按回车退出菜单
rem item=1=选择启动模式 默认加载 umbpci
rem item=2=选择光驱 默认加载 vide-cdd

rem 1RadioMenu=
rem caption=
rem caption=
rem caption=
rem caption=5, 选择启动模式 (单选)
rem caption=4,================================================
rem DefaultItem=0,2,7=加载 umbpci
rem item=0,1,7=加载 emm386
rem item==最小加载

rem 2CheckMenu=
rem caption=
rem caption=
rem caption=
rem caption=5, 选择光驱 (复选)
rem caption=4,================================================
rem DefaultItem=3,6=加载 vide-cdd
rem item=4,6=加载 aspicd
rem item=5,6=加载 usbcd

rem block=0
device=himem.sys
rem block=1
device=emm386.exe noems
rem block=2
device=umbpci.sys
rem block=3
devicehigh=vide-cdd.sys /d:ide-cd
rem block=4
devicehigh=aspicd.sys /d:scsi-cd
rem block=5
device=usbcd.sys /d:usb-cd
rem block=6
set cm=cdrom
rem block=7
dos=high,umb,auto
rem block=end

fcbshigh=4,0
fileshigh=30
buffershigh=30,0
lastdrivehigh=32
stackshigh=9,256

device=ConfigP.Mnu /u



〖Related Tools〗
ConMenu.sys http://www.cn-dos.net/forum/attachment.php?aid=998&checkid=48584&download=1
ConfigP.mnu http://www.cn-dos.net/forum/attachment.php?aid=1158&checkid=635f9&download=1
Boot.sys http://www.cn-dos.net/forum/attachment.php?aid=721&checkid=cc463&download=1 http://www.cn-dos.net/forum/attachment.php?aid=722&checkid=ddd3e&download=1
BootCon.sys http://www.cn-dos.net/forum/attachment.php?aid=164&checkid=f65b6&download=1


〖Related Picture Posts〗
Multi-body Chinese character library post http://www.cn-dos.net/forum/viewthread.php?tid=18934&fpage=5&sid=JTXM1Y
Multi-style glyph picture http://www.cn-dos.net/forum/attachment.php?aid=698&checkid=02ae6&download=1 http://www.cn-dos.net/forum/attachment.php?aid=838&checkid=3210d&download=1
Latest help screenshot http://www.cn-dos.net/forum/attachment.php?aid=2202&checkid=d6a90&download=1

〖Related Others〗
http://www.cn-dos.net/forum/viewthread.php?tid=6916&fpage=1
http://www.cn-dos.net/forum/viewthread.php?tid=17591&fpage=1
http://www.cn-dos.net/forum/viewthread.php?tid=17708&fpage=1
http://www.cn-dos.net/forum/viewthread.php?tid=17983&fpage=1
http://www.cn-dos.net/forum/viewthread.php?tid=7374&fpage=2

[ Last edited by 本是 on 2007-10-27 at 03:27 PM ]
Recent Ratings for This Post ( 3 in total) Click for details
RaterScoreTime
arrive +2 2007-05-24 07:59
Climbing +25 2007-08-01 00:40
Jneny +3 2008-04-30 05:47
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 2 Posted 2005-11-04 11:27 ·  中国 广东 广州 番禺区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Strong! I'll give you extra points!
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 3 Posted 2005-11-04 16:10 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
Not bad, not bad, support!
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 4 Posted 2005-11-04 16:43 ·  中国 山西 太原 联通
银牌会员
★★★
Credits 1,009
Posts 353
Joined 2003-09-04 00:00
22-year member
UID 9419
Gender Male
Status Offline
Very good! Support!
Floor 5 Posted 2005-11-04 17:28 ·  中国 重庆 城口县 电信
中级用户
★★
Credits 335
Posts 96
Joined 2004-05-07 00:00
22-year member
UID 23928
Gender Male
Status Offline
Why can't I download???

452 bytes

Can I paste the source code?
Floor 6 Posted 2005-11-04 22:31 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Originally posted by yzz163 at 2005-11-4 17:28:
Why can't I download it???

452 bytes
Can I paste the source code?

1. Definitely can be downloaded. If clicking directly doesn't work, try right-clicking with FlashGet.
2. For ASM source code, you can first decompress it and then use SR for disassembly. There are quite a few technical details involved. Without noting the technology, you still won't understand the disassembled source code. Of course, if someone wants to improve the code and release a better version, I can also consider making the source code public. Let's see what others think!
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 7 Posted 2005-11-04 22:33 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Thanks to JonePeng for giving me points! The key is not about how many points were given, but about getting recognition!
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 8 Posted 2005-11-05 00:05 ·  中国 香港 Eppstore
初级用户
Credits 173
Posts 26
Joined 2004-09-09 00:00
21-year member
UID 31249
Gender Male
Status Offline
Thanks! I used this software to generate vthz.com and vthz.txt files, but I don't know how to call them? I copied both of these files to the boot disk, and added in config.sys
DEVICE=WRAPPER.SYS A:\vthz.com
DEVICE=BOOTCON.SYS
But
REM BC = How to input?

Is it inputting Chinese characters or ASCII codes? If it's ASCII codes, how to input? Please expert guide!
Floor 9 Posted 2005-11-05 10:10 ·  中国 安徽 宿州 泗县 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
Please the poster, specifically explain how it is used?
Floor 10 Posted 2005-11-05 11:44 ·  中国 天津 南开区 联通
初级用户
★★
Credits 128
Posts 75
Joined 2005-10-30 15:39
20-year member
UID 44301
Gender Male
From 黄河北道,天子渡
Status Offline
Great stuff, thanks for sharing.
Floor 11 Posted 2005-11-05 12:58 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Originally posted by baoxin1968 at 2005-11-5 00:05:
REM BC =


REM BC = It is ASCII code, that is, the characters as they are on the keyboard. Do not type in the Chinese input state.

Originally posted by chujiafu at 2005-11-5 10:10:
Please let the landlord specifically tell us how to use it?


In fact, it has been mentioned in the first floor. If it is not made clear yet, I will explain it again.
1) Generate VTHZ.COM and VTHZ.TXT:
VTHZMK The Chinese characters you want to display, no need to repeat & full-width symbols, punctuation marks are also okay.
VTHZ.COM can be renamed by you, as long as the extension is.COM or.EXE.
2) VTHZ.TXT is not required for application, but it is convenient for you to paste and make the words, phrases and sentences you want. The production method is:
a) If the Chinese character system is started, please be sure to use CtrlF7 or other key combinations to switch to the English screen state where Chinese character shapes cannot be seen; if the Chinese character system is not started or not in the Chinese character screen state, no need to switch.
b) Run VTHZ.COM.
c) Open VTHZ.TXT with a text editor. At this time, you should be able to see the Chinese character shapes. How to copy and paste / cut and paste, I don't need to be wordy, right!
  Of course, you can also open other files (such as: *.BAT, CONFIG.SYS, README.TXT), and then read VTHZ.TXT in a block way.

Friendly reminder:
1) Many VTHZ.COMs can be called in a batch processing or other software (of course, they need to be renamed).
But at most 64 non-repeating Chinese characters can be used on the same screen! :-(
2) It can not only be used for executable software, but also for displaying short text files (such as instructions, warnings, prompts, etc.). Cool!
3) I translated the usage instructions of BOOTCON.SYS in " Can Chinese characters be displayed without loading the Chinese character system? " ( http://www.cn-dos.net/forum/viewthread.php?tid=6916&fpage=3 ), you can refer to it; there are many other tips in the post, please read and learn by yourself.
4) If you understand the program structure of VTHZ.COM, and respectively take character pattern information from different character libraries (such as the simplified library of UCDOS, the traditional library, the equal-line body library of XZL, the traditional library of Founder, the simplified bold character library, etc.), you can also splice them together, display character shapes in different styles on the same screen! ! !

You can try to put forward any suggestions!

Don't forget to give instructions and thanks when making software or boot disks!

[ Last edited by 本是 on 2005-11-5 at 15:05 ]
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 12 Posted 2005-11-05 15:32 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re from Ben Shi:

The program has not been tried out yet, and the following details are not clear:

1. Is it a necessary requirement that the text content is not repeated? That is, does the program have a function to filter repeated characters?

2. Is the path of HZK16 the path where VTHZMK.COM is located, or is it a fixed root path currently?

3. Is the seamless Chinese character using the seamless characteristics of the table characters, or is it modifying the display interrupt?

The improvement directions I have thought of are as follows:

1. Support text files, that is, generate the font pattern loading program VTHZ.COM according to the existing text file, and generate a text file re-encoded according to the original text content, eliminating the trouble of users extracting non-repeated characters and pasting to make words, sentences and phrases by themselves.

2. Support directly displaying Chinese characters in command line parameters, that is, combining the functions of extracting and loading font patterns into one, accepting GB code Chinese content in command line parameters, then respectively extracting its sub-font patterns and loading them into extended ASCII characters, and displaying them on the screen. Directly omitting the trouble of generating VTHZ.COM and calling it.

3. Support setting the path of HZK16 in command line parameters.

4. Support displaying Chinese characters using characters in the standard ASCII code set, so that the maximum number of displayed Chinese characters can reach 128, which should be sufficient for most applications.

5. Support restoring character font patterns, so that the original ASCII characters can be displayed without restarting, and also avoiding the inability to display the original extended ASCII set characters after starting with the Chinese CONFIG menu.

[ Last edited by willsort on 2005-11-5 at 15:49 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 13 Posted 2005-11-05 15:42 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Re regarding sorting:
1. The program does not have the function to filter duplicate characters. It is not a mandatory requirement that the text content is non - repetitive, but for efficiency, it is best not to process duplicate Chinese characters. The suggestion of "supporting text files" is a good one, and I will consider it.
2. The path of HZK16 is a fixed root path, but sufficient space has been left for DEBUG modification. The issue of handling the path of HZK16 in the command line is a function not added for the sake of simplifying the program. I also thought of it in advance, and it can be considered to be added.
3. Seamless Chinese characters are realized by modifying the values of E/VGA registers.
4. In VTHZMK.COM, "the functions of extracting and loading character patterns have been combined into one. It accepts Chinese content in GB code in command line parameters or, then respectively extracts its sub - patterns and loads them into extended ASCII characters, and displays them on the screen." But there is a premise that it is only possible to realize the replacement of character patterns on the VGA text screen and get display under the "non - Chinese screen state where the shape of Chinese characters cannot be seen"!!! Otherwise, it is necessary to switch by pressing Ctrl F7.
5. "Supporting the use of characters occupying the standard ASCII code set to display Chinese characters" is possible, but the original English information on the screen will be chaotic. Of course, it is okay if the screen is cleared first. My idea is that it may be necessary to consider adding a start - up specified replacement character on the command line.
6. "Restoring character patterns" is too simple. As long as the display mode is taken and the mode is reset with it, I will make one now and upload it. 9 bytes are enough. Remember to change the extension to.COM!

[ Last edited by 本是 on 2005 - 11 - 5 at 16:07 ]
Attachments
NCCLS.RAR (9 bytes, Credits to download 1 pts, Downloads: 274)
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 14 Posted 2005-11-05 16:47 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re 本是:

Sorry! While you were replying, you also edited the content of floor 12, adding some content. We apologize for the inconvenience caused!

Just did a simple trial. After using "vthzmk Hello", an interface message appeared, and then the occupied extended ASCII characters were indeed displayed, but their glyphs were not changed at this time; after running the generated vthz.com, the original characters were displayed as "Hello"; then type the generated vthz.txt, in addition to displaying "Hello", there was still a string of extended ASCII characters with unchanged glyphs; checking vthz.txt found that its size was 128 bytes.

I will add more to improvement direction 2. It is generally applied in batch processing (or possibly in CONFIG). When writing this batch processing, we may use usages like "vthzmk /display:Hello" or "type menu.txt | vthzmk /display" or "vthzmk /display < menu.txt". Then when running this batch processing, there is no Chinese character system support, and at this time it should be similar to echo or type to output the command line parameters or the text in the character pipeline on the screen. That is to say, vthzmk may need to add a parameter to directly display the GB code text in the command line parameters or the character pipeline as Chinese characters on the screen. It can automatically complete the three functions of extracting the glyphs, loading them into the occupied characters, and displaying the occupied characters, without displaying the software version and help information, without generating vthz.com and vthz.txt, and without clearing the screen.

Regarding "restoring character glyphs", I hope to make it a function of vthzmk and vthz; so, in my concept, this program will have the following parameters:

1. d/display: directly display the Chinese characters in the command line parameters or pipeline after modifying the glyphs;
2. m/make: generate the glyph loading/restoring program and the new display text;
3. r/restore: restore the original glyphs of the characters;
4. c/charset: set the starting ASCII code (expressed in decimal) of the extended character set to be occupied, default is 128;
5. f/fontfile: set the path and filename of the glyph file, default is hzk16 in the current path;

[ Last edited by willsort on 2005-11-5 at 18:53 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 15 Posted 2005-11-05 20:06 ·  中国 山西 大同 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re: Originally it was:

According to your prompt of "re-setting the mode", I remembered that when I used bt.exe before, I used mode co80 to restore the character pattern, so I did some more tests.

1. After modifying the character pattern with vthz, using mode co80 restores the character pattern;
2. After modifying the character pattern with vthz, using mode co40 restores the character pattern and changes the display mode;
3. After changing the mode with mode co40 and then using vthz, the character pattern is changed;
4. After modifying the character pattern with vthz under mode co40 and then using mode co40, the character pattern is restored;
5. After modifying the character pattern with vthz under mode co40 and then using mode co80, both the character pattern and the display mode are restored;

Even so, I still suggest keeping the /restore parameter because mode co80 does not save the original display mode.

Another improvement suggestion is the function I hoped to add to 4.com, that is, automatically switching the Chinese character display method according to whether the Chinese environment exists. There are already quite a few relatively mature schemes for Chinese system recognition. I just don't know about the recognition ability of the current popular Chinese systems that have been modified many times.

If you want to support text files, then "filtering repeated characters" is very necessary. Maybe a character mapping table needs to be created, and an unordered table is probably enough, after all, there are at most 256 characters, and the number of comparisons will not be greater than 256 + 256 times, and the efficiency will not be much lower. The code is relatively simpler than an ordered table.

In addition, you mentioned several other character pattern information files other than hzk16. I don't know if your program supports the extraction of character patterns from these files, or whether this improvement can be made in the short term?

[ Last edited by willsort on 2005-11-5 at 22:25 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
1 2 3 25 Next ›
Forum Jump: