Skip to content

Commit

Permalink
update CJK-I, reverse lookup, autocomp shortcut.
Browse files Browse the repository at this point in the history
  • Loading branch information
forFudan committed Sep 15, 2023
1 parent efd866f commit ee5f89f
Show file tree
Hide file tree
Showing 15 changed files with 281,900 additions and 1,688 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.vscode
.DS_Store
.DS_Store
/dist
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ forFudan
- 2022年3月31日 初版
- 2023年3月7日 本方案现在提供CJK所有汉字或部首的全字拆分,共计98446个字符,提供基于《古籍印刷通用字规范字形表》的繁体方案。
- 2023年5月5日 基于宇浩输入法的拆分,添加对于 CJK-I 区603个汉字的支持以及全字拆分提示。
- 2023年9月15日 更新对 CJK-I 区622个汉字的支持以及全字拆分提示。反查可同时查询繁简汉字。可以使用快捷键 Shift + Ctrl + Y 打开和关闭输入预测。
```

- [1. 介绍](#1-介绍)
Expand Down
27 changes: 27 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# %%

from datetime import datetime
# version = datetime.today().strftime('%Y%m%d')
import shutil
import os
from distutils.dir_util import copy_tree
from distutils.dir_util import remove_tree

version = "20230915"

#%%
try:
remove_tree("./dist/xuma")
except:
pass

#%%
os.makedirs("./dist/xuma")
copy_tree("./schema", "./dist/xuma/schema")

shutil.make_archive(f"./dist/xuma_{version}", 'zip', "./dist/xuma")

try:
remove_tree("./dist/xuma")
except:
pass
Binary file removed schema/build/clover.prism.bin
Binary file not shown.
Binary file removed schema/build/clover.reverse.bin
Binary file not shown.
466 changes: 0 additions & 466 deletions schema/build/clover.schema.yaml

This file was deleted.

Binary file removed schema/build/clover.table.bin
Binary file not shown.
24 changes: 24 additions & 0 deletions schema/lua/xuma/yuhao_autocompletion_filter.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- Name: yuhao_autocompletion_filter.lua
-- 名稱: 輸入預測開關
-- Version: 20230901
-- Author: forFudan 朱宇浩 <[email protected]>
-- Github: https://github.com/forFudan/
-- Purpose: 通過開關打開或關閉輸入預測,從而不需要修改 schema.yaml
-- 版權聲明:
-- 專爲宇浩輸入法製作 <https://zhuyuhao.com/yuhao/>
-- 轉載請保留作者名和出處
-- Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
---------------------------------------

local function filter(input, env)
local fil = env.engine.context:get_option("yuhao_autocompletion_filter")
for cand in input:iter() do
if fil and (cand.type == "completion") then
return
else
yield(cand)
end
end
end

return { func = filter }
Loading

0 comments on commit ee5f89f

Please sign in to comment.