Skip to content

Commit

Permalink
添加日期候选
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBing committed Dec 4, 2019
1 parent cecd72a commit 1dc70fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rime.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function date_translator(input, seg)
if (input == "date") then
--- Candidate(type, start, end, text, comment)
yield(Candidate("date", seg.start, seg._end, os.date("%Y年%m月%d日"), "日期"))
yield(Candidate("date", seg.start, seg._end, os.date("%Y年%m月%d日"), "年月日"))
yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d"), "Y-M-D"))
end
if (input == "time") then
--- Candidate(type, start, end, text, comment)
Expand Down
1 change: 1 addition & 0 deletions wubi86_jidian.dict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26588,6 +26588,7 @@ encoder:
錃 ihcq
婆 ihcv
波 ihcy
泪奔 ihdf
小厮 ihda
小有 ihde
小辈 ihdj
Expand Down
1 change: 1 addition & 0 deletions wubi86_jidian_extra_people.dict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sort: original
# 名人

# 歌手
谢春花 ydaw
王筝 ggtq
阿悄 bsni
薛之谦 apyu
Expand Down

0 comments on commit 1dc70fa

Please sign in to comment.