Issue 101022 - Some Unicode punctuation characters turn into Western Fonts
Summary: Some Unicode punctuation characters turn into Western Fonts
Status: CLOSED DUPLICATE of issue 54841
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOO310m9
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@framework
Keywords: CJK, needmoreinfo, oooqa
Depends on:
Reported: 2009-04-11 10:57 UTC by kongnan
Modified: 2009-08-21 14:44 UTC (History)
5 users (show)

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

this is in writer, but calc, impress.... have this issus too. (9.21 KB, application/vnd.oasis.opendocument.text)
2009-04-11 11:18 UTC, kongnan
no flags Details
notice the Unicode char (467.14 KB, application/x-shockwave-flash)
2009-04-11 11:27 UTC, kongnan
no flags Details
Show quote marks in writer (6.77 KB, image/png)
2009-04-17 05:59 UTC, redflagzhulihua
no flags Details
bug (8.91 KB, image/jpeg)
2009-05-11 09:53 UTC, freebuilder
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kongnan 2009-04-11 10:57:18 UTC
(sorry for my poor english)

It seems that punctuation char will inherit fontStyle from the char who lead 
it. And what's worse, even if I input the UNICODE punctuation char first, move 
the cursor back and then type a WESTERN char, the UNICODE punctuation will turn 
into WESTERN fonts. This is similar but different from ISSUE 54841。

0. Open an app (Writer, Calc, Impress......)
1. Input one of the Unicode chars as follows “ â€ã€€â€˜ã€€â€™ã€€â€”— ……
2. Now its' font is SimSun (an Chinese Font)
3. Type a western char befor it. For example,  e“  e† e‘  e’ e——  e……
4. Punctuation char's *FONT* turns into western style, *SEEMS LIKE*  e"  e"  
e'  e'  e--  e......
Comment 1 kongnan 2009-04-11 11:18:07 UTC
Created attachment 61511 [details]
this is in writer, but calc, impress.... have this issus too.
Comment 2 kongnan 2009-04-11 11:27:42 UTC
Created attachment 61512 [details]
notice the Unicode char
Comment 3 redflagzhulihua 2009-04-17 04:53:13 UTC
I can confirm this behavior.
But I can't tell if this is a bug or a intended behavior. For the single "â€" or
"’" after a letter or a number, I think it's a good feature. Because "’" or "â€"
might means minute or second. e.g., 8'15" or it's. This display better than
8’15“ or it’s.
But when it used as Chinese quote mark, it's used as a pair. If you change the
latter one, you must change the former one at the same time. Or, it will show
ugly. Then we must consider what if not only letters or numbers between the
quote mark. What If there are CJK character in between? What if most of the
characters are CJK character?

I'll attach a picture the show this... 
Comment 4 redflagzhulihua 2009-04-17 05:59:46 UTC
Created attachment 61617 [details]
Show quote marks in writer
Comment 5 freebuilder 2009-05-11 09:53:06 UTC
Created attachment 62157 [details]
Comment 6 freebuilder 2009-05-11 09:54:30 UTC
It's a good feature?
Comment 7 amy2008 2009-05-11 10:23:35 UTC

Comment 8 redflagzhulihua 2009-05-11 10:32:07 UTC
Hi freebuilder,
Did you read all my words? Did you see the picture I attached?


Best regards,
Comment 9 Olaf Felka 2009-08-20 16:30:05 UTC
@ mru: Please have a look.
Comment 10 lohmaier 2009-08-20 17:00:42 UTC
The problem is that the chinese font has different visual appearance than the
western font. The character stays the same, it is just using a different font
depending on the context (i.e. western char before → western font) and that is
the same as issue 54841, isn't it?
i.e. the quotes/punctuation are weak characters and it depends on the context
what font is chosen.

the example from redflagzhulihua showed that this is indeed helpful in usual
cases to use western font when western characters are involved

And there you already have the workaraound: Set the western font to the chinese
font as well (at least for the punctuation - can use search and replace for
that), so that it doesn't matter anymore in what context it is.

(BTW: In western locale there is no change of the appearance in the sample
document, since it initially is in western context already)

I cannot really think of a bullet-proof way to change the behaviour. Maybe for
the quotes (as they appear in pairs usually - but how would you solve the
problem with the ellipsis or the em-dash for example?

Bottom line: For me this is a worksforme. You can force explicit context by
assigning the same font for both contexts. But apart from that it is impossible
to determine what the "correct" font should be.
Comment 11 michael.ruess 2009-08-21 14:43:24 UTC
I fully agree with cloph. This is a dup of issue 54841.
Please continue the discussion whether this is a "works as designed" or not there.

*** This issue has been marked as a duplicate of 54841 ***
Comment 12 michael.ruess 2009-08-21 14:44:08 UTC