Skip to content

Commit

Permalink
辞書取込を;; okuri-ari/nasi行の無いmazegaki.dicや古いSKK辞書に対応
Browse files Browse the repository at this point in the history
(取込後の辞書には;; okuri-nasi等は書込済なので、
imcrvmgr/SearchDictionary.cppへの追加処理は不要)
  • Loading branch information
deton committed Apr 4, 2017
1 parent b16cafb commit 9c850cd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions common/parseskkdic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,17 @@ int ReadSKKDicLine(FILE *fp, WCHAR bom, int &okuri, std::wstring &key,
}
}

if(okuri == -1)
if(okuri == -1) //header comment
{
return 1;
if(wsbuf.front() != L';')
{
//;; okuri-ari/nasi行が無い、mazegaki.dicか、古いSKK辞書
okuri = 0;
}
else
{
return 1;
}
}

s = wsbuf;
Expand Down

0 comments on commit 9c850cd

Please sign in to comment.