OSDN Git Service

In the document, navigation between the English/Japanese versions is possible in...
authortoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Tue, 20 Dec 2011 10:48:33 +0000 (10:48 +0000)
committertoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Tue, 20 Dec 2011 10:48:33 +0000 (10:48 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@165 a2be9bc6-48de-4e38-9406-05402d4bc13c

Documents/etc/style.css
Documents/makedoc.rb
Documents/src/doc_source.html

index e9c713a..374b74e 100644 (file)
@@ -120,4 +120,8 @@ span.italic {
 
 span.bold {
     font-weight: bold;
-}
\ No newline at end of file
+}
+
+span.float_right {
+    float: right;
+}
index 1b08154..c403386 100644 (file)
@@ -1,4 +1,5 @@
 #!/usr/bin/ruby
+# -*- coding: utf-8 -*-
 require "rexml/document"
 
 class REXML::Element
@@ -162,6 +163,11 @@ def special_node(e, ef, lang)
       c.push(REXML::Text.new(" &nbsp;&nbsp; ", 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)
@@ -193,6 +199,11 @@ def special_node(e, ef, lang)
       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")
index d78db10..64a0e21 100644 (file)
 <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">
@@ -103,7 +106,7 @@ Installation procedures are described below for each of these platforms.
 
 <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>