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

08年8月21日(Thu) 0時43分
TOP » xpWiki::Dev » xpWiki開発日記 » 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';

Post a new comment

Subject
guestname   :
Body
Go to richer form

Comments list


Front page   Edit Freeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)
Counter: 1345, today: 1, yesterday: 1
Last-modified: 2006-11-29 (Wed) 22:20:58 (JST) (630d) by nao-pon
このページのTopへ
ログイン
ユーザ名:

パスワード:

オートログイン

Basic 認証

Register now! | Lost Password?

アクティブメニュー
付箋機能 (xpwiki)
Fusen(Tag) menu 
Tag Editor
Color: BG:
Name:  Connect line ID:
 
MenuBar (xpwiki)
ブックマーク
Please log in to use it.
[Login]
サイト内 Wiki
☆ 検索 ☆



高度な検索(サイト内)
FireFox検索プラグイン
オンライン状況
合計 94 人がオンライン中 :-)
(xpWiki::Dev : 2 人)

登録ユーザ: 1 & ゲスト: 93

raccoon, もっと...
サイト情報
管理人

nao-pon
 

登録ユーザ数: 1394


現在ページのQRコード 
現在ページのQRコード
[携帯対応]
参照元情報
No trackback