Code Monkey home page Code Monkey logo

quail-cin's Introduction

quail-cin: A utility for converting cin table to quail module

1 Install

雖然這不是需要常駐使用的工具,如果真的需要安裝的話,可以在 .emacs 加入以下設定:

(add-to-list 'load-path "/path/to/quail-cin")
(require 'quail-cin)

2 Usage

2.1 Loading a cin file as a quail package

quail-cin-load-file

對付一般 cin 檔,可以直接以檔名為參數載入:

(quail-cin-load-file "foo.cin")

而有些 cin 檔定義為片語型式,需要指定額外的參數:

(quail-cin-load-file "foo.cin" t)

另外也可以透過指定 輸入法名稱啟動時的提示字串 以取代 cin 檔案中的設定:

(quail-cin-load-file "bopomofo.cin" nil "bopomofo" "ㄅ半")

若只是臨時載入使用,也可以在 minibuffer 輸入 M-x quail-cin-load-file 進行轉換設定與載入檔案。

載入成功後可以在 M-x set-input-method 後輸入 quail-cin-bopomofo 即可用 C-\ 切換輸入法開關狀態。

若要作為預設使用可以直接設定:

(setq default-input-method "quail-cin-bopomofo")

2.2 Converting a cin file

quail-cin-convert-to-quail

基本使用與 quail-cin-load-file 類似,但轉換完並不載入,而是儲存為獨立的 elisp 檔案,可於後續載入時省去重新轉換的動作。

轉換後的檔案太大時,建議可以先壓縮以加快載入速度:

(load "bopomofo.el.bz2")

quail-cin's People

Contributors

letoh avatar

Watchers

Kan-Ru Chen avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.