فهرست منبع

添加万象模型

Dew-OF-Aurora 4 روز پیش
والد
کامیت
9eda5a5dbf
2فایلهای تغییر یافته به همراه18 افزوده شده و 1 حذف شده
  1. 2 0
      .gitignore
  2. 16 1
      custom/rime_ice.custom.yaml

+ 2 - 0
.gitignore

@@ -1 +1,3 @@
 .DS_Store
+# 忽略所有 Rime 语法模型文件
+*.gram

+ 16 - 1
custom/rime_ice.custom.yaml

@@ -1,5 +1,14 @@
 patch:
-  translator/dictionary: rime_ice.custom
+  translator/dictionary:
+    rime_ice.custom
+
+  # 语言模型
+  grammar/language: amz-v3n2m1-zh-hans
+  grammar/collocation_max_length: 5
+  grammar/collocation_min_length: 2
+  translator/contextual_suggestions: true
+  translator/max_homophones: 7
+  translator/max_homographs: 7
 
   switches:
     - name: ascii_mode
@@ -111,3 +120,9 @@ patch:
     - derive/(.+)ong$/$1on/
     - derive/([tl])eng$/$1en/
     - derive/([qwrtypsdfghjklzxcbnm])([aeio])ng$/$1ng/
+    ##--万象模型
+    - xlit/āáǎàōóǒòēéěèīíǐìūúǔùǖǘǚǜü/aaaaooooeeeeiiiiuuuuvvvvv/
+    - xform/^ng$/eng/
+    - xform/ńg|ňg|ǹg/eng/
+    - xform/ń|ň|ǹ/en/ 
+    - xform/ḿ/m/