Issue 72868 - Writer/Impress: line does not break after Chinese punctuation and before Latin letters
Summary: Writer/Impress: line does not break after Chinese punctuation and before Lati...
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.0.1
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: OOo 3.0
Assignee: stefan.baltzer
QA Contact: issues@framework
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2006-12-22 04:01 UTC by zhongqiyao
Modified: 2008-09-01 13:13 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
word break problem (8.50 KB, application/octet-stream)
2007-01-24 03:40 UTC, zhongqiyao
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description zhongqiyao 2006-12-22 04:01:22 UTC
OpenOffice.org Writer 2.0.1, Chinese Traditional characters.
Microsoft Windows XP, Chinese Traditional characters.

1. Type the following text, where "X" means Chinese punctuation
   (for example: <ã€>),
   and "a" means Latin letters.

aaaXaaaXaaaX aaaXaaaXaaaX -> and so on

2. Expect the line to break after "X" and before "a" (where it is
   legitimate to do so).  If required, adjust the actual text
   so as to expect the line to break there.

3. In fact it won't allow it to break there.  It will be linked
   together.

4. After "X", change "a" to a Chinese character.  Line break is normal.

Thanks.

Qiyao
Comment 1 michael.ruess 2006-12-22 07:09:35 UTC
Reassigned to SBA.
Comment 2 lohmaier 2007-01-15 00:35:50 UTC
Please attach a sample document to reproduce the problem.
Comment 3 zhongqiyao 2007-01-24 03:40:46 UTC
Created attachment 42420 [details]
word break problem
Comment 4 lohmaier 2007-01-24 12:24:09 UTC
The first line with the "," style punctuation (ã€) breaks at the spaces included
in the text, not at the punctuation (unfortunately OOo doesn't show spaces at
the end of a line, see issue 20878) - remove the spaces and the line will break
at the page-margin at whatever character hits the margin

I'm not sure what's wrong with the second example. the red one splits at
<text>æ¼¢
1<text>
So this is correct, isn't it?
The second line fits completely, so there is no reason to break at the blue area
- or did I get something wrong?

With the third example I know think I understand the problem:
It breaks
<text>æ¼¢
1<text>
and also
<text>ã€ã€ã€
æ¼¢<text>

##########
So the correct behaviour would be to also break like this:
<text>ã€ã€ã€
1<text>

Did I understand correctly?
Comment 5 zhongqiyao 2007-02-27 08:46:38 UTC
The first example should break in the blue, instead of where it does.
According to Chinese punctation rules, it it allowed to break at the
blue, instead choosing to breaking at the space instead of the blue.

Example of situation where the problem was first found:
好人ã€good applesã€å£žé¬¼ã€bad orangesã€å†ä¸€äº›ã€and more
and so on etc. with Latin spaces and Chinese punctuations.
It should be allowed the break after:
(1) any Chinese character;
(2) any Chinese punctuation which is allowed to end a line;
(3) any Latin space;
both on the condition that the next character is allowed to begin a line,
and Chinese punctation is not allowed to begin a line.

The second example explains the ability of the break in the red
(where it is able to),
but in fact it should break at the blue (where it is unable to).

The third example explains the problem of the
second example. It should break in the blue between the Chinese punctuation and
the numeral, where it is allowed to. If you replace the numeral with a Latin
letter, you get the same problem.

Thanks.

Qiyao
Comment 6 zhongqiyao 2007-04-11 04:36:50 UTC
In summary, OpenOffice can break at Latin space,
"after Chinese Character and before Latin letter",
and "after Chinese punctuation and before Chinese character",
but it cannot break
"after Chinese punctuation and before Latin letter".

Thanks.

Qiyao
Comment 7 zhongqiyao 2007-05-18 01:31:38 UTC
I am changing it to "framework" because the Impress linebreaker
has the same problem. In a moderately-sized text box, entering:
111 11ã€11111ã€1111ã€1111
it breaks at the space instead of after Chinese punctuation.

If you need more clarification, please e-mail me.
Thanks.

Qiyao
Comment 8 lohmaier 2007-06-22 17:37:33 UTC
confirming issue, removing needmoreinfo keyword

Sorry for the delay, the comments slipped my attention
Comment 9 stefan.baltzer 2007-07-18 12:16:25 UTC
SBA: Reassigned to Karl Hong.
Comment 10 Mathias_Bauer 2007-12-04 16:19:51 UTC
according to release status meeting -> target 3.x
Comment 11 karl.hong 2008-04-17 02:09:43 UTC
fixed in cws i18n41
Comment 12 karl.hong 2008-04-24 07:04:43 UTC
ready for QA.
Comment 13 karl.hong 2008-04-24 07:10:55 UTC
set target milestone to OOo 3.0.
Comment 14 stefan.baltzer 2008-05-19 11:40:08 UTC
Verified in CWS i18n41.
Comment 15 stefan.baltzer 2008-09-01 13:13:54 UTC
SBA: Re-verified in OOO300_m4. Closed.