From fb78ed7535080187ea5cb4827b9185289641e9ae Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Fri, 30 Dec 2022 07:06:53 -0500 Subject: [PATCH] [+] Rime: Extended dictionaries --- config-sync/.config/ibus/rime/extended.dict.yaml | 12 ++++++++++++ .../.config/ibus/rime/luna_pinyin.custom.yaml | 5 +++++ scripts/includes/config-sync.sh | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 config-sync/.config/ibus/rime/extended.dict.yaml create mode 100644 config-sync/.config/ibus/rime/luna_pinyin.custom.yaml diff --git a/config-sync/.config/ibus/rime/extended.dict.yaml b/config-sync/.config/ibus/rime/extended.dict.yaml new file mode 100644 index 0000000..5de0940 --- /dev/null +++ b/config-sync/.config/ibus/rime/extended.dict.yaml @@ -0,0 +1,12 @@ +# https://wiki.archlinuxcn.org/wiki/Fcitx5#RIME/%E4%B8%AD%E5%B7%9E%E9%9F%BB +# 以下禁用了默认词库同时不启用默认的“八股文”词库及词频系统,如果您不希望候选词中的出现繁体字、方框字的话 +--- +name: extended +version: "2021.02.19" +sort: by_weight +use_preset_vocabulary: true #是否启用默认的“八股文”词库及词频系统,如需启用请设为 true 。 +import_tables: + - luna_pinyin #默认词库,如需启用请取消注释 + - zhwiki + - moegirl + # - 自定义词库名 \ No newline at end of file diff --git a/config-sync/.config/ibus/rime/luna_pinyin.custom.yaml b/config-sync/.config/ibus/rime/luna_pinyin.custom.yaml new file mode 100644 index 0000000..9ddfb2f --- /dev/null +++ b/config-sync/.config/ibus/rime/luna_pinyin.custom.yaml @@ -0,0 +1,5 @@ +# https://wiki.archlinuxcn.org/wiki/Fcitx5#RIME/%E4%B8%AD%E5%B7%9E%E9%9F%BB +# 文件中“patch:”应只存在一个,若已存在只需粘贴后面的代码 +# 此文件用于修改特定输入方案,把上方的luna_pinyin改为其它输入方案名即可完成对其它输入方案的修改 +patch: + "translator/dictionary": extended #词典名字可自定义,与下方文件名保持一致即可 \ No newline at end of file diff --git a/scripts/includes/config-sync.sh b/scripts/includes/config-sync.sh index 3adde24..1a5fb9e 100644 --- a/scripts/includes/config-sync.sh +++ b/scripts/includes/config-sync.sh @@ -52,4 +52,5 @@ check-config "$HOME/.condarc" "$CFGSYNC/.condarc" check-config "$HOME/.java/.userPrefs/com/cburch/logisim/prefs.xml" "$CFGSYNC/.java/.userPrefs/com/cburch/logisim/prefs.xml" check-config "$HOME/.config/kitty" "$CFGSYNC/.config/kitty" -check-config "$HOME/.config/ibus/rime" "$CFGSYNC/.config/ibus/rime" \ No newline at end of file +check-config "$HOME/.config/ibus/rime" "$CFGSYNC/.config/ibus/rime" +check-config "$HOME/.local/share/fcitx5/rime" "$CFGSYNC/.config/ibus/rime" \ No newline at end of file