Skip to content

Instantly share code, notes, and snippets.

@gkzhong
Created August 25, 2012 15:36
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gkzhong/3467172 to your computer and use it in GitHub Desktop.
Save gkzhong/3467172 to your computer and use it in GitHub Desktop.
在Rime五筆輸入方案中添加繁體輸出
一,安裝簡體->繁體映射碼表:(該項目由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
patch:
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
states: [ 漢字, 汉字 ]
simplifier/opencc_config: zhs2zht.ini
engine/filters:
- simplifier
- uniquifier
; Open Chinese Convert
;
; Copyright 2010 BYVoid <byvoid.kcp@gmail.com>
;
; 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
@wiman4
Copy link

wiman4 commented Feb 13, 2022

@northleafup 照着你的方法弄好了,非常棒,感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment