Closed Bug 236996 Opened 21 years ago Closed 20 years ago

Japanese IME preedit text should be displayed underlined, not negative/inverting

Categories

(Core :: Internationalization, enhancement)

PowerPC
macOS
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: katsuhiromihara, Assigned: waveridervsnrz)

References

()

Details

(Keywords: inputmethod, intl)

Attachments

(2 files, 7 obsolete files)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7b) Gecko/20040309 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7b) Gecko/20040309 The present, Mozilla displays Japanese preedit text negative. Safari and Internet Explorer displayes Japanese preedit text underlined. Unless reasons, same behavior is desired. Reproducible: Always Steps to Reproduce: 1.enter Japanese text to textfield or textarea. 2. 3. Actual Results: Mozilla displays Japanese preedit negative. Expected Results: Mozilla should displays Japanese preedit underlined.
duplicate bug 170951 ?
Sorry. crot0@infoseek.jp-san, you are right. This bug seems to be dup of bug 170951 .
Sorry for bug spam. *** This bug has been marked as a duplicate of 170951 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
This is slightly different from bug 170951. Mac only. steps to reproduce: 1. turn on IME (ex. Kotoeri) on Mozilla Mac build 2. type something Result: The raw text is displayed as inverting and underlined in red. Expected: The text should be underlined in black, not inverted, like as other applications on Mac. And Mac users expect that if they select a syllable for converting, the syllable is underlined in black and unselected text is underlined in gray. reopening.
Status: RESOLVED → UNCONFIRMED
Keywords: intl
Resolution: DUPLICATE → ---
Summary: Japanese preedit text should be displayed underlined, not negative → Japanese IME preedit text should be displayed underlined, not negative/inverting
FYI. About Camino, this problem fixed by following patch. bug232406 https://bugzilla.mozilla.org/attachment.cgi?id=163309&action=view
Attached patch patch (obsolete) — Splinter Review
note: nsTextFrame.cpp part is not necessary to fix this bug. But NS_RGB(255,198,198) is very hard to see when background color is white. So we should changed it.
about comment#6 This patch is about Camino (cocoa widget).
Status: UNCONFIRMED → NEW
Ever confirmed: true
who should review this?
Comment on attachment 163972 [details] [diff] [review] patch This patch needs to be updated to the current trunk first.
Now, I write new patch and test it. Please wait...
Attached patch new patch (obsolete) — Splinter Review
add part of MacOSX IME style.
Attachment #163972 - Attachment is obsolete: true
Attached image preview
patch is still imcomplete, but improve appearance of pending text.
Comment on attachment 171252 [details] [diff] [review] new patch This patch looks good for me. We should re-implement this patch in bug 170951 after this bug is fixed. I will try to fix bug 170951 after 1.8 final. But I think this bug should be fixed before 1.8 final. waverider: Separate this patch for layout/generic and widget/src/cocoa. Because the reviewers of these files are different people. You should attach two patches and you change these flags to: layout/generic review&superreview = roc@ocallahan.org widget/src/cocoa review = pinkerton@aol.net
Oops... waverider: See comment 13. You still have work.
I think the color is wrong. > + #define IME_RAW_COLOR NS_RGB(149,149,149) //light gray > + #define IME_CONVERTED_COLOR NS_RGB(149,149,149) //light gray > + #define IME_SELECTED_CONVERTED_COLOR NS_RGB(0,0,0) //black I think these colors should be... #define IME_COLOR NS_RGB(149,149,149) //light gray #define IME_SELECTED_COLOR NS_RGB(0,0,0) //black and case nsISelectionController::SELECTION_IME_SELECTEDRAWTEXT: case nsISelectionController::SELECTION_IME_SELECTEDCONVERTEDTEXT: should be used IME_SELECTED_COLOR and case nsISelectionController::SELECTION_IME_RAWINPUT: case nsISelectionController::SELECTION_IME_CONVERTEDTEXT: should be used IME_COLOR.
Assignee: smontagu → waveridervsnrz
Blocks: 170951
Status: NEW → ASSIGNED
re:comment#15 color is wrong? I think you mean to say "macro name is wrong". If not, Please tell me right color.
Attachment #171252 - Attachment is obsolete: true
(In reply to comment #16) > re:comment#15 > > color is wrong? > I think you mean to say "macro name is wrong". > If not, Please tell me right color. See attachment 171260 [details], the "After"'s above case underline-color differs from "MacOSX"'s above case underline-color. I said this. But, currently, attachment 172446 [details] [diff] [review] is looks good.
change FillRect(aX + startOffset+size, aY + baseline - offset, textWidth-2*size, size); to FillRect(aX + startOffset+size, aY + baseline - offset, textWidth-2*size, 2*size);
Attachment #172446 - Attachment is obsolete: true
Masayuki, can you make sure waverider requests reviews when he's ready? Thanks!!
Comment on attachment 172665 [details] [diff] [review] correct careless miss at nsISelectionController::SELECTION_IME_SELECTEDRAWTEXT: You changed the underline height. But I disagree it. Because if underline is thin on Mac, you should change |GetUnderline|. http://lxr.mozilla.org/mozilla/source/gfx/src/mac/nsFontMetricsMac.cpp#295 But it is not this bug. You should open a new bug. Note that your patch separates the code to MacOS X and others. But these codes will be recombined by bug 170951. Therefore, these codes difference should be only colors.
Attachment #172665 - Flags: review-
> you should change |GetUnderline|. Or you should add new function. E.g., |GetUnderlineOfCompositionString|.
Oops... http://lxr.mozilla.org/mozilla/source/gfx/src/mac/nsFontMetricsMac.cpp#295 may not be for MacOS X. I don't know which nsFontMetrics* is for MacOS X.
re:comment#21, #22 I want to change underline height about IME's pending text. If we |GetUnderline| changed, all underline(include hyperlink) is changed. I'm sorry to say, but this is wrong way. and I hope that you explain an advantages of adding new function. If adding MacOS X's look and feel to generic/nsTextFrame.cpp is not recommended, How can we solve this bug? re:comment#23 That source is used at MacOS X.
Attached patch brushed. (obsolete) — Splinter Review
Attachment #172665 - Attachment is obsolete: true
Attachment #174466 - Attachment description: brashed. → brushed.
Attached patch brushed more. (obsolete) — Splinter Review
Attachment #174466 - Attachment is obsolete: true
Attached patch Please correct, the teacher. (obsolete) — Splinter Review
Attachment #174567 - Attachment is obsolete: true
> +#ifdef XP_MACOSX // underline thickness is 2 pixel > + aRenderingContext.FillRect(aX + startOffset+size, aY + baseline - offset, textWidth-size, 2*size); textWidth-size -> textWidth-2*size > +#else > + aRenderingContext.FillRect(aX + startOffset+size, aY + baseline - offset, textWidth-size, size); > +#endif same. > + case nsISelectionController::SELECTION_IME_RAWINPUT: > + case nsISelectionController::SELECTION_IME_CONVERTEDTEXT:{ > + aTextStyle.mNormalFont->GetUnderline(offset, size); > + aRenderingContext.SetColor(IME_UNDERLINECOLOR); > +#ifdef XP_MACOSX // underline thicness is 2 pixel > + aRenderingContext.FillRect(aX + startOffset+size, aY + baseline - offset, textWidth-size, 2*size); same. > +#else > + aRenderingContext.FillRect(aX + startOffset+size, aY + baseline - offset, textWidth-size, size); same.
Attachment #174684 - Attachment is obsolete: true
Comment on attachment 174821 [details] [diff] [review] Please correct, the teacher. looks good for me. Please re-attache the other patch(nsChildView.mm) and you should request review for it.
Attachment #174821 - Flags: superreview?(roc)
Attachment #174821 - Flags: review+
Thanks a lot. https://bugzilla.mozilla.org/show_bug.cgi?id=280200 We already done it.
Attachment #174821 - Flags: superreview?(roc) → superreview+
roc: Could you check-in the patch?
checked in
Status: ASSIGNED → RESOLVED
Closed: 21 years ago20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: