Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Issue 1092243002: Handle typographical apostrophe with spelling service client (Closed)

Created:
5 years, 8 months ago by please use gerrit instead
Modified:
5 years, 6 months ago
Reviewers:
groby-ooo-7-16
CC:
chromium-reviews, groby+spellwatch_chromium.org, rlp+watch_chromium.org, rouslan+spellwatch_chromium.org, Julius
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle typographical apostrophe with spelling service client Do not mark typographical apostrophe as misspelled, if the server wants to replace it with a typewriter apostrophe. TEST=SpellCheckTest.CreateTextCheckingResults TEST=SpellCheckTest.IsValidContraction TEST=SpellcheckWordIteratorTest.TypographicalApostropheIsPartOfWord TEST=SpellingServiceClientTest.RequestTextCheck BUG=165079 Committed: https://crrev.com/e12b92b09e5aa238758e3f2f0d7c195709fbf217 Cr-Commit-Position: refs/heads/master@{#335193}

Patch Set 1 : #

Patch Set 2 : Slight refactor. #

Total comments: 3

Patch Set 3 : SpellcheckWordIteratorTest.TypographicalApostropheIsPartOfWord #

Patch Set 4 : Preserve apostrophes. #

Patch Set 5 : Ignore apostrophe-only suggestions from browser process. #

Patch Set 6 : Fix ozone and mac #

Total comments: 16

Patch Set 7 : Address comments. Avoid server confusion with typographical apostrophes. #

Total comments: 7

Patch Set 8 : Address comments. #

Total comments: 4

Patch Set 9 : base::char16 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -48 lines) Patch
M chrome/browser/spellchecker/spelling_service_client.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/spellchecker/spelling_service_client_unittest.cc View 1 2 3 4 5 6 16 chunks +45 lines, -18 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck.cc View 1 2 3 4 5 6 7 8 2 chunks +60 lines, -26 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_unittest.cc View 1 2 3 4 5 6 6 chunks +96 lines, -3 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc View 1 2 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (7 generated)
please use gerrit instead
Rachel, PTAL.
5 years, 8 months ago (2015-04-20 01:24:22 UTC) #5
groby-ooo-7-16
This does not account for the concatenation system for the native spellchecker. As the bug ...
5 years, 8 months ago (2015-04-20 21:02:22 UTC) #6
please use gerrit instead
On 2015/04/20 21:02:22, groby wrote: > This does not account for the concatenation system for ...
5 years, 8 months ago (2015-04-20 23:05:16 UTC) #7
please use gerrit instead
Rachel, PTAL Patch Set 3. https://codereview.chromium.org/1092243002/diff/80001/chrome/renderer/spellchecker/spellcheck.cc File chrome/renderer/spellchecker/spellcheck.cc (right): https://codereview.chromium.org/1092243002/diff/80001/chrome/renderer/spellchecker/spellcheck.cc#newcode398 chrome/renderer/spellchecker/spellcheck.cc:398: // Ignore typographical apostrophe ...
5 years, 8 months ago (2015-04-20 23:05:31 UTC) #8
please use gerrit instead
https://codereview.chromium.org/1092243002/diff/80001/chrome/renderer/spellchecker/spellcheck.cc File chrome/renderer/spellchecker/spellcheck.cc (right): https://codereview.chromium.org/1092243002/diff/80001/chrome/renderer/spellchecker/spellcheck.cc#newcode398 chrome/renderer/spellchecker/spellcheck.cc:398: // Ignore typographical apostrophe misspellings. On 2015/04/20 21:02:22, groby ...
5 years, 8 months ago (2015-04-20 23:40:17 UTC) #9
please use gerrit instead
Another solution is to replace typographical apostrophes with typewriter apostrophes before sending text to the ...
5 years, 8 months ago (2015-04-21 19:17:32 UTC) #10
groby-ooo-7-16
What happens for words that change length? I.e. check Ik've been here Does that preserve ...
5 years, 8 months ago (2015-04-21 21:42:44 UTC) #11
please use gerrit instead
Rachel, PTAL Patch Set 5, which preserves the original apostrophe types and adds a test ...
5 years, 8 months ago (2015-04-23 20:30:28 UTC) #12
groby-ooo-7-16
Sorry, still being picky :) https://codereview.chromium.org/1092243002/diff/160001/chrome/renderer/spellchecker/spellcheck.cc File chrome/renderer/spellchecker/spellcheck.cc (right): https://codereview.chromium.org/1092243002/diff/160001/chrome/renderer/spellchecker/spellcheck.cc#newcode103 chrome/renderer/spellchecker/spellcheck.cc:103: const base::string16 kApostrophes(base::WideToUTF16(L"\x2019'")); Please ...
5 years, 8 months ago (2015-04-25 00:19:02 UTC) #13
groby-ooo-7-16
Can we wrap this up? Can you give this to Julius, if you're swamped?
5 years, 6 months ago (2015-06-16 00:48:59 UTC) #14
please use gerrit instead
Rachel, PTAL Patch Set 7. https://codereview.chromium.org/1092243002/diff/160001/chrome/renderer/spellchecker/spellcheck.cc File chrome/renderer/spellchecker/spellcheck.cc (right): https://codereview.chromium.org/1092243002/diff/160001/chrome/renderer/spellchecker/spellcheck.cc#newcode103 chrome/renderer/spellchecker/spellcheck.cc:103: const base::string16 kApostrophes(base::WideToUTF16(L"\x2019'")); On ...
5 years, 6 months ago (2015-06-17 03:52:08 UTC) #17
groby-ooo-7-16
Tiny nits, plus the question of char16 vs. wchar_t https://codereview.chromium.org/1092243002/diff/220001/chrome/browser/spellchecker/spelling_service_client.cc File chrome/browser/spellchecker/spelling_service_client.cc (right): https://codereview.chromium.org/1092243002/diff/220001/chrome/browser/spellchecker/spelling_service_client.cc#newcode72 chrome/browser/spellchecker/spelling_service_client.cc:72: ...
5 years, 6 months ago (2015-06-17 19:12:03 UTC) #18
please use gerrit instead
Rachel, PTAL Patch Set 8. https://codereview.chromium.org/1092243002/diff/220001/chrome/browser/spellchecker/spelling_service_client.cc File chrome/browser/spellchecker/spelling_service_client.cc (right): https://codereview.chromium.org/1092243002/diff/220001/chrome/browser/spellchecker/spelling_service_client.cc#newcode72 chrome/browser/spellchecker/spelling_service_client.cc:72: for (base::char16& c : ...
5 years, 6 months ago (2015-06-17 20:21:35 UTC) #19
groby-ooo-7-16
One more thing... (I _really_ don't trust wchar_t) https://codereview.chromium.org/1092243002/diff/240001/chrome/renderer/spellchecker/spellcheck.cc File chrome/renderer/spellchecker/spellcheck.cc (left): https://codereview.chromium.org/1092243002/diff/240001/chrome/renderer/spellchecker/spellcheck.cc#oldcode388 chrome/renderer/spellchecker/spellcheck.cc:388: // ...
5 years, 6 months ago (2015-06-18 21:52:26 UTC) #20
please use gerrit instead
Rachel, PTAL Patch Set 9. https://codereview.chromium.org/1092243002/diff/240001/chrome/renderer/spellchecker/spellcheck.cc File chrome/renderer/spellchecker/spellcheck.cc (left): https://codereview.chromium.org/1092243002/diff/240001/chrome/renderer/spellchecker/spellcheck.cc#oldcode388 chrome/renderer/spellchecker/spellcheck.cc:388: // are probably contextually-misspelled ...
5 years, 6 months ago (2015-06-19 01:37:01 UTC) #21
groby-ooo-7-16
Gimme an L! Gimme a G!... OK, fine, I'll just spell it out directly: LGTM ...
5 years, 6 months ago (2015-06-19 01:50:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1092243002/260001
5 years, 6 months ago (2015-06-19 02:03:16 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:260001)
5 years, 6 months ago (2015-06-19 02:30:23 UTC) #25
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/e12b92b09e5aa238758e3f2f0d7c195709fbf217 Cr-Commit-Position: refs/heads/master@{#335193}
5 years, 6 months ago (2015-06-19 02:31:03 UTC) #26
please use gerrit instead
5 years, 6 months ago (2015-06-21 18:11:15 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:260001) has been created in
https://codereview.chromium.org/1201563004/ by rouslan@chromium.org.

The reason for reverting is: Suspected to be causing crashes in
http://crbug.com/502786..

Powered by Google App Engine
This is Rietveld 408576698