jrshi
08-10-2004, 09:10 AM
Here is the line-breaking bug when viewing a Chinese page encoded in GB2312 or GB18030.
* Version of software in which the issue occurs
-- iSilo 4.01-4.05 for Palm
-- ISiloX for win 4.01-4.05
* Exact steps to reproduce the issue
1. Convert the following page: http://www.guoxue.com/shibu/24shi/shiji/sj_001.htm
2. View the page in iSilo for palm. -- See the attached screenshot for
the result.
* Operating system version
-- Palm OS5.2.1
* PDA model
-- Sony Clie TH55
* Special hardware configuration
-- None
* Special installed third-party software, especially those which integrate at the system level
-- The Chinese is supported by CJKOS 4.61. The default locale is set to GBK (GB18030).
---------------------------------------------------------------------
The problem is:
Chinese characters are encoded in two-bytes. But in the case shown in the attached screenshot, the iSilo viewer breaks the line at the middle of a chinese character (one byte at the end of the current line, and another byte at the beginning of the next line), rendering the chinese characters following it totally messed up.
It seems the wrong line-break only occurs at the certain places. As shown in the screenshot attached, it happens when the text just switches to a new environment (eg. switch to another font/color) and its first character happens to reside at the end of the line -- see the attached image and you will know what I mean. I have checked the whole document, all the wrong line breaks happen at same particular places.
If this bug can be fixed, I guess the chinese display will be nearly perfect. There had been a lot complains about the problem in various chinese forums -- I guess this had prevent many chinese users from adopting iSilo as their primary palm reader.
* Version of software in which the issue occurs
-- iSilo 4.01-4.05 for Palm
-- ISiloX for win 4.01-4.05
* Exact steps to reproduce the issue
1. Convert the following page: http://www.guoxue.com/shibu/24shi/shiji/sj_001.htm
2. View the page in iSilo for palm. -- See the attached screenshot for
the result.
* Operating system version
-- Palm OS5.2.1
* PDA model
-- Sony Clie TH55
* Special hardware configuration
-- None
* Special installed third-party software, especially those which integrate at the system level
-- The Chinese is supported by CJKOS 4.61. The default locale is set to GBK (GB18030).
---------------------------------------------------------------------
The problem is:
Chinese characters are encoded in two-bytes. But in the case shown in the attached screenshot, the iSilo viewer breaks the line at the middle of a chinese character (one byte at the end of the current line, and another byte at the beginning of the next line), rendering the chinese characters following it totally messed up.
It seems the wrong line-break only occurs at the certain places. As shown in the screenshot attached, it happens when the text just switches to a new environment (eg. switch to another font/color) and its first character happens to reside at the end of the line -- see the attached image and you will know what I mean. I have checked the whole document, all the wrong line breaks happen at same particular places.
If this bug can be fixed, I guess the chinese display will be nearly perfect. There had been a lot complains about the problem in various chinese forums -- I guess this had prevent many chinese users from adopting iSilo as their primary palm reader.