Procházet zdrojové kódy

add featrue for copy customs_phrase fix some issue

Dew-OF-Aurora před 4 měsíci
rodič
revize
3ef2a72146

+ 5 - 0
custom/custom_phrase.txt

@@ -0,0 +1,5 @@
+# Rime table
+#@/db_name	custom_phrase.txt
+#@/db_type	tabledb
+#@/tick	0
+lv79128420@gmail.com	lv	0

+ 0 - 4
custom/rime_frost.custom.yaml

@@ -9,10 +9,6 @@ patch:
 
   "reduce_english_filter/mode": all
 
-  "custom_phrase/db_class": tabledb # 只读数据库,无法动态调频;设为 tabledb 可以动态调频
-  "custom_phrase/initial_quality": 1000 # custom_phrase 的权重应该比 pinyin 和 melt_eng 大xx
-  "custom_phrase/enable_sentence": true
-
   "speller/algebra":
     - derive/^([zcs])h/$1/ # zh* ch* sh* 派生出 z* c* s*
     - derive/^([zcs])([^h])/$1h$2/ # z* c* s*    派生出 zh* ch* sh*

+ 2 - 207
custom/squirrel.custom.yaml

@@ -7,13 +7,12 @@ patch:
     com.microsoft.VSCode: # Visual Studio Code
       ascii_mode: true
       ascii_punct: true # 中文状态输出英文标点(半角)
-    com.termius-dmg.mac: # termius
-      ascii_mode: true
     com.jetbrains.intellij: # idea
       ascii_mode: true
     com.jetbrains.CLion:
       ascii_mode: true
-
+    st:
+      ascii_mode: true
   style:
     color_scheme: mac_light
     color_scheme_dark: mac_dark
@@ -319,26 +318,6 @@ patch:
       hilited_candidate_label_color: 0xFFFFFF # 第一候选项编号颜色
       hilited_comment_text_color: 0x999999 # 注解文字高亮
 
-    psionics:
-      name: 幽能
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      corner_radius: 5 # 窗口圆角
-      font_point: 21 # 候选文字大小
-      label_font_point: 14 # 候选编号大小
-      font_face: "PingFangSC-Regular,HanaMinB" # 候选词字体
-      line_spacing: 10 # 行间距(适用于竖排)
-      text_color: 0xc2c2c2 # 拼音行文字颜色
-      back_color: 0x444444 # 候选条背景色,24位色值,16进制,BGR顺序
-      candidate_text_color: 0xeeeeee # 预选项文字颜色
-      hilited_candidate_back_color: 0xd4bc00 # 候选文字背景色
-      comment_text_color: 0x808080 # 拼音等提示文字颜色
-      hilited_text_color: 0xeeeeee # 高亮拼音 (需要开启内嵌编码)
-      hilited_back_color: 0x444444 # 第一候选项背景背景色
-      hilited_candidate_label_color: 0xfafafa # 第一候选项编号颜色
-      hilited_candidate_text_color: 0xfafafa # 第一候选项文字颜色
-      hilited_comment_text_color: 0x444444 # 注解文字高亮
-
     win10:
       horizontal: true # true横排,false竖排
       candidate_format: "%c %@  " # 如果是竖排建议改为 "%c\u2005%@"
@@ -366,187 +345,3 @@ patch:
       hilited_comment_text_color: 0xffffff # 注解文字高亮
       hilited_label_color: 0xffffff # 已选字的数字的颜色
       label_color: 0x888888 # 预选栏编号颜色
-
-    solarized_rock:
-      name: 日光石
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      corner_radius: 6 # 窗口圆角
-      font_point: 21 # 候选文字大小
-      label_font_point: 15 # 候选编号大小
-      line_spacing: 10 # 行间距(适用于竖排)
-      font_face: "PingFangSC-Regular,HanaMinB" # 候选词字体
-      text_color: 0x8236d3 # 拼音行文字颜色
-      back_color: 0x362b00 # 候选条背景色,24位色值,16进制,BGR顺序
-      candidate_text_color: 0x969483 # 预选项文字颜色
-      comment_text_color: 0xc098a12a # 拼音等提示文字颜色
-      hilited_text_color: 0x98a12a # 高亮拼音 (需要开启内嵌编码)
-      hilited_back_color: 0x444444 # 第一候选项背景背景色
-      hilited_candidate_label_color: 0xfafafa # 第一候选项编号颜色
-      hilited_candidate_back_color: 0x8236d3 # 候选文字背景色
-      hilited_candidate_text_color: 0xffffff # 第一候选项文字颜色
-      hilited_comment_text_color: 0x362b00 # 注解文字高亮
-
-    solarized_dark:
-      name: 夜光石
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      corner_radius: 6 # 窗口圆角
-      font_point: 21 # 候选文字大小
-      label_font_point: 15 # 候选编号大小
-      line_spacing: 10 # 行间距(适用于竖排)
-      font_face: "PingFangSC-Regular,HanaMinB" # 候选词字体
-      text_color: 0xA1A095 # 拼音行文字颜色
-      border_color: 0xf02A1F00 # 边框颜色
-      label_color: 0xCC8947 # 预选栏编号颜色
-      back_color: 0xf0352A0A # 候选条背景色,24位色值,16进制,BGR顺序
-      candidate_text_color: 0x989F52 # 预选项文字颜色
-      comment_text_color: 0x289989 # 拼音等提示文字颜色
-      hilited_text_color: 0x2C8BAE # 高亮拼音 (需要开启内嵌编码)
-      hilited_back_color: 0x444444 # 第一候选项背景背景色
-      hilited_candidate_label_color: 0x2566C6 # 第一候选项编号颜色
-      hilited_candidate_back_color: 0xD7E8ED # 候选文字背景色
-      hilited_candidate_text_color: 0x3942CB # 第一候选项文字颜色
-      hilited_comment_text_color: 0x8144C2 # 注解文字高亮
-
-    apathy:
-      name: 冷漠
-      horizontal: true # true横排,false竖排
-      back_color: 0xFFFFFF # 候选条背景色,24位色值,16进制,BGR顺序
-      border_height: 0 # 窗口上下高度,大于圆角半径才生效
-      border_width: 8 # 窗口左右宽度
-      line_spacing: 10 # 行间距(适用于竖排)
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      comment_text_color: 0x999999 # 拼音等提示文字颜色
-      corner_radius: 5 # 窗口圆角
-      font_point: 17 # 候选文字大小
-      hilited_candidate_back_color: 0xFFF0E4 # 候选文字背景色
-      hilited_candidate_text_color: 0xEE6E00 # 第一候选项文字颜色
-      inline_preedit: true
-      label_font_point: 12 # 候选编号大小
-      text_color: 0x424242 # 拼音行文字颜色
-
-    google:
-      name: 谷歌
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      font_point: 21 # 候选文字大小
-      label_font_point: 15 # 候选编号大小
-      corner_radius: 6 # 窗口圆角
-      line_spacing: 10 # 行间距(适用于竖排)
-      text_color: 0x666666 # 拼音行文字颜色
-      candidate_text_color: 0x000000 # 预选项文字颜色
-      back_color: 0xFFFFFF # 候选条背景色,24位色值,16进制,BGR顺序
-      border_color: 0xE2E2E2 # 边框
-      hilited_text_color: 0x000000 # 高亮拼音 (需要开启内嵌编码)
-      hilited_back_color: 0xFFFFFF # 第一候选项背景背景色
-      hilited_candidate_text_color: 0xffffff # 第一候选项文字颜色
-      hilited_candidate_back_color: 0xCE7539 # 候选文字背景色
-      comment_text_color: 0x6D6D6D # 拼音等提示文字颜色
-      hilited_comment_text_color: 0xEBC6B0 # 注解文字高亮
-      hilited_candidate_label_color: 0xfafafa # 第一候选项编号颜色
-
-    milan:
-      name: 米兰
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      font_point: 21 # 候选文字大小
-      label_font_point: 14 # 候选编号大小
-      line_spacing: 10 # 行间距(适用于竖排)
-      border_height: 4 # 窗口上下高度,大于圆角半径才生效
-      border_width: 4 # 窗口左右宽度,大于圆角半径才生效
-      corner_radius: 5 # 窗口圆角
-      back_color: 0xFFFFFF # 候选条背景色
-      comment_text_color: 0x999999 # 拼音等提示文字颜色
-      hilited_candidate_back_color: 0xF5803B # 候选文字背景色
-      hilited_candidate_text_color: 0xFFFFFF # 第一候选项文字颜色
-      text_color: 0x424242 # 拼音行文字颜色
-
-    ink:
-      name: 墨池
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      font_point: 21 # 候选文字大小
-      label_font_point: 14 # 候选编号大小
-      corner_radius: 5 # 窗口圆角
-      line_spacing: 10 # 行间距(适用于竖排)
-      text_color: 0x5a5a5a # 拼音等提示文字颜色
-      back_color: 0xeeffffff # 候选条背景色
-      candidate_text_color: 0x000000 # 第一候选项文字颜色
-      hilited_text_color: 0x000000 # 高亮拼音 (需要开启内嵌编码)
-      hilited_candidate_text_color: 0xffffff # 第一候选项文字颜色
-      hilited_candidate_back_color: 0xcc000000 # 候选文字背景色
-      comment_text_color: 0x5a5a5a # 拼音等提示文字颜色
-      hilited_comment_text_color: 0x808080 # 注解文字高亮
-
-    purity:
-      name: 纯洁
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      font_point: 21 # 候选文字大小
-      label_font_point: 14 # 候选编号大小
-      corner_radius: 5 # 窗口圆角
-      line_spacing: 10 # 行间距(适用于竖排)
-      text_color: 0xc2c2c2 # 拼音等提示文字颜色
-      back_color: 0x444444 # 候选条背景色
-      candidate_text_color: 0xeeeeee # 第一候选项文字颜色
-      hilited_text_color: 0xeeeeee # 高亮拼音 (需要开启内嵌编码)
-      hilited_back_color: 0x444444 # 第一候选项背景背景色
-      hilited_candidate_text_color: 0x000000 # 第一候选项文字颜色
-      hilited_candidate_back_color: 0xfafafa # 候选文字背景色
-      comment_text_color: 0x808080 # 拼音等提示文字颜色
-
-    starcraft:
-      name: 星际争霸
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      font_point: 21 # 候选文字大小
-      label_font_point: 14 # 候选编号大小
-      corner_radius: 5 # 窗口圆角
-      line_spacing: 10 # 行间距(适用于竖排)
-      text_color: 0xccaa88 # 拼音等提示文字颜色
-      candidate_text_color: 0x30bb55 # 第一候选项文字颜色
-      back_color: 0xee000000 # 候选条背景色
-      border_color: 0x1010a0 # 边框色
-      hilited_text_color: 0xfecb96 # 高亮拼音 (需要开启内嵌编码)
-      hilited_back_color: 0x000000 # 第一候选项背景背景色
-      hilited_candidate_text_color: 0x70ffaf # 第一候选项文字颜色
-      hilited_candidate_back_color: 0x000000 # 候选文字背景色
-      comment_text_color: 0x1010d0 # 拼音等提示文字颜色
-      hilited_comment_text_color: 0x1010f0 # 注解文字高亮
-
-    nord_light:
-      name: 北方浅色
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      font_point: 21 # 候选文字大小
-      label_font_point: 14 # 候选编号大小
-      corner_radius: 5 # 窗口圆角
-      line_spacing: 10 # 行间距(适用于竖排)
-      back_color: 0xF4EFEC # 候选条背景色
-      border_color: 0xF4EFEC # 边框色
-      candidate_text_color: 0xC1A181 # 第一候选项文字颜色
-      comment_text_color: 0xD0C088 # 拼音等提示文字颜色
-      hilited_back_color: 0xF0E9E5 # 第一候选项背景背景色
-      hilited_candidate_back_color: 0xE9DED8 # 候选文字背景色
-      hilited_candidate_text_color: 0xAC815E # 第一候选项文字颜色
-      hilited_text_color: 0xAD8EB4 # 高亮拼音 (需要开启内嵌编码)
-      text_color: 0x7087D0 # 拼音等提示文字颜色
-
-    nord_dark:
-      name: 北方深色
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      font_point: 21 # 候选文字大小
-      label_font_point: 14 # 候选编号大小
-      corner_radius: 5 # 窗口圆角
-      line_spacing: 10 # 行间距(适用于竖排)
-      back_color: 0x473A33 # 候选条背景色
-      border_color: 0x473A33 # 边框色
-      candidate_text_color: 0xF5D887 # 第一候选项文字颜色
-      comment_text_color: 0xE6B687 # 拼音等提示文字颜色
-      hilited_back_color: 0x473A33 # 第一候选项背景背景色
-      hilited_candidate_back_color: 0x5D4C43 # 候选文字背景色
-      hilited_candidate_text_color: 0xC0E077 # 第一候选项文字颜色
-      hilited_text_color: 0x6EC8F5 # 高亮拼音 (需要开启内嵌编码)
-      text_color: 0x78E8F0 # 拼音等提示文字颜色

+ 1 - 0
os/MacOS.rb

@@ -38,6 +38,7 @@ module RimeDeploy
       def call
         puts intro
         system("cp ./custom/*.yaml #{Store.config_path}/")
+        system("cp ./custom_phrase.txt #{Store.config_path}/")
         sleep 1
         return :next
       end