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

Unified Diff: chrome/tools/convert_dict/dic_reader.cc

Issue 553087: The first step towards supporting the Hungarian spell-checking dictionary.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/tools/convert_dict/convert_dict_unittest.cc ('k') | chrome/tools/convert_dict/hunspell_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/convert_dict/dic_reader.cc
===================================================================
--- chrome/tools/convert_dict/dic_reader.cc (revision 37777)
+++ chrome/tools/convert_dict/dic_reader.cc (working copy)
@@ -106,6 +106,13 @@
affix_index = aff_reader->GetAFIndexForAFString(split[1]);
}
+ // Discard the morphological description if it is attached to the first
+ // token. (It is attached to the first token if a word doesn't have affix
+ // rules.)
+ size_t word_tab_offset = utf8word.find('\t');
+ if (word_tab_offset != std::string::npos)
+ utf8word = utf8word.substr(0, word_tab_offset);
+
WordSet::iterator found = word_set->find(utf8word);
if (found == word_set->end()) {
std::set<int> affix_vector;
« no previous file with comments | « chrome/tools/convert_dict/convert_dict_unittest.cc ('k') | chrome/tools/convert_dict/hunspell_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698