ulmul 0.5.3 → 0.7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7e6a9206513e5341326e7cd0e79b62cb8117810b
4
- data.tar.gz: 6d111bac2fa21a590d419afcb8dad22857454a49
2
+ SHA256:
3
+ metadata.gz: 9469aef4ee259ab561a295f22afb77330c35b3ef04039e02b7fd1358173c624a
4
+ data.tar.gz: 5482744fa00f4c6dce080ef33e16cd3694249862d7f03d69d380c0ce8054f784
5
5
  SHA512:
6
- metadata.gz: b955ceecda410010a4437be1e4cc1f3a20f5c78e2edfcc5027fd7ae1b47bd192d88e8a1617c394b19f9a710a8cf4be8ab9ac11c3b5c9a157de3361ad806175c2
7
- data.tar.gz: 5e533ee0fb46aeb8e768e3d790b21eaff7a91dcadfe06c32b2ed58dca4af7934b0d162200bf865c7ad6ed8430e7613646e2a86ee7729cc22846243281134a412
6
+ metadata.gz: 6d34b32788ab26251dfa22778fc661d8958c47bd7de43dc9761ae34324e39cbffb822d000b25273438aa68f339d7291bf57abcc393df188bbdb1e570e5f222ef
7
+ data.tar.gz: 7af15b88c56bfe38b1ac6d6ed413569698cea5223521591be6e4e3cbb82901649ca01ba9ecf528b9d995e6d92170a3aa9f8254a37492a9dfa2b222f12caf139e
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2017-08-31 06:13 Takeshi Nishimatsu <t_nissie@yahoo.co.jp>
2
+
3
+ * README-en, README-ja, Rakefile: Update the URL of google-code-prettify
4
+
1
5
  2015-01-13 22:04 Takeshi Nishimatsu <t_nissie@yahoo.co.jp>
2
6
 
3
7
  * lib/ulmul.rb: for aasm-4.0.8, :on_transition -> :after
data/README-en CHANGED
@@ -5,9 +5,11 @@ ULMUL text with TeX style equations into HTML5 documents with
5
5
  MathML or MathJax, respectively. ULMUL is written in Ruby.
6
6
  You can also use ulmul.rb as a library.
7
7
 
8
- Homepage of ULMUL: http://ulmul.rubyforge.org/
8
+ Homepage of ULMUL: http://t-nissie.users.sourceforge.net/ULMUL/
9
9
 
10
- Download ULMUL from: http://rubygems.org/gems/ulmul or http://rubyforge.org/projects/ulmul
10
+ Ruby Gem of ULMUL: http://rubygems.org/gems/ulmul
11
+
12
+ Repository of ULMUL: https://github.com/t-nissie/ULMUL
11
13
 
12
14
  == Features
13
15
  * TeX style equations between two dollar marks ($) and between "\Eq:foo" and "/Eq:foo"
@@ -137,7 +139,7 @@ and terminate it with "/Code:baz", where "baz" is a tag for the code.
137
139
  You can write a caption between them.
138
140
  You can refer the code with "Code:baz" as Code:hello.
139
141
  Code will be highlighted with google-code-prettify when
140
- -j https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js is given.
142
+ -j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js is given.
141
143
 
142
144
  Input:
143
145
  \Code:hello hello.c
@@ -177,16 +179,13 @@ If you do not need the Table of Contents, specify 1.
177
179
  * Its source is http://loto.sourceforge.net/feram/README
178
180
  * http://loto.sourceforge.net/feram/doc/film.xhtml
179
181
  * It is a Slidy presentation made from http://loto.sourceforge.net/feram/doc/film.txt
180
- * http://ulmul.rubyforge.org/index.en.html
181
- * Its source is http://ulmul.rubyforge.org/README-en (this document)
182
-
183
- === ulmul2xhtml is obsolete
184
- ulmul2xhtml will be removed from next version 0.6.x.
182
+ * http://t-nissie.users.sourceforge.net/ULMUL/index.en.html
183
+ * Its source is http://t-nissie.users.sourceforge.net/ULMUL/README-en (this document)
185
184
 
186
185
  == Usage of ulmul2mathjax
187
186
  It uses MathJax http://www.mathjax.org/ to show equations.
188
187
  $ ulmul2mathjax --help
189
- $ ulmul2mathjax -s ulmul2html5.css -j https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js \
188
+ $ ulmul2mathjax -s ulmul2html5.css -j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js \
190
189
  -j 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default' README-en > README-en-mathjax.html
191
190
 
192
191
  == Usage of ulmul2latex
@@ -204,13 +203,12 @@ ulmul2latex is still under development. Sorry.
204
203
  * Citation.
205
204
  For more, see TODO file.
206
205
 
207
- == Subversion repository
208
- You can checkout the latest source tree of ULMUL anonymously from RubyForge
209
- with svn(1) command:
210
- $ svn co svn://rubyforge.org/var/svn/ulmul/ulmul/trunk ulmul
206
+ == Repository in GitHub
207
+ You can clone the source tree of ULMUL from GitHub with git(1) command:
208
+ $ git clone https://github.com/t-nissie/ULMUL.git ulmul
211
209
 
212
210
  == Copying
213
- Copyright © 2008-2014 by Takeshi Nishimatsu
211
+ Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022,2024 by Takeshi Nishimatsu
214
212
 
215
213
  ulmul.rb is distributed in the hope that
216
214
  it will be useful, but WITHOUT ANY WARRANTY.
data/README-ja CHANGED
@@ -5,9 +5,11 @@ ULMULは独自の軽量マークアップ言語 (Ultra Lightweight MarkUp Langua
5
5
  ulmul2latexでLaTeXにも変換できます。
6
6
  Rubyで書かれています。ulmul.rbをライブラリとして利用することも可能です。
7
7
 
8
- ホームページ: http://ulmul.rubyforge.org/
8
+ ホームページ: http://t-nissie.users.sourceforge.net/ULMUL/
9
9
 
10
- ダウンロード: http://rubygems.org/gems/ulmul または http://rubyforge.org/projects/ulmul/
10
+ Ruby Gem: http://rubygems.org/gems/ulmul
11
+
12
+ レポジトリ: https://github.com/t-nissie/ULMUL
11
13
 
12
14
  == 特徴
13
15
  * 文章中の2つのドル記号($)で挟まれた部分と"\Eq:foo"と"/Eq:foo"とで挟まれた行が
@@ -168,16 +170,13 @@ JavaScriptのファイル名を指定します。
168
170
  * ソースは http://loto.sourceforge.net/feram/README
169
171
  * http://loto.sourceforge.net/feram/doc/film.xhtml
170
172
  * ソースは http://loto.sourceforge.net/feram/doc/film.txt
171
- * http://ulmul.rubyforge.org/index.ja.html
172
- * ソースは http://ulmul.rubyforge.org/README-ja (この文章)
173
-
174
- === ulmul2xhtmlは消します
175
- 次のバージョン (0.6.x) からulmul2xhtmlは消します。
173
+ * http://t-nissie.users.sourceforge.net/ULMUL/index.ja.html
174
+ * ソースは http://t-nissie.users.sourceforge.net/ULMUL/README-ja (この文章)
176
175
 
177
176
  == ulmul2mathjaxの使用方法
178
177
  数式を MathJax http://www.mathjax.org/ で出力します。
179
178
  $ ulmul2mathjax --help
180
- $ ulmul2mathjax -s ulmul2html5.css -j https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js \
179
+ $ ulmul2mathjax -s ulmul2html5.css -j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js \
181
180
  -j 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default' README-en > README-en-mathjax.html
182
181
 
183
182
  == ulmul2latexの使用方法
@@ -189,13 +188,13 @@ JavaScriptのファイル名を指定します。
189
188
  ulmul2latexはまだ発展途上です。
190
189
 
191
190
  == 最新のソース・ツリーの入手方法
192
- ソース・ツリーはRubyForge.orgのSubversionレポジトリで管理されています。
193
- svn(1)コマンドを使って
194
- $ svn co svn://rubyforge.org/var/svn/ulmul/ulmul/trunk ulmul
195
- と匿名でcheckoutできます。
191
+ ソース・ツリーはGitHubに置いてあります。
192
+ git(1)コマンドを使って
193
+ $ git clone https://github.com/t-nissie/ULMUL.git ulmul
194
+ と匿名でcloneできます。
196
195
 
197
196
  == 著作権表示
198
- Copyright © 2008-2014 by Takeshi Nishimatsu
197
+ Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022,2024 by Takeshi Nishimatsu
199
198
 
200
199
  ulmul.rb is distributed in the hope that
201
200
  it will be useful, but WITHOUT ANY WARRANTY.
data/Rakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  #! /usr/bin/env rake
2
2
  # -*-Ruby-*-
3
- # Time-stamp: <2014-01-01 16:37:55 takeshi>
4
3
  # Author: Takeshi Nishimatsu
5
4
  ##
6
5
  $LOAD_PATH.unshift('lib')
@@ -35,6 +34,7 @@ Rake::TestTask.new do |t|
35
34
  t.libs << 'lib' << 'test'
36
35
  t.pattern = 'test/**/*_test.rb'
37
36
  t.verbose = true
37
+ t.warning = false
38
38
  end
39
39
 
40
40
  # Rake::RDocTask.new do |rdoc|
@@ -47,16 +47,16 @@ end
47
47
  # end
48
48
  # end
49
49
 
50
- desc "Publish to RubyForge"
51
- task :rubyforge => ["index.en.html",
52
- "index.ja.html",
53
- "index.var",
54
- "ulmul2xhtml.css", "favicon.ico", "ruby.jpg"] do |t|
50
+ desc "Publish to SourceForge"
51
+ task :sourceforge => ["index.en.html",
52
+ "index.ja.html",
53
+ "index.var",
54
+ "ulmul2xhtml.css", "favicon.ico", "ruby.jpg", "hello.c"] do |t|
55
55
  t.prerequisites.each do |f|
56
- sh "scp #{f} t-nissie@rubyforge.org:/var/www/gforge-projects/ulmul/"
56
+ sh "scp #{f} web.sourceforge.net:/home/users/t/t-/t-nissie/userweb/htdocs/ULMUL/"
57
57
  end
58
- sh "scp index.en.html t-nissie@rubyforge.org:/var/www/gforge-projects/ulmul/index.html"
59
- sh "scp dot.htaccess t-nissie@rubyforge.org:/var/www/gforge-projects/ulmul/.htaccess"
58
+ sh "scp index.en.html web.sourceforge.net:/home/users/t/t-/t-nissie/userweb/htdocs/ULMUL/index.html"
59
+ sh "scp dot.htaccess web.sourceforge.net:/home/users/t/t-/t-nissie/userweb/htdocs/ULMUL/.htaccess"
60
60
  end
61
61
 
62
62
  desc "Create presentation.en.html from README-en"
@@ -68,7 +68,7 @@ end
68
68
  ["en", "ja"].each{|lang|
69
69
  desc "Create index.#{lang}.html"
70
70
  file "index.#{lang}.html" => ["bin/ulmul2html5", "README-#{lang}", "ulmul2html5.css", "lib/ulmul.rb"] do |t|
71
- sh "ruby -I lib #{t.prerequisites[0]} -n 'Takeshi Nishimatsu' -s #{t.prerequisites[2]} -j https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js -l #{lang} #{t.prerequisites[1]} | \
71
+ sh "ruby -I lib #{t.prerequisites[0]} -n 'Takeshi Nishimatsu' -s #{t.prerequisites[2]} -j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js -l #{lang} #{t.prerequisites[1]} | \
72
72
  sed -e 's%</h1>%</h1><div class=\"navi\">[<a href=\"index.en.html\">English</a>/<a href=\"index.ja.html\">Japanese</a>]</div>%' > #{t.name}"
73
73
  end
74
74
  }
data/index.en.html CHANGED
@@ -12,7 +12,7 @@
12
12
  });
13
13
  </script>
14
14
  <link rel="stylesheet" href="ulmul2html5.css" type="text/css" />
15
- <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js" type="text/javascript"></script>
15
+ <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js" type="text/javascript"></script>
16
16
  <link rel="icon" href="favicon.ico" />
17
17
  </head>
18
18
  <body onload="prettyPrint()">
@@ -26,10 +26,13 @@ MathML or MathJax, respectively. ULMUL is written in Ruby.
26
26
  You can also use ulmul.rb as a library.
27
27
  </p>
28
28
  <p>
29
- Homepage of ULMUL: <a href="http://ulmul.rubyforge.org/">http://ulmul.rubyforge.org/</a>
29
+ Homepage of ULMUL: <a href="http://t-nissie.users.sourceforge.net/ULMUL/">http://t-nissie.users.sourceforge.net/ULMUL/</a>
30
30
  </p>
31
31
  <p>
32
- Download ULMUL from: <a href="http://rubygems.org/gems/ulmul">http://rubygems.org/gems/ulmul</a> or <a href="http://rubyforge.org/projects/ulmul">http://rubyforge.org/projects/ulmul</a>
32
+ Ruby Gem of ULMUL: <a href="http://rubygems.org/gems/ulmul">http://rubygems.org/gems/ulmul</a>
33
+ </p>
34
+ <p>
35
+ Repository of ULMUL: <a href="https://github.com/t-nissie/ULMUL">https://github.com/t-nissie/ULMUL</a>
33
36
  </p>
34
37
  <br />
35
38
  <div class="table of contents">
@@ -51,14 +54,13 @@ Table of Contents:
51
54
  <li><a href="#LABEL-19">Examples</a></li>
52
55
  <li><a href="#LABEL-20">Command options</a></li>
53
56
  <li><a href="#LABEL-27">ULMUL and Slidy examples</a></li>
54
- <li><a href="#LABEL-28">ulmul2xhtml is obsolete</a></li>
55
57
  </ul></li>
56
- <li><a href="#LABEL-29">Usage of ulmul2mathjax</a></li>
57
- <li><a href="#LABEL-30">Usage of ulmul2latex</a></li>
58
- <li><a href="#LABEL-31">TODO</a></li>
59
- <li><a href="#LABEL-32">Subversion repository</a></li>
60
- <li><a href="#LABEL-33">Copying</a></li>
61
- <li><a href="#LABEL-34">Author of ULMUL</a></li>
58
+ <li><a href="#LABEL-28">Usage of ulmul2mathjax</a></li>
59
+ <li><a href="#LABEL-29">Usage of ulmul2latex</a></li>
60
+ <li><a href="#LABEL-30">TODO</a></li>
61
+ <li><a href="#LABEL-31">Repository in GitHub</a></li>
62
+ <li><a href="#LABEL-32">Copying</a></li>
63
+ <li><a href="#LABEL-33">Author of ULMUL</a></li>
62
64
  </ul>
63
65
  </div>
64
66
 
@@ -270,7 +272,7 @@ and terminate it with "/Code:baz", where "baz" is a tag for the code.
270
272
  You can write a caption between them.
271
273
  You can refer the code with "Code:baz" as <a href="#Code:hello">Code 1</a>.
272
274
  Code will be highlighted with google-code-prettify when
273
- -j <a href="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js">https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js</a> is given.
275
+ -j <a href="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js">https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js</a> is given.
274
276
  </p>
275
277
  <p>
276
278
  Input:
@@ -345,33 +347,29 @@ If you do not need the Table of Contents, specify 1.
345
347
  <ul>
346
348
  <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>
347
349
  </ul></li>
348
- <li><a href="http://ulmul.rubyforge.org/index.en.html">http://ulmul.rubyforge.org/index.en.html</a>
350
+ <li><a href="http://t-nissie.users.sourceforge.net/ULMUL/index.en.html">http://t-nissie.users.sourceforge.net/ULMUL/index.en.html</a>
349
351
  <ul>
350
- <li>Its source is <a href="http://ulmul.rubyforge.org/README-en">http://ulmul.rubyforge.org/README-en</a> (this document)</li>
352
+ <li>Its source is <a href="http://t-nissie.users.sourceforge.net/ULMUL/README-en">http://t-nissie.users.sourceforge.net/ULMUL/README-en</a> (this document)</li>
351
353
  </ul></li>
352
354
  </ul>
353
- <h3 id="LABEL-28">ulmul2xhtml is obsolete</h3>
354
- <p>
355
- ulmul2xhtml will be removed from next version 0.6.x.
356
- </p>
357
355
  </div>
358
356
 
359
357
 
360
358
  <div class="slide">
361
- <h2 id="LABEL-29">Usage of ulmul2mathjax</h2>
359
+ <h2 id="LABEL-28">Usage of ulmul2mathjax</h2>
362
360
  <p>
363
361
  It uses MathJax <a href="http://www.mathjax.org/">http://www.mathjax.org/</a> to show equations.
364
362
  </p>
365
363
  <pre>
366
364
  $ ulmul2mathjax --help
367
- $ ulmul2mathjax -s ulmul2html5.css -j https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js \
365
+ $ ulmul2mathjax -s ulmul2html5.css -j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js \
368
366
  -j 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default' README-en &gt; README-en-mathjax.html
369
367
  </pre>
370
368
  </div>
371
369
 
372
370
 
373
371
  <div class="slide">
374
- <h2 id="LABEL-30">Usage of ulmul2latex</h2>
372
+ <h2 id="LABEL-29">Usage of ulmul2latex</h2>
375
373
  <pre>
376
374
  $ ulmul2latex --help
377
375
  $ ulmul2latex test.ulmul | tee test.tex
@@ -386,7 +384,7 @@ ulmul2latex is still under development. Sorry.
386
384
 
387
385
 
388
386
  <div class="slide">
389
- <h2 id="LABEL-31">TODO</h2>
387
+ <h2 id="LABEL-30">TODO</h2>
390
388
 
391
389
  <ul>
392
390
  <li>More useful error messages for syntax errors.</li>
@@ -401,21 +399,20 @@ For more, see TODO file.
401
399
 
402
400
 
403
401
  <div class="slide">
404
- <h2 id="LABEL-32">Subversion repository</h2>
402
+ <h2 id="LABEL-31">Repository in GitHub</h2>
405
403
  <p>
406
- You can checkout the latest source tree of ULMUL anonymously from RubyForge
407
- with svn(1) command:
404
+ You can clone the source tree of ULMUL from GitHub with git(1) command:
408
405
  </p>
409
406
  <pre>
410
- $ svn co svn://rubyforge.org/var/svn/ulmul/ulmul/trunk ulmul
407
+ $ git clone https://github.com/t-nissie/ULMUL.git ulmul
411
408
  </pre>
412
409
  </div>
413
410
 
414
411
 
415
412
  <div class="slide">
416
- <h2 id="LABEL-33">Copying</h2>
413
+ <h2 id="LABEL-32">Copying</h2>
417
414
  <p>
418
- Copyright © 2008-2014 by Takeshi Nishimatsu
415
+ Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022,2024 by Takeshi Nishimatsu
419
416
  </p>
420
417
  <p>
421
418
  ulmul.rb is distributed in the hope that
@@ -437,12 +434,10 @@ and <a href="http://www.w3.org/Consortium/Legal/copyright-software">http://www.w
437
434
 
438
435
 
439
436
  <div class="slide">
440
- <h2 id="LABEL-34">Author of ULMUL</h2>
437
+ <h2 id="LABEL-33">Author of ULMUL</h2>
441
438
  <p>
442
439
  Takeshi Nishimatsu (t_nissie{at}yahoo.co.jp) <a href="http://t-nissie.users.sourceforge.net/">http://t-nissie.users.sourceforge.net/</a>
443
440
  </p>
444
441
  </div>
445
- <hr />
446
- <address>Copyright &#169; 2015 Takeshi Nishimatsu</address>
447
442
  </body>
448
443
  </html>
data/index.ja.html CHANGED
@@ -12,7 +12,7 @@
12
12
  });
13
13
  </script>
14
14
  <link rel="stylesheet" href="ulmul2html5.css" type="text/css" />
15
- <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js" type="text/javascript"></script>
15
+ <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js" type="text/javascript"></script>
16
16
  <link rel="icon" href="favicon.ico" />
17
17
  </head>
18
18
  <body onload="prettyPrint()">
@@ -26,10 +26,13 @@ ulmul2latexでLaTeXにも変換できます。
26
26
  Rubyで書かれています。ulmul.rbをライブラリとして利用することも可能です。
27
27
  </p>
28
28
  <p>
29
- ホームページ: <a href="http://ulmul.rubyforge.org/">http://ulmul.rubyforge.org/</a>
29
+ ホームページ: <a href="http://t-nissie.users.sourceforge.net/ULMUL/">http://t-nissie.users.sourceforge.net/ULMUL/</a>
30
30
  </p>
31
31
  <p>
32
- ダウンロード: <a href="http://rubygems.org/gems/ulmul">http://rubygems.org/gems/ulmul</a> または <a href="http://rubyforge.org/projects/ulmul/">http://rubyforge.org/projects/ulmul/</a>
32
+ Ruby Gem: <a href="http://rubygems.org/gems/ulmul">http://rubygems.org/gems/ulmul</a>
33
+ </p>
34
+ <p>
35
+ レポジトリ: <a href="https://github.com/t-nissie/ULMUL">https://github.com/t-nissie/ULMUL</a>
33
36
  </p>
34
37
  <br />
35
38
  <div class="table of contents">
@@ -51,13 +54,12 @@ Table of Contents:
51
54
  <li><a href="#LABEL-19">例</a></li>
52
55
  <li><a href="#LABEL-20">コマンド・ライン・オプション</a></li>
53
56
  <li><a href="#LABEL-27">実際の使用例</a></li>
54
- <li><a href="#LABEL-28">ulmul2xhtmlは消します</a></li>
55
57
  </ul></li>
56
- <li><a href="#LABEL-29">ulmul2mathjaxの使用方法</a></li>
57
- <li><a href="#LABEL-30">ulmul2latexの使用方法</a></li>
58
- <li><a href="#LABEL-31">最新のソース・ツリーの入手方法</a></li>
59
- <li><a href="#LABEL-32">著作権表示</a></li>
60
- <li><a href="#LABEL-33">作者</a></li>
58
+ <li><a href="#LABEL-28">ulmul2mathjaxの使用方法</a></li>
59
+ <li><a href="#LABEL-29">ulmul2latexの使用方法</a></li>
60
+ <li><a href="#LABEL-30">最新のソース・ツリーの入手方法</a></li>
61
+ <li><a href="#LABEL-31">著作権表示</a></li>
62
+ <li><a href="#LABEL-32">作者</a></li>
61
63
  </ul>
62
64
  </div>
63
65
 
@@ -328,33 +330,29 @@ JavaScriptのファイル名を指定します。
328
330
  <ul>
329
331
  <li>ソースは <a href="http://loto.sourceforge.net/feram/doc/film.txt">http://loto.sourceforge.net/feram/doc/film.txt</a></li>
330
332
  </ul></li>
331
- <li><a href="http://ulmul.rubyforge.org/index.ja.html">http://ulmul.rubyforge.org/index.ja.html</a>
333
+ <li><a href="http://t-nissie.users.sourceforge.net/ULMUL/index.ja.html">http://t-nissie.users.sourceforge.net/ULMUL/index.ja.html</a>
332
334
  <ul>
333
- <li>ソースは <a href="http://ulmul.rubyforge.org/README-ja">http://ulmul.rubyforge.org/README-ja</a> (この文章)</li>
335
+ <li>ソースは <a href="http://t-nissie.users.sourceforge.net/ULMUL/README-ja">http://t-nissie.users.sourceforge.net/ULMUL/README-ja</a> (この文章)</li>
334
336
  </ul></li>
335
337
  </ul>
336
- <h3 id="LABEL-28">ulmul2xhtmlは消します</h3>
337
- <p>
338
- 次のバージョン (0.6.x) からulmul2xhtmlは消します。
339
- </p>
340
338
  </div>
341
339
 
342
340
 
343
341
  <div class="slide">
344
- <h2 id="LABEL-29">ulmul2mathjaxの使用方法</h2>
342
+ <h2 id="LABEL-28">ulmul2mathjaxの使用方法</h2>
345
343
  <p>
346
344
  数式を MathJax <a href="http://www.mathjax.org/">http://www.mathjax.org/</a> で出力します。
347
345
  </p>
348
346
  <pre>
349
347
  $ ulmul2mathjax --help
350
- $ ulmul2mathjax -s ulmul2html5.css -j https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js \
348
+ $ ulmul2mathjax -s ulmul2html5.css -j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js \
351
349
  -j 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default' README-en &gt; README-en-mathjax.html
352
350
  </pre>
353
351
  </div>
354
352
 
355
353
 
356
354
  <div class="slide">
357
- <h2 id="LABEL-30">ulmul2latexの使用方法</h2>
355
+ <h2 id="LABEL-29">ulmul2latexの使用方法</h2>
358
356
  <pre>
359
357
  $ ulmul2latex --help
360
358
  $ ulmul2latex test.ulmul | tee test.tex
@@ -369,24 +367,24 @@ ulmul2latexはまだ発展途上です。
369
367
 
370
368
 
371
369
  <div class="slide">
372
- <h2 id="LABEL-31">最新のソース・ツリーの入手方法</h2>
370
+ <h2 id="LABEL-30">最新のソース・ツリーの入手方法</h2>
373
371
  <p>
374
- ソース・ツリーはRubyForge.orgのSubversionレポジトリで管理されています。
375
- svn(1)コマンドを使って
372
+ ソース・ツリーはGitHubに置いてあります。
373
+ git(1)コマンドを使って
376
374
  </p>
377
375
  <pre>
378
- $ svn co svn://rubyforge.org/var/svn/ulmul/ulmul/trunk ulmul
376
+ $ git clone https://github.com/t-nissie/ULMUL.git ulmul
379
377
  </pre>
380
378
  <p>
381
- と匿名でcheckoutできます。
379
+ と匿名でcloneできます。
382
380
  </p>
383
381
  </div>
384
382
 
385
383
 
386
384
  <div class="slide">
387
- <h2 id="LABEL-32">著作権表示</h2>
385
+ <h2 id="LABEL-31">著作権表示</h2>
388
386
  <p>
389
- Copyright © 2008-2014 by Takeshi Nishimatsu
387
+ Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022,2024 by Takeshi Nishimatsu
390
388
  </p>
391
389
  <p>
392
390
  ulmul.rb is distributed in the hope that
@@ -408,12 +406,10 @@ and <a href="http://www.w3.org/Consortium/Legal/copyright-software">http://www.w
408
406
 
409
407
 
410
408
  <div class="slide">
411
- <h2 id="LABEL-33">作者</h2>
409
+ <h2 id="LABEL-32">作者</h2>
412
410
  <p>
413
411
  西松タケシ (t_nissie{at}yahoo.co.jp) <a href="http://t-nissie.users.sourceforge.net/">http://t-nissie.users.sourceforge.net/</a>
414
412
  </p>
415
413
  </div>
416
- <hr />
417
- <address>Copyright &#169; 2015 Takeshi Nishimatsu</address>
418
414
  </body>
419
415
  </html>
data/lib/ulmul.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- coding: utf-8 -*-
3
3
  # ulmul.rb
4
- # Time-stamp: <2015-01-13 18:50:55 takeshi>
5
4
  # Author: Takeshi Nishimatsu
6
5
  ##
7
6
  require "rubygems"
@@ -83,7 +82,7 @@ end
83
82
  class Ulmul
84
83
  include AASM
85
84
  include Itemize
86
- VERSION = '0.5.3'
85
+ VERSION = '0.7.0'
87
86
 
88
87
  aasm.initial_state :st_ground
89
88
 
@@ -263,19 +262,19 @@ class Ulmul
263
262
  line = "=end\n"
264
263
  end
265
264
  case line
266
- when /^=begin/,/^#/ then ev_ignore(nil, $FILENAME, lnumber, line)
267
- when /^=end/ then ev_heading(nil, $FILENAME, lnumber, line); break
268
- when /^=+ / then ev_heading(nil, $FILENAME, lnumber, line)
269
- when /^ +\*/ then ev_asterisk(nil, $FILENAME, lnumber, line)
270
- when /^$/ then ev_empty(nil, $FILENAME, lnumber, line)
271
- when /^\s+/ then ev_offset(nil, $FILENAME, lnumber, line)
265
+ when /^=begin/,/^#/ then ev_ignore($FILENAME, lnumber, line)
266
+ when /^=end/ then ev_heading($FILENAME, lnumber, line); break
267
+ when /^=+ / then ev_heading($FILENAME, lnumber, line)
268
+ when /^ +\*/ then ev_asterisk($FILENAME, lnumber, line)
269
+ when /^$/ then ev_empty($FILENAME, lnumber, line)
270
+ when /^\s+/ then ev_offset($FILENAME, lnumber, line)
272
271
  when /^\\(Fig|Table|Code):/
273
- then ev_env_begin(nil, $FILENAME, lnumber, line)
272
+ then ev_env_begin($FILENAME, lnumber, line)
274
273
  when /^\/(Fig|Table|Code):/
275
- then ev_env_end(nil, $FILENAME, lnumber, line)
276
- when /^\\Eq:/ then ev_equation_begin(nil, $FILENAME, lnumber, line)
277
- when /^\/Eq:/ then ev_equation_end(nil, $FILENAME, lnumber, line)
278
- else ev_normal(nil, $FILENAME, lnumber, line)
274
+ then ev_env_end($FILENAME, lnumber, line)
275
+ when /^\\Eq:/ then ev_equation_begin($FILENAME, lnumber, line)
276
+ when /^\/Eq:/ then ev_equation_end($FILENAME, lnumber, line)
277
+ else ev_normal($FILENAME, lnumber, line)
279
278
  end
280
279
  end
281
280
  end
@@ -351,9 +350,12 @@ module HTML
351
350
  @body << "<p id=\"#{@env_label}\" class=\"code caption\">\n"
352
351
  @body << " Code #{@codes.length}: " << @subs_rules.call(@env_caption) << "(download: <a href=\"#{@env_file}\">#{File.basename(@env_file)}</a>)" << "</p>\n"
353
352
  @body << "<pre class=\"prettyprint\">\n"
354
- f = open(@env_file)
355
- @body << f.read.gsub(/&/,'&amp;').gsub(/</,'&lt;').gsub(/>/,'&gt;')
356
- f.close
353
+ begin
354
+ open(@env_file){|f| @body << f.read.gsub(/&/,'&amp;').gsub(/</,'&lt;').gsub(/>/,'&gt;')}
355
+ rescue Errno::ENOENT => ex
356
+ STDERR << ex << "\n"
357
+ exit 1
358
+ end
357
359
  @body << "</pre>\n"
358
360
  end
359
361
 
@@ -403,8 +405,6 @@ module HTML5
403
405
  </head>
404
406
  <body onload=\"prettyPrint()\">
405
407
  #{body()}
406
- <hr />
407
- <address>Copyright &#169; #{Date.today.year} #{name}</address>
408
408
  </body>
409
409
  </html>
410
410
  "
@@ -479,8 +479,13 @@ module LaTeX
479
479
  def cb_env_end2()
480
480
  case @env_label
481
481
  when /^Fig:/
482
- width = EXIFR::JPEG.new(@env_file).width
483
- height = EXIFR::JPEG.new(@env_file).height
482
+ begin
483
+ width = EXIFR::JPEG.new(@env_file).width
484
+ height = EXIFR::JPEG.new(@env_file).height
485
+ rescue Errno::ENOENT => ex
486
+ STDERR << ex << "\n"
487
+ exit 1
488
+ end
484
489
  @body << "\\begin{figure}\n" << " \\center\n \\includegraphics[width=5cm,bb=0 0 #{width} #{height}]{#{@env_file}}\n"
485
490
  @body << ' \caption{' << @subs_rules.call(@env_caption).strip << "}\n"
486
491
  @body << " \\label{#{@env_label}}\n" << "\\end{figure}\n"
@@ -493,9 +498,12 @@ module LaTeX
493
498
  @body << "\\end{table}\n"
494
499
  when /^Code:/
495
500
  @body << "\\begin{lstlisting}[caption={#{@subs_rules.call(@env_caption).strip}},label=#{@env_label}]\n"
496
- f = open(@env_file)
497
- @body << f.read
498
- f.close
501
+ begin
502
+ open(@env_file){|f| @body << f.read}
503
+ rescue Errno::ENOENT => ex
504
+ STDERR << ex << "\n"
505
+ exit 1
506
+ end
499
507
  @body << "\\end{lstlisting}\n"
500
508
  end
501
509
  end
data/ulmul-slidy.css CHANGED
@@ -1,7 +1,7 @@
1
- /* ulmul-slidy.css -*-CSS-*-
1
+ /* ulmul-slidy.css
2
2
 
3
3
  Original slidy.css is modified by Takeshi NISHIMATSU
4
- Time-stamp: <2011-04-01 11:31:15 takeshi>
4
+ Time-stamp: <2017-09-01 06:09:59 takeshi>
5
5
 
6
6
  References:
7
7
  http://daily-expo.com/csslite/
@@ -9,38 +9,88 @@
9
9
 
10
10
  Original Copyright notice:
11
11
 
12
- Copyright (c) 2005 W3C (MIT, ERCIM, Keio), All Rights Reserved.
12
+ Copyright (c) 2005-2010 W3C (MIT, ERCIM, Keio), All Rights Reserved.
13
13
  W3C liability, trademark, document use and software licensing
14
14
  rules apply, see:
15
15
 
16
16
  http://www.w3.org/Consortium/Legal/copyright-documents
17
17
  http://www.w3.org/Consortium/Legal/copyright-software
18
18
  */
19
-
20
- body {
21
- font-family: helvetica, sans-serif;
22
- font-weight: normal;
19
+ body
20
+ {
21
+ margin: 0 0 0 0;
22
+ padding: 0 0 0 0;
23
23
  width: 100%;
24
24
  height: 100%;
25
- margin: 0;
26
- padding: 0;
27
- background-image: url(doc/logo/loto.jpg);
28
- background-repeat: no-repeat;
29
- background-position: right top;
25
+ color: black;
26
+ background-color: white;
27
+ font-family: "Gill Sans MT", "Gill Sans", GillSans, sans-serif;
28
+ font-size: 14pt;
30
29
  }
31
30
 
32
- pre {
33
- font-family: courier, verdana, arial, helvetica, sans-serif;
34
- font-weight: bold;
35
- padding-right: 0.5em;
36
- padding-left: 0.5em;
37
- padding-top: 0.1ex;
38
- padding-bottom: 0.1ex;
39
- margin-left: 0.5em;
40
- margin-right: 1.0em;
41
- white-space: pre;
42
- color: darkblue;
43
- background-color: #e3e3ff;
31
+ div.toolbar {
32
+ position: fixed; z-index: 200;
33
+ top: auto; bottom: 0; left: 0; right: 0;
34
+ height: 1.2em; text-align: right;
35
+ padding-left: 1em;
36
+ padding-right: 1em;
37
+ font-size: 60%;
38
+ color: red;
39
+ background-color: rgb(240,240,240);
40
+ border-top: solid 1px rgb(180,180,180);
41
+ }
42
+
43
+ div.toolbar span.copyright {
44
+ color: black;
45
+ margin-left: 0.5em;
46
+ }
47
+
48
+ div.initial_prompt {
49
+ position: absolute;
50
+ z-index: 1000;
51
+ bottom: 1.2em;
52
+ width: 100%;
53
+ background-color: rgb(200,200,200);
54
+ opacity: 0.35;
55
+ background-color: rgba(200,200,200, 0.35);
56
+ cursor: pointer;
57
+ }
58
+
59
+ div.initial_prompt p.help {
60
+ text-align: center;
61
+ }
62
+
63
+ div.initial_prompt p.close {
64
+ text-align: right;
65
+ font-style: italic;
66
+ }
67
+
68
+ div.slidy_toc {
69
+ position: absolute;
70
+ z-index: 300;
71
+ width: 60%;
72
+ max-width: 30em;
73
+ height: 30em;
74
+ overflow: auto;
75
+ top: auto;
76
+ right: auto;
77
+ left: 4em;
78
+ bottom: 4em;
79
+ padding: 1em;
80
+ background: rgb(240,240,240);
81
+ border-style: solid;
82
+ border-width: 2px;
83
+ font-size: 60%;
84
+ }
85
+
86
+ div.slidy_toc .toc_heading {
87
+ text-align: center;
88
+ width: 100%;
89
+ margin: 0;
90
+ margin-bottom: 1em;
91
+ border-bottom-style: solid;
92
+ border-bottom-color: rgb(180,180,180);
93
+ border-bottom-width: 1px;
44
94
  }
45
95
 
46
96
  div.slide {
@@ -51,6 +101,7 @@ div.slide {
51
101
  padding-left: 20px;
52
102
  padding-right: 20px;
53
103
  border-width: 0;
104
+ clear: both;
54
105
  top: 0;
55
106
  bottom: 0;
56
107
  left: 0;
@@ -59,50 +110,89 @@ div.slide {
59
110
  background-color: transparent;
60
111
  }
61
112
 
62
- div.slide h2 {
63
- margin: 0 0 0.5em 0;
64
- padding: 4px 0;
65
- background: transparent;
66
- border-bottom: 3px solid blue;
67
- font-size: 1.6em;
68
- font-weight: normal;
69
- line-height: 1.2em;
70
- color: blue;
113
+ div.background {
114
+ display: none;
71
115
  }
72
116
 
73
- div.slide.cover {
74
- background-image: url(doc/logo/loto.jpg);
75
- background-repeat: no-repeat;
76
- background-position: left top;
117
+ div.handout {
118
+ margin-left: 20px;
119
+ margin-right: 20px;
77
120
  }
78
121
 
79
- div.slide.cover h1{
80
- font-weight: bold;
81
- font-size: 1.6em;
82
- line-height: 1.6em;
83
- margin: 20% 10% 1%;
84
- padding: 0.5em 0;
122
+ div.slide.titlepage {
123
+ text-align: center;
124
+ }
125
+
126
+ div.slide.titlepage h1 {
127
+ padding-top: 10%;
128
+ margin-right: 0;
129
+ }
130
+
131
+ div.slide h1 {
132
+ padding-left: 0;
133
+ padding-right: 20pt;
134
+ padding-top: 4pt;
135
+ padding-bottom: 4pt;
136
+ margin-top: 0;
137
+ margin-left: 0;
138
+ margin-right: 60pt;
139
+ margin-bottom: 0.5em;
140
+ display: block;
141
+ font-size: 160%;
142
+ line-height: 1.2em;
85
143
  background: transparent;
86
- border-bottom: 3px solid blue;
87
- text-align: left;
88
- color: blue;
89
144
  }
90
145
 
91
- div.slide.cover p{
92
- margin: 0% 10% 0%;
93
- text-align: right;
146
+ @media screen and (max-device-width: 1024px)
147
+ {
148
+ div.slide { font-size: 100%; }
94
149
  }
95
150
 
96
- div.toolbar {
97
- position: fixed; z-index: 200;
98
- top: auto; bottom: 0; left: 0; right: 0;
99
- height: 1.2em; text-align: right;
100
- padding-left: 1em;
101
- padding-right: 1em;
102
- font-size: 60%;
103
- background-color: #e3e3ff;
151
+ @media screen and (max-device-width: 800px)
152
+ {
153
+ div.slide { font-size: 200%; }
154
+ div.slidy_toc {
155
+ top: 1em;
156
+ left: 1em;
157
+ right: auto;
158
+ width: 80%;
159
+ font-size: 180%;
160
+ }
161
+ }
162
+
163
+ div.toc-heading {
164
+ width: 100%;
165
+ border-bottom: solid 1px rgb(180,180,180);
166
+ margin-bottom: 1em;
167
+ text-align: center;
104
168
  }
105
169
 
170
+ img {
171
+ image-rendering: optimize-quality;
172
+ }
173
+
174
+ pre {
175
+ font-size: 80%;
176
+ font-weight: bold;
177
+ line-height: 120%;
178
+ padding-top: 0.2em;
179
+ padding-bottom: 0.2em;
180
+ padding-left: 1em;
181
+ padding-right: 1em;
182
+ border-style: solid;
183
+ border-left-width: 1em;
184
+ border-top-width: thin;
185
+ border-right-width: thin;
186
+ border-bottom-width: thin;
187
+ border-color: #95ABD0;
188
+ color: #00428C;
189
+ background-color: #E4E5E7;
190
+ }
191
+
192
+ li pre { margin-left: 0; }
193
+
194
+ blockquote { font-style: italic }
195
+
106
196
  figure img { width:50%;
107
197
  margin-left:auto;
108
198
  margin-right:auto;
@@ -115,11 +205,228 @@ figure figcaption { width:60%;
115
205
  table {
116
206
  border: blue 2px solid;
117
207
  text-align: center;
118
- margin: auto;
119
- }
208
+ margin: auto;}
120
209
 
121
210
  p.code.caption {
122
211
  width: 80%;
123
212
  margin: auto;
124
213
  display: block;
125
214
  }
215
+
216
+ img { background-color: transparent }
217
+
218
+ p.copyright { font-size: smaller }
219
+
220
+ .center { text-align: center }
221
+ .footnote { font-size: smaller; margin-left: 2em; }
222
+
223
+ a img { border-width: 0; border-style: none }
224
+
225
+ a:visited { color: navy }
226
+ a:link { color: navy }
227
+ a:hover { color: red; text-decoration: underline }
228
+ a:active { color: red; text-decoration: underline }
229
+
230
+ a {text-decoration: none}
231
+ .toolbar a:link {color: blue}
232
+ .toolbar a:visited {color: blue}
233
+ .toolbar a:active {color: red}
234
+ .toolbar a:hover {color: red}
235
+
236
+ ul { list-style-type: square; }
237
+ ul ul { list-style-type: disc; }
238
+ ul ul ul { list-style-type: circle; }
239
+ ul ul ul ul { list-style-type: disc; }
240
+ li { margin-left: 0.5em; margin-top: 0.5em; }
241
+ li li { font-size: 85%; font-style: italic }
242
+ li li li { font-size: 85%; font-style: normal }
243
+
244
+ div dt
245
+ {
246
+ margin-left: 0;
247
+ margin-top: 1em;
248
+ margin-bottom: 0.5em;
249
+ font-weight: bold;
250
+ }
251
+ div dd
252
+ {
253
+ margin-left: 2em;
254
+ margin-bottom: 0.5em;
255
+ }
256
+
257
+
258
+ p,pre,ul,ol,blockquote,h2,h3,h4,h5,h6,dl,table {
259
+ margin-left: 1em;
260
+ margin-right: 1em;
261
+ }
262
+
263
+ p.subhead { font-weight: bold; margin-top: 2em; }
264
+
265
+ .smaller { font-size: smaller }
266
+ .bigger { font-size: 130% }
267
+
268
+ td,th { padding: 0.2em }
269
+
270
+ ul {
271
+ margin: 0.5em 1.5em 0.5em 1.5em;
272
+ padding: 0;
273
+ }
274
+
275
+ ol {
276
+ margin: 0.5em 1.5em 0.5em 1.5em;
277
+ padding: 0;
278
+ }
279
+
280
+ ul { list-style-type: square; }
281
+ ul ul { list-style-type: disc; }
282
+ ul ul ul { list-style-type: circle; }
283
+ ul ul ul ul { list-style-type: disc; }
284
+
285
+ ul li {
286
+ list-style: square;
287
+ margin: 0.1em 0em 0.6em 0;
288
+ padding: 0 0 0 0;
289
+ line-height: 140%;
290
+ }
291
+
292
+ ol li {
293
+ margin: 0.1em 0em 0.6em 1.5em;
294
+ padding: 0 0 0 0px;
295
+ line-height: 140%;
296
+ list-style-type: decimal;
297
+ }
298
+
299
+ li ul li {
300
+ font-size: 85%;
301
+ font-style: italic;
302
+ list-style-type: disc;
303
+ background: transparent;
304
+ padding: 0 0 0 0;
305
+ }
306
+ li li ul li {
307
+ font-size: 85%;
308
+ font-style: normal;
309
+ list-style-type: circle;
310
+ background: transparent;
311
+ padding: 0 0 0 0;
312
+ }
313
+ li li li ul li {
314
+ list-style-type: disc;
315
+ background: transparent;
316
+ padding: 0 0 0 0;
317
+ }
318
+
319
+ li ol li {
320
+ list-style-type: decimal;
321
+ }
322
+
323
+
324
+ li li ol li {
325
+ list-style-type: decimal;
326
+ }
327
+
328
+ /*
329
+ setting class="outline on ol or ul makes it behave as an
330
+ ouline list where blocklevel content in li elements is
331
+ hidden by default and can be expanded or collapsed with
332
+ mouse click. Set class="expand" on li to override default
333
+ */
334
+
335
+ ol.outline li:hover { cursor: pointer }
336
+ ol.outline li.nofold:hover { cursor: default }
337
+
338
+ ul.outline li:hover { cursor: pointer }
339
+ ul.outline li.nofold:hover { cursor: default }
340
+
341
+ ol.outline { list-style:decimal; }
342
+ ol.outline ol { list-style-type:lower-alpha }
343
+
344
+ ol.outline li.nofold {
345
+ padding: 0 0 0 20px;
346
+ background: transparent url(../graphics/nofold-dim.gif) no-repeat 0px 0.5em;
347
+ }
348
+ ol.outline li.unfolded {
349
+ padding: 0 0 0 20px;
350
+ background: transparent url(../graphics/fold-dim.gif) no-repeat 0px 0.5em;
351
+ }
352
+ ol.outline li.folded {
353
+ padding: 0 0 0 20px;
354
+ background: transparent url(../graphics/unfold-dim.gif) no-repeat 0px 0.5em;
355
+ }
356
+ ol.outline li.unfolded:hover {
357
+ padding: 0 0 0 20px;
358
+ background: transparent url(../graphics/fold.gif) no-repeat 0px 0.5em;
359
+ }
360
+ ol.outline li.folded:hover {
361
+ padding: 0 0 0 20px;
362
+ background: transparent url(../graphics/unfold.gif) no-repeat 0px 0.5em;
363
+ }
364
+
365
+ ul.outline li.nofold {
366
+ padding: 0 0 0 20px;
367
+ background: transparent url(../graphics/nofold-dim.gif) no-repeat 0px 0.5em;
368
+ }
369
+ ul.outline li.unfolded {
370
+ padding: 0 0 0 20px;
371
+ background: transparent url(../graphics/fold-dim.gif) no-repeat 0px 0.5em;
372
+ }
373
+ ul.outline li.folded {
374
+ padding: 0 0 0 20px;
375
+ background: transparent url(../graphics/unfold-dim.gif) no-repeat 0px 0.5em;
376
+ }
377
+ ul.outline li.unfolded:hover {
378
+ padding: 0 0 0 20px;
379
+ background: transparent url(../graphics/fold.gif) no-repeat 0px 0.5em;
380
+ }
381
+ ul.outline li.folded:hover {
382
+ padding: 0 0 0 20px;
383
+ background: transparent url(../graphics/unfold.gif) no-repeat 0px 0.5em;
384
+ }
385
+
386
+ /* for slides with class "title" in table of contents */
387
+ a.titleslide { font-weight: bold; font-style: italic }
388
+
389
+ /*
390
+ hide images for work around for save as bug
391
+ where browsers fail to save images used by CSS
392
+ */
393
+ img.hidden { display: none; visibility: hidden }
394
+ div.initial_prompt { display: none; visibility: hidden }
395
+
396
+ div.slide {
397
+ visibility: visible;
398
+ position: inherit;
399
+ }
400
+ div.handout {
401
+ border-top-style: solid;
402
+ border-top-width: thin;
403
+ border-top-color: black;
404
+ }
405
+
406
+ @media screen {
407
+ .hidden { display: none; visibility: visible }
408
+
409
+ div.slide.hidden { display: block; visibility: visible }
410
+ div.handout.hidden { display: block; visibility: visible }
411
+ div.background { display: none; visibility: hidden }
412
+ body.single_slide div.initial_prompt { display: block; visibility: visible }
413
+ body.single_slide div.background { display: block; visibility: visible }
414
+ body.single_slide div.background.hidden { display: none; visibility: hidden }
415
+ body.single_slide .invisible { visibility: hidden }
416
+ body.single_slide .hidden { display: none; visibility: hidden }
417
+ body.single_slide div.slide { position: absolute }
418
+ body.single_slide div.handout { display: none; visibility: hidden }
419
+ }
420
+
421
+ @media print {
422
+ .hidden { display: block; visibility: visible }
423
+
424
+ div.slide pre { font-size: 60%; padding-left: 0.5em; }
425
+ div.toolbar { display: none; visibility: hidden; }
426
+ div.slidy_toc { display: none; visibility: hidden; }
427
+ div.background { display: none; visibility: hidden; }
428
+ div.slide { page-break-before: always }
429
+ /* :first-child isn't reliable for print media */
430
+ div.slide.first-slide { page-break-before: avoid }
431
+ }
432
+
data/ulmul.gemspec CHANGED
@@ -1,13 +1,11 @@
1
1
  # ulmul.gemspec -*-ruby-*-
2
- # Time-stamp: <2015-01-13 22:49:36 takeshi>
3
2
  # Author: Takeshi Nishimatsu
4
3
  ##
5
4
  Gem::Specification.new do |s|
6
5
  s.name = 'ulmul'
7
6
 
8
7
  s.bindir = 'bin'
9
- s.executables = ['ulmul2html5', 'ulmul2xhtml', 'ulmul2latex', 'ulmul2mathjax']
10
- s.default_executable= 'ulmul2html5'
8
+ s.executables = ['ulmul2html5', 'ulmul2latex', 'ulmul2mathjax']
11
9
 
12
10
  s.summary = 'ULMUL is an Ultra Lightweight Mark-Up Language'
13
11
  s.files = ['lib/ulmul.rb', 'test/unit/ulmul_test.rb',
@@ -27,26 +25,23 @@ Gem::Specification.new do |s|
27
25
  s.author = 'Takeshi Nishimatsu'
28
26
  s.email = 't_nissie@yahoo.co.jp'
29
27
  s.license = 'GPLv3'
30
- s.homepage = 'http://ulmul.rubyforge.org/'
28
+ s.homepage = 'http://t-nissie.users.sourceforge.net/ULMUL/'
31
29
  s.test_files = ['test/unit/ulmul_test.rb']
32
30
 
33
- s.has_rdoc = true
34
31
  # s.extra_rdoc_files = %w(README)
35
32
 
36
- s.add_dependency('math_ml', '~> 0.14')
37
- s.add_dependency('aasm', '~> 4.0', '>= 4.0.8')
38
- s.add_dependency('exifr', '~> 1.2', '>= 1.2.0')
33
+ s.add_dependency('math_ml', "~> 1.0", '>= 1.0.0')
34
+ s.add_dependency('aasm', "~> 5.5", '>= 5.5.0')
35
+ s.add_dependency('exifr', "~> 1.4", '>= 1.4.0')
39
36
 
40
37
  s.description = <<-EOF
41
- "ULMUL" is an original Ultra Lightweight MarkUp Language.
42
- ULMUL texts can be converted into HTML5 with "ulmul2html5" command
43
- and into LaTeX with "ulmul2latex" command.
44
- TeX style equations are converted into MathML.
45
- ULMUL is written in Ruby.
46
- "ulmul2mathjax" convert ULMUL texts into MathJax style HTML files.
47
- You can also use ulmul.rb as a library.
48
- Visit its project homepage http://ulmul.rubyforge.org/ .
49
- Please use ulmul-slidy.js and ulmul-slidy.css in the
50
- ulmul package for your presentations using Firefox.
38
+ ULMUL is an original Ultra Lightweight MarkUp Language.
39
+ You can write TeX-style equations in ULMUL texts.
40
+ The ULMUL texts can be converted
41
+ into HTML5+MathML with ulmul2html5 command,
42
+ into HTML5+MathJax with ulmul2mathjax and
43
+ into LaTeX with ulmul2latex.
44
+ You can also generate Slidy presentations.
45
+ Its library ulmul.rb is written in Ruby.
51
46
  EOF
52
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ulmul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi Nishimatsu
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-13 00:00:00.000000000 Z
11
+ date: 2024-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: math_ml
@@ -16,69 +16,72 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.14'
19
+ version: '1.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '0.14'
29
+ version: '1.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: aasm
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '4.0'
39
+ version: '5.5'
34
40
  - - ">="
35
41
  - !ruby/object:Gem::Version
36
- version: 4.0.8
42
+ version: 5.5.0
37
43
  type: :runtime
38
44
  prerelease: false
39
45
  version_requirements: !ruby/object:Gem::Requirement
40
46
  requirements:
41
47
  - - "~>"
42
48
  - !ruby/object:Gem::Version
43
- version: '4.0'
49
+ version: '5.5'
44
50
  - - ">="
45
51
  - !ruby/object:Gem::Version
46
- version: 4.0.8
52
+ version: 5.5.0
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: exifr
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - "~>"
52
58
  - !ruby/object:Gem::Version
53
- version: '1.2'
59
+ version: '1.4'
54
60
  - - ">="
55
61
  - !ruby/object:Gem::Version
56
- version: 1.2.0
62
+ version: 1.4.0
57
63
  type: :runtime
58
64
  prerelease: false
59
65
  version_requirements: !ruby/object:Gem::Requirement
60
66
  requirements:
61
67
  - - "~>"
62
68
  - !ruby/object:Gem::Version
63
- version: '1.2'
69
+ version: '1.4'
64
70
  - - ">="
65
71
  - !ruby/object:Gem::Version
66
- version: 1.2.0
72
+ version: 1.4.0
67
73
  description: |2
68
- "ULMUL" is an original Ultra Lightweight MarkUp Language.
69
- ULMUL texts can be converted into HTML5 with "ulmul2html5" command
70
- and into LaTeX with "ulmul2latex" command.
71
- TeX style equations are converted into MathML.
72
- ULMUL is written in Ruby.
73
- "ulmul2mathjax" convert ULMUL texts into MathJax style HTML files.
74
- You can also use ulmul.rb as a library.
75
- Visit its project homepage http://ulmul.rubyforge.org/ .
76
- Please use ulmul-slidy.js and ulmul-slidy.css in the
77
- ulmul package for your presentations using Firefox.
74
+ ULMUL is an original Ultra Lightweight MarkUp Language.
75
+ You can write TeX-style equations in ULMUL texts.
76
+ The ULMUL texts can be converted
77
+ into HTML5+MathML with ulmul2html5 command,
78
+ into HTML5+MathJax with ulmul2mathjax and
79
+ into LaTeX with ulmul2latex.
80
+ You can also generate Slidy presentations.
81
+ Its library ulmul.rb is written in Ruby.
78
82
  email: t_nissie@yahoo.co.jp
79
83
  executables:
80
84
  - ulmul2html5
81
- - ulmul2xhtml
82
85
  - ulmul2latex
83
86
  - ulmul2mathjax
84
87
  extensions: []
@@ -93,7 +96,6 @@ files:
93
96
  - bin/ulmul2html5
94
97
  - bin/ulmul2latex
95
98
  - bin/ulmul2mathjax
96
- - bin/ulmul2xhtml
97
99
  - favicon.ico
98
100
  - hello.c
99
101
  - index.en.html
@@ -109,11 +111,11 @@ files:
109
111
  - ulmul.gemspec
110
112
  - ulmul2html5.css
111
113
  - ulmul2xhtml.css
112
- homepage: http://ulmul.rubyforge.org/
114
+ homepage: http://t-nissie.users.sourceforge.net/ULMUL/
113
115
  licenses:
114
116
  - GPLv3
115
117
  metadata: {}
116
- post_install_message:
118
+ post_install_message:
117
119
  rdoc_options: []
118
120
  require_paths:
119
121
  - lib
@@ -128,9 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
130
  - !ruby/object:Gem::Version
129
131
  version: '0'
130
132
  requirements: []
131
- rubyforge_project:
132
- rubygems_version: 2.4.5
133
- signing_key:
133
+ rubygems_version: 3.5.10
134
+ signing_key:
134
135
  specification_version: 4
135
136
  summary: ULMUL is an Ultra Lightweight Mark-Up Language
136
137
  test_files:
data/bin/ulmul2xhtml DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # ulmul2xhtml
3
- # Time-stamp: <2011-03-31 19:29:32 takeshi>
4
- # Author: Takeshi Nishimatsu
5
- ##
6
- =begin
7
- = ulmul2xhtml
8
- == Usage
9
- === Examples
10
- % ulmul2xhtml foo.txt
11
- % ulmul2xhtml --style=style.css --name="John Smith" foo.ulmul > foo.html
12
- % ulmul2xhtml --style=ulmul-slidy.css --javascript=ulmul-slidy.js \
13
- --name="Takeshi Nishimatsu" presentation.txt > presentation.xhtml
14
- =end
15
- require "ulmul"
16
- # Local variables:
17
- # compile-command: "ruby -I ../lib ulmul2xhtml -s ../ulmul2xhtml.css -s ../google-code-prettify/src/prettify.css -j ../google-code-prettify/src/prettify.js ../lib/test.ulmul | tee test.html"
18
- # End: