annotate o2s5.source @ 2:85a60c32503c default tip

theme fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 24 Sep 2011 04:00:11 +0900
parents 450bcedf4ed4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #!/usr/bin/perl
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
5 my $depth = 0;
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
6 my $section = 1;
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
7 my $note = 1;
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
8 my $abstract = 0;
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
9 my $current = fh000;
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
10 my $tag = "content000";
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
12 my $back = "white";
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
13 my $fore = "black";
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
15 my $subtitle = '';
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
16 my $affilation = '';
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
17 my $closing = "</div>";
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
18 my $opening = '<div class="slide">';
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
19 my $xoxo = '';
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
21 my $tfont = 1;
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
23 my $ul = 0;
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
24 my $theme = "default";
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
25 my $in_title = "";
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 @opt = grep(! /\.ind/,@ARGV);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 @ARGV = grep( /\.ind/,@ARGV);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 sub title_init {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 if (grep(/-p/,@opt)) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 $theme = "pixel";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 } elsif (grep(/-f/,@opt)) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 $theme = "flower";
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
36 } elsif (grep(/-n/,@opt)) {
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
37 $theme = "nautilus";
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
38 } elsif (grep(/-i/,@opt)) {
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
39 $theme = "i18n";
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
40 } elsif (grep(/-b/,@opt)) {
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
41 $theme = "blue";
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 } elsif (grep(/-2/,@opt)) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 $closing = "</div>";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 $opening = '<div class="slide">';
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 } else {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 $xoxo = '<ol class="xoxo presentation">'
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 $slidy_init = <<"RogueRogue";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 <?xml version="1.0" encoding="utf-8"?>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-US">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 <head>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 <meta name="generator" content=
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 "HTML Tidy for Linux/x86 (vers 1st November 2003), see www.w3.org" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 <title>HTML Slidy</title>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 <meta name="copyright" content=
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 "Copyright &#169; 2005-2010 W3C (MIT, ERCIM, Keio)" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 <meta name="duration" content="5" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 <meta name="font-size-adjustment" content="-2" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 <link rel="stylesheet" href="ui/slidy2/styles/slidy.css" type="text/css" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 <link rel="stylesheet" href="ui/slidy2/styles/w3c-blue.css" type="text/css" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 <script src="ui/slidy2/scripts/slidy.js" charset="utf-8" type="text/javascript">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 </script>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 </head>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 <body>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 <div class="background"><img alt="" id="head-icon"
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 src="ui/slidy2/graphics/icon-blue.png" /><object id="head-logo"
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 data="ui/slidy2/graphics/w3c-logo-white.svg" type="image/svg+xml"
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 title="W3C logo"><a href="http://www.w3.org/"><img
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 alt="W3C logo" id="head-logo-fallback"
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 src="ui/slidy2/graphics/w3c-logo-white.gif" /></a></object></div>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
75
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 <div class="background slanty">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 <img src="ui/slidy2/graphics/w3c-logo-slanted.jpg" alt="slanted W3C logo" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
78 </div>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 <div class="slide cover title">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 <!-- hidden style graphics to ensure they are saved with other content -->
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 <img class="hidden" src="ui/slidy2/graphics/bullet.png" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
82 <img class="hidden" src="ui/slidy2/graphics/fold.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 <img class="hidden" src="ui/slidy2/graphics/unfold.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 <img class="hidden" src="ui/slidy2/graphics/fold-dim.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 <img class="hidden" src="ui/slidy2/graphics/nofold-dim.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 <img class="hidden" src="ui/slidy2/graphics/unfold-dim.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 <img class="hidden" src="ui/slidy2/graphics/bullet-fold.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 <img class="hidden" src="ui/slidy2/graphics/bullet-unfold.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 <img class="hidden" src="ui/slidy2/graphics/bullet-fold-dim.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 <img class="hidden" src="ui/slidy2/graphics/bullet-nofold-dim.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 <img class="hidden" src="ui/slidy2/graphics/bullet-unfold-dim.gif" alt="" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
92
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 <img src="ui/slidy2/graphics/keys2.jpg" alt="Cover page images (keys)"
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 class="cover" /><br clear="all" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 <h1>$title</h1>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
96
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 <p><a>$author</a>,
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
98 $in_title
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 <br />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 <br />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 <br />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 </div>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
103 RogueRogue
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
104
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 $init = <<"RogueRogue";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 <html>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
110
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
111 <html xmlns="http://www.w3.org/1999/xhtml">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
112
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
113 <head>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 <title>$title</title>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 <!-- metadata -->
1
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
116 <meta name="generator" content="o2s5" />
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
117 <meta name="version" content="0.1" />
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
118 <meta name="author" content="Shinji KONO" />
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
119 <meta name="company" content="" />
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
120 <!-- configuration parameters -->
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 <meta name="defaultView" content="slideshow" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
122 <meta name="controlVis" content="hidden" />
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
123 <!-- style sheet links -->
1
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
124 <link href="ui/syntax.css" id="syntaxStyle" media="all" rel="stylesheet" type="text/css" />
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
125 <link href="ui/core/outline.css" id="outlineStyle" media="screen" rel="stylesheet" type="text/css" />
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
126 <link href="ui/core/print.css" id="slidePrint" media="print" rel="stylesheet" type="text/css" />
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
127 <link href="ui/core/opera.css" id="operaFix" media="projection" rel="stylesheet" type="text/css" />
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
128 <link href="ui/core/math.css" id="mathStyle" media="all" rel="stylesheet" type="text/css" />
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
129 <link href="ui/themes/$theme/slides.css" id="slideProj" media="projection" rel="stylesheet" type="text/css" />
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
130 <!-- S5 JS -->
1
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
131 <script src="ui/prototype.js" type="text/javascript"></script>
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
132 <script type="text/x-mathjax-config">
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
133 MathJax.Hub.Config({
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
134 MathML: { useMathMLspacing: true },
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
135 "HTML-CSS": { scale: 90 }
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
136 });
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
137 if (window._onload_fired_) MathJax.Hub.Startup.onload();
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
138 </script>
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
139 <script type="text/javascript">
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
140 if (!(Prototype.Browser.Gecko || navigator.userAgent.match(/MathPlayer/))) {
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
141 var s = document.createElement('script');
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
142 s.src = "ui/MathJax/MathJax.js?config=MML_HTMLorMML";
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
143 document.querySelector('head').appendChild(s);
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
144 window.addEventListener("load", function(){window._onload_fired_ = true} , false);
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
145 };
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
146 </script>
450bcedf4ed4 multiple theme
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
147 <script src="ui/core/slides.js" type="text/javascript"></script>
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 </head>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
149 <body>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
150
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
151 <div class="layout">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
152 <div id="controls"><!-- DO NOT EDIT --></div>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
153 <div id="currentSlide"><!-- DO NOT EDIT --></div>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
154 <div id="header"></div>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
155 <div id="footer">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
156 <h1>$title</h1>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
157 <h2>$author</h2>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
158 </div>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
159 </div>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
160 $xoxo
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
161 <div class="presentation">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
162 <div class="slide">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
163 <h1>$title</h1>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
164 <h2>$subtitle</h2>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
165 <h3>$author</h3>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
166 <h4>$affilation</h4>
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
167 $in_title
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
168
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
169 RogueRogue
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
170
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
171 if (grep(/-2/,@opt)) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
172 $closing = "</div>";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
173 $opening = '<div class="slide">';
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
174 $init = $slidy_init;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
175 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
176 &init();
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
177 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
178
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
179 sub o2s5 {
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
180 my ($current) = @_;
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
181 %content = ();
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
182
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
183 my $in_comment = 0;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
184
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
185 line: while (<$current>) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
186 if (/^<!---/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
187 $in_comment = 1;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
188 next;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
189 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
190 if ($in_comment) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 if (/^<.*--->/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 $in_comment = 0;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
193 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
194 next;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
195 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
196 chop; # strip record separator
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
197 s/([^\\])\\n/\1\n/g;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
198 s/\\\\/\\/g;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
199 if( (!/^\s/) && (!/^$/) && $pre) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
200 print $fh "</pre>\n";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
201 $pre = 0;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
202 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
203 if (/^-*input: (.*)/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
204 my $fd;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
205 # $fdbase = $current; $fdbase ++;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
206 open($fd,"<$1");
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
207 $fdbase = $fd;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
208 push(@depend,$1);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
209 # print STDOUT "$1 ";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
210 do o2s5($fdbase);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
211 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
212 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
213 if (/^-title:/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
214 $title = substr($_, 8, length($_) - 7);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
215 # &title($title);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
216 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
217 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
218 if (/^--*date:/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
219 for ($tmp = 1; substr($_, $tmp, 1) eq '-'; $tmp++) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
220 ;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
221 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
222 $tmp += 5;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
223 $day = substr($_, $tmp, length($_) - $tmp + 1);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
224 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
225 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
226 if (/^--*number:/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
227 for ($tmp = 1; substr($_, $tmp, 1) eq '-'; $tmp++) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
228 ;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
229 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
230 $tmp += 7;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
231 $number = substr($_, $tmp, length($_) - $tmp + 1);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
232 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
233 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
234 if (/^--*note:/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
235 $note = 2;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
236 # printf $fh "<quote>\n";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
237 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
238 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
239 if (/^--*author:/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
240 for ($tmp = 1; substr($_, $tmp, 1) eq '-'; $tmp++) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
241 ;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
242 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
243 $tmp += 7;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
244 $author = substr($_, $tmp, length($_) - $tmp + 1);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
245 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
246 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
247 if (/^--*affilation:/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
248 for ($tmp = 1; substr($_, $tmp, 1) eq '-'; $tmp++) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
249 ;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
250 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
251 $tmp += 11;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
252 $affilation = substr($_, $tmp, length($_) - $tmp + 1);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
253 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
254 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
255 if (/^--*subtitle:/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
256 for ($tmp = 1; substr($_, $tmp, 1) eq '-'; $tmp++) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
257 ;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
258 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
259 $tmp += 9;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
260 $subtitle = substr($_, $tmp, length($_) - $tmp + 1);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
261 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
262 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
263 if (/^--*abstract:/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
264 $abstract = 1;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
265 # printf $fh "\n";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
266 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
267 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
268 if (/^-/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
269 if ($ul) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
270 print $fh "</ul>\n";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
271 $ul = 0;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
272 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
273 if ($title && $title ne 'done') {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
274 &title($title);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
275 $title = 'done';
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
276 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
277 if ($abstract == 1) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
278 # printf $fh "\n";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
279 $abstract = 0;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
280 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
281 if ($note) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
282 if ($note == 2) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
283 # printf $fh "\n";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
284 $note = 0;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
285 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
286 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
287 for ($depth = 1; substr($_, $depth, 1) eq '-'; $depth++) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
288 ;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
289 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
290 $section_title = substr($_, $depth, length($_) - $depth + 1);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
291 if ($section) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
292 print $fh <<"RogueRogue";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
293 $closing
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
294 RogueRogue
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
295 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
296 print $fh <<RogueRogue;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
297 $opening
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
298 <h1>$section_title</h1>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
299 RogueRogue
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
300 $section++;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
301 $content{$tag} = " " x $depth . $section_title;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
302 $tag++;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
303 next line;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
304 }
2
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
305 if ($title ne 'done') {
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
306 $in_title .= $_;
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
307 next;
85a60c32503c theme fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
308 }
0
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
309
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
310 if (/^\t/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
311 if (! $ul) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
312 $ul = 1;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
313 print $fh "<ul>";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
314 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
315 print $fh "<li>$_\n</li>\n";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
316 $paragraph = 0;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
317 } elsif (/^\s/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
318 if(! $pre) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
319 $pre = 1;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
320 print $fh "<pre>";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
321 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
322 $paragraph = 0;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
323 print $fh $_,"<br>\n";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
324 } elsif (/^$/) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
325 if(! $pre && ! $paragraph) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
326 print $fh $_,"<p>";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
327 $paragraph = 1;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
328 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
329 } else {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
330 print $fh $_,"<br>\n";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
331 $paragraph = 0;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
332 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
333 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
334 # if (defined $section_title) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
335 # }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
336
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
337 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
338
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
339
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
340 foreach $arg (@ARGV) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
341 my $fd;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
342 # $fdbase = $current; $fdbase ++;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
343 open($fd,"<$arg") || die("$arg cannot open");
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
344 $fdbase = $fd;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
345 $out = $arg;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
346 $out =~ s/\.ind$//;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
347 $out =~ s/\.index$//;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
348 $out .= ".html";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
349 # $fh = "out00";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
350 if($arg eq $out) {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
351 $out .= ".html";
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
352 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
353 my $ofd;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
354 open($ofd,"|nkf -w >$out");
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
355 $fh = $ofd;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
356 do o2s5($fdbase);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
357 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
358
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
359 close($fh);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
360
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
361
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
362
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
363
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
364
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
365
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
366 sub init {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
367
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
368 open(IN,"| tar zxf -");
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
369
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
370 my $tmp = << 'EOFEOF';
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
371 REPLACED-BY-FILE
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
372 EOFEOF
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
373
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
374 print IN unpack("u*",$tmp);
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
375 close IN;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
376
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
377 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
378
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
379 # <!--入口--->
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
380
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
381 sub title {
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
382 $title = $_[0];
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
383 &title_init;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
384
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
385 # <!-- embedded styles -->
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
386 # <style type="text/css" media="all">
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
387 # .imgcon {width: 525px; margin: 0 auto; padding: 0; text-align: center;}
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
388 # #anim {width: 270px; height: 320px; position: relative; margin-top: 0.5em;}
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
389 # #anim img {position: absolute; top: 42px; left: 24px;}
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
390 # img#me01 {top: 0; left: 0;}
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
391 # img#me02 {left: 23px;}
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
392 # img#me04 {top: 44px;}
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
393 # img#me05 {top: 43px;left: 36px;}
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
394 # </style>
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
395
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
396 print $fh $init;
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
397
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
398
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
399 }
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
400
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
401
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
402
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
403
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
404
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
405
b0c6281822f5 o2s5 with theme and slidy
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
406 # end