Created
August 25, 2012 15:36
-
-
Save gkzhong/3467172 to your computer and use it in GitHub Desktop.
在Rime五筆輸入方案中添加繁體輸出
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一,安裝簡體->繁體映射碼表:(該項目由opencc維護:http://code.google.com/p/opencc) | |
文件1:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_characters.ocd | |
文件2:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_phrases.ocd | |
安裝位置:共享資料目錄 | |
如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc | |
二,添加opencc簡繁配置文件: | |
詳見:zhs2zht.ini | |
安裝位置:共享資料目錄 | |
如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc | |
三,自定義五筆拼音輸入法配置(同時可用於86版,本文僅提供五筆拼音配置文件) | |
詳見:wubi_pinyin.custom.yaml | |
安裝位置:用戶資料目錄 | |
如:~/Library/Rime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patch: | |
switches: | |
- name: ascii_mode | |
reset: 0 | |
states: [ 中文, 西文 ] | |
- name: full_shape | |
states: [ 半角, 全角 ] | |
- name: simplification | |
states: [ 漢字, 汉字 ] | |
simplifier/opencc_config: zhs2zht.ini | |
engine/filters: | |
- simplifier | |
- uniquifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Open Chinese Convert | |
; | |
; Copyright 2010 BYVoid <[email protected]> | |
; | |
; Licensed under the Apache License, Version 2.0 (the "License"); | |
; you may not use this file except in compliance with the License. | |
; You may obtain a copy of the License at | |
; | |
; http://www.apache.org/licenses/LICENSE-2.0 | |
; | |
; Unless required by applicable law or agreed to in writing, software | |
; distributed under the License is distributed on an "AS IS" BASIS, | |
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
; See the License for the specific language governing permissions and | |
; limitations under the License. | |
title = simp_to_trad | |
description = Standard Configuration for Conversion from Simplified Chinese to Traditional Chinese | |
dict0 = OCD opencc/simp_to_trad_phrases.ocd | |
dict0 = OCD opencc/simp_to_trad_characters.ocd |
终于配出来了,以下是我的代码
- name: simplification states: [ 漢字, 汉字 ] simplifier: opencc_config: s2t.json engine: processors: - ascii_composer - recognizer - key_binder - speller - punctuator - selector - navigator - express_editor segmentors: - ascii_segmentor - matcher - abc_segmentor - punct_segmentor - fallback_segmentor translators: - punct_translator - reverse_lookup_translator - table_translator filters: - simplifier - uniquifier
👍
Works with my squirrel 0.14.0.
Thanks a lot.
@northleafup 照着你的方法弄好了,非常棒,感谢!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果是在windows下的小狼毫, 可能需要注意下
zhs2zht.ini
这个配置文件中的路径:小狼毫下,这个目录是放在data目录下的,这样的话,需要改成:
希望对其他人有帮助。
还有一种方式是,直接下载一个现成的就好了。