Skip to content

Commit 953c67c

Browse files
authored
Merge pull request #60 from deton/crvmerge332
Merge CorvusSKK 3.3.2
2 parents daf05ac + d012039 commit 953c67c

155 files changed

Lines changed: 7945 additions & 5317 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE.TXT

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tsf-tutcode
55

66
The MIT License
77

8-
Copyright (C) 2013-2022 KIHARA, Hideto
8+
Copyright (C) 2013-2026 KIHARA, Hideto
99

1010
Permission is hereby granted, free of charge, to any person obtaining a copy
1111
of this software and associated documentation files (the "Software"), to deal
@@ -33,7 +33,7 @@ CorvusSKK
3333

3434
The MIT License
3535

36-
Copyright (C) 2011-2025 SASAKI Nobuyuki
36+
Copyright (C) 2011-2026 SASAKI Nobuyuki
3737

3838
Permission is hereby granted, free of charge, to any person obtaining a copy
3939
of this software and associated documentation files (the "Software"), to deal
@@ -146,7 +146,7 @@ zlib
146146

147147
The zlib/libpng License
148148

149-
Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
149+
Copyright (C) 1995-2026 Jean-loup Gailly and Mark Adler
150150

151151
This software is provided 'as-is', without any express or implied
152152
warranty. In no event will the authors be held liable for any damages

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# tsf-tutcode ver. 0.9.4
2+
# tsf-tutcode ver. 0.9.5
33

44
Windowsで動作する漢字直接入力用のIMEです。
55

@@ -521,6 +521,7 @@ SKK辞書のダウンロード機能では HTTP, HTTPS が使用可能です。
521521
| 複数動的補完を使用する | 見出し語が入力されたとき、ユーザー辞書から補完された見出し語を一覧で表示します。<br>補完対象は「候補一覧の色」の「選択」、補完部分は「候補」の色が使用されます。 |
522522
| 補完された見出し語の候補を表示する | 補完/複数補完/動的補完/複数動的補完のとき、ユーザー辞書の検索結果を追加して表示します。<br>表示する候補の数は最大で「候補一覧表示に要する変換回数」-1 です。<br>補完/動的補完では「▽表示属性」の「\*送り」の色が使用されます。<br>複数補完/複数動的補完では「候補一覧の色」の「注釈」の色が使用されます。 |
523523
| 前方一致と後方一致で補完する | 通常の前方一致での補完に加えて後方一致でも補完します。 |
524+
| 全ての辞書ファイルで補完する | 通常のユーザー辞書に加えて取込済SKK辞書でも補完します。 |
524525

525526

526527
### 表示
@@ -889,9 +890,9 @@ ASCII、全英文字の組み合せを指定します。最大で128行です。
889890

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

892-
現在使用しているLuaのバージョンは5.4.8です
893+
現在使用しているLuaのバージョンは5.5.0です
893894

894-
詳細はこちらを参照してください。https://www.lua.org/manual/5.4/manual.html
895+
詳細はこちらを参照してください。https://www.lua.org/manual/5.5/manual.html
895896

896897
Lua内部の文字コードをUTF-8に決め打ちして、Unicode版のWindowsAPIとCランタイム関数を呼ぶようにパッチを当てています。
897898

@@ -1116,7 +1117,7 @@ tsf-tutcodeは未実装機能が多いため。
11161117

11171118
### 開発環境
11181119

1119-
Visual Studio Community 2022 17.14.15
1120+
Visual Studio Community 2022 17.14.30
11201121

11211122
* .NET desktop development
11221123

@@ -1132,7 +1133,7 @@ WiX Toolset v6.0.2
11321133

11331134
* ビルド用バッチファイル内の dotnet build コマンドによって暗黙的に復元
11341135

1135-
pandoc 3.8
1136+
pandoc 3.9.0.2
11361137

11371138
### ビルド手順
11381139

@@ -1251,12 +1252,12 @@ pandoc 3.8
12511252

12521253
---
12531254

1254-
Copyright (C) 2013-2025 KIHARA, Hideto
1255+
Copyright (C) 2013-2026 KIHARA, Hideto
12551256
https://github.com/deton/tsf-tutcode
12561257

12571258
以下CorvusSKKのCopyright:
12581259

1259-
Copyright (C) 2011-2025 SASAKI Nobuyuki
1260+
Copyright (C) 2011-2026 SASAKI Nobuyuki
12601261

12611262
nathancorvussolis@gmail.com
12621263

common/configxml.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ LPCWSTR ValueDynamicComp = L"dynamiccomp";
9393
LPCWSTR ValueDynCompMulti = L"dyncompmulti";
9494
LPCWSTR ValueCompUserDic = L"compuserdic";
9595
LPCWSTR ValueCompIncBack = L"compincback";
96+
LPCWSTR ValueCompWithAll = L"compwithall";
9697

9798
//font section
9899

common/configxml.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ extern LPCWSTR ValueDynamicComp;
8787
extern LPCWSTR ValueDynCompMulti;
8888
extern LPCWSTR ValueCompUserDic;
8989
extern LPCWSTR ValueCompIncBack;
90+
extern LPCWSTR ValueCompWithAll;
9091

9192
//font section
9293

common/parseskkdic.cpp

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,71 @@ int ReadSKKDicLine(FILE *fp, SKKDICENCODING encoding, int &okuri, std::wstring &
128128
return 0;
129129
}
130130

131+
int ReadSKKDicLine(FILE *fp, int &okuri, std::wstring &key)
132+
{
133+
WCHAR wbuf[READBUFSIZE / sizeof(WCHAR)];
134+
std::wstring wstrbuf;
135+
136+
while (fgetws(wbuf, _countof(wbuf), fp) != nullptr)
137+
{
138+
wstrbuf += wbuf;
139+
140+
if (!wstrbuf.empty() && wstrbuf.back() == L'\n')
141+
{
142+
break;
143+
}
144+
}
145+
146+
if (ferror(fp) != 0)
147+
{
148+
return -1;
149+
}
150+
151+
if (wstrbuf.empty())
152+
{
153+
return -1;
154+
}
155+
156+
if (wstrbuf.compare(EntriesAri) == 0)
157+
{
158+
okuri = 1;
159+
return 1;
160+
}
161+
else if (wstrbuf.compare(EntriesNasi) == 0)
162+
{
163+
okuri = 0;
164+
return 1;
165+
}
166+
167+
if (okuri == -1)
168+
{
169+
return 1;
170+
}
171+
172+
std::wstring s = wstrbuf;
173+
174+
size_t is = s.find(L"\x20/");
175+
if (is == std::wstring::npos)
176+
{
177+
return 1;
178+
}
179+
180+
size_t ie = s.find_last_not_of(L'\x20', is);
181+
if (ie == std::wstring::npos)
182+
{
183+
return 1;
184+
}
185+
186+
if (s.find_last_of(L'\x20', ie) != std::string::npos)
187+
{
188+
return 1;
189+
}
190+
191+
key = s.substr(0, ie + 1);
192+
193+
return 0;
194+
}
195+
131196
void ParseSKKDicCandiate(const std::wstring &s, SKKDICCANDIDATES &c)
132197
{
133198
size_t i, is, ie, ia;

common/parseskkdic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ enum SKKDICENCODING
3737

3838
int ReadSKKDicLine(FILE *fp, SKKDICENCODING encoding, int &okuri, std::wstring &key,
3939
SKKDICCANDIDATES &c, SKKDICOKURIBLOCKS &o);
40+
int ReadSKKDicLine(FILE *fp, int &okuri, std::wstring &key);
4041
void ParseSKKDicCandiate(const std::wstring &s, SKKDICCANDIDATES &c);
4142
void ParseSKKDicOkuriBlock(const std::wstring &s, SKKDICOKURIBLOCKS &o);
4243
std::wstring ParseConcat(const std::wstring &s);

common/pch.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
#define WIN32_LEAN_AND_MEAN
44

5-
#include <stdio.h>
6-
#include <stdlib.h>
7-
#include <string.h>
5+
#include <cstdio>
6+
#include <cstdlib>
7+
#include <cstring>
88

99
#include <string>
1010
#include <vector>
1111
#include <map>
1212
#include <regex>
13+
#include <algorithm>
1314
#include <unordered_map>
1415
#include <mutex>
1516

common/version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
#define TEXTSERVICE_DESC TEXTSERVICE_NAME L"_DEBUG"
88
#endif
99
#define TEXTSERVICE_DIR L"IMTSFTUTCODE"
10-
#define TEXTSERVICE_VER L"0.9.4"
10+
#define TEXTSERVICE_VER L"0.9.5"
1111

1212
//for resource
1313
#define RC_AUTHOR "KIHARA Hideto"
1414
#define RC_PRODUCT "tsf-tutcode"
15-
#define RC_VERSION "0.9.4"
16-
#define RC_VERSION_D 0,9,4,0
15+
#define RC_VERSION "0.9.5"
16+
#define RC_VERSION_D 0,9,5,0

0 commit comments

Comments
 (0)