// 画面表示停止
disabledraw;
// タグの整理
replaceallfast ">",">\\n",regular;
replaceallfast ">",">\\n",regular;
// 下準備・1
// タグ内改行の除去
replaceallfast "<\\f(.+)\\f\\n\\f(.+)\\f>","<\\1 \\3>",regular;//一行改行
replaceallfast "<\\f(.+)\\f\\n\\f(.+)\\f\\n\\f(.+)\\f>","<\\1 \\3 \\5>",regular;//二行改行
replaceallfast "<\\f(.+)\\f\\n\\f(.+)\\f\\n\\f(.+)\\f\\n\\f(.+)\\f>","<\\1 \\3 \\5 \\7>",regular;//三行改行
// -------- 生成済みHTMLファイルの整理 -------- //
// 重要タグの取り残し
replaceallfast "","≦A HREF=\\1≧",regular;
replaceallfast "
","≦IMG SRC=\\1≧",regular;
replaceallfast "","≦BLOCKQUOTE≧",regular;
replaceallfast "
","≦/BLOCKQUOTE≧",regular;
replaceallfast "","\\n・",regular;
replaceallfast "・ +","・",regular;
// 重複タグの除去
replaceallfast "【Xpress TechNote】","",regular;
replaceallfast "トップページへもどる","",regular;
replaceallfast "≦A HREF=\"../index.html\"≧","",regular;
replaceallfast "≦IMG SRC=\"../_images/title.gif\"(.*)≧","",regular;
replaceallfast "Xpress TechNote【(.*)】","",regular;
// タグの除去
replaceallfast "<(.*)>\\n","",regular;
// -------- 変換を正常に済ませる/ファイルサイズ軽量化 -------- //
// 文頭・行頭の空白除去
replaceallfast "\\n +","\\n ",regular;
replaceallfast "\\n *","\\n",regular;
replaceallfast " *\\n","\\n",regular;
replaceallfast " *\\n","\\n",regular;
// 下準備・2
replaceallfast "^\\n","",regular;
replaceallfast "^\\n","",regular;
replaceallfast "^ +","",regular;
replaceallfast " +"," ",regular;
replaceallfast " +"," ",regular;
replaceallfast " + +"," ",regular;
replaceallfast "\\n +\\n","\\n",regular;
replaceallfast "\\n +\\n","\\n",regular;
// 再変換時の文頭改行コード消去
gofiletop;
insert "¥¥n";
replaceallfast "¥¥n\\n","",regular;
replaceallfast "¥¥n","",regular;
// ブレッドリストの再生成
replaceallfast "\\n・\\n","\\n・",regular;
// -------- 文章のHTML化 -------- //
// 「。」に
タグ挿入
replaceallfast "。","。
",regular;
// 文頭の「 」(。
\n )に対して「。
\n 」
// 文頭の「・」に対して
// 文頭の「■」に対して…
replaceallfast "\\n ","\\n ",regular;
replaceallfast "\\n・\\f(.+)\\f\\n","\\n
\\n",regular;
replaceallfast "\\n・\\f(.+)\\f\\n","\\n\\n",regular;
replaceallfast "\\n■\\f(.+)\\f\\n","\\n■ \\1
\\n",regular;
// 連続タグの除去…
→、
→、の除去
replaceallfast "
","",regular;
replaceallfast "
","",regular;
replaceallfast "\\n","\\n",regular;
// タイトルの抽出
gofiletop;
insert "";
replaceallfast "","",regular;
replaceallfast "\\n -->"," -->",regular;
// HTML生成タグの挿入
// 文頭
gofiletop;
down;
insert "\nXpress TechNote【】\n\n\n\n\n \n |
\n\n |
\n\n";
// タイトルの挿入
replaceallfast "\\n\\f(.*)\\f\\n\\f(.*)\\f【】","\\n\\3\\n\\5【\\1】",regular;
replaceallfast "\\n"," \\1\\n",regular;
gofiletop;
copyline;
gofiletop;
golineend2;down;
golineend2;down;
golineend2;down;
golineend2;down;
golineend2;down;
golineend2;down;
golineend2;down;
golineend2;down;
golineend2;down;
golineend2;down;
golinetop2;paste;
gofiletop;
deleteline;
// HTML生成タグの挿入
// 文末
gofileend;
insert " |
\n\n 【Xpress TechNote】トップページへもどる\n |
\n
\n";
// カッコを閉じる前の改行を阻止
replaceallfast "
」","」",regular;
replaceallfast "
)",")",regular;
replaceallfast "
】","】",regular;
// -------- 一番最後の処理 -------- //
// 改行コードの挿入
replaceallfast "
","
\\n",regular;
replaceallfast "","\\n",regular;
// タグの再変換
replaceallfast "≦","<",regular;
replaceallfast "≧",">",regular;
// 下準備
replaceallfast "\\n\\n","\\n",regular;
replaceallfast "\\n\\n","\\n",regular;
replaceallfast "\\n\\n","\\n",regular;
replaceallfast " +"," ",regular;
replaceallfast " +"," ",regular;
replaceallfast "\\n +\\n","\\n",regular;
replaceallfast "\\n +\\n","\\n",regular;
// 文頭・行頭の空白除去
replaceallfast "\\n *","\\n",regular;
replaceallfast "\\n *","\\n",regular;
replaceallfast " *\\n","\\n",regular;
replaceallfast " *\\n","\\n",regular;
// 画面表示再開
gofiletop;
enabledraw;
endmacro;