![]() |
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-09-20 18:08 |
47,812 topics / 349,917 posts / today 0 new / 48,270 members |
| DOS汉化世界 & 中文系统 (中文化室) » Let non-Chinese character systems display Chinese characters! Version 5.20 New Edition |
| Printable Version 90,678 / 373 |
| Floor256 download | Posted 2007-03-25 09:00 |
| 初级用户 Posts 101 Credits 199 | |
|
Strange, after generation, I compared it.
http://www.cn-dos.net/forum/attachment.php?aid=950&checkid=de74b&download=1 with this one for differences |
|
| Floor257 download | Posted 2007-03-25 12:07 |
| 初级用户 Posts 101 Credits 199 | |
|
After generating the GBK HZK, I compared it with the HZK16.GBK provided here and found differences. So I uploaded it to Wuyou (here I can only upload 100K) for you. Download it and see what's going on? To prevent everyone from using problematic Chinese character libraries, I added a password. The password for the compressed package is: benshi. Download address: floor 259 http://bbs.wuyou.com/viewthread.php?tid=100870&pid=1008822&page=26&extra=page%3D1
|
|
| Floor258 本是 | Posted 2007-03-25 14:48 |
| 银牌会员 Posts 790 Credits 2,227 | |
|
I checked the HZK16.GBK that comes with UCWIN and found that it is not calculated according to the formula "(ch1-0x81)*190+(ch2-0x40)-(ch2/128)"! That is the order of Chinese characters for generating the GBK codebook, not the arrangement order in the font. The GBK font is stored in partitions! In order to be compatible with the HZK16 of GB2312, it first stores areas 1 to 94 in the original order, and then stores the extended parts in 3 other areas. For details, see the following list:
GBK character set range Equivalent to "GB area code" Partition High || Low ————————————————————————————— Areas 1~94 ●GB Chinese characters: A1~FE || A1~FE — — — — — — — — — — — — — — — Areas 95~126 ●Extended Chinese characters: 81~A0 || A1~FE Areas 127~159 ●Extended Chinese characters: 81~A0 || 40~A0 Areas 159+~254+ ●Extended Chinese characters: A1~FE || 40~A0 ————————————————————————————— It seems that this is the order when I observed. However, you can check it again. Only after confirming it is correct can you start adjusting your program. I'm sleepy, going to sleep~~~ |
|
| Floor259 jb88 | Posted 2007-03-25 22:49 |
| 新手上路 Posts 8 Credits 18 | |
|
Expert user, expert thread!
|
|
| Floor260 download | Posted 2007-03-26 02:17 |
| 初级用户 Posts 101 Credits 199 | |
Originally posted by 本是 at 01:48 AM: Headache, too lazy to study, it's so complicated that reading will be troublesome later! Just use “(ch1-0x81)*190+(ch2-0x40)-(ch2/128)” to locate it, Give the font a new name: GBK order font, and the previous one is the compatible font. |
|
| Floor261 download | Posted 2007-03-26 02:27 |
| 初级用户 Posts 101 Credits 199 | |
|
You try to use the above code to read the GBK font library I generated to see if it succeeded?
|
|
| Floor262 qingyangecho | Posted 2007-03-26 02:36 |
| 初级用户 Posts 40 Credits 97 | |
Originally posted by download at 2007-3-25 12:52 AM: Hmm, applause, the future Bill Gates of China |
|
| Floor263 download | Posted 2007-03-26 04:20 |
| 初级用户 Posts 101 Credits 199 | |
Originally posted by Ben Shi at 01:48 AM: The previous compatible area seems to have 94/96 Chinese characters per area, not 190. It's really troublesome to arrange like this |
|
| Floor264 download | Posted 2007-03-26 04:22 |
| 初级用户 Posts 101 Credits 199 | |
Originally posted by qingyangecho at 01:36 PM: Bill is not something to envy, overworked too much, The current situation looks much older than the actual age It's more practical to continue being my virgin... |
|
| Floor265 本是 | Posted 2007-03-26 05:22 |
| 银牌会员 Posts 790 Credits 2,227 | |
Originally posted by download at 2007-3-26 02:27: I have browsed it with the font display program, and it is consistent with the order in GBK.TXT (formula "(ch1-0x81)*190+(ch2-0x40)-(ch2/128)"). However, the font pattern order of each Chinese character is in the format that can be loaded into VGA text fonts, that is, a single-byte type with 16 bytes on the left and right, not the double-byte type of ordinary Chinese fonts!!! Therefore, the font library generated in this way is not a universal font library! Suggestion: Adjust to a double-byte format for a single Chinese character, and the entire font library to a universal Chinese font library format. |
|
| Floor266 hnlyzhd | Posted 2007-03-26 06:17 |
| 高级用户 Posts 164 Credits 544 | |
|
It seems there is hope for using it in BCDW?
Really don't understand, passing by! |
|
| Floor267 本是 | Posted 2007-03-26 06:29 |
| 银牌会员 Posts 790 Credits 2,227 | |
Originally posted by Ben Shi at 2007-3-26 05:22: Universal HZK16.GBK library The calculation method of the record number in units of 32 bytes is as follows (Assuming that the high byte of the Chinese character is in ch1 and the low byte is in ch2): if ch1>A0h then if ch2>A0h then '1-94:A1~FE || A1~FE rec=(ch1-A1h)*94+(ch2-A1h) else '159-254:A1~FE || 40~A0 rec=94*94+31*94+31*96+(ch1-A1h)*96+(ch2-40h)-(ch2/128) endif else if ch2>A0h then '95-126:81~A0 || A1~FE rec=94*94+(ch1-81h)*94+(ch2-A1h) else '127-159:81~A0 || 40~A0 rec=94*94+31*94+(ch1-81h)*96+(ch2-40h)-(ch2/128) endif endif [ Last edited by Ben Shi on 2007-3-26 at 09:03 AM ] |
|
| Floor268 download | Posted 2007-03-26 09:46 |
| 初级用户 Posts 101 Credits 199 | |
|
The part in red should be ch2\128
|
|
| Floor269 本是 | Posted 2007-03-26 09:49 |
| 银牌会员 Posts 790 Credits 2,227 | |
| Floor270 download | Posted 2007-03-26 11:46 |
| 初级用户 Posts 101 Credits 199 | |
|
The formula is incorrect, and there are duplicate codes.
|
|
| Prev 1 … 15 16 17 18 19 20 21 … 25 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |