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 14:35
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » VTGBK v2.00--GBK code & 110 characters (+FNT.COM=220 characters) View 12,151 Replies 48
Floor 16 Posted 2007-04-17 01:38 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
RE download:
It should work. Because of the hardware restrictions on dynamic loading of character fonts, usually from the starting loaded character code (preferably 0), the number loaded at one time (preferably 256 full sets), and the setting of character 8/9 dot width (preferably not set, directly use the system default value, but it's a pity that there are gaps between Chinese characters). In order to better compatibility, so this time the loading core adopts the setting of maximum compatibility.

In addition, in order to reduce the loading core, the non - repeated Chinese character list, the new code list, and other unused data are also omitted, not to make it difficult for VTEDIT. It can completely open the original text file, edit it, and then save it as.TXT,.NEW,.EXE, because there will be changes after loading the core.EXE.

VTGBK will soon have a command - line version with parameters, and at the same time, a small software package supporting the display of double character sets on the same screen will be released. In a few days!
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 17 Posted 2007-04-17 03:36 ·  中国 海南 海口 电信
初级用户
★★
Credits 199
Posts 101
Joined 2007-03-13 01:44
19-year member
UID 81536
Status Offline
I took a look. Because: 110 < 256/2, so there's not much change. I'll have to wait until you support 128+64 before I upgrade VTEDIT.
Floor 18 Posted 2007-04-17 04:55 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Originally posted by download at 2007-4-17 03:36:
I took a look. Because: 110 < 256/2, so there is not much change,
I have to wait until you support 128+64 before I can upgrade VTEDIT again.


I have tested 256/2. For programming use, it's okay, but as a universal character font, calling control codes <= ' ' (especially 0Dh, 0Ah, 07, 08, 03) is very inconvenient for ECHO and string display of other programs. Even ' ' and "\" are also not considered because they usually have functional definitions in the command line, so I decided to support 110 Chinese characters. It's not because it can't be done, but because it shouldn't be done. It's helpless: the VTF80.COM I did earlier (available on this forum, very awkward, not easy to use ECHO directly under DOS) can also be said to be a preliminary test product. Moreover, the double character set software package I'm developing already supports 110+110 Chinese characters on the same screen! It will be available for everyone to test in a few days.

[ Last edited by 本是 on 2007-4-17 at 04:59 AM ]
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 19 Posted 2007-04-17 05:43 ·  中国 山西 太原 联通
银牌会员
★★★
Credits 1,009
Posts 353
Joined 2003-09-04 00:00
22-year member
UID 9419
Gender Male
Status Offline
That's great, the scope of use is wider.
Floor 20 Posted 2007-04-17 12:44 ·  中国 海南 海口 电信
初级用户
★★
Credits 199
Posts 101
Joined 2007-03-13 01:44
19-year member
UID 81536
Status Offline
Originally posted by 本是 at 03:55 PM:

I have tested 256/2. It can be used in programming, but as a general font, calling control codes <= ' '(especially 0Dh, 0Ah, 07, 08, 03) for string display in ECHO and other programs...


Consider control code 07H, which makes a beep
Floor 21 Posted 2007-04-17 12:47 ·  中国 上海 东方有线
新手上路
Credits 19
Posts 10
Joined 2006-03-23 10:02
20-year member
UID 52638
Gender Male
Status Offline
It's not easy to grab the 21st floor. First occupy it and supplement later. This person is really a strong one. He didn't sleep at 5 o'clock at night either.

[ Last edited by hjch65655166 on 2007-4-17 at 12:49 PM ]
Floor 22 Posted 2007-04-18 01:20 ·  中国 湖北 武汉 电信
初级用户
Credits 48
Posts 23
Joined 2006-02-23 22:11
20-year member
UID 50842
Status Offline
Heheh, that's very good...
Floor 23 Posted 2007-04-18 08:06 ·  中国 广东 深圳 福田区 电信
高级用户
★★
Credits 525
Posts 222
Joined 2006-08-28 21:07
19-year member
UID 61476
Status Offline
New version test: Chinese characters can be displayed normally! There are indeed cases of garbled characters.

I don't know when the command - line version will be released.
Floor 24 Posted 2007-04-18 09:27 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Originally posted by cchessbd at 2007-4-18 08:06:
New version test: Chinese characters can be displayed normally! There are indeed cases of garbled characters.


If the file to be converted contains GBK Chinese characters, and there is no GBK16 font library in C:\ (root directory of C drive) or. \ (current directory), then the corresponding place in the generated file will inherit the previous Chinese character font pattern when automatically generated, that is, GBK Chinese characters will be replaced with the previous GB Chinese characters. This is what I have encountered. I don't know what kind of garbled characters you are referring to? Can you attach the original text file? Also, please report the directory where the GBK16 font library is located.

Originally posted by cchessbd at 2007-4-18 08:06:
I don't know when the command-line version will be available.


I am considering the scheme of loading the core with.EXE, and testing the display of 110+110 Chinese characters on the same screen with double character sets. Please wait...
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 25 Posted 2007-04-19 11:19 ·  中国 广东 东莞 电信
中级用户
★★
Credits 387
Posts 104
Joined 2004-11-19 00:00
21-year member
UID 33813
Gender Male
Status Offline
It would be best to be applicable in CONFIG, heh heh
Floor 26 Posted 2007-04-20 06:38 ·  中国 湖北 武汉 电信
初级用户
Credits 48
Posts 23
Joined 2006-02-23 22:11
20-year member
UID 50842
Status Offline
Hehe, updated, hurry up and try...
Floor 27 Posted 2007-04-20 09:28 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
2007.4.19 V2.00 Modify the new internal code format, command line seam type, and character set # settings, add the FNT.COM toolbox, and fully release the potential of displaying 220 Chinese characters on the same screen with dual character sets.

VT Font Toolbox - FNT.COM
With the FNT.COM toolbox,
You can fully release the potential of displaying 220 Chinese characters on the same screen with dual character sets!
Enjoy playing VT font games to the fullest!

Use the *.TXT files in the 1st floor DEMO.RAR. Suppose you have the GBK16 font in the root directory of drive C or the current directory.

Example 1:
::Generate.exe and.new
VTGBK /0 64.txt
VTGBK /1 110gbk.txt
::Load fonts
64
110gbk
::Activate 0,1
FNT act=0,1
::Display effect
FNT two
TYPE 64.new
TYPE 110gbk.new

Example 2:
::Suppose there are already 64.exe and 110gbk.exe.
::If there are already.FNT files, there is no need for VTGBK to generate again.
::dump is to save fonts to file
64
FNT dump=64.fnt
110gbk
FNT dump=110gbk.fnt
::Clear fonts
FNT def

::Load fonts
FNT load=64.fnt,5
FNT load=110gbk.fnt,3
::Activate 3,5
FNT act=3,5
::Display effect
FNT two
TYPE 64.new
TYPE 110gbk.new
::Thoroughly restore font seams, etc.
FNT clr



FNT ver 1.0 (c) 2007..12 Luo MingAn(aka Born2be)
Syntax:
FNT load=file,x
FNT act=x,y
FNT eco=x,"a colored string with ring in quotes"
FNT 098=x
FNT two
FNT clr
FNT def
FNT dump=file,x
FNT b2n=file,x,mm,nn

x,y are character set numbers, any numbers from 0 to 7; x = first character set number, y = second character set number
file is a 4096-byte.FNT font file
z is color, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F, 0-7 are display colors for the first character set,
8 and later are display colors for the second character set (for dual character set on-screen display)

1. Load font file into the character set space labeled x
FNT load=file,x
2. Activate character sets labeled x and y (default value: 0,0)
FNT act=x,y
3. ECHO with color z, "string to display", use Ctrl N to display double quotes,
; is carriage return without line feed, # is the end mark for multi-color display of multiple strings
FNT eco=z,"a colored string with ring in quotes"
4. Seam type: 9 is with seam, 8 is without seam (LCD monitors may be best not to set 8,9 to avoid errors)
FNT 098=x
5. Display the respective dual character set effects of ASCII code and VT new internal code
FNT two
6. Reset video mode, clear screen, clear fonts, with seam, flashing
FNT clr
7. Only clear fonts to system default fonts
FNT def
8. Save the font of character set labeled x to file with 4096 bytes
FNT dump=file,x
9. Only load fonts from mm to nn in file file into character set x (h after number is hexadecimal, without h is decimal)
FNT b2n=file,x,mm,nn

The following 3 pictures are respectively the English state, 64x2 Chinese character state, and 110x2 Chinese character state of the dual character set on-screen display effect.

[ Last edited by 本是 on 2007-4-20 at 12:42 PM ]
Attachments
2fntEn.bmp
2fnt64.bmp
2fnt110.bmp
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 28 Posted 2007-04-20 12:10 ·  中国 海南 儋州 电信
初级用户
★★
Credits 199
Posts 101
Joined 2007-03-13 01:44
19-year member
UID 81536
Status Offline
@echo "How to use here??"
Floor 29 Posted 2007-04-20 12:36 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Originally posted by download at 2007-4-20 12:10:
@echo "How to use this here??"


Normally, the echo command can only display the content of the first character set. The content of the second character set needs the help of the ECO command of FNT.COM. The format is as follows (to display the " character, enter Ctrl N under DOS):
FNT eco 2,"New internal code string 1 green first character set (no line break)"; a"Another string highlighted green second character set (line break)"

Before this, you need to load 2 font files into different character sets first (if there is only 1 font file, the first and second character sets will display the same glyphs) and activate them.

[ Last edited by 本是 on 2007-4-20 at 12:37 PM ]
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 30 Posted 2007-04-21 01:43 ·  中国 湖北 武汉 武昌区 电信
初级用户
Credits 48
Posts 23
Joined 2006-02-23 22:11
20-year member
UID 50842
Status Offline
Tried it under XP, and sometimes a → appears at the end of the new file generated by VTGBK. Not sure if it has any impact.
Forum Jump: