-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
・Luaによる拡張機能を追加しました。 ・サーバープロセス(imcrvmgr.exe)の各機能の拡張を目的としています。 ・プログラム実行変換もどきと数値変換をLua側に移植しました。 ・skk-ignore-dic-word関数を追加しました。が、デフォルトでは無効になっています。 ・CとLuaのインターフェイスは今後変更する可能性があります。御了承下さい。 ・SKK辞書の取込処理ダイアログに中断ボタンを追加しました。 ・SKK辞書の取込処理で、注釈をカンマ区切りで連結するときconcat関数を処理するようにしました。 ・辞書登録でユーザーが入力した文字列の先頭と末尾のスペースを削除した上で確定および辞書登録するようにしました。 ・オプション「ローマ字を表示する」がOFFのとき入力済みローマ字の数に関わらずスペース1つだけ表示するようにしました。 ・installerプロジェクトのタイプをUtilityからMakefileに変更しました。
- Loading branch information
1 parent
f487379
commit 3febaf4
Showing
128 changed files
with
23,295 additions
and
1,309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
#include "common.h" | ||
|
||
std::string wstring_to_utf8_string(const std::wstring &s) | ||
{ | ||
std::string ret; | ||
|
||
int len = WideCharToMultiByte(CP_UTF8, 0, s.c_str(), -1, NULL, 0, NULL, NULL); | ||
if(len > 0) | ||
{ | ||
try | ||
{ | ||
LPSTR utf8 = new CHAR[len]; | ||
if(WideCharToMultiByte(CP_UTF8, 0, s.c_str(), -1, utf8, len, NULL, NULL) > 0) | ||
{ | ||
ret = utf8; | ||
} | ||
delete[] utf8; | ||
} | ||
catch(...) | ||
{ | ||
} | ||
} | ||
|
||
return ret; | ||
} | ||
|
||
std::wstring utf8_string_to_wstring(const std::string &s) | ||
{ | ||
std::wstring ret; | ||
|
||
int len = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), -1, NULL, 0); | ||
if(len > 0) | ||
{ | ||
try | ||
{ | ||
LPWSTR wcs = new WCHAR[len]; | ||
if(MultiByteToWideChar(CP_UTF8, 0, s.c_str(), -1, wcs, len) > 0) | ||
{ | ||
ret = wcs; | ||
} | ||
delete[] wcs; | ||
} | ||
catch(...) | ||
{ | ||
} | ||
} | ||
|
||
return ret; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#ifndef UTF8_H | ||
#define UTF8_H | ||
|
||
std::string wstring_to_utf8_string(const std::wstring &s); | ||
std::wstring utf8_string_to_wstring(const std::string &s); | ||
|
||
#define WCTOU8(w) wstring_to_utf8_string(w).c_str() | ||
#define U8TOWC(u) utf8_string_to_wstring(u).c_str() | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.