![]() |
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-08-05 08:00 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS汉化世界 & 中文系统 (中文化室) » Let non-Chinese character systems display Chinese characters! Version 5.20 New Edition |
| Printable Version 85,888 / 373 |
| Floor1 本是 | Posted 2005-11-03 23:40 |
| 银牌会员 Posts 790 Credits 2,227 | |
|
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 ] |
|
| Floor2 JonePeng | Posted 2005-11-04 11:27 |
| 金牌会员 Posts 1,883 Credits 4,562 From 广东广州 | |
|
Strong! I'll give you extra points!
|
|
| Floor3 Kinglion | Posted 2005-11-04 16:10 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
Not bad, not bad, support!
|
|
| Floor4 yaya | Posted 2005-11-04 16:43 |
| 银牌会员 Posts 353 Credits 1,009 | |
|
Very good! Support!
|
|
| Floor5 yzz163 | Posted 2005-11-04 17:28 |
| 中级用户 Posts 96 Credits 335 | |
|
Why can't I download???
452 bytes Can I paste the source code? |
|
| Floor6 本是 | Posted 2005-11-04 22:31 |
| 银牌会员 Posts 790 Credits 2,227 | |
Originally posted by yzz163 at 2005-11-4 17:28: 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! |
|
| Floor7 本是 | Posted 2005-11-04 22:33 |
| 银牌会员 Posts 790 Credits 2,227 | |
|
Thanks to JonePeng for giving me points! The key is not about how many points were given, but about getting recognition!
|
|
| Floor8 baoxin1968 | Posted 2005-11-05 00:05 |
| 初级用户 Posts 26 Credits 173 | |
|
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! |
|
| Floor9 chujiafu | Posted 2005-11-05 10:10 |
| 银牌会员 Posts 595 Credits 1,339 From 安徽 宿州 | |
|
Please the poster, specifically explain how it is used?
|
|
| Floor10 yao741 | Posted 2005-11-05 11:44 |
| 初级用户 Posts 75 Credits 128 From 黄河北道,天子渡 | |
|
Great stuff, thanks for sharing.
|
|
| Floor11 本是 | Posted 2005-11-05 12:58 |
| 银牌会员 Posts 790 Credits 2,227 | |
Originally posted by baoxin1968 at 2005-11-5 00:05: |
|
| Floor12 willsort | Posted 2005-11-05 15:32 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
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 ] |
|
| Floor13 本是 | Posted 2005-11-05 15:42 |
| 银牌会员 Posts 790 Credits 2,227 | |
|
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) |
|
| Floor14 willsort | Posted 2005-11-05 16:47 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
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 ] |
|
| Floor15 willsort | Posted 2005-11-05 20:06 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
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 ] |
|
| 1 2 3 4 … 25 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |