hypweb.net
XOOPSマニア  最新情報のRSS(サイト全体)
[ 自宅サーバーWebRing |ID=54 前後5表示乱移動サイト一覧 ]

TOP » xpwiki » xpWiki開発日記 » 2006-11-29

2006 11月 29 (水)
 

Ver 0.7.4 (ページ名読みをDBに格納) anchor.png Edit

ページ名の読みを、pginfo DB に格納するようにしました。

DBフィールドを追加したのでモジュールアップデートを実行してください。

オリジナルの PukiWiki は、1つのWikiページにすべてのページの読みを保存するようになっているのですが、これだと、ページ数が増えた時のパフォーマンス低下が避けられないことと、メンテナンス性に問題があるので、DBに格納するようにしました。

さらに、ページ名読み ⇒ ページ頭文字読み に変更しました。

例えば「メモ/色々/下書き」というページ名の場合「メ/イ/シ」となります。

一覧で日本語ページの読みを反映したい場合は、pukiwiki.ini.php での以下の設定項目を適切に設定してください。ただし「$root->pagereading_config_page」は、意味を持ちません。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/////////////////////////////////////////////////
// Page-reading feature settings
// (Automatically creating pronounce datas, for Kanji-included page names,
//  to show sorted page-list correctly)
 
// Enable page-reading feature by calling ChaSen or KAKASHI command
// (1:Enable, 0:Disable)
$root->pagereading_enable = 0;
 
// Specify converter as ChaSen('chasen') or KAKASI('kakasi') or None('none')
$root->pagereading_kanji2kana_converter = 'none';
 
// Specify Kanji encoding to pass data between PukiWiki and the converter
$root->pagereading_kanji2kana_encoding = 'EUC'; // Default for Unix
//$root->pagereading_kanji2kana_encoding = 'SJIS'; // Default for Windows
 
// Absolute path of the converter (ChaSen)
$root->pagereading_chasen_path = '/usr/local/bin/chasen';
//$root->pagereading_chasen_path = 'c:\progra~1\chasen21\chasen.exe';
 
// Absolute path of the converter (KAKASI)
$root->pagereading_kakasi_path = '/usr/local/bin/kakasi';
//$root->pagereading_kakasi_path = 'c:\kakasi\bin\kakasi.exe';
 
// Page name contains pronounce data (written by the converter)
$root->pagereading_config_page = ':config​/PageReading';
 
// Page name of default pronouncing dictionary, used when converter = 'none'
$root->pagereading_config_dict = ':config​/PageReading​/dict';
Page Top

コメント anchor.png Edit




トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード印刷に適した表示   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom Powered by xpWiki
Counter: 249, today: 1, yesterday: 0
初版日時: 2006-11-29 (水) 22:20:58
最終更新: 2006-11-29 (水) 22:20:58 (JST) (7199d) by nao-pon
このページのTopへ
メインメニュー
ログイン

ユーザー名:


パスワード:





パスワード紛失  |新規登録
オンライン状況
61 人のユーザが現在オンラインです。 (3 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 61

もっと...
サイト情報