################################################################
# テンプレート設定ファイル
#
#  自由にテンプレートを変更してください。
#  perl が分からないとちょっち厳しいかもしれません。
#  qq(...) というのは、ほぼ "..." と同義ですが、
#  中身の " をエスケープする必要がありません。 "
#
#  %year,%href などのパラメータについては、ドキュメントを参照して下さい。
#
################################################################

# コマンドテンプレート

# TDS::Tdf::Command::* を上書き変更している （1.00-beta2 より）
package TDS::Tdf::Command::DIARY;
$Template = qq(<H2 CLASS="tds-date"><A HREF="%href" NAME="%anchor">%date</A></H2>\n);
$EndTemplate = "<HR>\n";
$DateFormat = "%year/%month/%day(%week)";

package TDS::Tdf::Command::TIMEDIV;
$Template = qq(<h3><a href="%href" name="%anchor">%mark</a>%ext_attrs</h3>\n);
$EndTemplate = qq();
$Mark = "◇";

package TDS::Tdf::Command::NEW;
$Template = qq(<H3 CLASS="tds-title"><A HREF="%href" NAME="%anchor">%mark</A>%cat %ext_attrs</H3>\n<DIV CLASS="tds-content">);
$EndTemplate = "%footnote</DIV>\n";
$Mark = "○";

package TDS::Tdf::Command::SNEW;
$Template = qq(<H3 CLASS="tds-title"><A HREF="%href" NAME="%anchor">%mark</A>%cat %ext_attrs</H3>\n<DIV CLASS="tds-content"><DIV CLASS="secret">);
$EndTemplate = qq(%footnote</DIV></DIV>\n);
$Mark = "○";

package TDS::Tdf::Command::SUB;
$Template = qq(<H4 CLASS="tds-subtitle"><A HREF="%href" NAME="%anchor">%mark</A>%cat %ext_attrs</H4>\n);
$EndTemplate = "";
$Mark = "_";

package TDS::Tdf::Command::STRIKE;
$Template = q(<SPAN STYLE="text-decoration: line-through;">);
$EndTemplate = q(</SPAN>);
# CSS 無効の場合も strike したい場合は下のコメントアウトを外す
# でも deprecated よん
#$Template = q(<STRIKE>);
#$EndTemplate = q(</STRIKE>);

package TDS::Tdf::Command::UNDERLINE;
$Template = q(<SPAN STYLE="text-decoration: underline;">);
$EndTemplate = q(</SPAN>);
# これも
#$Template = q(<U>);
#$EndTemplate = q(</U>);

# FN_Formatter : 脚注表示部
package TDS::Tdf::Command::FN_Formatter;
$Template = qq(<HR STYLE="width: 40%; text-align: left;"><DIV>\n);
#$Template = qq(<DIV>-------<BR>);    # <hr> を使いたく無い場合こっち
$EndTemplate = qq(<BR></DIV>\n);


# 表示分説明文
package TDS::Explain;

$Recent = "Latest %num days";
$Month = "%year/%month All";
$Day = "%year/%month/%day";
$Part = "%year/%month %part";
$EachPart = "All,Early,Middle,Late";
$Search = "Search : %keyword";

# PIM テンプレート
package TDS::PIM::Schedule;

# 1.00-pl3 から %date, $DateFormat, $ContentSpanTemplate  を新設
#$ContentTemplate = qq(<LI><SPAN STYLE="color: %color;">%year/%month/%day(%week_holy)%delim%content</SPAN></LI>\n);
$ContentTemplate = qq(<LI><SPAN STYLE="color: %color;">%date%delim%content</SPAN></LI>\n);
$ContentSpanTemplate = qq(<LI><SPAN STYLE="color: %color;">%start_date-%end_date%delim%content</SPAN></LI>\n);
$DateFormat = qq(%year/%month/%day(%week_holy));
$DateFormatMonthly = qq(%year/%month);
$NextMonthTemplate = qq(%month);
$BeginTemplate = "<UL>\n";
$EndTemplate = "</UL>\n";

$Delim = ":";

$NormalColor = "black";
$TodayColor  = "red";

package TDS::PIM::Todo;
$ContentTemplate = qq(<LI><SPAN STYLE="color: %color;">%priority%delim%content</SPAN></LI>);
$BeginTemplate = "<UL>\n";
$EndTemplate = "</UL>\n";

$Delim = ":";

$NormalColor   = "black";
$EmphasisColor = "red";
$StrongColor   = "orange";

# マクロテンプレート
package TDS::Renderer;

$LAST_MODIFIED = "%a, %d %b %Y %H:%M:%S %Z";
$RECENT = "[Latest]";
$REFRESH = "[Refresh]";
$NEXT_MONTH = "&gt;&gt;";
$PREV_MONTH = "&lt;&lt;";
$THIS_MONTH = "==";
$SUBMIT_JUMP = "Jump";
$SUMMARY = "[Summary]";
$CATEGORY = 'ALL';
$SEARCH_SUBMIT =  "Search";
$SEARCH_RESULT = "<P>%num found on %diary day(s).</P>";
$SEARCH_SELECT_SORT =  "Newer,Older";
$SEARCH_SELECT_OBJECT = "Selected month,Latest three months,Latest year,All";
$AUTHOR_MANAGEMENT =  "[Management]";
$TDF_EDITOR = "[TdfEditor]";
$URL_LIST = "[URL List]";
$DICTIONARY = "[Dictionary]";
$LOG_ANALYSE_ANCHOR =  "[LogAnalyse]";
$TITLE_SUMMARY = "[Title]";
$COMMENT_SUBMIT = "Send";
$COMMENT_SHOW_ALL_SUBMIT = "Show the past";

# 一覧テンプレート
package TDS::Summary;
$YearTemplate = "<H2>%year</H2>\n<UL>\n";
$YearEndTemplate = "</UL>\n";
$MonthTemplate = qq(<LI><A HREF="%href">%month</A>: );
$MonthNolinkTemplate = qq(<LI>%month</A>);
$MonthEndTemplate = "</LI>\n";
$PartTemplate = qq([<A HREF="%href">%part_str</A>]);
$PartTemplateNone = qq((%part));
$PartEndTemplate = undef;
$EachPart = "EARLY,MIDDLE,LATE";

$MonthlyHrefTemplateDynamic = "./?%0y%0m";
$MonthlyHrefTemplateStatic  = "d%0y%0m.%suffix";
$PartlyHrefTemplateDynamic = "./?%0y%0m%part";
$PartlyHrefTemplateStatic  = "d%0y%0m%part.%suffix";

$Reverse = 0;

# カウンタテンプレート
package TDS::AccessLog::Counter;
$Template = "%all/%today(%times)";

# 一言
package TDS::Comment;
$DefaultComment = "I read your diary.";

# カレンダー
package TDS::Calendar;
$TableBorder = 0;
@WeekString = ('<SPAN STYLE="color: red;">Sun</SPAN>', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', '<SPAN STYLE="color: blue;">Sat</SPAN>');
$NextTemplate = "Next";
$PrevTemplate = "Prev";
$ThisTemplate = "%year/%month";

$HrefTemplateShowed = "#%anchor";
$HrefTemplateUnshowedDynamic = "./?%y%0m%part#%anchor";
$HrefTemplateUnshowedStatic = "d%y%0m%part.%suffix#%anchor";

$UseTable = 'auto';
@NoTableBrowsers = qw(lynx w3);

1;
