ulmul 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. data/README-en +118 -63
  2. data/README-ja +92 -58
  3. data/Rakefile +26 -10
  4. data/bin/ulmul2html5 +7 -58
  5. data/bin/ulmul2latex +34 -0
  6. data/bin/ulmul2xhtml +6 -58
  7. data/google-code-prettify/CHANGES.html +130 -0
  8. data/google-code-prettify/COPYING +202 -0
  9. data/google-code-prettify/README-zh-Hans.html +143 -0
  10. data/google-code-prettify/README.html +203 -0
  11. data/google-code-prettify/src/lang-apollo.js +51 -0
  12. data/google-code-prettify/src/lang-css.js +78 -0
  13. data/google-code-prettify/src/lang-fortran.js +53 -0
  14. data/google-code-prettify/src/lang-hs.js +101 -0
  15. data/google-code-prettify/src/lang-lisp.js +93 -0
  16. data/google-code-prettify/src/lang-lua.js +59 -0
  17. data/google-code-prettify/src/lang-ml.js +56 -0
  18. data/google-code-prettify/src/lang-proto.js +35 -0
  19. data/google-code-prettify/src/lang-scala.js +54 -0
  20. data/google-code-prettify/src/lang-sql.js +57 -0
  21. data/google-code-prettify/src/lang-vb.js +61 -0
  22. data/google-code-prettify/src/lang-vhdl.js +34 -0
  23. data/google-code-prettify/src/lang-wiki.js +53 -0
  24. data/google-code-prettify/src/lang-yaml.js +27 -0
  25. data/google-code-prettify/src/prettify.css +44 -0
  26. data/google-code-prettify/src/prettify.js +1508 -0
  27. data/google-code-prettify/tests/large_input_test.html +122 -0
  28. data/google-code-prettify/tests/prettify_test.html +2772 -0
  29. data/google-code-prettify/tests/test_base.js +132 -0
  30. data/google-code-prettify/tests/test_styles.css +5 -0
  31. data/hello.c +7 -0
  32. data/index.en.html +221 -120
  33. data/index.ja.html +182 -115
  34. data/lib/ulmul.rb +477 -276
  35. data/test/unit/ulmul_test.rb +21 -0
  36. data/ulmul-slidy.css +21 -8
  37. data/ulmul.gemspec +9 -5
  38. data/ulmul2html5.css +19 -5
  39. data/ulmul2xhtml.css +17 -1
  40. metadata +90 -12
  41. data/tests/ulmul_test.rb +0 -14
data/README-en CHANGED
@@ -1,67 +1,74 @@
1
1
  = ULMUL (Ultra Lightweight MarkUp Language)
2
2
  "ULMUL" is an original Ultra Lightweight MarkUp Language.
3
- ULMUL texts can be converted into HTML5 with "ulmul2html5" command
4
- and into XHTML with "ulmul2xhtml" command.
3
+ ULMUL texts can be converted into HTML5 with "ulmul2html5"
4
+ command and into LaTeX with "ulmul2latex" command.
5
5
  TeX style equations are converted into MathML.
6
6
  ULMUL is written in Ruby.
7
7
  You can also use ulmul.rb as a library.
8
8
 
9
9
  Homepage of ULMUL: http://ulmul.rubyforge.org/
10
10
 
11
- Download ULMUL from: http://rubyforge.org/projects/ulmul or http://rubygems.org/gems/ulmul
11
+ Download ULMUL from: http://rubygems.org/gems/ulmul or http://rubyforge.org/projects/ulmul
12
12
 
13
13
  == Features
14
- * TeX style equations between two dollar marks ($) and between Eq. and /Eq.
15
- will be converted into MathML. You can use Firefox version 3.x, IE+MathPlayer,
16
- etc. to read MathML.
17
- * ulmul2xhtml output is good with the Slidy presentation environment
14
+ * TeX style equations between two dollar marks ($) and between \Eq:foo and /Eq:foo
15
+ will be converted into MathML. You can use Firefox4, IE9, etc. to read MathML.
16
+ * ulmul2html5 output is good with the Slidy presentation environment
18
17
  http://www.w3.org/Talks/Tools/Slidy/ using Firefox+CSS+XHTML+JavaScript.
19
18
  Please use ulmul-slidy.js and ulmul-slidy.css in the package.
19
+ * Figures, tables and code can be inserted to the document.
20
+ They can be easily refered in the text.
20
21
  * Lines starting from "#" are comments.
21
22
  * You can add your conversion rules to @subs_rules.
22
- * List of contents will be automatically generated.
23
+ * "Table of Contents" will be automatically generated.
23
24
  * "= ABC EFGH" will be the document title and the cover page of Slidy.
24
25
  * Use utf-8 for ULMUL texts.
25
26
  Specify your natural language with a --language option, e.g. --language=en.
26
27
 
27
28
  == Installation of ULMUL
28
- There are two different ways to install ULMUL.
29
- === I. Conservative way; use setup.rb
30
- ulmul-X.Y.Z.tgz package can be installed as:
31
- $ tar zxf ulmul-X.Y.Z.tgz
32
- $ cd ulmul-X.Y.Z
33
- $ su
34
- # ruby setup.rb
35
- Note that the eim_xml and math_ml libraries are required.
36
- === II. RubyGems users can take an easy way
37
- There is an easy way, if you are a RubyGems user:
38
- $ su
39
- # gem install ulmul
40
- If you do not have the eim_xml and math_ml libraries, gem will download and install the
41
- library automatically.
29
+ Please use gem ( RubyGems https://rubygems.org/ ) for the installation.
30
+ $ sudo gem install ulmul
31
+ If you do not have the eim_xml, math_ml, aasm and exifr libraries,
32
+ gem will download and install the libraries automatically.
42
33
 
43
34
  == How to write ULMUL texts
44
35
  The encode of input file must be utf-8.
45
36
  === lines
37
+ Inside ulmul.rb, input lines are processed as "events"
38
+ with aasm library https://rubygems.org/gems/aasm .
46
39
  ==== empty
47
40
  Empty lines divide paragraphs.
48
41
  ==== heading
49
42
  Starting with "= ", "== ", "=== ", "==== ", "===== ", and "====== ".
50
43
  "= " will be used for the title.
51
44
  ==== asterisk
52
- Lines starting with
53
- " *"
54
- " *"
55
- " *"
56
- " *"
57
- " *"
58
- become itemize.
45
+ Lines starting with asterisks become itemizing list.
46
+ For example,
47
+ # Nesting is allowed uo to 5th level.
48
+ * First
49
+ * Second
50
+ * Third
51
+ * Fourth
52
+ * more for Fourth
53
+ second continue
54
+ * More for third
55
+ * More for first
56
+ become
57
+ # Nesting is allowed uo to 5th level.
58
+ * First
59
+ * Second
60
+ * Third
61
+ * Fourth
62
+ * more for Fourth
63
+ second continue
64
+ * More for third
65
+ * More for first
59
66
  ==== offset
60
67
  Lines starting with some spaces but not asterisks become verbatim lines.
61
68
  ==== end
62
69
  EOF or "=end" end the process.
63
70
  ==== ignore
64
- Lines starting with"#" and "=begin" are ignored.
71
+ Lines starting with "#" and "=begin" are ignored.
65
72
  ==== normal
66
73
  Other lines.
67
74
  === Other rules
@@ -70,49 +77,83 @@ Other lines.
70
77
  === Equations
71
78
  Input:
72
79
  Mass $m$ can be converted into energy $E$ as
73
- Eq. 1
80
+ \Eq:Emc2
74
81
  E=mc^2.
75
- /Eq.
82
+ /Eq:Emc2
76
83
 
77
84
  Output:
78
85
 
79
86
  Mass $m$ can be converted into energy $E$ as
80
- Eq. 1
81
- E=mc^2.
82
- /Eq.
87
+ \Eq:Emc2
88
+ E=mc^2.
89
+ /Eq:Emc2
83
90
 
84
91
  To view the equations in MathML correctly, please use
85
- * Firefox http://mozilla.jp/firefox/
86
- * IE8 + MathPlayer http://www.dessci.com/en/products/mathplayer/
92
+ * Firefox 4 http://mozilla.jp/firefox/
93
+ * IE9
87
94
  * etc.
88
95
 
89
96
  === Figures
97
+ Start a Figure environment with "\Fig:foo FILENAME.jpg"
98
+ and terminate it with "/Fig:foo", where "foo" is a tag for the figure.
99
+ You can write a figure caption between them.
100
+ You can refer the figure with "Fig:foo" as Fig:ruby.
101
+
90
102
  Input:
91
- Fig. 1 ruby.jpg
103
+ \Fig:ruby ruby.jpg
92
104
  The is a dummy figure for an example.
93
105
  Cute red logo of Ruby, isn't it?
94
- /Fig.
106
+ /Fig:ruby
95
107
 
96
108
  Output:
97
- Fig. 1 ruby.jpg
109
+ \Fig:ruby ruby.jpg
98
110
  The is a dummy figure for an example.
99
111
  Cute red logo of Ruby, isn't it?
100
- /Fig.
112
+ /Fig:ruby
113
+
114
+ === Tables
115
+ Table environment is NOT IMPLEMENTED yet.
116
+ Start a Table environment with "\Table:bar"
117
+ and terminate it with "/Table:bar", where "bar" is a tag for the table.
118
+ You can write a figure caption between them.
119
+ You can refer the figure with "Table:bar" as Table:diamond.
101
120
 
102
- == Usage
103
- There are ulmul2xhtml and ulmul2html5 commands.
121
+ Input:
122
+ \Table:diamond
123
+ The is a dummy caption for the table.
124
+ /Table:diamond
104
125
 
105
- Use .html extensions even for ulmul2xhtml outputs.
126
+ Output:
127
+ \Table:diamond
128
+ The is a dummy caption for the table.
129
+ /Table:diamond
130
+
131
+ === Code
132
+ Start a Code environment with "\Code:baz FILENAME"
133
+ and terminate it with "/Code:baz", where "baz" is a tag for the code.
134
+ You can write a figure caption between them.
135
+ You can refer the figure with "Code:baz" as Code:hello.
136
+ Code will be highlighted with
137
+ google-code-prettify http://code.google.com/p/google-code-prettify/ ,
138
+ when options of -s google-code-prettify/src/prettify.css and
139
+ -j google-code-prettify/src/prettify.js are given.
106
140
 
107
- To view HTML5 documents,
108
- change the setting of the "html5.enable" entry to "true" in "about:config".
109
- See http://kb.mozillazine.org/About:config for details.
141
+ Input:
142
+ \Code:hello hello.c
143
+ Ordinary hello.c.
144
+ Can you see stdio.h?
145
+ /Code:hello
110
146
 
147
+ Output:
148
+ \Code:hello hello.c
149
+ Ordinary hello.c.
150
+ Can you see stdio.h?
151
+ /Code:hello
152
+
153
+ == Usage of ulmul2html5
111
154
  === Examples
112
- $ ulmul2xhtml without-equations.txt > without-equations.html # XHTML1.0 Transitional
113
- $ ulmul2xhtml with-equations.txt > with-equations.html # XHTML1.1 + MathML2.0
114
- $ ulmul2xhtml -n 'Takeshi Nishimatsu' -s ulmul-slidy.css -j ulmul-slidy.js presentation.txt > presentation.xhtml
115
- $ ulmul2html5 with-equations.txt > with-equations.html # HTML5
155
+ $ ulmul2html5 foo.txt > foo.html
156
+ $ ulmul2html5 -n 'Takeshi Nishimatsu' -s ulmul-slidy.css -j ulmul-slidy.js presentation.txt > presentation.html
116
157
 
117
158
  === Command options
118
159
  ==== --help
@@ -125,10 +166,10 @@ Specify your name for copyright notices.
125
166
  Specify JavaScript filename.
126
167
  ==== -l, --language
127
168
  Specify natural language. Its default is "en".
128
- ==== -c, --contents-range
129
- Range of "Contents". Its default is "2..3".
130
- If you do not need "Contents" at the beginning of the
131
- output HTML file, set it 3..2.
169
+ ==== -m, --max-table-of-contents
170
+ Maximum depth for the Table of Contents.
171
+ Its default is 3.
172
+ If you do not need the Table of Contents, specify 1.
132
173
 
133
174
  === ULMUL and Slidy examples
134
175
  * http://loto.sourceforge.net/feram/
@@ -138,22 +179,31 @@ output HTML file, set it 3..2.
138
179
  * http://ulmul.rubyforge.org/index.en.html
139
180
  * Its source is http://ulmul.rubyforge.org/README-en (this document)
140
181
 
182
+ === ulmul2xhtml is obsolete
183
+ ulmul2xhtml will be removed from next version 0.6.x.
184
+
185
+ == Usage of ulmul2latex
186
+ $ ulmul2latex --help
187
+ $ ulmul2latex test.ulmul | tee test.tex
188
+ $ latex test.tex
189
+ $ latex test.tex
190
+ $ dvipdfmx test.dvi
191
+ ulmul2latex is still under development. Sorry.
192
+
141
193
  == TODO
142
- * rescue syntax errors (raises) in an input file and report the
143
- errors as #{$FILENAME}:#{file.lineno}:...
194
+ * More usefull error messages for syntax errors.
144
195
  * Unit test, tests/ulmul_test.rb
145
- * @body must be XML object, not a String.
146
- * Tables.
147
- * References to figures, tables and code.
196
+ * @body shoud be XML object, not a String.
148
197
  * Citation.
149
- * Include highlighted code between Code.../Code.
198
+ For more, see TODO file.
150
199
 
151
200
  == Subversion repository
152
- You can checkout the latest source tree of ULMUL anonymously from RubyForge with svn(1) command:
201
+ You can checkout the latest source tree of ULMUL anonymously from RubyForge
202
+ with svn(1) command:
153
203
  $ svn co svn://rubyforge.org/var/svn/ulmul/ulmul/trunk ulmul
154
204
 
155
205
  == Copying
156
- Copyright © 2008-2010 by Takeshi Nishimatsu
206
+ Copyright © 2008-2011 by Takeshi Nishimatsu
157
207
 
158
208
  ulmul.rb is distributed in the hope that
159
209
  it will be useful, but WITHOUT ANY WARRANTY.
@@ -169,6 +219,11 @@ http://www.w3.org/Talks/Tools/Slidy/ . You can find
169
219
  their licenses at http://www.w3.org/Consortium/Legal/copyright-documents
170
220
  and http://www.w3.org/Consortium/Legal/copyright-software .
171
221
 
222
+ Google Inc. has copyrights for files under google-code-prettify
223
+ directory. Package prettify-21-Jul-2010.zip is distributed
224
+ from http://code.google.com/p/google-code-prettify/ under the
225
+ Apache License, Version 2.0.
226
+
172
227
  == Author of ULMUL
173
228
  Takeshi Nishimatsu (t_nissie{at}yahoo.co.jp) http://t-nissie.users.sourceforge.net/
174
229
 
data/README-ja CHANGED
@@ -1,57 +1,69 @@
1
1
  = ULMUL取扱説明書
2
2
  ULMULは独自の軽量マークアップ言語 (Ultra Lightweight MarkUp Language) です。
3
- コマンドulmul2html5でHTML5に、ulmul2xhtmlXHTMLに変換できます。
3
+ コマンドulmul2html5でHTML5に、ulmul2latexLaTeXに変換できます。
4
4
  文章中のTeXスタイルで書かれた数式をMathMLに変換できるのが特徴です。
5
5
  Rubyで書かれています。ulmul.rbをライブラリとして利用することも可能です。
6
6
 
7
7
  ホームページ: http://ulmul.rubyforge.org/
8
8
 
9
- ダウンロード: http://rubyforge.org/projects/ulmul/ または http://rubygems.org/gems/ulmul
9
+ ダウンロード: http://rubygems.org/gems/ulmul または http://rubyforge.org/projects/ulmul/
10
10
 
11
11
  == 特徴
12
- * 文章中の2つのドル記号($)で挟まれた部分とEq.…/Eq.で挟まれた行が数式としてTeX形式からMathML形式に変換されます。
13
- MathMLとはXMLで数式を記述するための規格です。込み入った規格なので人間が直接MathMLを記述する
14
- ことは想定されていませんが、ULMULでやっているようにTeXなどからの変換により生成することができます。
15
- Firefoxのバージョン3.0以上やIE+MathPlayerで読めるようです。
12
+ * 文章中の2つのドル記号($)で挟まれた部分と\Eq:fooと/Eq:fooとで挟まれた行が
13
+ 数式としてTeX形式からMathML形式に変換されます。MathMLとはXMLで数式を記述
14
+ するための規格です。込み入った規格なので人間が直接MathMLを記述する
15
+ ことは想定されていませんが、ULMULでやっているようにTeXなどからの変換により
16
+ 生成することができます。Firefox4やIE9で読めるようです。
16
17
  math_ml.rb http://www.hinet.mydns.jp/?mathml.rb を使っています。
17
18
  * ウェブ・ブラウザ+CSS+XHTML+JavaScriptを使ったプレゼン環境
18
19
  Slidy http://www.w3.org/Talks/Tools/Slidy/ に対応したxhtmlが出力可能。
19
20
  パッケージの中の ulmul-slidy.js と ulmul-slidy.css とを使ってください。
21
+ * 図、表、コードが挿入でき、文中でそれらの参照ができます。
20
22
  * =begin, =end はあってもなくてもかまいません。
21
23
  * 行を#ではじめるとコメントになります。
22
24
  * ulmul.rbをライブラリとしても使えます。
23
25
  * subs_rulesに俺ルールを加えることができます。
24
- * 目次 (Contents) を自動的に生成できます。
26
+ * 目次 (Table of Contents) を自動的に生成できます。
25
27
  * はじめの「= ABCD EFGH」がタイトルになります。Slidyの表紙にもなります。
26
28
  * テキストファイルはutf-8で書きます。自然言語は--language=jaなどとオプションで指定できます。
27
29
 
28
30
  == インストール方法
29
- 2通りのインストール方法があります。
30
- === I. setup.rbを使う方法
31
- パッケージ ulmul-X.Y.Z.tgz を次のようにインストールします:
32
- $ tar zxf ulmul-X.Y.Z.tgz
33
- $ cd ulmul-X.Y.Z
34
- $ sudo ruby setup.rb
35
- なお、ULMULを使うにはeim_xmlライブラリとmath_mlライブラリとが必要です。
36
- === II. RubyGemsを使えば簡単にインストールができます
37
- gemでインストールすればeim_xmlライブラリとmath_mlライブラリとは自動的にインストールされます:
31
+ gemでインストールすれば必要なライブラリも自動的にインストールされます:
38
32
  $ sudo gem install ulmul
39
33
 
40
34
  == ULMULテキストの書き方
41
35
  ULMULテキストのエンコーディングにはutf-8を使ってください。
42
36
  === 各行の種類
37
+ ulmul.rbは状態遷移 (state machine) ライブラリaasmを使っていて、
38
+ 入力の各行を「イベント」として扱っています。
43
39
  ==== 空行 (empty)
44
40
  空行は段落を分割します。
45
41
  ==== ヘディング (heading)
46
42
  "= ", "== ", "=== ", "==== ", "===== ", または "====== " で始めてください。
47
43
  「= ABCD EFGH」ならABCD EFGHがタイトルになります。Slidyの表紙にもなります。
48
44
  ==== アスタリスクで始まる行は箇条書きになります (asterisk)
49
- 6段までネストした箇条書きが可能です:
50
- " *"
51
- " *"
52
- " *"
53
- " *"
54
- " *"
45
+ 5段までネストした箇条書きが可能です:
46
+ たとえば、
47
+ # Nesting is allowed uo to 5th level.
48
+ * First
49
+ * Second
50
+ * Third
51
+ * Fourth
52
+ * more for Fourth
53
+ second continue
54
+ * More for third
55
+ * More for first
56
+
57
+ # Nesting is allowed uo to 5th level.
58
+ * First
59
+ * Second
60
+ * Third
61
+ * Fourth
62
+ * more for Fourth
63
+ second continue
64
+ * More for third
65
+ * More for first
66
+ と変換されます。
55
67
  ==== オフセットされて書かれた行はそのまま出力 (verbatim, pre) されます (offset)
56
68
  1つスペースを置いて書き始めた行はverbatimになります。
57
69
  ==== 終わり (end)
@@ -67,59 +79,69 @@ Lines starting with"#" and "=begin" are ignored.
67
79
 
68
80
  === 数式の書き方
69
81
  文章中の2つのドル記号($)で挟まれた部分がTeX形式からMathML形式に変換されます。
70
- また、Eq.…/Eq.で挟まれた行も次の例のように処理されます。
82
+ また、\Eq:fooと/Eq:fooとで挟まれた行も次の例のように処理されます。
71
83
 
72
84
  入力:
73
85
  Mass $m$ can be converted into energy $E$ as
74
- Eq. 1
86
+ \Eq:Emc2
75
87
  E=mc^2.
76
- /Eq.
88
+ /Eq:Emc2
77
89
 
78
90
  出力:
79
91
 
80
92
  Mass $m$ can be converted into energy $E$ as
81
- Eq. 1
82
- E=mc^2.
83
- /Eq.
93
+ \Eq:Emc2
94
+ E=mc^2.
95
+ /Eq:Emc2
84
96
 
85
97
  数式を正しくご覧いただくには
86
- * Firefox http://mozilla.jp/firefox/
87
- * IE8 + MathPlayer http://www.dessci.com/en/products/mathplayer/
98
+ * Firefox4 http://mozilla.jp/firefox/
99
+ * IE9
88
100
  などのブラウザを試してみて下さい。
89
101
 
90
102
  === 図の挿入方法
103
+ 「図環境」は "\Fig:foo FILENAME.jpg" で始めて "/Fig:foo" で閉じてください。
104
+ 間に図のキャプションを書くことができます。
105
+ ここで "foo" は図のタグです。
106
+ "Fig:foo"で図を参照することができます。こんな具合です Fig:ruby 。
107
+
91
108
  入力:
92
- Fig. 1 ruby.jpg
109
+ \Fig:ruby ruby.jpg
93
110
  The is a dummy figure for an example.
94
111
  Cute red logo of Ruby, isn't it?
95
- /Fig.
112
+ /Fig:ruby
96
113
 
97
114
  出力:
98
- Fig. 1 ruby.jpg
115
+ \Fig:ruby ruby.jpg
99
116
  The is a dummy figure for an example.
100
117
  Cute red logo of Ruby, isn't it?
101
- /Fig.
118
+ /Fig:ruby
102
119
 
103
- == 使用方法
104
- ulmul2xhtmlとulmul2html5の2つのコマンドがあります。
105
- 特に指定がなければ ulmul2xhtml.css と ulmul2html5.css とがそれぞれのCSSファイルのなります。
106
- これら2つのファイルはパッケージに同梱されています。
120
+ === 表の挿入方法
121
+ Table環境はまだインプリメントされていません。
107
122
 
108
- 2010年4月現在、ulmul2xhtmlの出力を.htmlの拡張子を持ったファイルにリダイレクトして
109
- httpサーバからtext/htmlのMIMEタイプで送信されるようにすれば
110
- いくつかのブラウザが数式を表示してくれるようです。
111
- 1行目のxml宣言を取るとさらにうまく表示される場合もあります。
123
+ === コードの挿入方法
124
+ 「コード環境」は "\Code:baz FILENAME" で始めて "/Code:baz" で閉じてください。
125
+ 間にキャプションを書くことができます。
126
+ ここで "baz" は図のタグです。
127
+ "Code:baz"で当該コードを参照することができます。こんな具合です Code:hello 。
112
128
 
113
- Firefox3.6でHTML5を表示するには、URLとして about:config を入力して、
114
- html5.enableをfalseからtrueに変更してください。
129
+ 入力:
130
+ \Code:hello hello.c
131
+ Ordinary hello.c.
132
+ Can you see stdio.h?
133
+ /Code:hello
115
134
 
116
- IE8はMathMLで書かれた数式を含んだHTML5をうまく表示できないようです。
135
+ 出力:
136
+ \Code:hello hello.c
137
+ Ordinary hello.c.
138
+ Can you see stdio.h?
139
+ /Code:hello
117
140
 
141
+ == ulmul2html5の使用方法
118
142
  === 例
119
- $ ulmul2xhtml without-equations.txt > without-equations.html # XHTML1.0 Transitional
120
- $ ulmul2xhtml with-equations.txt > with-equations.html # XHTML1.1 + MathML2.0
121
- $ ulmul2xhtml -n 'Takeshi Nishimatsu' -s ulmul-slidy.css -j ulmul-slidy.js presentation.txt > presentation.xhtml
122
- $ ulmul2html5 with-equations.txt > with-equations.html # HTML5
143
+ $ ulmul2html5 foo.txt > foo.html
144
+ $ ulmul2html5 -n 'Takeshi Nishimatsu' -s ulmul-slidy.css -j ulmul-slidy.js presentation.txt > presentation.html
123
145
 
124
146
  === コマンド・ライン・オプション
125
147
  ==== --help
@@ -132,11 +154,11 @@ IE8はMathMLで書かれた数式を含んだHTML5をうまく表示できない
132
154
  JavaScriptのファイル名を指定します。
133
155
  ==== -l, --language
134
156
  自然言語の種類を指定します。既定値は"en"です。日本語の場合は-l jaとします。
135
- ==== -c, --contents-range
136
- 目次の深さを指定します。既定値は"2..3"です。
137
- 目次が必要なければ-c 3..2とします。
157
+ ==== -m, --max-table-of-contents
158
+ 目次の深さを指定します。既定値は"3"です。
159
+ 目次が必要なければ1を指定してください。
138
160
 
139
- === 使用例
161
+ === 実際の使用例
140
162
  * http://loto.sourceforge.net/feram/
141
163
  * ソースは http://loto.sourceforge.net/feram/README
142
164
  * http://loto.sourceforge.net/feram/doc/film.xhtml
@@ -144,18 +166,25 @@ JavaScriptのファイル名を指定します。
144
166
  * http://ulmul.rubyforge.org/index.ja.html
145
167
  * ソースは http://ulmul.rubyforge.org/README-ja (この文章)
146
168
 
147
- == ulmul.rbの仕組み
148
- 入力の各行をイベントとして状態遷移しています。
149
- 定数Ulmul::TABLEが状態遷移表です。
169
+ === ulmul2xhtmlは消します
170
+ 次のバージョン (0.6.x) からulmul2xhtmlは消します。
171
+
172
+ == Usage of ulmul2latex
173
+ $ ulmul2latex --help
174
+ $ ulmul2latex test.ulmul | tee test.tex
175
+ $ latex test.tex
176
+ $ latex test.tex
177
+ $ dvipdfmx test.dvi
178
+ ulmul2latexはまだ発展途上です。
150
179
 
151
180
  == 最新のソース・ツリーの入手方法
152
181
  ソース・ツリーはRubyForge.orgのSubversionレポジトリで管理されています。
153
182
  svn(1)コマンドを使って
154
183
  $ svn co svn://rubyforge.org/var/svn/ulmul/ulmul/trunk ulmul
155
- checkoutできます。
184
+ と匿名でcheckoutできます。
156
185
 
157
186
  == 著作権表示
158
- Copyright © 2008-2010 by Takeshi Nishimatsu
187
+ Copyright © 2008-2011 by Takeshi Nishimatsu
159
188
 
160
189
  ulmul.rb is distributed in the hope that
161
190
  it will be useful, but WITHOUT ANY WARRANTY.
@@ -171,6 +200,11 @@ http://www.w3.org/Talks/Tools/Slidy/ . You can find
171
200
  their licenses at http://www.w3.org/Consortium/Legal/copyright-documents
172
201
  and http://www.w3.org/Consortium/Legal/copyright-software .
173
202
 
203
+ Google Inc. has copyrights for files under google-code-prettify
204
+ directory. Package prettify-21-Jul-2010.zip is distributed
205
+ from http://code.google.com/p/google-code-prettify/ under the
206
+ Apache License, Version 2.0.
207
+
174
208
  == 作者
175
209
  西松タケシ (t_nissie{at}yahoo.co.jp) http://t-nissie.users.sourceforge.net/
176
210