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

Issue 155841: Update Hunspell to the latest stable version to use the latest dictionary for... (Closed)

Created:
11 years, 5 months ago by Mohamed Mansour
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Update Hunspell to the latest stable version to use the latest bdict format. Updated Hunspell to version 1.2.8 which properly deals with UTF8 and fixes many bugs. This CL will use the BDict format and remove the usage of FileMgr. Removed the unwanted "key" parameter constructors from hunspell since we are managing them through bdict. Removed all line numbers from the errors since we don't support that. BUG=14756 (http://crbug.com/14756) TEST= Compiled Hunspell, Compiled Chromium, Ran Chromium, Fixed some of my spelling mistakes. Ran unit tests for SpellCheckTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22243

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 13

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 2

Patch Set 13 : Making Linux finally work! Thanks hbono :) #

Patch Set 14 : thanks hbono :) #

Patch Set 15 : Removed extra file #

Patch Set 16 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5233 lines, -2777 lines) Patch
M chrome/browser/spellcheck_unittest.cc View 13 14 15 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/spellchecker.cc View 2 3 4 5 6 7 8 9 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/third_party/hunspell/README.chromium View 3 4 5 6 7 8 9 10 13 14 15 1 chunk +4 lines, -15 lines 0 comments Download
D chrome/third_party/hunspell/google.patch View 3 4 5 6 7 9 10 13 14 15 1 chunk +0 lines, -212 lines 0 comments Download
M chrome/third_party/hunspell/hunspell.gyp View 1 2 3 4 5 6 7 8 9 10 13 14 15 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/affentry.hxx View 1 2 3 4 5 6 7 8 9 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/affentry.cxx View 1 2 3 4 5 6 7 8 9 13 14 15 35 chunks +276 lines, -171 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/affixmgr.hxx View 1 2 3 4 5 6 7 8 9 13 14 15 9 chunks +84 lines, -51 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/affixmgr.cxx View 1 2 3 4 5 6 7 8 9 13 14 15 147 chunks +1243 lines, -748 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/atypes.hxx View 1 2 3 4 5 6 7 8 9 13 14 15 4 chunks +26 lines, -29 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/baseaffix.hxx View 1 2 3 4 5 6 7 8 9 13 14 15 1 chunk +17 lines, -20 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/csutil.hxx View 1 2 3 4 5 6 7 8 9 13 14 15 5 chunks +90 lines, -14 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/csutil.cxx View 1 2 3 4 5 6 7 8 9 13 14 15 41 chunks +418 lines, -130 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/dictmgr.cxx View 1 2 3 4 5 6 7 8 9 13 14 15 1 chunk +11 lines, -7 lines 0 comments Download
A chrome/third_party/hunspell/src/hunspell/filemgr.hxx View 1 2 3 4 5 6 13 14 15 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/third_party/hunspell/src/hunspell/filemgr.cxx View 1 2 3 4 5 6 13 14 15 1 chunk +54 lines, -0 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/hashmgr.hxx View 1 2 3 4 5 6 7 8 9 13 14 15 5 chunks +38 lines, -26 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/hashmgr.cxx View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 32 chunks +391 lines, -204 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/htypes.hxx View 1 2 3 4 5 6 7 8 9 13 14 15 1 chunk +17 lines, -14 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/hunspell.h View 1 2 3 4 5 6 7 8 9 13 14 15 2 chunks +71 lines, -5 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/hunspell.hxx View 1 2 3 4 5 6 7 8 9 13 14 15 6 chunks +87 lines, -40 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/hunspell.cxx View 1 2 3 4 5 6 7 8 9 13 14 15 43 chunks +904 lines, -671 lines 0 comments Download
A chrome/third_party/hunspell/src/hunspell/hunzip.hxx View 1 2 3 4 5 6 13 14 15 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/third_party/hunspell/src/hunspell/hunzip.cxx View 1 2 3 4 5 6 13 14 15 1 chunk +196 lines, -0 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/license.hunspell View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +12 lines, -12 lines 0 comments Download
A chrome/third_party/hunspell/src/hunspell/phonet.hxx View 1 2 3 4 5 6 13 14 15 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/third_party/hunspell/src/hunspell/phonet.cxx View 1 2 3 4 5 6 13 14 15 1 chunk +299 lines, -0 lines 0 comments Download
A chrome/third_party/hunspell/src/hunspell/replist.hxx View 1 2 3 4 5 6 13 14 15 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/third_party/hunspell/src/hunspell/replist.cxx View 1 2 3 4 5 6 13 14 15 1 chunk +95 lines, -0 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/suggestmgr.hxx View 1 2 3 4 5 6 7 8 9 13 14 15 6 chunks +29 lines, -17 lines 0 comments Download
M chrome/third_party/hunspell/src/hunspell/suggestmgr.cxx View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 66 chunks +692 lines, -386 lines 0 comments Download
A chrome/third_party/hunspell/src/hunspell/w_char.hxx View 1 2 3 4 5 6 13 14 15 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Mohamed Mansour
Since this is a big change, I decided to first upload the original files from ...
11 years, 5 months ago (2009-07-21 06:03:32 UTC) #1
Mark Larson
Wow. I don't know whether this is the right/wrong direction, but thanks for taking a ...
11 years, 5 months ago (2009-07-21 06:23:53 UTC) #2
brettw
Did you compile & run Chrome with this change? On Windows it didn't compile or ...
11 years, 5 months ago (2009-07-21 17:47:55 UTC) #3
Mohamed Mansour
brettw: I compiled the hunspell project only. It was late at night so I wanted ...
11 years, 5 months ago (2009-07-21 19:16:48 UTC) #4
jungshik at Google
Thank you for working on this. Can you also udpate google.patch and README.chromium files?
11 years, 5 months ago (2009-07-21 19:25:53 UTC) #5
Mohamed Mansour
No problem updating the README.chromium. But do we really need to update the google.patch? What ...
11 years, 5 months ago (2009-07-21 19:52:21 UTC) #6
brettw
I think updating the patch is probably not useful at this point, since I think ...
11 years, 5 months ago (2009-07-21 20:13:47 UTC) #7
jungshik at Google
Thank you for the clarification. I thought it's strange that google.patch is very short although ...
11 years, 5 months ago (2009-07-21 20:21:39 UTC) #8
Mohamed Mansour
Alright team, the above compiles and chromium runs. It spellcheck's too. I don't know how ...
11 years, 5 months ago (2009-07-22 04:04:12 UTC) #9
Mark Larson
I'm about to go on holiday, so this is kind of my last chance to ...
11 years, 5 months ago (2009-07-23 06:29:50 UTC) #10
jungshik at Google
It might help "reviewing" if mhm can make and attach two diff files (not for ...
11 years, 5 months ago (2009-07-23 16:53:44 UTC) #11
Mohamed Mansour
Jungshik: I "kinda" did two different files here, the first "Patch Set 1" is copy/paste ...
11 years, 5 months ago (2009-07-23 19:26:16 UTC) #12
brettw
I checked all the stuff pretty well labeled HUNSPELL_CHROME_CLIENT. http://codereview.chromium.org/155841/diff/1016/123 File chrome/third_party/hunspell/src/hunspell/affixmgr.cxx (right): http://codereview.chromium.org/155841/diff/1016/123#newcode269 Line ...
11 years, 5 months ago (2009-07-23 20:21:06 UTC) #13
Mohamed Mansour
Updated! Compiled and tested the spellchecker. http://codereview.chromium.org/155841/diff/1016/123 File chrome/third_party/hunspell/src/hunspell/affixmgr.cxx (right): http://codereview.chromium.org/155841/diff/1016/123#newcode269 Line 269: #define fclose(a); ...
11 years, 5 months ago (2009-07-24 04:07:49 UTC) #14
Hironori Bono
Thank you so much for your great work! As you can see in <http://codereview.chromium.org/160096>, changing ...
11 years, 5 months ago (2009-07-27 06:54:44 UTC) #15
Mohamed Mansour
I have set the svn:eol-style LF on all the files but I am still getting ...
11 years, 5 months ago (2009-07-27 11:56:17 UTC) #16
Mohamed Mansour
Thanks guys for your help! It patches correctly now, and I altered unit test cases ...
11 years, 5 months ago (2009-07-28 01:25:26 UTC) #17
Mohamed Mansour
1 problem ... :( Linux slave is crashing on the same test over and over. ...
11 years, 5 months ago (2009-07-28 02:00:13 UTC) #18
Hironori Bono
It seems your unit-test crash on Linux is caused by UMR (uninitialized memory read), i.e. ...
11 years, 4 months ago (2009-07-28 05:26:15 UTC) #19
brettw
On 2009/07/28 05:26:15, hbono wrote: > It seems your unit-test crash on Linux is caused ...
11 years, 4 months ago (2009-07-28 14:46:55 UTC) #20
Mohamed Mansour
All three try bots are now green! I think hunspell has been updated successfully, what ...
11 years, 4 months ago (2009-07-29 06:26:13 UTC) #21
Mohamed Mansour
ping. Safe to commit yet? Everything works fine at my end and passes unit tests ...
11 years, 4 months ago (2009-07-31 06:09:28 UTC) #22
Hironori Bono
Sorry for my slow response. It takes long time to test the spellchecker since we ...
11 years, 4 months ago (2009-07-31 08:17:09 UTC) #23
Mohamed Mansour
For curiosity reasons, how did you test those combinations?
11 years, 4 months ago (2009-07-31 14:59:53 UTC) #24
brettw
LGTM http://codereview.chromium.org/155841/diff/1016/132 File chrome/third_party/hunspell/src/hunspell/csutil.cxx (right): http://codereview.chromium.org/155841/diff/1016/132#newcode5515 Line 5515: // free(piece); On 2009/07/24 04:07:49, Mohamed Mansour ...
11 years, 4 months ago (2009-07-31 16:43:21 UTC) #25
jungshik at Google
Thank you for making this happen :-) On 2009/07/31 14:59:53, Mohamed Mansour wrote: > For ...
11 years, 4 months ago (2009-07-31 18:06:57 UTC) #26
sidchat_google.com
Good job ! On Fri, Jul 31, 2009 at 11:06 AM, <jshin@chromium.org> wrote: > Thank ...
11 years, 4 months ago (2009-07-31 18:08:34 UTC) #27
Hironori Bono
On 2009/07/31 14:59:53, Mohamed Mansour wrote: > For curiosity reasons, how did you test those ...
11 years, 4 months ago (2009-08-03 01:24:07 UTC) #28
laforge
Mohamed, I'm very excited to see this change make it to 3.0, have you been ...
11 years, 4 months ago (2009-08-05 21:55:37 UTC) #29
not_the_right_dank
I don't think he's been able to run the tests under valgrind successfully yet. Somebody ...
11 years, 4 months ago (2009-08-05 22:00:03 UTC) #30
Mohamed Mansour
11 years, 4 months ago (2009-08-06 02:10:09 UTC) #31
I feel kinda "shy" asking for help, because the questions I usually have are
syntax questions, Google search has been a good friend "somewhat":/ I am not
in the same level of knowledge of you guys, and I graduated University last
year with no c++ knowledge, and that language (the way chromium uses it) is
pretty steep learning curve (which I love).  Especially when I am trying to
solve leaks, uninitialized memory, etc while my only c++ programming
experience is with chromium... Dan has been super helpful giving me some
coverity warnings (learned something new that day), I solved 4/5th of them
on the night he gave me them. I didn't take a look at hunspell ever since.
Would be nice to have more guidance, but I could manage without. My day job
is pretty heavy (9-11 hours a day, I just came home now, 10PM). I will try
to spend a couple of hours tonight. I will try to ping anyone if I have any
questions on IRC (but everyone is usually away night times).

It would be nice to have access to coverity, so I can learn more about that
neat tool, but it seems like a commercial product.

Regarding valgrind, I have no idea how to fix them, they don't make sense to
me, Dan is giving me coverity warnings so I hope that will fix them. I am
just following orders. =)

-- Mohamed Mansour


On Wed, Aug 5, 2009 at 5:55 PM, <laforge@chromium.org> wrote:

> Mohamed, I'm very excited to see this change make it to 3.0, have you
> been able to get the help you need to get past the Valgrind issues?
>
>
> On 2009/08/03 01:24:07, hbono wrote:
>
>> On 2009/07/31 14:59:53, Mohamed Mansour wrote:
>> > For curiosity reasons, how did you test those combinations?
>>
>
>  I just wrote a UI test that sends key events into a <textarea> form
>>
> and compare
>
>> its results before and after applying your change. (The texts used in
>>
> this UI
>
>> test is retrieved from Wikipedia.) Unfortunately, this UI test is so
>>
> far too
>
>> flaky and it doesn't work with our dictionary downloader, i.e. we need
>>
> to
>
>> download all dictionaries before running this UI test.
>>
>
>  Regards,
>>
>
>  Hironori Bono
>>
>
>
>
> http://codereview.chromium.org/155841
>

Powered by Google App Engine
This is Rietveld 408576698