-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from forFudan/update
update CJK-I, reverse lookup, autocomp shortcut.
- Loading branch information
Showing
15 changed files
with
281,900 additions
and
1,688 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.vscode | ||
.DS_Store | ||
.DS_Store | ||
/dist |
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,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 not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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,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 } |
Oops, something went wrong.