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

Issue 553087: The first step towards supporting the Hungarian spell-checking dictionary.... (Closed)

Created:
10 years, 11 months ago by Hironori Bono
Modified:
10 years, 10 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

The first step towards supporting the Hungarian spell-checking dictionary. This change fixes a couple of problems needed for using a Hungarian dictionary in Chrome. 1. Use TrimWhitespace() in TrimLine() Sorry, this is caused by my mistake that used TrimWhiteSpaceUTF8() without checking it deeply. 2. Replace morphing rules with compound rules. it seems existing Hungarian dictionaries use (language-specific) morphing rules to handle words that have both prefixes and suffixes, e.g. "legjobb" (best). It is better to replace such (language-dependent) morphing rules with (language-independent) compound rules to avoid language-specific issues. (As far as I tested, this change fixes many quality problems caused by Hungarian compounds.) This change also adds simple tests for our dictionary converter. BUG=15558 TEST=unit_test --gtest_filter=ConvertDictTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37816

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -4 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/tools/convert_dict/aff_reader.cc View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/tools/convert_dict/convert_dict_unittest.cc View 1 2 3 4 1 chunk +197 lines, -0 lines 0 comments Download
M chrome/tools/convert_dict/dic_reader.cc View 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/tools/convert_dict/hunspell_reader.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Hironori Bono
10 years, 11 months ago (2010-01-27 03:42:44 UTC) #1
Hironori Bono
ping?
10 years, 10 months ago (2010-02-01 10:57:59 UTC) #2
brettw
LGTM. http://codereview.chromium.org/553087/diff/6002/7002 File chrome/tools/convert_dict/aff_reader.cc (right): http://codereview.chromium.org/553087/diff/6002/7002#newcode213 chrome/tools/convert_dict/aff_reader.cc:213: #if 0 Can you provide a comment about ...
10 years, 10 months ago (2010-02-01 17:42:03 UTC) #3
Hironori Bono
10 years, 10 months ago (2010-02-02 10:04:15 UTC) #4
Brett,

Thank you for your review and comments.
I have applied your comments and committed the updated one as r37816.

Regards,

Hironori Bono

http://codereview.chromium.org/553087/diff/6002/7002
File chrome/tools/convert_dict/aff_reader.cc (right):

http://codereview.chromium.org/553087/diff/6002/7002#newcode213
chrome/tools/convert_dict/aff_reader.cc:213: #if 0
On 2010/02/01 17:42:03, brettw wrote:
> Can you provide a comment about why this is ifdefed out? I assume it's because
> Hungarian support isn't complete yet, so you should say this.

Thank you for noticing this.
This is just a bonehead mistake of mine. I forgot removing this #ifdef and
#endif lines when I created dictionaries with or without this code to compare
their quality. I have removed these lines since this code improves the quality.

http://codereview.chromium.org/553087/diff/6002/7003
File chrome/tools/convert_dict/convert_dict_unittest.cc (right):

http://codereview.chromium.org/553087/diff/6002/7003#newcode176
chrome/tools/convert_dict/convert_dict_unittest.cc:176: // Tests whether or not
our DicReader can read all the input HUngarian words.
On 2010/02/01 17:42:03, brettw wrote:
> Uncapitalize 'U'

Done.

Powered by Google App Engine
This is Rietveld 408576698