Browse Source

MMO-12935:表格工具维护

wangyh 4 years ago
parent
commit
0ec7a607bb
5 changed files with 33 additions and 0 deletions
  1. BIN
      bin/STCharacters.ocd2
  2. BIN
      bin/STPhrases.ocd2
  3. BIN
      bin/opencc.exe
  4. 22 0
      bin/s2t.json
  5. 11 0
      convert.sh

BIN
bin/STCharacters.ocd2


BIN
bin/STPhrases.ocd2


BIN
bin/opencc.exe


+ 22 - 0
bin/s2t.json

@@ -0,0 +1,22 @@
+{
+  "name": "Simplified Chinese to Traditional Chinese",
+  "segmentation": {
+    "type": "mmseg",
+    "dict": {
+      "type": "ocd2",
+      "file": "STPhrases.ocd2"
+    }
+  },
+  "conversion_chain": [{
+    "dict": {
+      "type": "group",
+      "dicts": [{
+        "type": "ocd2",
+        "file": "STPhrases.ocd2"
+      }, {
+        "type": "ocd2",
+        "file": "STCharacters.ocd2"
+      }]
+    }
+  }]
+}

+ 11 - 0
convert.sh

@@ -0,0 +1,11 @@
+export LANG=zh_CN.UTF-8@cjknarrow
+find 策划脚本 -name '*.xml' | while read n 
+do
+    echo bin/opencc -i "$n" -o "$n" -c bin/s2t.json&
+done
+
+find 工具库文件/client_csv_config -name '*.csv' | while read n 
+do
+    bin/opencc -i "$n" -o "$n" -c bin/s2t.json&
+done
+