[Anthy-dev 3193] Re: decode_nth_cell()

Back to archive index

SHINTA shint****@gmail*****
2006年 11月 3日 (金) 20:38:59 JST


 こんばんは、SHINTAです。

> 必要なことを伝えきれてなくて申し訳ないのですが、
> decode_nth_cell()は個人辞書を扱うためのコードから呼ばれます。
> 
> ~/.anthy/private_dict_default.tt というファイルをmapしているのですが、
> このファイルはサイズを変えたり、サイズが変わる度にmapしなおしたり
> するので、元からあるバグを踏んでるかもしれません。
> こっちのファイルを確認して頂けないでしょうか?

 private_dict_default.tt の方を確認しました(2 回呼ばれたので 2 回目の
方の内容で)が、内容は一致していました。結果を添付します。

 文節を伸ばさなくても、ひらがなやカタカナの候補を選択すると、commit 時
に落ちるようです。例えば、「おおさかかんく」を変換すると「大阪|管区」と
なりますが、5(6) 番目にある「おおさか」候補を選択してから commit すると
落ちます。

void	test_02_commit_hiragana_candidate()
{
	cout << "test_02_commit_hiragana_candidate() begin" << endl;
	set_string("おおさかかんく");
	set_current_segment_candidate(5);	// 5 がひらがな、6 がカタカナ
	confirm_current_segment();
	confirm_current_segment();
	cout << "test_02_commit_hiragana_candidate() end" << endl;
}

 将来的に単語登録機能なども付ける予定で、「個人辞書のファイル名は何だろ
う」と思っていましたが、private_dict_default.tt だったのですね。

 では。

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
★★★ SHINTA ★★★

       E-Mail      : shint****@gmail*****
   翔星 Be ランド  : http://www2u.biglobe.ne.jp/~shinta/be/
  翔星 Be アンテナ : http://a.hatena.ne.jp/SHINTA/simple
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: AnthyOosakaKankuResult.txt
型:         application/octet-stream
サイズ:     630 バイト
説明:       無し
다운로드 
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: TestAnthyConsole.cpp
型:         application/octet-stream
サイズ:     6208 バイト
説明:       無し
URL:        http://lists.sourceforge.jp/mailman/archives/anthy-dev/attachments/20061103/332f4a65/attachment-0001.obj 
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: TestAnthyConsole.h
型:         application/octet-stream
サイズ:     1400 バイト
説明:       無し
URL:        http://lists.sourceforge.jp/mailman/archives/anthy-dev/attachments/20061103/332f4a65/attachment-0002.obj 


Anthy-dev メーリングリストの案内
Back to archive index