Closed
Bug 156369
Opened 22 years ago
Closed 8 years ago
A return code between CJK character and html tag or spaces convert an extra space
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
DUPLICATE
of bug 1081858
People
(Reporter: amyy, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: intl)
Attachments
(5 files, 3 obsolete files)
Build: 07-08 1.0.1 branch build
This is for left over problems in bug 135323.
After fix for bug 135323, there are still two problems:
1. When there is a return code HTML tag mixed together with character(s),
there still like "an extra space" shows in browser window.
http://www.asahi-net.or.jp/~wq6k-yn/para.html
Please see the screen shot for detail:
http://bugzilla.mozilla.org/attachment.cgi?id=89971&action=view
Notice when copy/paste the string from Broswer window to Composer, seems won't
see the extra space.
2. When the HTML source has space(s) between return code, like page:
http://www.php.net/manual/ja/function.setcookie.php or:
http://www.vinelinux.org/
There is a single byte space between 2 characters.
On Netscape I can highlight the space between characters while on IE I can not.
Comment 2•22 years ago
|
||
cc to smontagu.
Comment 4•22 years ago
|
||
Comment 5•22 years ago
|
||
A return code with the CJK character is skipped. It does not skip, when if
follows a space code. It does not correspond to a string search yet.
The effect of a patch was checked by mozilla-1.2.1.
Comment 6•22 years ago
|
||
Comment 7•22 years ago
|
||
The patch for searching a string mixed CJK characters with a '\n' was added.
Related bug report is shown below.
Bug-org 166127
Search string in Japanese doesn't match exactly
Attachment #113291 -
Attachment is obsolete: true
Comment 8•22 years ago
|
||
> Bug-org 166127
Bug 166127
Search string in Japanese doesn't match exactly
Comment 9•22 years ago
|
||
ylong-san said:
1. When there is a return code HTML tag mixed together with character(s),
there still like "an extra space" shows in browser window.
2. When the HTML source has space(s) between return code,
there is a single byte space between 2 characters.
This patch is related only to the first problem. We may not desire to skip a
space that is inserted explicitly between an English character and a CJK
character although we may desire to skip space(s) for the indent after a
new-line. I wish to examine the second problem after the first problem fixes.
Comment 10•22 years ago
|
||
Attachment #113902 -
Attachment is obsolete: true
Updated•22 years ago
|
Attachment #114546 -
Flags: review?(shanjian)
Comment 11•22 years ago
|
||
Comment 12•22 years ago
|
||
Comment 13•22 years ago
|
||
Attachment #114546 -
Attachment is obsolete: true
Comment 14•22 years ago
|
||
The space following a new-line is also deleted.
It is a patch for release version 1.3b.
I will rewrite for 1.3.
Comment 15•21 years ago
|
||
It's not just layout (patches here also deal with 'find'), but layout takes a
significant portion of patches here. so, I'm changing the component (not sure
exactly which component of layout)..
Assignee: sli0262 → misc
Status: ASSIGNED → NEW
Component: Internationalization → Layout: Misc Code
Updated•21 years ago
|
Attachment #114546 -
Flags: review?(sli0262)
Comment 16•20 years ago
|
||
Taking this.
I think that this should be fixed as:
{
linefeed-treatment: auto;
white-space-treatment: ignore-if-surrounding-linefeed;
}
See http://www.w3.org/TR/css3-text/#white-space-props
Assignee: layout.misc-code → masayuki
Updated•20 years ago
|
Blocks: css-text-3
Updated•19 years ago
|
Comment 17•19 years ago
|
||
Jungshik:
Currently, we always remove the line-feed if its each sides are Kanji or Kana.
I.e.,
ab<-
cd
In this case, if 'b' and 'c' are IS_CJ_CHAR, we remove the line-feed character.
I think this behavior is wrong for Korean. Do you think it?
Comment 18•19 years ago
|
||
(In reply to comment #17)
> Jungshik:
>
> Currently, we always remove the line-feed if its each sides are Kanji or Kana.
> I.e.,
>
> ab<-
> cd
>
> In this case, if 'b' and 'c' are IS_CJ_CHAR, we remove the line-feed character.
>
> I think this behavior is wrong for Korean. Do you think it?
It depends. If lines are broken (by the author of a document by inserting
'linefeed' character) within a single word, the current behavior is correct. If
lines are broken between two adjacent words, the current behavior is wrong. It's
far from trivial to distinguish between two cases automatically. However, it's
rather rare that a linefeed is inserted by the author of a document to break
lines *within* a word so that you have a point. We'd better NOT remove
'linefeed' between two Korean syllables.
Updated•15 years ago
|
QA Contact: amyy → layout.misc-code
Updated•9 years ago
|
Assignee: masayuki → nobody
Comment 19•8 years ago
|
||
This sounds like something should be fixed by bug 1081858, although the second testcase has not been fixed yet because of the extra whitespaces.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Core → Core Graveyard
Assignee | ||
Updated•6 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•