Skip to content

Commit

Permalink
READMEなどを書き換え
Browse files Browse the repository at this point in the history
  • Loading branch information
masui committed Jan 18, 2012
1 parent b5c93fa commit e25ddc6
Show file tree
Hide file tree
Showing 5 changed files with 38,319 additions and 53,239 deletions.
2 changes: 1 addition & 1 deletion Classes/GyaimController.rb
Expand Up @@ -21,7 +21,7 @@ class GyaimController < IMKInputController
@@ws = nil

def initWithServer(server, delegate:d, client:c)
puts "initWithServer===============@@ws = #{@@ws}"
# puts "initWithServer===============@@ws = #{@@ws}"
# Log.log "initWithServer delegate=#{d}, client="#{c}"
@client = c # Lexierraではこれをnilにしてた。何故?

Expand Down
22 changes: 0 additions & 22 deletions Makefile
Expand Up @@ -5,33 +5,11 @@ buildandinstall: dictdir xcodebuild install
#
dictdir:
-mkdir ~/.gyaimdict
#
# 富豪辞書の一部から辞書キャッシュを作って変換に利用
#
small: smalldict dictcache buildandinstall
#
# 富豪辞書全部から辞書キャッシュを作って変換に利用
#
large: largedict dictcache buildandinstall

xcodebuild:
xcodebuild -target Gyaim -configuration Debug
install:
cp -r build/Debug/Gyaim.app ~/Library/Input\ Methods
dictcache:
ruby -e 'require "WordSearch/WordSearch"; DictCache.createCache("Resources/dict.txt");'
# ruby -e 'require "WordSearch/WordSearch"; ws = WordSearch.new("Resources/dict.txt"); ws.createDictCache;'

#
# 富豪辞書を利用
#
largedict:
cp Resources/fugodic.txt Resources/dict.txt
#
# 富豪辞書の一部を利用
#
smalldict:
head -20000 Resources/fugodic.txt > Resources/dict.txt

clean:
/bin/rm -f *~ */*~
Expand Down
22 changes: 5 additions & 17 deletions README.md
Expand Up @@ -6,26 +6,18 @@
* 見栄えはInterfaceBuilderで簡単に変更できます
* 変換アルゴリズムやIMEの動作はRubyで簡単に変更できます
* 自前のIMEをいろいろ作りましょう!
* 現在の変換部分は超いい加減です
* 予測機能がありません

<!--
* そのかわり(?)パタンに正規表現が使えます
* "ke.*da" と入力すると "慶應大" が候補に出たり
-->
* 変換手法はSlimeと同じです
* 予測機能はありません

## インストール

* [MacRuby](http://www.macruby.org/)のインストールが必要です
* 多分SnowLeopardが必要です
* コンパイルは↓で
* $ mkdir ~/.gyaimdict
* $ touch ~/.gyaimdict/dict2d
* $ make small または $ make large
* XCode3でビルドします
* make でビルドできます
* その後、ログアウトして再ログインすると
「言語環境設定」からGyaimを選択できるようになります
* PalmのIMEで利用してた「富豪辞書」を使っています
* 自前の適当な辞書を使うことも可能です
* 辞書はSlimeのものを使っています

## 使いかた

Expand Down Expand Up @@ -66,10 +58,6 @@

* 様々な変換エンジンを切り替える
* Romakana.rbをRuby1.9用に修正
* 辞書キャッシュの扱い
- Resourceに入れる
- make dictでキャッシュをResource内に作る
- Marshalを利用するのをやめる
* 登録を簡単にしたい
- 研究になるかも?
* 単漢字変換
Expand Down

0 comments on commit e25ddc6

Please sign in to comment.