Skip to content

Commit

Permalink
drop symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Apr 22, 2024
1 parent 14ff111 commit 0c0c999
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
3 changes: 1 addition & 2 deletions build.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ table = table.tar.gz
table_sha256 = 6196053c724125e3ae3d8bd6b2f9172d0c83b65b0d410d3cde63b7a8d6ab87b7

# extra pinyin dict
chinese_addon_repo = https://raw.githubusercontent.com/fcitx/fcitx5-chinese-addons/156830feffdaf0b18812830db70f4bfb556481a2/im/pinyin/
chinese_addon_repo = https://raw.githubusercontent.com/fcitx/fcitx5-chinese-addons/5.1.2/im/pinyin/
chaizi_sha256 = cd659605360120f7390fda1a278eea12c4df6d763a95c8099068ab09cfafd058
symbols_sha256 = 6056bbd808b1bfd84bd62ab73683f6a63f13054a46f25353241a6a69e1fd574f

# py stroke
py_stroke = py_stroke-20121124.tar.gz
Expand Down
9 changes: 0 additions & 9 deletions src/Rules/LibIME.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,9 @@ tableDictRule = do
chineseAddonsRule :: Rules ()
chineseAddonsRule = do
pinyinExtraDictRule
pinyinSymbolsRule
pinyinStrokeRule
pinyinTableRule
"chinese-addons-data" ~> do
copyFile' (outputDir </> "symbols") $ outputDir </> "chinese-addons-data" </> "pinyin" </> "symbols"
copyFile' (outputDir </> "chaizi.dict") $ outputDir </> "chinese-addons-data" </> "pinyin" </> "chaizi.dict"
copyFile' (outputDir </> "py_table.mb") $ outputDir </> "chinese-addons-data" </> "pinyinhelper" </> "py_table.mb"
copyFile' (outputDir </> "py_stroke.mb") $ outputDir </> "chinese-addons-data" </> "pinyinhelper" </> "py_stroke.mb"
Expand All @@ -141,13 +139,6 @@ pinyinExtraDictRule = do
execute "libime_pinyindict" txt out
dict "chaizi"

pinyinSymbolsRule :: Rules ()
pinyinSymbolsRule = do
outputDir </> "symbols" %> \out -> do
chineseAddonsRepoDataUrl <- getConfig' "chinese_addon_repo"
sha256 <- getConfig' $ "symbols_sha256"
void (download chineseAddonsRepoDataUrl "symbols" sha256)

pinyinStrokeRule :: Rules ()
pinyinStrokeRule = do
outputDir </> "py_stroke.mb" %> \out -> do
Expand Down

0 comments on commit 0c0c999

Please sign in to comment.