ulmul 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/README-en +6 -2
- data/README-ja +6 -3
- data/index.en.html +10 -12
- data/index.ja.html +10 -15
- data/lib/ulmul.rb +2 -2
- data/ulmul.gemspec +11 -3
- metadata +5 -5
data/ChangeLog
CHANGED
data/README-en
CHANGED
@@ -32,12 +32,12 @@ ulmul-X.Y.Z.tgz package can be installed as:
|
|
32
32
|
$ cd ulmul-X.Y.Z
|
33
33
|
$ su
|
34
34
|
# ruby setup.rb
|
35
|
-
Note that the
|
35
|
+
Note that the eim_xml and math_ml libraries are required.
|
36
36
|
=== II. RubyGems users can take an easy way
|
37
37
|
There is an easy way, if you are a RubyGems user:
|
38
38
|
$ su
|
39
39
|
# gem install ulmul
|
40
|
-
If you do not have the
|
40
|
+
If you do not have the eim_xml and math_ml libraries, gem will download and install the
|
41
41
|
library automatically.
|
42
42
|
|
43
43
|
== How to write ULMUL texts
|
@@ -135,6 +135,8 @@ output HTML file, set it 3..2.
|
|
135
135
|
* Its source is http://loto.sourceforge.net/feram/README
|
136
136
|
* http://loto.sourceforge.net/feram/doc/film.xhtml
|
137
137
|
* It is a Slidy presentation made from http://loto.sourceforge.net/feram/doc/film.txt
|
138
|
+
* http://ulmul.rubyforge.org/index.en.html
|
139
|
+
* Its source is http://ulmul.rubyforge.org/README-en (this document)
|
138
140
|
|
139
141
|
== TODO
|
140
142
|
* rescue syntax errors (raises) in an input file and report the
|
@@ -151,6 +153,8 @@ You can checkout the latest source tree of ULMUL anonymously from RubyForge with
|
|
151
153
|
$ svn co svn://rubyforge.org/var/svn/ulmul/ulmul/trunk ulmul
|
152
154
|
|
153
155
|
== Copying
|
156
|
+
Copyright © 2008-2010 by Takeshi Nishimatsu
|
157
|
+
|
154
158
|
ulmul.rb is distributed in the hope that
|
155
159
|
it will be useful, but WITHOUT ANY WARRANTY.
|
156
160
|
You can copy, modify and redistribute ulmul.rb,
|
data/README-ja
CHANGED
@@ -24,7 +24,6 @@ Rubyで書かれています。ulmul.rbをライブラリとして利用する
|
|
24
24
|
* 目次 (Contents) を自動的に生成できます。
|
25
25
|
* はじめの「= ABCD EFGH」がタイトルになります。Slidyの表紙にもなります。
|
26
26
|
* テキストファイルはutf-8で書きます。自然言語は--language=jaなどとオプションで指定できます。
|
27
|
-
などが特徴です。
|
28
27
|
|
29
28
|
== インストール方法
|
30
29
|
2通りのインストール方法があります。
|
@@ -33,9 +32,9 @@ Rubyで書かれています。ulmul.rbをライブラリとして利用する
|
|
33
32
|
$ tar zxf ulmul-X.Y.Z.tgz
|
34
33
|
$ cd ulmul-X.Y.Z
|
35
34
|
$ sudo ruby setup.rb
|
36
|
-
なお、ULMULを使うには
|
35
|
+
なお、ULMULを使うにはeim_xmlライブラリとmath_mlライブラリとが必要です。
|
37
36
|
=== II. RubyGemsを使えば簡単にインストールができます
|
38
|
-
gemでインストールすれば
|
37
|
+
gemでインストールすればeim_xmlライブラリとmath_mlライブラリとは自動的にインストールされます:
|
39
38
|
$ sudo gem install ulmul
|
40
39
|
|
41
40
|
== ULMULテキストの書き方
|
@@ -142,6 +141,8 @@ JavaScriptのファイル名を指定します。
|
|
142
141
|
* ソースは http://loto.sourceforge.net/feram/README
|
143
142
|
* http://loto.sourceforge.net/feram/doc/film.xhtml
|
144
143
|
* ソースは http://loto.sourceforge.net/feram/doc/film.txt
|
144
|
+
* http://ulmul.rubyforge.org/index.ja.html
|
145
|
+
* ソースは http://ulmul.rubyforge.org/README-ja (この文章)
|
145
146
|
|
146
147
|
== ulmul.rbの仕組み
|
147
148
|
入力の各行をイベントとして状態遷移しています。
|
@@ -154,6 +155,8 @@ svn(1)コマンドを使って
|
|
154
155
|
とcheckoutできます。
|
155
156
|
|
156
157
|
== 著作権表示
|
158
|
+
Copyright © 2008-2010 by Takeshi Nishimatsu
|
159
|
+
|
157
160
|
ulmul.rb is distributed in the hope that
|
158
161
|
it will be useful, but WITHOUT ANY WARRANTY.
|
159
162
|
You can copy, modify and redistribute ulmul.rb,
|
data/index.en.html
CHANGED
@@ -92,7 +92,7 @@ ulmul-X.Y.Z.tgz package can be installed as:
|
|
92
92
|
# ruby setup.rb
|
93
93
|
</pre>
|
94
94
|
<p>
|
95
|
-
Note that the
|
95
|
+
Note that the eim_xml and math_ml libraries are required.
|
96
96
|
</p>
|
97
97
|
<h3 id="LABEL-5">II. RubyGems users can take an easy way</h3>
|
98
98
|
<p>
|
@@ -102,7 +102,7 @@ There is an easy way, if you are a RubyGems user:
|
|
102
102
|
# gem install ulmul
|
103
103
|
</pre>
|
104
104
|
<p>
|
105
|
-
If you do not have the
|
105
|
+
If you do not have the eim_xml and math_ml libraries, gem will download and install the
|
106
106
|
library automatically.
|
107
107
|
</p>
|
108
108
|
</div>
|
@@ -172,16 +172,7 @@ Output:
|
|
172
172
|
</p>
|
173
173
|
<p>
|
174
174
|
Mass <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>m</mi></math> can be converted into energy <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>E</mi></math> as
|
175
|
-
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'>
|
176
|
-
<mi>E</mi>
|
177
|
-
<mo>=</mo>
|
178
|
-
<mi>m</mi>
|
179
|
-
<msup>
|
180
|
-
<mi>c</mi>
|
181
|
-
<mn>2</mn>
|
182
|
-
</msup>
|
183
|
-
<mo>.</mo>
|
184
|
-
</math>
|
175
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo>.</mo></math>
|
185
176
|
</p>
|
186
177
|
<p>
|
187
178
|
To view the equations in MathML correctly, please use
|
@@ -271,6 +262,10 @@ output HTML file, set it 3..2.
|
|
271
262
|
<ul>
|
272
263
|
<li>It is a Slidy presentation made from <a href="http://loto.sourceforge.net/feram/doc/film.txt">http://loto.sourceforge.net/feram/doc/film.txt</a></li>
|
273
264
|
</ul></li>
|
265
|
+
<li><a href="http://ulmul.rubyforge.org/index.en.html">http://ulmul.rubyforge.org/index.en.html</a>
|
266
|
+
<ul>
|
267
|
+
<li>Its source is <a href="http://ulmul.rubyforge.org/README-en">http://ulmul.rubyforge.org/README-en</a> (this document)</li>
|
268
|
+
</ul></li>
|
274
269
|
</ul>
|
275
270
|
</div>
|
276
271
|
|
@@ -304,6 +299,9 @@ You can checkout the latest source tree of ULMUL anonymously from RubyForge with
|
|
304
299
|
<div class="slide">
|
305
300
|
<h2 id="LABEL-30">Copying</h2>
|
306
301
|
<p>
|
302
|
+
Copyright © 2008-2010 by Takeshi Nishimatsu
|
303
|
+
</p>
|
304
|
+
<p>
|
307
305
|
ulmul.rb is distributed in the hope that
|
308
306
|
it will be useful, but WITHOUT ANY WARRANTY.
|
309
307
|
You can copy, modify and redistribute ulmul.rb,
|
data/index.ja.html
CHANGED
@@ -75,9 +75,6 @@ Rubyで書かれています。ulmul.rbをライブラリとして利用する
|
|
75
75
|
<li>はじめの「= ABCD EFGH」がタイトルになります。Slidyの表紙にもなります。</li>
|
76
76
|
<li>テキストファイルはutf-8で書きます。自然言語は--language=jaなどとオプションで指定できます。</li>
|
77
77
|
</ul>
|
78
|
-
<p>
|
79
|
-
などが特徴です。
|
80
|
-
</p>
|
81
78
|
</div>
|
82
79
|
|
83
80
|
|
@@ -95,11 +92,11 @@ Rubyで書かれています。ulmul.rbをライブラリとして利用する
|
|
95
92
|
$ sudo ruby setup.rb
|
96
93
|
</pre>
|
97
94
|
<p>
|
98
|
-
なお、ULMULを使うには
|
95
|
+
なお、ULMULを使うにはeim_xmlライブラリとmath_mlライブラリとが必要です。
|
99
96
|
</p>
|
100
97
|
<h3 id="LABEL-5">II. RubyGemsを使えば簡単にインストールができます</h3>
|
101
98
|
<p>
|
102
|
-
gemでインストールすれば
|
99
|
+
gemでインストールすればeim_xmlライブラリとmath_mlライブラリとは自動的にインストールされます:
|
103
100
|
</p>
|
104
101
|
<pre> $ sudo gem install ulmul
|
105
102
|
</pre>
|
@@ -171,16 +168,7 @@ Eq. 1
|
|
171
168
|
</p>
|
172
169
|
<p>
|
173
170
|
Mass <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>m</mi></math> can be converted into energy <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>E</mi></math> as
|
174
|
-
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'>
|
175
|
-
<mi>E</mi>
|
176
|
-
<mo>=</mo>
|
177
|
-
<mi>m</mi>
|
178
|
-
<msup>
|
179
|
-
<mi>c</mi>
|
180
|
-
<mn>2</mn>
|
181
|
-
</msup>
|
182
|
-
<mo>.</mo>
|
183
|
-
</math>
|
171
|
+
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo>.</mo></math>
|
184
172
|
</p>
|
185
173
|
<p>
|
186
174
|
数式を正しくご覧いただくには
|
@@ -278,6 +266,10 @@ JavaScriptのファイル名を指定します。
|
|
278
266
|
<ul>
|
279
267
|
<li>ソースは <a href="http://loto.sourceforge.net/feram/doc/film.txt">http://loto.sourceforge.net/feram/doc/film.txt</a></li>
|
280
268
|
</ul></li>
|
269
|
+
<li><a href="http://ulmul.rubyforge.org/index.ja.html">http://ulmul.rubyforge.org/index.ja.html</a>
|
270
|
+
<ul>
|
271
|
+
<li>ソースは <a href="http://ulmul.rubyforge.org/README-ja">http://ulmul.rubyforge.org/README-ja</a> (この文章)</li>
|
272
|
+
</ul></li>
|
281
273
|
</ul>
|
282
274
|
</div>
|
283
275
|
|
@@ -308,6 +300,9 @@ svn(1)コマンドを使って
|
|
308
300
|
<div class="slide">
|
309
301
|
<h2 id="LABEL-30">著作権表示</h2>
|
310
302
|
<p>
|
303
|
+
Copyright © 2008-2010 by Takeshi Nishimatsu
|
304
|
+
</p>
|
305
|
+
<p>
|
311
306
|
ulmul.rb is distributed in the hope that
|
312
307
|
it will be useful, but WITHOUT ANY WARRANTY.
|
313
308
|
You can copy, modify and redistribute ulmul.rb,
|
data/lib/ulmul.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# ulmul.rb
|
3
|
-
# Time-stamp: <2010-
|
3
|
+
# Time-stamp: <2010-06-06 20:10:52 takeshi>
|
4
4
|
# Author: Takeshi Nishimatsu
|
5
5
|
##
|
6
6
|
require "rubygems"
|
@@ -72,7 +72,7 @@ class Contents
|
|
72
72
|
end
|
73
73
|
|
74
74
|
class Ulmul
|
75
|
-
VERSION = '0.4.
|
75
|
+
VERSION = '0.4.1'
|
76
76
|
CONTENTS_HERE="<!-- Contents -->"
|
77
77
|
CONTENTS_RANGE_DEFAULT=2..3
|
78
78
|
TABLE={
|
data/ulmul.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ulmul.gemspec -*-ruby-*-
|
2
|
-
# Time-stamp: <2010-
|
2
|
+
# Time-stamp: <2010-06-06 20:09:18 takeshi>
|
3
3
|
# Author: Takeshi Nishimatsu
|
4
4
|
##
|
5
5
|
Gem::Specification.new do |s|
|
@@ -30,9 +30,17 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.has_rdoc = true
|
31
31
|
# s.extra_rdoc_files = %w(README)
|
32
32
|
|
33
|
-
s.add_dependency('
|
33
|
+
s.add_dependency('math_ml', '>=0.9')
|
34
34
|
|
35
35
|
s.description = <<-EOF
|
36
|
-
ULMUL is an Ultra Lightweight
|
36
|
+
"ULMUL" is an original Ultra Lightweight MarkUp Language.
|
37
|
+
ULMUL texts can be converted into HTML5 with "ulmul2html5" command
|
38
|
+
and into XHTML with "ulmul2xhtml" command.
|
39
|
+
TeX style equations are converted into MathML.
|
40
|
+
ULMUL is written in Ruby.
|
41
|
+
You can also use ulmul.rb as a library.
|
42
|
+
Visit its project homepage http://ulmul.rubyforge.org/ .
|
43
|
+
|
44
|
+
Use ulmul-slidy.js and ulmul-slidy.css in the ulmul package for your presentations using Firefox.
|
37
45
|
EOF
|
38
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ulmul
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takeshi Nishimatsu
|
@@ -9,20 +9,20 @@ autorequire: lib/ulmul.rb
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-06-06 00:00:00 +09:00
|
13
13
|
default_executable: ulmul2html5
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: math_ml
|
17
17
|
type: :runtime
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.
|
23
|
+
version: "0.9"
|
24
24
|
version:
|
25
|
-
description: " ULMUL is an Ultra Lightweight
|
25
|
+
description: " \"ULMUL\" is an original Ultra Lightweight MarkUp Language.\n ULMUL texts can be converted into HTML5 with \"ulmul2html5\" command\n and into XHTML with \"ulmul2xhtml\" command.\n TeX style equations are converted into MathML.\n ULMUL is written in Ruby.\n You can also use ulmul.rb as a library.\n Visit its project homepage http://ulmul.rubyforge.org/ .\n\n Use ulmul-slidy.js and ulmul-slidy.css in the ulmul package for your presentations using Firefox.\n"
|
26
26
|
email: t-nissie@imr.tohoku.ac.jp
|
27
27
|
executables:
|
28
28
|
- ulmul2html5
|