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-23 20:50
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » Config Chinese menu-driven Confect.sys (updated to version 4.3) View 29,591 Replies 117
Floor 46 Posted 2009-01-04 22:55 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 113
Posts 51
Joined 2008-11-16 23:24
17-year member
UID 131196
Gender Male
From 武汉
Status Offline
Originally posted by joinnow2008 at 2009-1-4 22:38:

Before I saw your post, I had already tried it, and I used 9. OK

Just very strange is that there is no phenomenon of gaps between Chinese characters as mentioned by other netizens



Confect42 arranges the first 32 Chinese characters of the menu options at the original tab position. For characters at this position, the system copies the 8th pixel to the 9th pixel, so there are no gaps. Confect42 also places the Chinese characters in the title and footer in another character set, so there are 64 Chinese characters without gaps. For menus with few Chinese characters, the gaps are not noticeable. That is to say: if there are many Chinese characters, there must be some Chinese characters with gaps - maybe not so obvious.
三川一笑
Floor 47 Posted 2009-01-04 22:56 ·  中国 广东 湛江 电信
初级用户
Credits 37
Posts 17
Joined 2008-12-22 20:52
17-year member
UID 134656
Gender Male
Status Offline
Please wait, I'll calculate the Chinese characters first......
Floor 48 Posted 2009-01-04 22:58 ·  中国 广东 湛江 电信
初级用户
Credits 37
Posts 17
Joined 2008-12-22 20:52
17-year member
UID 134656
Gender Male
Status Offline
Originally, very embarrassed,

Just now I counted, at least no less than 70 different Chinese characters, including the Chinese book title "《 》"
Floor 49 Posted 2009-01-04 23:01 ·  中国 广东 湛江 电信
初级用户
Credits 37
Posts 17
Joined 2008-12-22 20:52
17-year member
UID 134656
Gender Male
Status Offline
Return to two, carefully read, no gutter.

But the menu words are not more than 32, referring to the words after options A, B, C, D, E

But if the title and endnotes are added, it exceeds 70.
Floor 50 Posted 2009-01-04 23:14 ·  中国 广东 湛江 电信
初级用户
Credits 37
Posts 17
Joined 2008-12-22 20:52
17-year member
UID 134656
Gender Male
Status Offline
Re-test, and different points are found.

Using the earliest version, with 9 specified, the LCD is fine, and the Chinese characters have no gaps.

Just now, I switched to version 4.2, specified 9, the LCD is fine, but part of the Chinese characters have gaps. The situation is as follows:

Title, more than a dozen characters, no gaps.

Menu options A, B, C, D, E, five items, about 25 characters, no gaps.

There are two lines in the endnote, with gaps.
Floor 51 Posted 2009-01-05 14:40 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,282
Posts 538
Joined 2002-11-02 00:00
23-year member
UID 129
Gender Male
Status Offline
Strongly request that the next version of the LZ supports the font file under XP: bootfont.bin
Floor 52 Posted 2009-01-06 11:49 ·  中国 福建 福州 台江区 电信
初级用户
★★
Credits 119
Posts 59
Joined 2008-11-21 14:07
17-year member
UID 131656
Gender Male
Status Offline
Today I used version 4.2 to replace my original one. I used the updated one and there is a problem. I want to ask for advice.

That is, in the config, I usually use empty execution, and all processing is placed in auto, which is convenient for our specific modifications. I use submenus, but only the first item can be executed each time. I don't know why.

Specifically as follows:

***config.sys
......
......
confect=sub_2,Load 8139 driver to start ghost
set option=DHCP,DHCP mode
set option=IP,IP mode (38.1)

set confect=sub_3,Load 6103 driver to start ghost
set option=DHCP,DHCP mode
set option=IP,IP mode (38.1)

set confect=sub_4,BIOS upgrade


REM [sub_1]
set exec=

REM [sub_2]
REM [DHCP]
set exec1=
REM [IP]
set exec2=

REM [sub_3]
REM [DHCP]
set exec1=
REM [IP]
set exec2=
.......


*******autoexec.bat
......
.......
:SUB_2
%exec1%
echo copy c:\watdh.cfg c:\wattcp.cfg
CD \DOSNET\8139
call 8139.BAT
c:\ghost.exe
GOTO END

%exec2%
echo copy c:\wat38.cfg c:\wattcp.cfg
CD \DOSNET\8139
call 8139.BAT
c:\ghost.exe
GOTO END

:SUB_3
%exec1%
echo copy c:\watdh.cfg c:\wattcp.cfg
CD \DOSNET\VIA6103
call VIA.BAT
c:\ghost.exe
GOTO END
%exec2%
echo copy c:\wat38.cfg c:\wattcp.cfg
CD \DOSNET\VIA6103
call VIA.BAT
c:\ghost.exe
GOTO END


:SUB_4
%exec%
cd \bios
..........

When executing, only the first sub-item is executed. Does it mean that %exec*% cannot be automatically jumped and found in auto? Hope to help correct it, thank you!
Floor 53 Posted 2009-01-06 12:26 ·  中国 福建 福州 台江区 电信
初级用户
★★
Credits 119
Posts 59
Joined 2008-11-21 14:07
17-year member
UID 131656
Gender Male
Status Offline
Could it be that all the execution statements in auto need to be placed in the corresponding %exec*% in config? According to my understanding, it should be that auto and config correspond through the block name of the main item and the corresponding sub-item variable. But I don't know why this doesn't work. I also tried putting some statements from auto in conf, but the effect is still the same.
Floor 54 Posted 2009-01-06 12:50 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 113
Posts 51
Joined 2008-11-16 23:24
17-year member
UID 131196
Gender Male
From 武汉
Status Offline
Originally posted by wuchan at 2009-1-6 11:49:
Today I used version 4.2 to replace my original one. I used the updated one. There is a problem, I want to ask.
That is, in the config, I usually use empty execution, and all processing is placed in auto, which is convenient for us...


The problem you encountered is not caused by confect.sys.
Setting variables in Config cannot be empty - it is equivalent to not being set, and the result is that when encountering goto %confect% in auto, it will naturally execute the first item.

According to your situation, in Config.sys, it should be changed to:
......
rem
rem
set sub2=DHCP
rem
set sub2=IP
......



In autoexc.bat, it is changed to:

goto %confect%
......

:sub_2
goto %sub2%

:DHCP
echo copy c:\watdh.cfg c:\wattcp.cfg
CD \DOSNET\8139
call 8139.BAT
c:\ghost.exe
GOTO END

:IP
echo copy c:\wat38.cfg c:\wattcp.cfg
CD \DOSNET\8139
call 8139.BAT
c:\ghost.exe
GOTO END

......



In addition, in the example of confect4.0, autoexec.bat uses %exec1%. It should be noted that this variable is set as a DOS command in config.sys, not a label in auto.


If a variable set in Config is a DOS command, for example set exec=dir, then in auto it can appear in the form of %exec%.

[ Last edited by sanchuan on 2009-1-6 at 13:15 ]
三川一笑
Floor 55 Posted 2009-01-06 15:22 ·  中国 福建 福州 台江区 电信
初级用户
★★
Credits 119
Posts 59
Joined 2008-11-21 14:07
17-year member
UID 131656
Gender Male
Status Offline
Got it's clear now.
I originally thought that exec represented a variable used for transmission.
Also, referring to 3.0, in config, it's not necessary to set %××××%.

Got it, and I sincerely thank Teacher sanchuan...
Floor 56 Posted 2009-01-06 15:45 ·  中国 福建 福州 台江区 电信
初级用户
★★
Credits 119
Posts 59
Joined 2008-11-21 14:07
17-year member
UID 131656
Gender Male
Status Offline
Still not working. The prompt: "label not found"

I referred to the following:

×××config.sys
.......
set confect=sub_2, load 8139 driver to start ghost
set option=DHCP, DHCP mode
set option=IP, IP mode (38.1)

set confect=sub_3, load 6103 driver to start ghost
set option=DHCP, DHCP mode
set option=IP, IP mode (38.1)

set confect=sub_4, BIOS upgrade

REM [sub_1]
set sub1=

REM [sub_2]
rem [DHCP]
set sub2=DHCP
rem [IP]
set sub2=IP

REM [sub_3]
rem [DHCP]
set sub3=DHCP
REM [IP]
set sub3=IP
.......

****autoexec.bat
.....
GOTO %CONFECT%

:SUB_1
%sub1%
GOTO END

:SUB_2
goto %sub2%

:DHCP
echo copy c:\watdh.cfg c:\wattcp.cfg
CD \DOSNET\8139
call 8139.BAT
c:\ghost.exe
GOTO END
:IP
echo copy c:\wat38.cfg c:\wattcp.cfg
CD \DOSNET\8139
call 8139.BAT
c:\ghost.exe
GOTO END

:SUB_3
goto %sub3%

:DHCP
echo copy c:\watdh.cfg c:\wattcp.cfg
CD \DOSNET\VIA6103
call VIA.BAT
c:\ghost.exe
GOTO END
:IP
echo copy c:\wat38.cfg c:\wattcp.cfg
CD \DOSNET\VIA6103
call VIA.BAT
c:\ghost.exe
GOTO END
.......
This still doesn't work. Just the prompt came up. I think it should be the connection between the conf and auto files that's not right.
Teacher...
Floor 57 Posted 2009-01-06 15:46 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Originally posted by chishingchan at 2009-1-5 14:40:
Strongly request the next version of the owner to support the font file under XP: bootfont.bin


I have extracted the Chinese character library among them, nothing special; the so-called good compatibility is because the NTLDR display method is graphical (not the character method like CONFECT, VTMAGIK), not bootfont.bin!! And bootfont.bin is too large, and it is troublesome to extract the character patterns!!

The program for converting between bootfont.bin and hzk16 can be found in the relevant posts:
http://www.cn-dos.net/forum/viewthread.php?tid=45546&fpage=1
http://www.cn-dos.net/forum/viewthread.php?tid=45267&fpage=1
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 58 Posted 2009-01-06 15:58 ·  中国 福建 福州 台江区 电信
初级用户
★★
Credits 119
Posts 59
Joined 2008-11-21 14:07
17-year member
UID 131656
Gender Male
Status Offline
I tried it. The single-item menu block is okay. It's just that when executing the sub-item menu, there's a prompt '"label not found"'. It should be the variable passing of the sub-item menu. According to the introduction, I can't connect from config to auto.
Floor 59 Posted 2009-01-06 16:31 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 113
Posts 51
Joined 2008-11-16 23:24
17-year member
UID 131196
Gender Male
From 武汉
Status Offline
Originally posted by wuchan at 2009-1-6 15:45:
Still not working. The prompt: "label not found"
I refer to the following:
×××config.sys
.......
set confect=sub_2, load 8139 driver to start ghost
set option=DHCP, DHCP mode
set option=IP, IP mode ...


You didn't select the sub-item in the menu after booting into DOS, so there is the prompt: "label not found"

You should press the spacebar to set the sub-item to execute, then press Enter
三川一笑
Floor 60 Posted 2009-01-06 16:41 ·  中国 福建 福州 台江区 电信
初级用户
★★
Credits 119
Posts 59
Joined 2008-11-21 14:07
17-year member
UID 131656
Gender Male
Status Offline
5555. I'm dizzy, it's that simple..
It's not just directly selecting with the cursor...
Forum Jump: