#!/usr/bin/ruby
+# -*- coding: utf-8 -*-
require "rexml/document"
class REXML::Element
c.push(REXML::Text.new(" ", false, nil, true))
c.push(make_a_element(href, (lang == "ja" ? "[次]" : "[Next]")))
end
+ otherlang = (lang == "ja" ? "en" : "ja")
+ n = REXML::Element.new("span")
+ n.add_attribute("class", "float_right")
+ n.add(make_a_element('../' + otherlang + '/' + ef.attributes['file'], (otherlang == "ja" ? "[Japanese]" : "[English]")))
+ c.push(n)
c.each { |n|
if n.is_a?(String)
en.add_text(n)
en.add(make_a_element(href, (lang == "ja" ? "[次: #{ep.title_ja}]" : "[Next: #{ep.title_en}]")))
en.add_text(" ")
end
+ otherlang = (lang == "ja" ? "en" : "ja")
+ n = REXML::Element.new("span")
+ n.add_attribute("class", "float_right")
+ n.add(make_a_element('../' + otherlang + '/' + ef.attributes['file'], (otherlang == "ja" ? "[Japanese]" : "[English]")))
+ en.add(n)
elsif id == "\#toc"
en = REXML::Element.new("div")
en.add_attribute("class", "contents")
<body>
<div file="index.html">
+<link id="#header" />
<div class="centered" lang="en">
<h1>Molby</h1>
<h2>An Interactive Molecular Modeling Software<br />with Integrated Ruby Interpreter</h2>
<h3>Version 0.6.1</h3> <!-- version -->
<h3>Toshi Nagata</h3>
+<p><a href="http://molby.sourceforge.jp/index-en.html">http://molby.sourceforge.jp/index-en.html</a></p>
</div>
<div class="centered" lang="ja">
<h1>Molby</h1>
<h2>対話型分子モデリングソフトウェア<br />(Ruby インタプリタ内蔵)</h2>
<h3>Version 0.6.1</h3> <!-- version -->
<h3>永田 央</h3>
+<p><a href="http://molby.sourceforge.jp/index.html">http://molby.sourceforge.jp/index.html</a></p>
</div>
<hr />
<div class="contents" lang="en">
<h2>2. Get the Software</h2>
<p>
-Download from the official distribution web site, <a href="http://sourceforge.jp/projects/molby/">http://sourceforge.jp/projects/molby/</a>.
+Download from the official distribution web site, <a href="http://en.sourceforge.jp/projects/molby/">http://en.sourceforge.jp/projects/molby/</a>.
</p>
<h2>3. Installation</h2>