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

Issue 14856: [chromium-reviews] Part 1 of 'Add common words for each language, and remove forbidden words'.... (Closed)

Created:
12 years ago by sidchat (Google)
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Part 1 of 'Add common words for each language, and remove forbidden words'. Updated the Dic Reader to read additional words from additional-words dictionary file, created as a text file with UTF-8 encoding, with extension dic_delta. Test: Tested with all the 21 languages that are currently supported by the spell checker and for which common/additional words have been obtained. Resulting bdic files generated have those additional words. Issue=2837. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=7492

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -26 lines) Patch
M chrome/tools/convert_dict/dic_reader.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/tools/convert_dict/dic_reader.cc View 1 2 3 3 chunks +58 lines, -26 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
sidchat (Google)
12 years ago (2008-12-18 20:28:58 UTC) #1
brettw
http://codereview.chromium.org/14856/diff/6/203 File chrome/tools/convert_dict/dic_reader.cc (right): http://codereview.chromium.org/14856/diff/6/203#newcode62 Line 62: if (!got_count) { This is wrong for the ...
12 years ago (2008-12-18 20:38:20 UTC) #2
sidchat (Google)
On 2008/12/18 20:38:20, brettw wrote: > http://codereview.chromium.org/14856/diff/6/203 > File chrome/tools/convert_dict/dic_reader.cc (right): > > http://codereview.chromium.org/14856/diff/6/203#newcode62 > ...
12 years ago (2008-12-18 20:54:38 UTC) #3
brettw
http://codereview.chromium.org/14856/diff/208/8 File chrome/tools/convert_dict/dic_reader.cc (right): http://codereview.chromium.org/14856/diff/208/8#newcode47 Line 47: const char* file_type, bool got_count) { Looking at ...
12 years ago (2008-12-19 22:54:07 UTC) #4
sidchat (Google)
On 2008/12/19 22:54:07, brettw wrote: > http://codereview.chromium.org/14856/diff/208/8 > File chrome/tools/convert_dict/dic_reader.cc (right): > > http://codereview.chromium.org/14856/diff/208/8#newcode47 > ...
12 years ago (2008-12-19 23:36:27 UTC) #5
sidchat (Google)
Removed ambiguity by renaming a variable and adding a detailed explanation in comments. Please have ...
11 years, 11 months ago (2008-12-29 21:47:55 UTC) #6
brettw
11 years, 11 months ago (2008-12-29 22:25:22 UTC) #7
LGTM

http://codereview.chromium.org/14856/diff/401/402
File chrome/tools/convert_dict/dic_reader.cc (right):

http://codereview.chromium.org/14856/diff/401/402#newcode46
Line 46: // This function reads words from a .dic file, or a .dic_delta file.
Note that
Can you add "// This function reads words from a .dic file, or a .dic_delta file
and appends it to the given set."

http://codereview.chromium.org/14856/diff/401/402#newcode151
Line 151: PopulateWordSet(&word_set, additional_words_file_, aff_reader, "dic
delta",
It seems like it would be better to not call the function with a NULL file
rather than checking at the beginning of the populate function.

Powered by Google App Engine
This is Rietveld 408576698