This repository provides tc(T-code input environment for emacs).
tc enables you to input Japanese characters with T-code or TUT-code.
T-code is a Japanese input method that does NOT use Kana-to-Kanji conversion.
You can input Kanji characters directly in the same way of inputting Hiragana.
TUT-code is one of the T-code alternatives.
Emacs 26以降をサポートします。
まず
https://melpa.org/#/getting-started
を参考にMELPAのpackageを package-install できるようにしてください。
その後
M-x package-install
tc
を実行します。package-installが終わったら
M-x tcode-install
を実行してください。 tcの設定file作成場所についてなどが問われますがすべて defaultで問題ありません。
最後にinit.elに
(require 'tc-setup)
の1行を追加し、emacsをrestartしてください。
restart後は
M-x toggle-input-method
を実行し、用いるinput-methodにT-codeを選択してください。
Ubuntu Linuxでuim-tcodeをご利用の方は /etc/emacs/site-start.d/50t-code.el の内容をすべてコメントアウトしてください。
https://www.dropbox.com/s/qushezrz948u8ks/manual.pdf?dl=0 のpdfをご覧ください
Windows用Emacs に下記の設定font設定をおすすめします。
ストローク表をずれ無く見る上でfont設定は重要となります。
Windowsは日本語環境にしておいた方が無難です。
英語環境ですと日本語フォントセットを見つけることができない可能性があります。
(require 'tc-setup)
(add-to-list 'default-frame-alist '(font . "-outline-MS ゴシック-normal-normal-normal-mono-19-*-*-*-c-*-iso8859-1"))isearch機能のT-Code用拡張は、次の2種類の実装から選ぶことができます。機能の内容や使い方は同じです。
- 従来実装。Emacsの内部関数の書き換えによってisearch拡張を実現しているため、Emacsに最近追加されたisearch機能が使えなくなる場合があります。
(setq tcode-use-isearch 'overwrite)とすることで利用できます(デフォルト)。 - advice機能を用いた実装。Emacs内部関数の書き換えを無くした実装なので、Emacsのバージョンアップによるisearch機能の変化に追従しやすくなっています。
(setq tcode-use-isearch 'advice)とすることで利用できます。