X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=keitai.ini.php;h=cf45597a0de26c71536f952c73738fa27e7515cc;hb=28d67ff45bc87fefb0346bd6a8a9f24174b82ce9;hp=1fc8d4cf8c4ae2ff76082c555254da9ad483d2dc;hpb=071f0748596bb1928560cda419311f31188cf6cf;p=pukiwiki%2Fpukiwiki.git diff --git a/keitai.ini.php b/keitai.ini.php index 1fc8d4c..cf45597 100644 --- a/keitai.ini.php +++ b/keitai.ini.php @@ -1,108 +1,129 @@ \n
  • "; ///////////////////////////////////////////////// -// ¿åÊ¿Àþ¤Î¥¿¥° +// 水平線のタグ $hr = '
    '; ///////////////////////////////////////////////// -// ʸËö¤ÎÃí¼á¤ÎľÁ°¤Ëɽ¼¨¤¹¤ë¥¿¥° -$note_hr = '
    '; +// 脚注機能関連 -///////////////////////////////////////////////// -// ´ØÏ¢¤¹¤ë¥ê¥ó¥¯¤ò¾ï¤Ëɽ¼¨¤¹¤ë(Ééô¤¬¤«¤«¤ê¤Þ¤¹) -$related_link = 0; +// 脚注のアンカーに埋め込む本文の最大長 +define('PKWK_FOOTNOTE_TITLE_MAX', 0); // Characters + +// 脚注のアンカーを相対パスで表示する (0 = 絶対パス) +// * 相対パスの場合、以前のバージョンのOperaで問題になることがあります +// * 絶対パスの場合、calendar_viewerなどで問題になることがあります +// (詳しくは: BugTrack/698) +define('PKWK_ALLOW_RELATIVE_FOOTNOTE_ANCHOR', 1); + +// 文末の注釈の直前に表示するタグ +$note_hr = '
    '; ///////////////////////////////////////////////// -// WikiName,BracketName¤Ë·Ð²á»þ´Ö¤òÉղ乤ë +// WikiName,BracketNameに経過時間を付加する $show_passage = 0; ///////////////////////////////////////////////// -// ¥ê¥ó¥¯É½¼¨¤ò¥³¥ó¥Ñ¥¯¥È¤Ë¤¹¤ë +// リンク表示をコンパクトにする +// * ページに対するハイパーリンクからタイトルを外す +// * Dangling linkのCSSを外す $link_compact = 1; ///////////////////////////////////////////////// -// ¥Õ¥§¥¤¥¹¥Þ¡¼¥¯¤ò³¨Ê¸»ú¤ËÊÑ´¹¤¹¤ë (¢¨i-mode, Vodafone, EzWeb¤Ê¤É·ÈÂÓÅÅÏøÂÄê) +// フェイスマークを絵文字に変換する (※i-mode, Vodafone, EzWebなど携帯電話限定) $usefacemark = 1; ///////////////////////////////////////////////// -// accesskey (SKIN¤Ç»ÈÍÑ) +// accesskey (SKINで使用) $accesskey = 'accesskey'; ///////////////////////////////////////////////// -// $script¤òû½Ì -if (preg_match('#([^/]+)$#',$script,$matches)) { - $script = $matches[1]; -} +// ブラウザ調整前のデフォルト値 -///////////////////////////////////////////////// -// ¥Ö¥é¥¦¥¶Ä´À°Á°¤Î¥Ç¥Õ¥©¥ë¥ÈÃÍ +// max_size (SKINで使用) +$max_size = 5; // SKINで使用, KByte -// max_size (SKIN¤Ç»ÈÍÑ) -$max_size = 5; // SKIN¤Ç»ÈÍÑ, KByte - -// cols: ¥Æ¥­¥¹¥È¥¨¥ê¥¢¤Î¥«¥é¥à¿ô rows: ¹Ô¿ô +// cols: テキストエリアのカラム数 rows: 行数 $cols = 22; $rows = 5; // i_mode ///////////////////////////////////////////////// -// ¥Ö¥é¥¦¥¶¤Ë¹ç¤ï¤»¤¿Ä´À° +// ブラウザに合わせた調整 $ua_name = $user_agent['name']; $ua_vers = $user_agent['vers']; $ua_agent = $user_agent['agent']; -$matches = array(); +$matches = array(); // Browser-name only switch ($ua_name) { // NetFront / Compact NetFront - // DoCoMo Net For MOBILE: £é¥â¡¼¥ÉÂбþHTML¤Î¹Í¤¨Êý: ¥æ¡¼¥¶¥¨¡¼¥¸¥§¥ó¥È + // DoCoMo Net For MOBILE: iモード対応HTMLの考え方: ユーザエージェント // http://www.nttdocomo.co.jp/mc-user/i/tag/imodetag.html - // DDI POCKET: µ¡¼ï¥é¥¤¥ó¥Ê¥Ã¥×: AirH"PHONEÍÑ¥Û¡¼¥à¥Ú¡¼¥¸¤ÎºîÀ®ÊýË¡ + // DDI POCKET: 機種ラインナップ: AirH"PHONE用ホームページの作成方法 // http://www.ddipocket.co.jp/p_s/products/airh_phone/homepage.html case 'NetFront': case 'CNF': @@ -114,15 +135,20 @@ switch ($ua_name) { $cols = 22; $rows = 5; // i_mode break; - // Vodafone (ex. J-PHONE) µ»½Ñ»ñÎÁ: ¥æ¡¼¥¶¡¼¥¨¡¼¥¸¥§¥ó¥È¤Ë¤Ä¤¤¤Æ + // Vodafone (ex. J-PHONE) + // ボーダフォンライブ!向けウェブコンテンツ開発ガイド [概要編] (Version 1.2.0 P13) + // http://www.dp.j-phone.com/dp/tool_dl/download.php?docid=110 + // 技術資料: ユーザーエージェントについて // http://www.dp.j-phone.com/dp/tool_dl/web/useragent.php case 'J-PHONE': - if (preg_match('#\bProfile/#', $ua_agent)) { - $max_size = 12; // ¥Ñ¥±¥Ã¥ÈÂбþµ¡ - } else { - $max_size = 6; // ¥Ñ¥±¥Ã¥ÈÈóÂбþµ¡ + $matches = array(""); + preg_match('/^([0-9]+)\./', $user_agent['vers'], $matches); + switch($matches[1]){ + case '3': $max_size = 6; break; // C type: lt 6000bytes + case '4': $max_size = 12; break; // P type: lt 12Kbytes + case '5': $max_size = 200; break; // W type: lt 200Kbytes } - $cols = 24; $rows = 20; // jphone + $cols = 24; $rows = 20; break; // UP.Browser @@ -130,9 +156,8 @@ switch ($ua_name) { // UP.Browser for KDDI cell phones // http://www.au.kddi.com/ezfactory/tec/spec/xhtml.html ('About 9KB max') // http://www.au.kddi.com/ezfactory/tec/spec/4_4.html (User-agent strings) - if (preg_match('#^KDDI#', $ua_agent)) { - $max_size = 9; - } + if (preg_match('#^KDDI#', $ua_agent)) $max_size = 9; + break; } // Browser-name + version @@ -144,33 +169,32 @@ switch ("$ua_name/$ua_vers") { ///////////////////////////////////////////////// -// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë +// ユーザ定義ルール // -// Àµµ¬É½¸½¤Çµ­½Ò¤·¤Æ¤¯¤À¤µ¤¤¡£?(){}-*./+\$^|¤Ê¤É -// ¤Ï \? ¤Î¤è¤¦¤Ë¥¯¥©¡¼¥È¤·¤Æ¤¯¤À¤µ¤¤¡£ -// Á°¸å¤Ëɬ¤º / ¤ò´Þ¤á¤Æ¤¯¤À¤µ¤¤¡£¹ÔƬ»ØÄê¤Ï ^ ¤òƬ¤Ë¡£ -// ¹ÔËö»ØÄê¤Ï $ ¤ò¸å¤í¤Ë¡£ -/////////////////////////////////////////////////// -// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë(¥³¥ó¥Ð¡¼¥È»þ¤ËÃÖ´¹) +// 正規表現で記述してください。?(){}-*./+\$^|など +// は \? のようにクォートしてください。 +// 前後に必ず / を含めてください。行頭指定は ^ を頭に。 +// 行末指定は $ を後ろに。 + +// ユーザ定義ルール(コンバート時に置換) $line_rules = array( - "COLOR\(([^\(\)]*)\){([^}]*)}" => '$2', - "SIZE\(([^\(\)]*)\){([^}]*)}" => '$2', - "COLOR\(([^\(\)]*)\):((?:(?!COLOR\([^\)]+\)\:).)*)" => '$2', - "SIZE\(([^\(\)]*)\):((?:(?!SIZE\([^\)]+\)\:).)*)" => '$2', - "%%%(?!%)((?:(?!%%%).)*)%%%" => '$1', - "%%(?!%)((?:(?!%%).)*)%%" => '$1', + 'COLOR\(([^\(\)]*)\){([^}]*)}' => '$2', + 'SIZE\(([^\(\)]*)\){([^}]*)}' => '$2', // Disabled + 'COLOR\(([^\(\)]*)\):((?:(?!COLOR\([^\)]+\)\:).)*)' => '$2', + 'SIZE\(([^\(\)]*)\):((?:(?!SIZE\([^\)]+\)\:).)*)' => '$2', // Disabled + '%%%(?!%)((?:(?!%%%).)*)%%%' => '$1', + '%%(?!%)((?:(?!%%).)*)%%' => '$1', "'''(?!')((?:(?!''').)*)'''" => '$1', "''(?!')((?:(?!'').)*)''" => '$1', - '&br;' => '
    ', ); ///////////////////////////////////////////////// -// ·ÈÂÓÅÅÏäˤ¢¤ï¤»¤¿¥Õ¥§¥¤¥¹¥Þ¡¼¥¯ +// 携帯電話にあわせたフェイスマーク -// $usefacemark = 1¤Ê¤é¥Õ¥§¥¤¥¹¥Þ¡¼¥¯¤¬ÃÖ´¹¤µ¤ì¤Þ¤¹ -// ʸ¾ÏÆâ¤ËXD¤Ê¤É¤¬Æþ¤Ã¤¿¾ì¹ç¤Ëfacemark¤ËÃÖ´¹¤µ¤ì¤Æ¤·¤Þ¤¦¤Î¤Ç -// ɬÍפΤʤ¤Êý¤Ï $usefacemark¤ò0¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£ +// $usefacemark = 1ならフェイスマークが置換されます +// 文章内に' XD'などがあった場合にfacemarkに置換されてしまうため、 +// 必要のない方は $usefacemarkを0にしてください。 // Browser-name only $facemark_rules = array(); @@ -202,13 +226,13 @@ switch ($ua_name) { '&(worried);'=> '', // Face marks, Japanese style - '(\(\^\^\))' => '秊', // smile - '(\(\^-\^)' => '秊', // smile - '(\(\.\.;)' => '聯', // oh - '(\(\^_-\))' => '', // wink - '(\(--;)' => '練', // sad - '(\(\^\^;\))' => '', // worried - '(\(\^\^;)' => '', // worried + '\s(\(\^\^\))' => '秊', // smile + '\s(\(\^-\^)' => '秊', // smile + '\s(\(\.\.;)' => '聯', // oh + '\s(\(\^_-\))' => '', // wink + '\s(\(--;)' => '練', // sad + '\s(\(\^\^;\))' => '', // worried + '\s(\(\^\^;)' => '', // worried // Push buttons, 0-9 and sharp '&(pb1);' => '驪', @@ -224,14 +248,14 @@ switch ($ua_name) { '&(pb#);' => '礪', // Others - // '&(zzz);' => '簾', - // '&(man);' => '凌', - // '&(clock);' => '丹', - // '&(mail);' => '亮', - // '&(mailto);' => '拾', - // '&(phone);' => '', - // '&(phoneto);' => '沈', - // '&(faxto);' => '若', + '&(zzz);' => '簾', + '&(man);' => '凌', + '&(clock);' => '丹', + '&(mail);' => '亮', + '&(mailto);'=> '拾', + '&(phone);' => '', + '&(phoneto);'=> '沈', + '&(faxto);' => '若', ); break; @@ -247,26 +271,26 @@ switch ($ua_name) { '\s(\:d)' => chr(27).'$E%'.chr(15), // '', // huh '\s(XD)' => chr(27).'$Gx'.chr(15), // '', // oh '\s(X\()' => chr(27).'$Gx'.chr(15), // '', // oh - '\s(;\))' => chr(27).'$E&'.chr(15), // '', // wink¤¸¤ã¤Ê¤¤¤±¤É¤Í(^^; (¢¨Ìܤ¬¥Ï¡¼¥È) + '\s(;\))' => chr(27).'$E&'.chr(15), // '', // winkじゃないけどね(^^; (※目がハート) '\s(;\()' => chr(27).'$E&'.chr(15), // '', // sad '\s(\:\()' => chr(27).'$Gy'.chr(15), // '', // sad '&(smile);' => chr(27).'$Gv'.chr(15), // '', '&(bigsmile);'=> chr(27).'$Gw'.chr(15), // '', '&(huh);' => chr(27).'$E%'.chr(15), // '', '&(oh);' => chr(27).'$Gx'.chr(15), // '', - '&(wink);' => chr(27).'$E&'.chr(15), // '', // wink¤¸¤ã¤Ê¤¤¤±¤É¤Í(^^; (¢¨Ìܤ¬¥Ï¡¼¥È) + '&(wink);' => chr(27).'$E&'.chr(15), // '', // winkじゃないけどね(^^; (※目がハート) '&(sad);' => chr(27).'$Gy'.chr(15), // '', '&(heart);' => chr(27).'$GB'.chr(15), // '', '&(worried);'=> chr(27).'$E('.chr(15), // '', // Face marks, Japanese style - '(\(\^\^\))' => chr(27).'$Gv'.chr(15), // smile - '(\(\^-\^)' => chr(27).'$Gv'.chr(15), // smile - '(\(\.\.;)' => chr(27).'$Gx'.chr(15), // oh - '(\(\^_-\))' => chr(27).'$E&'.chr(15), // wink¤¸¤ã¤Ê¤¤¤±¤É¤Í(^^; (¢¨Ìܤ¬¥Ï¡¼¥È) - '(\(--;)' => chr(27).'$E&'.chr(15), // sad - '(\(\^\^;\))' => chr(27).'$E('.chr(15), // worried - '(\(\^\^;)' => chr(27).'$E('.chr(15), // worried + '\s(\(\^\^\))' => chr(27).'$Gv'.chr(15), // smile + '\s(\(\^-\^)' => chr(27).'$Gv'.chr(15), // smile + '\s(\(\.\.;)' => chr(27).'$Gx'.chr(15), // oh + '\s(\(\^_-\))' => chr(27).'$E&'.chr(15), // winkじゃないけどね(^^; (※目がハート) + '\s(\(--;)' => chr(27).'$E&'.chr(15), // sad + '\s(\(\^\^;\))' => chr(27).'$E('.chr(15), // worried + '\s(\(\^\^;)' => chr(27).'$E('.chr(15), // worried // Push buttons, 0-9 and sharp '&(pb1);' => chr(27).'$F<'.chr(15), // '', @@ -281,24 +305,14 @@ switch ($ua_name) { '&(pb0);' => chr(27).'$FE'.chr(15), // '', // Others - // '&(zzz);' => chr(27).'$E\\'.chr(15), - // '&(man);' => chr(27).'$G!'.chr(15), - // '&(clock);' => chr(27).'$GF'.chr(15), // '', - // '&(mail);' => chr(27).'$Fv'.chr(15), - // '&(mailto);'=> chr(27).'$E#'.chr(15), - // '&(phone);' => chr(27).'$G)'.chr(15), - // '&(phoneto);'=> chr(27).'$E$'.chr(15), - // '&(faxto);' => chr(27).'$G+'.chr(15), - - // ºÇ¶á¤Î´éʸ»ú (?) - // '&(smile);' => '', - // '&(bigsmile);' => '', - // '&(huh);' => '', - // '&(oh);' => '', - // '&(wink);' => '', - // '&(sad);' => '', - // '&(heart);' => '', - // '&(worried);' => '', + '&(zzz);' => chr(27).'$E\\'.chr(15), + '&(man);' => chr(27).'$G!'.chr(15), + '&(clock);' => chr(27).'$GF'.chr(15), // '', + '&(mail);' => chr(27).'$Fv'.chr(15), + '&(mailto);'=> chr(27).'$E#'.chr(15), + '&(phone);' => chr(27).'$G)'.chr(15), + '&(phoneto);'=> chr(27).'$E$'.chr(15), + '&(faxto);' => chr(27).'$G+'.chr(15), ); break; @@ -328,13 +342,13 @@ switch ($ua_name) { '&(worried);'=> '', // Face marks, Japanese style - '(\(\^\^\))' => '', // smile - '(\(\^-\^)' => '', // smile - '(\(\.\.;)' => '', // oh - '(\(\^_-\))' => '', // wink - '(\(--;)' => '', // sad - '(\(\^\^;\))' => '', // worried - '(\(\^\^;)' => '', // worried + '\s(\(\^\^\))' => '', // smile + '\s(\(\^-\^)' => '', // smile + '\s(\(\.\.;)' => '', // oh + '\s(\(\^_-\))' => '', // wink + '\s(\(--;)' => '', // sad + '\s(\(\^\^;\))' => '', // worried + '\s(\(\^\^;)' => '', // worried // Push buttons, 0-9 and sharp '&(pb1);' => '', @@ -365,5 +379,3 @@ switch ($ua_name) { } unset($matches, $ua_name, $ua_vers, $ua_agent, $special_rules); - -?>