Skip to content

Commit

Permalink
Merge CorvusSKK 2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
deton committed Jul 11, 2016
2 parents 6e30631 + 67b6283 commit b97b8e2
Show file tree
Hide file tree
Showing 46 changed files with 329 additions and 6,566 deletions.
10 changes: 0 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,6 @@ ModelManifest.xml
# FAKE - F# Make
.fake/



# WiX Toolset files
*.msi
*.wixobj
*.wixpdb

# Archive files
*.zip

# Backup files
*.BAK
*.bak
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,14 @@ IME ON/OFF のキーのみ、IME ON → OFF のときにも反映されます。
| config.xml | 各種設定 |
| skkdict.txt | 取込済SKK辞書 |

各種設定の config.xml ファイルは、UTF-8 の XML フォーマットのテキストファイルとなっており、テキストエディタで編集可能です。変更した後は、IME OFF → ON で新しい設定が反映されます。
各種設定の config.xml ファイルは、UTF-8 の XML フォーマットのテキストファイルとなっています。

設定ダイアログで OK ボタンまたは適用ボタンを押すと config.xml ファイルが保存されます。テキストエディタなどでも編集可能です。変更した後は、IME OFF → ON で新しい設定が反映されます。

取込済SKK辞書の skkdict.txt ファイルは、UTF-16 (LE, BOMあり) のSKK辞書フォーマットとなっています。

設定ダイアログのリストにSKK辞書を追加して取込ボタンを押すと取込済SKK辞書に変換されます。後述の[SKK辞書](#skk辞書)の項を参照してください。

SKK辞書サーバーを使用するなどでローカルのSKK辞書を使用したくないときは、設定ダイアログのSKK辞書のリストが空またはチェック無しの状態で取込処理をおこなってください。空の取込済SKK辞書が生成されます。

下記のディレクトリの優先順位で各ファイルが読み込まれます。
Expand Down Expand Up @@ -233,10 +237,11 @@ UTF-16 (LE, BOMあり) のSKKユーザー辞書フォーマットで書き込ま

辞書管理プロセスを直接実行することも可能です。

ユーザー辞書は、辞書管理プロセスの起動時にメモリ上に読み込まれ、追加、変更、削除があったとき、かつ、以下のいずれかのときに上書きされます。
ユーザー辞書は、辞書管理プロセスの起動時にメモリ上に読み込まれ、候補の確定、登録、削除があったとき、かつ、以下のいずれかのときに上書きされます。

* IME ON 状態から OFF 状態にするとき
* IME ON OFF のとき
* IME ON 状態のアプリケーションが終了するとき
* IME ON 状態で別の IME に切り替えるとき
* アプリケーションがフォーカスを失うとき
* 辞書管理プロセスが終了するとき
* スリープ、休止状態に移行するとき
Expand Down Expand Up @@ -331,6 +336,7 @@ SKK辞書のダウンロード機能では HTTP, HTTPS が使用可能です。
| 動的補完を使用する | 見出し語が入力されたとき、ユーザー辞書から補完された見出し語を表示します。<br>「▽表示属性」の「\*送り」の色が使用されます。 |
| 複数動的補完を使用する | 見出し語が入力されたとき、ユーザー辞書から補完された見出し語を一覧で表示します。<br>補完対象は「候補一覧の色」の「選択」、補完部分は「候補」の色が使用されます。 |
| 補完された見出し語の候補を表示する | 補完/複数補完/動的補完/複数動的補完のとき、ユーザー辞書の検索結果を追加して表示します。<br>表示する候補の数は最大で「候補一覧表示に要する変換回数」-1 です。<br>補完/動的補完では「▽表示属性」の「\*送り」の色が使用されます。<br>複数補完/複数動的補完では「候補一覧の色」の「注釈」の色が使用されます。 |
| 前方一致と後方一致で補完する | 通常の前方一致での補完に加えて後方一致でも補完します。 |


###表示
Expand Down Expand Up @@ -842,9 +848,9 @@ tsf-tutcodeは未実装機能が多いため。

### 開発環境

Visual Studio Community 2015 Update 2
Visual Studio Community 2015 Update 3

WiX Toolset v3.10.2
WiX Toolset v3.10.3

pandoc 1.17.1

Expand Down
1 change: 1 addition & 0 deletions common/configxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ LPCWSTR ValueStaCompMulti = L"stacompmulti";
LPCWSTR ValueDynamicComp = L"dynamiccomp";
LPCWSTR ValueDynCompMulti = L"dyncompmulti";
LPCWSTR ValueCompUserDic = L"compuserdic";
LPCWSTR ValueCompIncBack = L"compincback";

//font section

Expand Down
1 change: 1 addition & 0 deletions common/configxml.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ extern LPCWSTR ValueStaCompMulti;
extern LPCWSTR ValueDynamicComp;
extern LPCWSTR ValueDynCompMulti;
extern LPCWSTR ValueCompUserDic;
extern LPCWSTR ValueCompIncBack;

//font section

Expand Down
3 changes: 3 additions & 0 deletions imcrvcnf/DlgProcBehavior2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ INT_PTR CALLBACK DlgProcBehavior2(HWND hDlg, UINT message, WPARAM wParam, LPARAM
LoadCheckButton(hDlg, IDC_CHECKBOX_DYNAMINCOMP, SectionBehavior, ValueDynamicComp);
LoadCheckButton(hDlg, IDC_CHECKBOX_DYNCOMPMULTI, SectionBehavior, ValueDynCompMulti);
LoadCheckButton(hDlg, IDC_CHECKBOX_COMPUSERDIC, SectionBehavior, ValueCompUserDic);
LoadCheckButton(hDlg, IDC_CHECKBOX_COMPINCBACK, SectionBehavior, ValueCompIncBack);

return TRUE;

Expand All @@ -53,6 +54,7 @@ INT_PTR CALLBACK DlgProcBehavior2(HWND hDlg, UINT message, WPARAM wParam, LPARAM
case IDC_CHECKBOX_DYNAMINCOMP:
case IDC_CHECKBOX_DYNCOMPMULTI:
case IDC_CHECKBOX_COMPUSERDIC:
case IDC_CHECKBOX_COMPINCBACK:

PropSheet_Changed(GetParent(hDlg), hDlg);

Expand All @@ -78,6 +80,7 @@ INT_PTR CALLBACK DlgProcBehavior2(HWND hDlg, UINT message, WPARAM wParam, LPARAM
SaveCheckButton(hDlg, IDC_CHECKBOX_DYNAMINCOMP, ValueDynamicComp);
SaveCheckButton(hDlg, IDC_CHECKBOX_DYNCOMPMULTI, ValueDynCompMulti);
SaveCheckButton(hDlg, IDC_CHECKBOX_COMPUSERDIC, ValueCompUserDic);
SaveCheckButton(hDlg, IDC_CHECKBOX_COMPINCBACK, ValueCompIncBack);

WriterEndSection(pXmlWriter); //End of SectionBehavior

Expand Down
4 changes: 4 additions & 0 deletions imcrvcnf/imcrvcnf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd
hMutex = CreateMutexW(nullptr, FALSE, cnfmutexname);
if(hMutex == nullptr || GetLastError() == ERROR_ALREADY_EXISTS)
{
if(hMutex != nullptr)
{
CloseHandle(hMutex);
}
return 0;
}

Expand Down
Binary file modified imcrvcnf/imcrvcnf.rc
Binary file not shown.
1 change: 1 addition & 0 deletions imcrvcnf/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#define IDC_CHECKBOX_DYNAMINCOMP 1303
#define IDC_CHECKBOX_DYNCOMPMULTI 1304
#define IDC_CHECKBOX_COMPUSERDIC 1305
#define IDC_CHECKBOX_COMPINCBACK 1306

#define IDC_EDIT_FONTNAME 2001
#define IDC_EDIT_FONTPOINT 2002
Expand Down
8 changes: 8 additions & 0 deletions imcrvmgr/ConfigMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ DWORD encoding = 0; //エンコーディング
DWORD timeout = 1000; //タイムアウト

BOOL precedeokuri = FALSE; //送り仮名が一致した候補を優先する
BOOL compincback = FALSE; //前方一致と後方一致で補完する

const luaL_Reg luaFuncs[] =
{
Expand Down Expand Up @@ -240,6 +241,13 @@ void LoadConfig()
{
precedeokuri = FALSE;
}

ReadValue(pathconfigxml, SectionBehavior, ValueCompIncBack, strxmlval);
compincback = _wtoi(strxmlval.c_str());
if(compincback != TRUE && compincback != FALSE)
{
compincback = FALSE;
}
}

BOOL IsFileModified(LPCWSTR path, FILETIME *ft)
Expand Down
2 changes: 1 addition & 1 deletion imcrvmgr/SearchDictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ int lua_delete(lua_State *lua)

int lua_save(lua_State *lua)
{
StartSaveSKKUserDic(TRUE);
StartSaveUserDic(TRUE);

return 0;
}
Loading

0 comments on commit b97b8e2

Please sign in to comment.