misc - add install.pl for rime config
authorPeng Li <seudut@gmail.com>
Tue, 18 Apr 2017 15:28:47 +0000 (23:28 +0800)
committerPeng Li <seudut@gmail.com>
Tue, 18 Apr 2017 15:28:47 +0000 (23:28 +0800)
miscellanea/default.custom.yaml [deleted file]
miscellanea/rime/default.custom.yaml [new file with mode: 0644]
miscellanea/rime/install.pl [new file with mode: 0755]
miscellanea/rime/squirrel.custom.yaml [new file with mode: 0644]
miscellanea/rime/wubi_pinyin.custom.schema.yaml [new file with mode: 0644]
miscellanea/squirrel.custom.yaml [deleted file]
miscellanea/wubi_pinyin.custom.schema.yaml [deleted file]

diff --git a/miscellanea/default.custom.yaml b/miscellanea/default.custom.yaml
deleted file mode 100644 (file)
index eee9666..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-# default.custom.yaml
-# save it to: 
-#   ~/.config/ibus/rime  (linux)
-#   ~/Library/Rime       (macos)
-#   %APPDATA%\Rime       (windows)
-
-patch:
-  ascii_composer:
-    good_old_caps_lock: true
-    switch_key:
-      Caps_Lock: clear
-      Control_L: noop
-      Control_R: noop
-      Eisu_toggle: clear
-      Shift_L: commit_code
-      Shift_R: commit_code
-  menu/page_size: 9
-  schema_list:
-      #    - schema: luna_pinyin          # 朙月拼音
-#    - schema: luna_pinyin_simp     # 朙月拼音 简化字模式
-#    - schema: luna_pinyin_tw       # 朙月拼音 臺灣正體模式
-#    - schema: terra_pinyin         # 地球拼音 dì qiú pīn yīn
-#    - schema: bopomofo             # 注音
-#    - schema: bopomofo_tw          # 注音 臺灣正體模式
-#    - schema: jyutping             # 粵拼
-#    - schema: cangjie5             # 倉頡五代
-#    - schema: cangjie5_express     # 倉頡 快打模式
-#    - schema: quick5               # 速成
-    - schema: wubi_pinyin          # 五笔拼音混合輸入
-    - schema: wubi86               # 五笔86
-#    - schema: double_pinyin        # 自然碼雙拼
-#    - schema: double_pinyin_mspy   # 微軟雙拼
-#    - schema: double_pinyin_abc    # 智能ABC雙拼
-#    - schema: double_pinyin_flypy  # 小鶴雙拼
-#    - schema: wugniu        # 吳語上海話(新派)
-#    - schema: wugniu_lopha  # 吳語上海話(老派)
-#    - schema: sampheng      # 中古漢語三拼
-#    - schema: zyenpheng     # 中古漢語全拼
-#    - schema: ipa_xsampa    # X-SAMPA 國際音標
-    - schema: emoji         # emoji表情
diff --git a/miscellanea/rime/default.custom.yaml b/miscellanea/rime/default.custom.yaml
new file mode 100644 (file)
index 0000000..eee9666
--- /dev/null
@@ -0,0 +1,40 @@
+# default.custom.yaml
+# save it to: 
+#   ~/.config/ibus/rime  (linux)
+#   ~/Library/Rime       (macos)
+#   %APPDATA%\Rime       (windows)
+
+patch:
+  ascii_composer:
+    good_old_caps_lock: true
+    switch_key:
+      Caps_Lock: clear
+      Control_L: noop
+      Control_R: noop
+      Eisu_toggle: clear
+      Shift_L: commit_code
+      Shift_R: commit_code
+  menu/page_size: 9
+  schema_list:
+      #    - schema: luna_pinyin          # 朙月拼音
+#    - schema: luna_pinyin_simp     # 朙月拼音 简化字模式
+#    - schema: luna_pinyin_tw       # 朙月拼音 臺灣正體模式
+#    - schema: terra_pinyin         # 地球拼音 dì qiú pīn yīn
+#    - schema: bopomofo             # 注音
+#    - schema: bopomofo_tw          # 注音 臺灣正體模式
+#    - schema: jyutping             # 粵拼
+#    - schema: cangjie5             # 倉頡五代
+#    - schema: cangjie5_express     # 倉頡 快打模式
+#    - schema: quick5               # 速成
+    - schema: wubi_pinyin          # 五笔拼音混合輸入
+    - schema: wubi86               # 五笔86
+#    - schema: double_pinyin        # 自然碼雙拼
+#    - schema: double_pinyin_mspy   # 微軟雙拼
+#    - schema: double_pinyin_abc    # 智能ABC雙拼
+#    - schema: double_pinyin_flypy  # 小鶴雙拼
+#    - schema: wugniu        # 吳語上海話(新派)
+#    - schema: wugniu_lopha  # 吳語上海話(老派)
+#    - schema: sampheng      # 中古漢語三拼
+#    - schema: zyenpheng     # 中古漢語全拼
+#    - schema: ipa_xsampa    # X-SAMPA 國際音標
+    - schema: emoji         # emoji表情
diff --git a/miscellanea/rime/install.pl b/miscellanea/rime/install.pl
new file mode 100755 (executable)
index 0000000..d7f3eb8
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/perl -w
+
+use 5.010;
+use strict;
+use Cwd;
+
+my @file = qw( default.custom.yaml
+                squirrel.custom.yaml
+                wubi_pinyin.custom.schema.yaml );
+
+my $cdr = cwd();
+foreach (@file) {
+    print `ln -s $cdr/$_ $ENV{HOME}/Library/Rime/$_`;
+}
+say "==DONE=="  unless $?;
diff --git a/miscellanea/rime/squirrel.custom.yaml b/miscellanea/rime/squirrel.custom.yaml
new file mode 100644 (file)
index 0000000..54b3d70
--- /dev/null
@@ -0,0 +1,29 @@
+# 適用於【鼠鬚管】0.9.13+
+# 位置:~/Library/Rime/squirrel.custom.yaml
+# 用法:想要哪項生效,就刪去該行行首的#字符,但注意保留用於縮進的空格
+
+patch:
+  app_options/org.gnu.Emacs:
+    ascii_mode: true
+  app_options/org.mozilla.firefox:
+    ascii_mode: true
+#  us_keyboard_layout: true      # 鍵盤選項:應用美式鍵盤佈局
+#  show_notifications_when: growl_is_running  # 狀態通知,默認裝有Growl時顯示,也可設爲全開(always)全關(never)
+#  style/horizontal: true        # 候選窗横向顯示
+#  style/inline_preedit: false   # 非內嵌編碼行
+#  style/font_face: "儷黑 Pro"    # 我喜歡的字體名稱
+  style/font_point: 14          # 字號
+#  style/corner_radius: 10       # 窗口圓角半徑
+#  style/border_height: 0        # 窗口邊界高度,大於圓角半徑才有效果
+#  style/border_width: 0         # 窗口邊界寬度,大於圓角半徑才有效果
+#  style/color_scheme: luna      # 選擇配色方案
+
+# 註:預設的配色方案及代碼(指定爲 style/color_scheme )
+#   碧水 - aqua
+#   青天 - azure
+#   明月 - luna
+#   墨池 - ink
+#   孤寺 - lost_temple
+#   暗堂 - dark_temple
+#   星際我爭霸 - starcraft
+#   谷歌 - google
diff --git a/miscellanea/rime/wubi_pinyin.custom.schema.yaml b/miscellanea/rime/wubi_pinyin.custom.schema.yaml
new file mode 100644 (file)
index 0000000..6f12670
--- /dev/null
@@ -0,0 +1,5 @@
+# wubi_pinyin.custom.schema.yaml
+
+patch:
+    "switches/@0/reset": 1  #表示將 switcher 列表中的第一個元素(即 ascii_mode 開關)的初始值重設爲狀態1(即「英文」)。
+
diff --git a/miscellanea/squirrel.custom.yaml b/miscellanea/squirrel.custom.yaml
deleted file mode 100644 (file)
index 54b3d70..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-# 適用於【鼠鬚管】0.9.13+
-# 位置:~/Library/Rime/squirrel.custom.yaml
-# 用法:想要哪項生效,就刪去該行行首的#字符,但注意保留用於縮進的空格
-
-patch:
-  app_options/org.gnu.Emacs:
-    ascii_mode: true
-  app_options/org.mozilla.firefox:
-    ascii_mode: true
-#  us_keyboard_layout: true      # 鍵盤選項:應用美式鍵盤佈局
-#  show_notifications_when: growl_is_running  # 狀態通知,默認裝有Growl時顯示,也可設爲全開(always)全關(never)
-#  style/horizontal: true        # 候選窗横向顯示
-#  style/inline_preedit: false   # 非內嵌編碼行
-#  style/font_face: "儷黑 Pro"    # 我喜歡的字體名稱
-  style/font_point: 14          # 字號
-#  style/corner_radius: 10       # 窗口圓角半徑
-#  style/border_height: 0        # 窗口邊界高度,大於圓角半徑才有效果
-#  style/border_width: 0         # 窗口邊界寬度,大於圓角半徑才有效果
-#  style/color_scheme: luna      # 選擇配色方案
-
-# 註:預設的配色方案及代碼(指定爲 style/color_scheme )
-#   碧水 - aqua
-#   青天 - azure
-#   明月 - luna
-#   墨池 - ink
-#   孤寺 - lost_temple
-#   暗堂 - dark_temple
-#   星際我爭霸 - starcraft
-#   谷歌 - google
diff --git a/miscellanea/wubi_pinyin.custom.schema.yaml b/miscellanea/wubi_pinyin.custom.schema.yaml
deleted file mode 100644 (file)
index 6f12670..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# wubi_pinyin.custom.schema.yaml
-
-patch:
-    "switches/@0/reset": 1  #表示將 switcher 列表中的第一個元素(即 ascii_mode 開關)的初始值重設爲狀態1(即「英文」)。
-