让非汉字系统显示汉字!5.20新版
===============================================
最新版本VTmagic.COM 5.20新版在333楼(
http://www.cn-dos.net/forum/viewthread.php?tid=17591&fpage=0&highlight=&page=23)
===============================================
〖简要介绍〗
EGA/VGA的点阵字符集存放在显示卡的位平面2(即显示RAM)上,用户可以通过EGA/
VGA提供的接口,修改点阵字符集信息,来装载(不改变当前屏幕上的显示信息)和使用
自己喜欢的字体。然后,在文本视频模式下就可以显示新字形了。这就是“不加载汉字
系统就能显示汉字”技术,它速度快,与英文一样,而且不消耗内存。可用于DOS提
示符下代替汉字系统以实现汉字字形显示,甚至用于MS-DOS系统的中文启动。
注意:MS-DOS的系统菜单无法在选择之前显示汉字菜单项!所以,请借助第
三方工具如ConMenu.SYS或ConfigP.mnu或BOOT.SYS或BOOTCON.SYS等 。
这可以说是很高效的技术,但生成“无汉字系统显示汉字的程序”的程序,一般是
靠BT.EXE,但它体积太大,使用起来很麻烦--要自己对照着ASCII码表输入扩展ASCII
码字符。因此本人制作了一个体积小巧(新版约10K)的生成器VTmagic.COM,能自动生成
1.不启动汉字系统显示汉字的程序.EXE(通用于DOS提示行及CONFIG.SYS文件!)
2.新内码文本.NEW (不再需要像用 BT.EXE那样手工输入!)
VTmagic.COM是一款汉字字模提取和载入程序,以便在VGA屏幕文本状态下显示可载
入替换的字符集(目前限于替换扩展ASCII码字符,最多只能同屏显示64个不同汉字).
这也就是通常所说的"不启动汉字系统显示汉字"技术,而且本程序还能让汉字显示得和
启动了汉字系统后显示的汉字一模一样(即无缝--没有中间的断裂)!新版本还能自动
生成对应于原字符串或文本文件的新内码文件,从此不用再像用BT.EXE那样手工输入!
省去了多少麻烦。
〖特别鸣谢〗
感谢willsort版主创意不断的建议!
感谢YAYA等高手提供的CONFIG.SYS工具!
感谢众网友不断反馈的BUGS和意见!
〖新手上路〗
1.在DOS命令提示符下,
通过VTmagic.com显示VT汉字
(显示汉字时需要HZK16)
EDIT myText.txt || 编辑文件
VTmagic /T myText.txt || 载入字模并显示文件
2.在DOS命令提示符下,
通过myText.exe代替HZK16
(显示汉字时不再需要HZK16)
EDIT myText.txt || 编辑文件
VTmagic /t myText.txt || 生成载入字模的EXE和新内码汉字NEW文件
EDIT myText.txt || 查看文件
3.在CONFIG.SYS中,
通过DEVICE=CONFIG.EXE代替
(显示汉字时不再需要HZK16)
EDIT config.sys || 编辑文件
VTmagic /t config.sys || 生成载入字模的EXE和新内码汉字NEW文件
REN config.sys *.sy0 || 原内码汉字文件保留
REN config.new *.sys || 使用新内码汉字文件,请拷config.sys/config.exe
|| /conmenu.sys入启动盘根目录
〖〗〖〗注意:下面的CONFIG.SYS必须用VTmagic.com处理后才能用于启动盘!!!〖〗〖〗
使用BootCon.sys的CONFIG.SYS例:
DEVICE=HIMEM.SYS || 此段为前块
DOS=HIGH,UMB ||
||
DEVICE=VTHZ.EXE || 加载汉字字模
||
DEVICE=BOOTCON.SYS || 进入BOOTCON控制范围
||
REM BC =
|| 块结束标志
||
REM BC =
||
||
REM BC =
||
||
LASTDRIVE=M || 后块
||
REM BC = || 退出BOOTCON控制范围
使用Boot.sys的CONFIG.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
使用ConMenu.sys的CONFIG.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=
使用ConfigP.mnu的CONFIG.SYS例:
device=config.exe
device=ConfigP.Mnu /s
rem 0NestMenu=
rem color=17,c
rem time=30,剩余时间
rem caption=
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
〖相关工具〗
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
〖相关图贴〗
多体汉字库贴
http://www.cn-dos.net/forum/viewthread.php?tid=18934&fpage=5&sid=JTXM1Y
多风格字形图
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
最新帮助截图
http://www.cn-dos.net/forum/attachment.php?aid=2202&checkid=d6a90&download=1
〖相关其它〗
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 ]
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 ]