提交字库修改

This commit is contained in:
gb 2024-03-01 17:20:35 +08:00
parent 8a3ce37049
commit 44a4ac39d7
1 changed files with 12 additions and 29 deletions

View File

@ -392,35 +392,18 @@ void CDlgZk::load_from_clipboard(void)
tag = L"[\"";
bgn = wcsstr(buf, tag.c_str());
if (!bgn)
break;
bgn += tag.length();
end = wcsstr(bgn, L"\"");
if (!end)
break;
int str = 0;
tag = std::wstring(bgn, end - bgn);
//for (int i = 0; i < tag.length(); ++i)
//{
// if (tag[i] == L'\\' && i + 11 < tag.length())
// {
// str = 0;
// for (int j = 0; j < 12; ++j)
// {
// if ((j % 4) == 0)
// continue;
// str *= 8;
// str += tag[i + j] - L'0';
// }
// i += 12;
// hz = local_trans::a2u((char*)&str, CP_UTF8);
// }
// else
// hz.append(1, tag[i]);
//}
hz = tag;
if (bgn)
{
bgn += tag.length();
end = wcsstr(bgn, L"\"");
if (end)
{
tag = std::wstring(bgn, end - bgn);
hz = tag;
}
}
if (hz.empty())
hz = var;
last_var_ = var;
last_word_ = hz;