Skip to content

Commit

Permalink
Added EUC-JP to character encodings supported by SKK dictionary.
Browse files Browse the repository at this point in the history
Added to display taskbar marquee while reading SKK dictionary.
  • Loading branch information
nathancorvussolis committed May 4, 2021
1 parent 6f3a256 commit 0631a38
Show file tree
Hide file tree
Showing 33 changed files with 8,257 additions and 562 deletions.
44 changes: 44 additions & 0 deletions LICENSE.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,50 @@ License:
-------------------------------------------------------------------------------


JIS X 0208 (1990) to Unicode
© 2015 Unicode®, Inc.

JIS X 0212 (1990) to Unicode
© 2015 Unicode®, Inc.

COPYRIGHT AND PERMISSION NOTICE

Copyright © 1991-2021 Unicode, Inc. All rights reserved.
Distributed under the Terms of Use in https://www.unicode.org/copyright.html.

Permission is hereby granted, free of charge, to any person obtaining
a copy of the Unicode data files and any associated documentation
(the "Data Files") or Unicode software and any associated documentation
(the "Software") to deal in the Data Files or Software
without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, and/or sell copies of
the Data Files or Software, and to permit persons to whom the Data Files
or Software are furnished to do so, provided that either
(a) this copyright and permission notice appear with all copies
of the Data Files or Software, or
(b) this copyright and permission notice appear in associated
Documentation.

THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT OF THIRD PARTY RIGHTS.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS
NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THE DATA FILES OR SOFTWARE.

Except as contained in this notice, the name of a copyright holder
shall not be used in advertising or otherwise to promote the sale,
use or other dealings in these Data Files or Software without prior
written authorization of the copyright holder.


-------------------------------------------------------------------------------


Lua

The MIT License
Expand Down
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ SKK辞書の詳細はこちらを参照ください。

* http://openlab.ring.gr.jp/skk/skk/dic/

SKK辞書ファイルの文字コードは、EUC-JIS-2004、UTF-8 (BOMなし/あり)、UTF-16 (LE, BOMあり) に対応しています。
SKK辞書ファイルの文字コードは、EUC-JIS-2004、EUC-JP、UTF-8 (BOMなし/あり)、UTF-16 (LE, BOMあり) に対応しています。

EUC-JP は、ASCII、JIS X 0208、JIS X 0201 片仮名、JIS X 0212 を実装する、いわゆる IANA の EUC-JP となっています。

アーカイブファイルフォーマットは tar、gzip に対応しています。

Expand Down Expand Up @@ -226,7 +228,11 @@ SKK辞書のダウンロード機能では HTTP, HTTPS が使用可能です。

同時に1つのみ使用可能です。IPv4、IPv6 に対応しています。

通信に使用する文字コードは、EUC-JIS-2004、UTF-8 に対応していますが、通常のSKK辞書サーバーではデフォルトの EUC-JIS-2004 を使用してください。
通信に使用する文字コードは、EUC-JIS-2004、UTF-8 に対応しています。

通常のSKK辞書サーバーではデフォルトの EUC-JIS-2004 を使用してください。

設定を EUC-JIS-2004 にしたとき、Unicode に変換できない場合は候補毎に EUC-JP にフォールバックします。

サーバーコンプリーション機能は未実装です。

Expand Down Expand Up @@ -562,7 +568,7 @@ ASCII、全英文字の組み合せを指定します。最大で128行です。

辞書管理プロセス (imcrvmgr.exe) の各機能の拡張、プログラム実行変換もどき、数値変換をLuaスクリプトで実装しています。

現在使用しているLuaのバージョンは5.4.2です
現在使用しているLuaのバージョンは5.4.3です

詳細はこちらを参照ください。https://www.lua.org/manual/5.4/manual.html

Expand Down Expand Up @@ -631,7 +637,7 @@ Emacs Lisp 辞書ファイル (SKK-JISYO.lisp) などが必要です。 https://
| skk-relative-date | |
| skk-ignore-dic-word | デフォルト無効 |
| skk-omikuji | 独自実装。おみくじを引くことができます。『(skk-omikuji)』 |
| skk-strftime | 独自実装。日時書式出力『(skk-strftime format [unit diff])』<br>format : https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l?view=msvc-160<br>unit : 単位 "year", "month", "day", "hour", "min", "sec"<br>diff : 現在とunitとの差分 |
| skk-strftime | 独自実装。日時書式出力『(skk-strftime format [unit diff])』<br>format : 以下のstrftime関数のリンク先を参照<br>unit : 単位 "year", "month", "day", "hour", "min", "sec"<br>diff : 現在とunitとの差分 |
| fill-column | 70で固定 |
| comment-start | "/\*" |
| comment-end | "\*/" |
Expand All @@ -642,6 +648,8 @@ skk-omikuji 辞書 https://github.com/nathancorvussolis/corvusskk/blob/master/in

skk-strftime 辞書 https://github.com/nathancorvussolis/corvusskk/blob/master/installer/config-sample/skk-strftime.txt

strftime 関数 https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l?view=msvc-160


### 数値変換

Expand Down Expand Up @@ -750,19 +758,19 @@ Windows 10 (Ver.1709 から) の場合

### 開発環境

Visual Studio Community 2019 16.8.6
Visual Studio Community 2019 16.9.4

* Desktop development with C++
* MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.28)
* MSVC v142 - VS 2019 C++ ARM build tools (v14.28)
* MSVC v142 - VS 2019 C++ ARM64 build tools (v14.28)
* MSVC v142 - VS 2019 C++ x64/x86 build tools (Latest)
* MSVC v142 - VS 2019 C++ ARM build tools (Latest)
* MSVC v142 - VS 2019 C++ ARM64 build tools (Latest)
* C++ ATL for latest v142 build tools (x86 & x64)
* C++ ATL for latest v142 build tools (ARM)
* C++ ATL for latest v142 build tools (ARM64)

WiX Toolset v3.11.2

pandoc 2.11.4
pandoc 2.13


### ビルド手順
Expand Down
17 changes: 9 additions & 8 deletions common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@

#pragma comment(lib, "bcrypt.lib")

#define CCSUTF16 L", ccs=UTF-16LE"
#define CCSUTF8 L", ccs=UTF-8"
LPCWSTR RccsUTF16 = L"r" CCSUTF16;
LPCWSTR WccsUTF16 = L"w" CCSUTF16;
LPCWSTR RccsUTF8 = L"r" CCSUTF8;
LPCWSTR WccsUTF8 = L"w" CCSUTF8;
LPCWSTR RB = L"rb";
LPCWSTR WB = L"wb";
#define CCSUTF16 L",ccs=UTF-16LE"
#define CCSUTF8 L",ccs=UTF-8"
LPCWSTR modeRccsUTF16 = L"rt" CCSUTF16;
LPCWSTR modeWccsUTF16 = L"wt" CCSUTF16;
LPCWSTR modeRccsUTF8 = L"rt" CCSUTF8;
LPCWSTR modeWccsUTF8 = L"wt" CCSUTF8;
LPCWSTR modeRT = L"rt";
LPCWSTR modeRB = L"rb";
LPCWSTR modeWB = L"wb";

LPCWSTR fnconfigxml = L"config.xml"; //設定
LPCWSTR fnuserdic = L"userdict.txt"; //ユーザー辞書
Expand Down
18 changes: 10 additions & 8 deletions common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

#include "version.h"

#define MAX_KRNLOBJNAME 256
#define MAX_SECURITYDESC 256 //string security descriptor
#define MAX_PIPENAME 256 //named pipe name
#define PIPEBUFSIZE 0x2000 //named pipe, 16KB with wchar_t
#define READBUFSIZE 0x800 //read skk dictionary, 4KB with wchar_t/char
#define READBUFSIZE 0x200 //read skk dictionary, 512B with wchar_t/char
#define RECVBUFSIZE 0x800 //receive from skk server, 2KB with char

#define MAX_SKKSERVER_HOST (255 + 1) //SKKサーバー ホスト 読み込みバッファ
Expand Down Expand Up @@ -51,12 +52,13 @@

#define BOM L'\uFEFF'

extern LPCWSTR RccsUTF16;
extern LPCWSTR WccsUTF16;
extern LPCWSTR RccsUTF8;
extern LPCWSTR WccsUTF8;
extern LPCWSTR RB;
extern LPCWSTR WB;
extern LPCWSTR modeRccsUTF16;
extern LPCWSTR modeWccsUTF16;
extern LPCWSTR modeRccsUTF8;
extern LPCWSTR modeWccsUTF8;
extern LPCWSTR modeRT;
extern LPCWSTR modeRB;
extern LPCWSTR modeWB;

extern LPCWSTR fnconfigxml; //設定
extern LPCWSTR fnuserdic; //ユーザー辞書
Expand Down
4 changes: 4 additions & 0 deletions common/common.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@
<ClInclude Include="convtype.h" />
<ClInclude Include="eucjis2004.h" />
<ClInclude Include="eucjis2004table.h" />
<ClInclude Include="eucjp.h" />
<ClInclude Include="eucjptable.h" />
<ClInclude Include="parseskkdic.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="utf8.h" />
Expand All @@ -317,6 +319,8 @@
<ClCompile Include="configxml.cpp" />
<ClCompile Include="eucjis2004.cpp" />
<ClCompile Include="eucjis2004table.cpp" />
<ClCompile Include="eucjp.cpp" />
<ClCompile Include="eucjptable.cpp" />
<ClCompile Include="parseskkdic.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
Expand Down
12 changes: 12 additions & 0 deletions common/common.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
<ClInclude Include="eucjis2004table.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="eucjp.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="eucjptable.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="parseskkdic.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand All @@ -59,6 +65,12 @@
<ClCompile Include="eucjis2004table.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="eucjp.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="eucjptable.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="parseskkdic.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
Loading

0 comments on commit 0631a38

Please sign in to comment.