MacViews: Enhance styling given to active composition text in textfields. |
|||||||||||||||||||||
Issue descriptionVersion: 52.0.2738.0 OS: Mac What steps will reproduce the problem? (1) Enable MacViews (chrome://flags/#mac-views-dialogs). (2) Go to system settings and change Input Source to Katakana(Japanese). (3) Open Bookmark bubble. (4) In the Name: textfield, press "kv" and then press Enter. Again press "mq". (5) kvmq should be displayed. "mq" is currently the active composition text. What is the expected output? "mq" should be styled (underlined probably) to depict that it is the active composition text. What do you see instead? No distinct styling is applied to the active composition text.
,
Jul 25 2016
no reason - let's do it! (i.e. whatever gets us most consistent with {content area, NSTextField, other users of ui::CompositionText})
,
Jul 25 2016
,
Aug 9 2016
A change landed for this - https://codereview.chromium.org/2218773002/. Not sure why the bot did not refer it here. The composition text should now be underlined. Pending changes (Render Text implementation does not currently support these)- 1) Target clause should have a thick underline (instead of being selected). 2) Discontinuous underlines for different clauses.
,
Sep 15 2016
,
Dec 19 2016
,
Jan 27 2017
,
Apr 12 2017
tapted@: we're using RenderTextHarfBuzz on Mac now, right? Does that mean the missing features in #4 are now present for us? If so I think we can close this.
,
Apr 12 2017
I am not sure if we are using RTHB on Mac by default now. Even if we are, the things mentioned in c#4 would still need implementation. RenderText itself (and hence RTHB as well) did not support thick and discontinuous underlines.
,
Apr 12 2017
*discontinuous underlines for consecutive characters.
,
Sep 29 2017
See Issue 769055 for another effect
,
Oct 4 2017
This bug is still live and should be fixed before we ship MacViews.
,
Oct 16 2017
patti, can you take a peek? :)
,
Jan 23 2018
These Proj=MacViews bugs should probably be tracking for Phase 3 ( Issue 603386 ) - m66.
,
Feb 6 2018
I just tested this and this bug seems to be now Fixed. tapted@, does that line up with your understanding? I'm surprised that it appears Fixed, since there aren't any changes (that I can see) to support it, but I definitely see the expected composition underline. If this is indeed Fixed, please close it - otherwise please kick it back to me for triage :) Thanks!
,
Feb 6 2018
There were still two parts: 1) Target clause should have a thick underline (instead of being selected). 2) Discontinuous underlines for different clauses. RenderText's formatting APIs currently only support one underline style. But it should be straightforward to add "thick underline" and "skip whitespace" styles.
,
Feb 7 2018
Okay, I'll work on this.
,
Feb 7 2018
Heavy underlines for composition: <https://chromium-review.googlesource.com/c/chromium/src/+/905125> There is an odd discrepancy I've noticed between Views textfields and Cocoa textfields. In a Cocoa text field kv<enter>mq has the text field contain: kv<u>mq</u>. In a Views text field, kv<enter> works right, but then when you hit m, you get: kv<u>&space;m</u>, and then when you type q, you get no output at all, and hitting enter leaves the field containing kv&space;m So, there's an extra space getting inserted somewhere, and maybe some off-by-one thing going on. I'll take a peek.
,
Feb 7 2018
I had a look at the behavior with the spaces. It happens with Katakana, but *not* with Hiragana, and the extra space is coming from NSTextInputContext itself - i.e., it passes the string with the extra space into [BridgedContentView setMarkedText:selectedRange:replacementRange], which is weird. I'm starting to think if this is an AppKit bug. I tried Katakana input in Dash (which is using a vanilla Cocoa text field) and it displays the same issue. The Safari omnibox doesn't, which makes me think Safari has a workaround in place for this. Anyway, I'm not mega-worried about fixing it.
,
Feb 7 2018
tapted or karandeepb: do either of you know how to trigger a composition that should have multiple discontinuous underlines?
,
Feb 7 2018
Here's an example: With Katakana, press 'a' 8 times. Press the right arrow key, this allows you to select different clauses, with the currently active clause having a thick underline.
,
Feb 14 2018
#21: that didn't work for me, but I think I got it to happen in TextEdit: 1) In Katakana, type "nihon". 2) Down arrow twice, to get a completion whose text is "ニホn" 3) See the heavy underline underneath the "ニホ" and the lighter underline underneath the "n".
,
Feb 14 2018
Passing the underline state from BridgedContentView to TextInputClient: <https://chromium-review.googlesource.com/c/chromium/src/+/919183> Supporting heavy underlines in RenderText and using them for composition ranges: <https://chromium-review.googlesource.com/c/chromium/src/+/905125> The missing link is to take the composition ranges in TextfieldModel and inform RenderText about them somehow - probably we need RenderText::SetTargetClauseRange() in addition to RenderText::SetCompositionRange(), and we need TextfieldModel::SetCompositionText() to call it.
,
Feb 14 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/fa33391487b985f547b77672d5ab5e9cc2a95534 commit fa33391487b985f547b77672d5ab5e9cc2a95534 Author: Elly Fong-Jones <ellyjones@chromium.org> Date: Wed Feb 14 18:56:26 2018 gfx: use heavy underline for compositions in RenderText This change: 1) Adds a HEAVY_UNDERLINE text style 2) Has RenderText apply it for compositions, instead of UNDERLINE 3) Has RenderTextHarfBuzz and RenderTextMac draw HEAVY_UNDERLINE properly Bug: 612675 Change-Id: I08f997dfb1edee1ea29d8c828302d7a24418975b Reviewed-on: https://chromium-review.googlesource.com/905125 Reviewed-by: Michael Wasserman <msw@chromium.org> Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#536765} [modify] https://crrev.com/fa33391487b985f547b77672d5ab5e9cc2a95534/ui/gfx/render_text.cc [modify] https://crrev.com/fa33391487b985f547b77672d5ab5e9cc2a95534/ui/gfx/render_text.h [modify] https://crrev.com/fa33391487b985f547b77672d5ab5e9cc2a95534/ui/gfx/render_text_harfbuzz.cc [modify] https://crrev.com/fa33391487b985f547b77672d5ab5e9cc2a95534/ui/gfx/render_text_harfbuzz.h [modify] https://crrev.com/fa33391487b985f547b77672d5ab5e9cc2a95534/ui/gfx/render_text_mac.mm [modify] https://crrev.com/fa33391487b985f547b77672d5ab5e9cc2a95534/ui/gfx/text_constants.h
,
Feb 15 2018
Tried to verify the fix on 66.0.3348.0 using Mac 10.13.3 and didn't observe any change in builds before fix and after fix. 1. From Input sources of system preferences added japanese. 2. Selected Katakana and as per comment#21, inputed a 8 times and pressed right arrow -- Observed thick underline both in 66.0.3346.0 and 66.0.3348.0 3. Selected Katakana and as per comment#22, inputed nihona and pressed down arrow twice now seeing ニホン instead of ニホn (as mentioned in comment#22) -- Observed thick underline both in 66.0.3346.0 and 66.0.3348.0 and didn't observe ニホn. @ellyjones: Could you please check the screencasts and let us know if we miss anything from steps and please help in verifying the fix.
,
Feb 15 2018
#25: there are two other CLs in flight that have not yet landed, so please hold off on testing for now :)
,
Mar 23 2018
Mac triage: targeting this for M67.
,
Mar 27 2018
As this is targeted for M67, pls have fix landed ASAP to trunk. Thank you
,
Mar 29 2018
** Bulk Edit ** There are only two M67 dev releases left on 04/03 & 04/10 before M67 branch on 04/12. Please try to land the fix ASAP to trunk so we can move forward with 50%-50% experiment on M67 Canary/Dev (if possible at all). Thank you.
,
Apr 3 2018
** Bulk Edit ** There is only one dev release left 04/10 before M67 branch on 04/12. Please try to land the fix ASAP to trunk so we can move forward with 50%-50% experiment on M67 Canary/Dev (if possible at all). Thank you. FYI: Change/Fix has to be landed in trunk latest by 4:00 PM PT, Friday (04/06) so we can pick it up for next week dev release.
,
Apr 9 2018
ellyjones@, when do we expect remaining two CLs to land in trunk per comment #26?
,
Apr 9 2018
It isn't likely that these will get landed by M67. They aren't critical though so I'm kicking this bug to M68.
,
Apr 25 2018
Pls mark the bug as fixed if CL is landed in trunk and nothing else is pending. Thank you.
,
Jun 20 2018
,
Jul 10
,
Jul 12
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by karandeepb@chromium.org
, Jul 25 2016