タイトル通りです。
副作用として注釈の中の注釈も同じ内容なら本文から直リンクされます。
インクルードしたページ内に同じ注釈があった場合、元ページ依存の情報を含ませるインライン要素があるときはまとめません。
--- make_link.php Sat Feb 05 03:40:14 2005 +++ make_link.test.php Fri Jul 01 06:44:54 2005 @@ -296,6 +296,7 @@ { global $foot_explain, $script, $vars; static $note_id = 0; + static $ids = array(); list(, $body) = $this->splice($arr); @@ -303,12 +304,17 @@ $note = make_link($body); $page = isset($vars['page']) ? rawurlencode($vars['page']) : ''; + if(isset($ids[$note]) && isset($foot_explain[$ids[$note]])){ + $note_id--; + $id = $ids[$note]; + }else{ + $ids[$note] = $id; // Footnote $foot_explain[$id] = '<a id="notefoot_' . $id . '" href="' . $script . '?' . $page . '#notetext_' . $id . '" class="note_super">*' . $id . '</a>' . "\n" . '<span class="small">' . $note . '</span><br />'; - + } // A hyperlink, content-body to footnote $name = '<a id="notetext_' . $id . '" href="' . $script . '?' . $page . '#notefoot_' . $id . '" class="note_super" title="' .
検索がいる(今の書式仕様です。3つの注釈が1つに纏ります。検索無しの方法には変えました) こんな((注釈))文章((注釈))があったとします((注釈)) 明示的に指定(この書式は使えません。考えがまとまらないのに書いてしまいました) こんな((注釈))文章((*1))があったとします((*1))