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

Issue 1272683002: Creates BreakIterator::GetWordBreakStatus. (Closed)

Created:
5 years, 4 months ago by Julius
Modified:
5 years, 4 months ago
CC:
chromium-reviews, tapted, Matt Giuca, grt+watch_chromium.org, rouslan+spellwatch_chromium.org, rlp+watch_chromium.org, tfarina, groby+spellwatch_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Creates BreakIterator::GetWordBreakStatus. For multilingual spellchecking, we need a function to tell us the current state of the iterator so we know what the spellchecker needs to pay attention to. That is, we need to know if we've found a word or characters that can be skipped over. TEST=*Skippable* TEST=*BreakStatus* BUG=5102 Committed: https://crrev.com/3fc3250d48a1e1d280936a9de4c0875d4ec72e3e Cr-Commit-Position: refs/heads/master@{#342958}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Made new function, added tests. #

Total comments: 6

Patch Set 4 : Added comments and such. #

Total comments: 14

Patch Set 5 : Rebase and address comments. #

Total comments: 6

Patch Set 6 : Comment clarifications and using EXPECT_EQ. #

Total comments: 8

Patch Set 7 : Updated Khmer tests and ASCII-fied comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -2 lines) Patch
M base/i18n/break_iterator.h View 1 2 3 4 5 2 chunks +27 lines, -0 lines 0 comments Download
M base/i18n/break_iterator.cc View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M base/i18n/break_iterator_unittest.cc View 1 2 3 4 5 6 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc View 1 2 3 4 5 6 3 chunks +171 lines, -0 lines 1 comment Download

Messages

Total messages: 45 (23 generated)
Julius
Rouslan, PTAL at Patch Set #1.
5 years, 4 months ago (2015-08-05 22:43:07 UTC) #5
please use gerrit instead
On 2015/08/05 22:43:07, Julius wrote: > Rouslan, PTAL at Patch Set #1. Let's define a ...
5 years, 4 months ago (2015-08-05 23:47:55 UTC) #6
groby-ooo-7-16
On 2015/08/05 23:47:55, Rouslan wrote: > On 2015/08/05 22:43:07, Julius wrote: > > Rouslan, PTAL ...
5 years, 4 months ago (2015-08-05 23:53:29 UTC) #7
Matt Giuca
Drive-by nit. https://codereview.chromium.org/1272683002/diff/70001/base/i18n/break_iterator.h File base/i18n/break_iterator.h (right): https://codereview.chromium.org/1272683002/diff/70001/base/i18n/break_iterator.h#newcode100 base/i18n/break_iterator.h:100: nit: No extra blank line.
5 years, 4 months ago (2015-08-06 00:32:16 UTC) #8
Julius
Rouslan, PTAL at Patch Set #3. https://codereview.chromium.org/1272683002/diff/70001/base/i18n/break_iterator.h File base/i18n/break_iterator.h (right): https://codereview.chromium.org/1272683002/diff/70001/base/i18n/break_iterator.h#newcode100 base/i18n/break_iterator.h:100: On 2015/08/06 00:32:15, ...
5 years, 4 months ago (2015-08-06 20:43:54 UTC) #15
please use gerrit instead
A few comments to start. https://codereview.chromium.org/1272683002/diff/210001/base/i18n/break_iterator.h File base/i18n/break_iterator.h (right): https://codereview.chromium.org/1272683002/diff/210001/base/i18n/break_iterator.h#newcode74 base/i18n/break_iterator.h:74: enum WordBreakStatus { IS_WORD_BREAK, ...
5 years, 4 months ago (2015-08-07 17:16:59 UTC) #16
Julius
Rouslan, PTAL at Patch Set #4. https://codereview.chromium.org/1272683002/diff/210001/base/i18n/break_iterator.h File base/i18n/break_iterator.h (right): https://codereview.chromium.org/1272683002/diff/210001/base/i18n/break_iterator.h#newcode74 base/i18n/break_iterator.h:74: enum WordBreakStatus { ...
5 years, 4 months ago (2015-08-07 20:30:04 UTC) #19
please use gerrit instead
I need so much coffee to understand this :-P https://codereview.chromium.org/1272683002/diff/270001/base/i18n/break_iterator.cc File base/i18n/break_iterator.cc (right): https://codereview.chromium.org/1272683002/diff/270001/base/i18n/break_iterator.cc#newcode146 base/i18n/break_iterator.cc:146: ...
5 years, 4 months ago (2015-08-07 20:53:10 UTC) #20
Julius
Rouslan, PTAL at Patch Set #5. https://codereview.chromium.org/1272683002/diff/270001/base/i18n/break_iterator.cc File base/i18n/break_iterator.cc (right): https://codereview.chromium.org/1272683002/diff/270001/base/i18n/break_iterator.cc#newcode146 base/i18n/break_iterator.cc:146: return IS_NOT_WORD_BREAK; On ...
5 years, 4 months ago (2015-08-10 16:06:37 UTC) #25
please use gerrit instead
Those comments are still confusing, but better than before. You don't have to change them, ...
5 years, 4 months ago (2015-08-10 17:24:42 UTC) #26
Julius
Rouslan, PTAL at Patch Set #6. Hopefully this is a clearer way of commenting what ...
5 years, 4 months ago (2015-08-10 18:56:19 UTC) #30
please use gerrit instead
Overall lgtm. Next you need a base/i18n/ OWNER review.
5 years, 4 months ago (2015-08-10 19:31:45 UTC) #31
please use gerrit instead
By the way, the description is out of date. Please update it.
5 years, 4 months ago (2015-08-10 19:32:08 UTC) #32
Julius
jshin@chromium.org, PTAL at Patch Set #6, files: base/i18n/break_iterator.h base/i18n/break_iterator.cc base/i18n/break_iterator_unittest.cc
5 years, 4 months ago (2015-08-10 20:26:06 UTC) #34
jungshik at Google
LGTM with nits about visual studio + Khmer test. https://codereview.chromium.org/1272683002/diff/450001/base/i18n/break_iterator_unittest.cc File base/i18n/break_iterator_unittest.cc (right): https://codereview.chromium.org/1272683002/diff/450001/base/i18n/break_iterator_unittest.cc#newcode375 base/i18n/break_iterator_unittest.cc:375: ...
5 years, 4 months ago (2015-08-11 21:43:50 UTC) #35
jungshik at Google
And, can you add TEST= line to the CL description? Thanks
5 years, 4 months ago (2015-08-11 21:44:22 UTC) #36
jungshik at Google
https://codereview.chromium.org/1272683002/diff/450001/chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc File chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc (right): https://codereview.chromium.org/1272683002/diff/450001/chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc#newcode327 chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc:327: EXPECT_EQ(base::WideToUTF16(L"\x1791\x17c1"), iter.GetString()); On 2015/08/11 21:43:50, jungshik at google wrote: ...
5 years, 4 months ago (2015-08-11 22:22:07 UTC) #37
Julius
Fixed up the tests and nits and submitting. https://codereview.chromium.org/1272683002/diff/450001/base/i18n/break_iterator_unittest.cc File base/i18n/break_iterator_unittest.cc (right): https://codereview.chromium.org/1272683002/diff/450001/base/i18n/break_iterator_unittest.cc#newcode375 base/i18n/break_iterator_unittest.cc:375: // ...
5 years, 4 months ago (2015-08-12 01:22:22 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272683002/490001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272683002/490001
5 years, 4 months ago (2015-08-12 01:22:38 UTC) #42
commit-bot: I haz the power
Committed patchset #7 (id:490001)
5 years, 4 months ago (2015-08-12 01:30:10 UTC) #43
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/3fc3250d48a1e1d280936a9de4c0875d4ec72e3e Cr-Commit-Position: refs/heads/master@{#342958}
5 years, 4 months ago (2015-08-12 01:30:49 UTC) #44
jungshik at Google
5 years, 4 months ago (2015-08-12 16:56:52 UTC) #45
Message was sent while issue was closed.
https://codereview.chromium.org/1272683002/diff/490001/chrome/renderer/spellc...
File chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc (right):

https://codereview.chromium.org/1272683002/diff/490001/chrome/renderer/spellc...
chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc:415:
L"\x041C\x0438 \x178F\x17BE \x179B\x17C4\x1780 \x1798\x1780zoo. ,"));
Ick. Sorry it's not clear to you (and for a post-landing comment). 

Khmer does not use a space between words. That's why it needs a dictionary to
break between words. The Khmer portion should be

\x178F\x17BE\x179B\x17C4\x1780\x1798\x1780

Powered by Google App Engine
This is Rietveld 408576698