ulmul 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ChangeLog +17 -0
- data/Changes +8 -0
- data/README-en +20 -27
- data/README-ja +20 -22
- data/Rakefile +18 -28
- data/index.en.html +29 -38
- data/index.ja.html +28 -32
- data/lib/ulmul.rb +112 -105
- data/ulmul-slidy.css +366 -59
- data/ulmul.gemspec +28 -32
- metadata +98 -128
- data/google-code-prettify/CHANGES.html +0 -130
- data/google-code-prettify/COPYING +0 -202
- data/google-code-prettify/README-zh-Hans.html +0 -143
- data/google-code-prettify/README.html +0 -203
- data/google-code-prettify/src/lang-apollo.js +0 -51
- data/google-code-prettify/src/lang-css.js +0 -78
- data/google-code-prettify/src/lang-fortran.js +0 -53
- data/google-code-prettify/src/lang-hs.js +0 -101
- data/google-code-prettify/src/lang-lisp.js +0 -93
- data/google-code-prettify/src/lang-lua.js +0 -59
- data/google-code-prettify/src/lang-ml.js +0 -56
- data/google-code-prettify/src/lang-proto.js +0 -35
- data/google-code-prettify/src/lang-scala.js +0 -54
- data/google-code-prettify/src/lang-sql.js +0 -57
- data/google-code-prettify/src/lang-vb.js +0 -61
- data/google-code-prettify/src/lang-vhdl.js +0 -34
- data/google-code-prettify/src/lang-wiki.js +0 -53
- data/google-code-prettify/src/lang-yaml.js +0 -27
- data/google-code-prettify/src/prettify.css +0 -44
- data/google-code-prettify/src/prettify.js +0 -1508
- data/google-code-prettify/tests/large_input_test.html +0 -122
- data/google-code-prettify/tests/prettify_test.html +0 -2772
- data/google-code-prettify/tests/test_base.js +0 -132
- data/google-code-prettify/tests/test_styles.css +0 -5
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ee7c57be35732f321d6726a210d52667214ce64590290e6ea68b9e2dce8c92a3
|
4
|
+
data.tar.gz: 8e6898709f4212ea232d7a2b28fb19f82eeb39899e6d6b74173997f1507b3d75
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 39dbcd096b889d6c71135a55e7ae27422b9d02ba9e0a7a1546453f15128fd160dd5bd1cd8632898b4a08dd3de1896dc6dae7da0cd0de278418c370a518824577
|
7
|
+
data.tar.gz: f29394fd5f9105b183882969467825626a099dc3eb1975bbd847ee13e4a217652ded5324d91216beecacc81a34e7de59a60c981994e8ae4040da6ad8705fc33a
|
data/ChangeLog
CHANGED
@@ -1,3 +1,20 @@
|
|
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
|
+
|
5
|
+
2015-01-13 22:04 Takeshi Nishimatsu <t_nissie@yahoo.co.jp>
|
6
|
+
|
7
|
+
* lib/ulmul.rb: for aasm-4.0.8, :on_transition -> :after
|
8
|
+
|
9
|
+
2013-12-31 16:17 Takeshi Nishimatsu <t_nissie@yahoo.co.jp>
|
10
|
+
|
11
|
+
* lib/ulmul.rb: aasm_initial_state -> aasm.initial_state,
|
12
|
+
aasm_state -> aasm.state, aasm_event -> aasm.event
|
13
|
+
|
14
|
+
2011-04-10 14:56 Takeshi Nishimatsu <t_nissie@yahoo.co.jp>
|
15
|
+
|
16
|
+
* lib/ulmul.rb (HTML#body, LaTeX#body): refs
|
17
|
+
|
1
18
|
2011-04-09 14:50 Takeshi Nishimatsu <t_nissie@yahoo.co.jp>
|
2
19
|
|
3
20
|
* README-en, README-ja: Usage of ulmul2mathjax
|
data/Changes
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
= Changes in each version
|
2
|
+
== 0.5.3
|
3
|
+
* For aasm-4.0.8, :on_transition is replaced by :after
|
4
|
+
|
5
|
+
== 0.5.2
|
6
|
+
* Now, in Japanese, spaces are NOT required before and after "Env:foo".
|
7
|
+
* Preparation for aasm-4.0.0
|
8
|
+
* Use -j https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js
|
9
|
+
|
2
10
|
== 0.5.1
|
3
11
|
* ulmul2mathjax, a new command, converts ulmul texts into MathJax documents.
|
4
12
|
* Way to give @subs_rules is changed.
|
data/README-en
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
= ULMUL (Ultra Lightweight MarkUp Language)
|
2
2
|
"ULMUL" is an original Ultra Lightweight MarkUp Language.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
ULMUL is written in Ruby.
|
3
|
+
Using "ulmul2html5" or "ulmul2mathjax" commands, You can convert a
|
4
|
+
ULMUL text with TeX style equations into HTML5 documents with
|
5
|
+
MathML or MathJax, respectively. ULMUL is written in Ruby.
|
7
6
|
You can also use ulmul.rb as a library.
|
8
7
|
|
9
|
-
Homepage of ULMUL: http://
|
8
|
+
Homepage of ULMUL: http://t-nissie.users.sourceforge.net/ULMUL/
|
10
9
|
|
11
|
-
|
10
|
+
Ruby Gem of ULMUL: http://rubygems.org/gems/ulmul
|
11
|
+
|
12
|
+
Repository of ULMUL: https://github.com/t-nissie/ULMUL
|
12
13
|
|
13
14
|
== Features
|
14
15
|
* TeX style equations between two dollar marks ($) and between "\Eq:foo" and "/Eq:foo"
|
@@ -119,8 +120,8 @@ Output:
|
|
119
120
|
Table environment is NOT IMPLEMENTED yet.
|
120
121
|
Start a Table environment with "\Table:bar"
|
121
122
|
and terminate it with "/Table:bar", where "bar" is a tag for the table.
|
122
|
-
You can write a
|
123
|
-
You can refer the
|
123
|
+
You can write a table caption between them.
|
124
|
+
You can refer the table with "Table:bar" as Table:diamond.
|
124
125
|
|
125
126
|
Input:
|
126
127
|
\Table:diamond
|
@@ -135,12 +136,10 @@ Output:
|
|
135
136
|
=== Code
|
136
137
|
Start a Code environment with "\Code:baz FILENAME"
|
137
138
|
and terminate it with "/Code:baz", where "baz" is a tag for the code.
|
138
|
-
You can write a
|
139
|
-
You can refer the
|
140
|
-
Code will be highlighted with
|
141
|
-
|
142
|
-
when options of -s google-code-prettify/src/prettify.css and
|
143
|
-
-j google-code-prettify/src/prettify.js are given.
|
139
|
+
You can write a caption between them.
|
140
|
+
You can refer the code with "Code:baz" as Code:hello.
|
141
|
+
Code will be highlighted with google-code-prettify when
|
142
|
+
-j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js is given.
|
144
143
|
|
145
144
|
Input:
|
146
145
|
\Code:hello hello.c
|
@@ -180,8 +179,8 @@ If you do not need the Table of Contents, specify 1.
|
|
180
179
|
* Its source is http://loto.sourceforge.net/feram/README
|
181
180
|
* http://loto.sourceforge.net/feram/doc/film.xhtml
|
182
181
|
* It is a Slidy presentation made from http://loto.sourceforge.net/feram/doc/film.txt
|
183
|
-
* http://
|
184
|
-
* Its source is http://
|
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
|
=== ulmul2xhtml is obsolete
|
187
186
|
ulmul2xhtml will be removed from next version 0.6.x.
|
@@ -189,7 +188,7 @@ ulmul2xhtml will be removed from next version 0.6.x.
|
|
189
188
|
== Usage of ulmul2mathjax
|
190
189
|
It uses MathJax http://www.mathjax.org/ to show equations.
|
191
190
|
$ ulmul2mathjax --help
|
192
|
-
$ ulmul2mathjax -s ulmul2html5.css -
|
191
|
+
$ ulmul2mathjax -s ulmul2html5.css -j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js \
|
193
192
|
-j 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default' README-en > README-en-mathjax.html
|
194
193
|
|
195
194
|
== Usage of ulmul2latex
|
@@ -207,13 +206,12 @@ ulmul2latex is still under development. Sorry.
|
|
207
206
|
* Citation.
|
208
207
|
For more, see TODO file.
|
209
208
|
|
210
|
-
==
|
211
|
-
You can
|
212
|
-
|
213
|
-
$ svn co svn://rubyforge.org/var/svn/ulmul/ulmul/trunk ulmul
|
209
|
+
== Repository in GitHub
|
210
|
+
You can clone the source tree of ULMUL from GitHub with git(1) command:
|
211
|
+
$ git clone git@github.com:t-nissie/ULMUL.git ulmul
|
214
212
|
|
215
213
|
== Copying
|
216
|
-
Copyright © 2008
|
214
|
+
Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022 by Takeshi Nishimatsu
|
217
215
|
|
218
216
|
ulmul.rb is distributed in the hope that
|
219
217
|
it will be useful, but WITHOUT ANY WARRANTY.
|
@@ -229,11 +227,6 @@ http://www.w3.org/Talks/Tools/Slidy/ . You can find
|
|
229
227
|
their licenses at http://www.w3.org/Consortium/Legal/copyright-documents
|
230
228
|
and http://www.w3.org/Consortium/Legal/copyright-software .
|
231
229
|
|
232
|
-
Google Inc. has copyrights for files under google-code-prettify
|
233
|
-
directory. Package prettify-21-Jul-2010.zip is distributed
|
234
|
-
from http://code.google.com/p/google-code-prettify/ under the
|
235
|
-
Apache License, Version 2.0.
|
236
|
-
|
237
230
|
== Author of ULMUL
|
238
231
|
Takeshi Nishimatsu (t_nissie{at}yahoo.co.jp) http://t-nissie.users.sourceforge.net/
|
239
232
|
|
data/README-ja
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
= ULMUL取扱説明書
|
2
2
|
ULMULは独自の軽量マークアップ言語 (Ultra Lightweight MarkUp Language) です。
|
3
|
-
|
4
|
-
|
3
|
+
文章中のTeXスタイルで書かれた数式をMathMLかMathJaxに変換できるのが特徴です。
|
4
|
+
コマンドulmul2html5でMathMLを使ったHTML5に、ulmul2mathjaxでMathJaxを使ったHTML5に変換します。
|
5
|
+
ulmul2latexでLaTeXにも変換できます。
|
5
6
|
Rubyで書かれています。ulmul.rbをライブラリとして利用することも可能です。
|
6
7
|
|
7
|
-
ホームページ: http://
|
8
|
+
ホームページ: http://t-nissie.users.sourceforge.net/ULMUL/
|
8
9
|
|
9
|
-
|
10
|
+
Ruby Gem: http://rubygems.org/gems/ulmul
|
11
|
+
|
12
|
+
レポジトリ: https://github.com/t-nissie/ULMUL
|
10
13
|
|
11
14
|
== 特徴
|
12
15
|
* 文章中の2つのドル記号($)で挟まれた部分と"\Eq:foo"と"/Eq:foo"とで挟まれた行が
|
@@ -79,7 +82,7 @@ EOF と "=end" が出てくると処理が終了します。
|
|
79
82
|
|
80
83
|
=== 数式の書き方
|
81
84
|
文章中の2つのドル記号($)で挟まれた部分がTeX形式からMathML形式に変換されます。
|
82
|
-
|
85
|
+
また、"\Eq:foo"と"/Eq:foo"とで挟まれた行も次の例のように処理されます。
|
83
86
|
|
84
87
|
入力:
|
85
88
|
Mass $m$ can be converted into energy $E$ as
|
@@ -94,7 +97,7 @@ Mass $m$ can be converted into energy $E$ as
|
|
94
97
|
E=mc^2.
|
95
98
|
/Eq:Emc2
|
96
99
|
|
97
|
-
数式は"Eq:Einstein"のように参照します。こんなかんじ
|
100
|
+
数式は"Eq:Einstein"のように参照します。こんなかんじEq:Emc2。
|
98
101
|
|
99
102
|
数式を正しくご覧いただくには
|
100
103
|
* Firefox 4 http://mozilla.jp/firefox/
|
@@ -105,7 +108,7 @@ Mass $m$ can be converted into energy $E$ as
|
|
105
108
|
「図環境」は "\Fig:foo FILENAME.jpg" で始めて "/Fig:foo" で閉じてください。
|
106
109
|
間に図のキャプションを書くことができます。
|
107
110
|
ここで "foo" は図のタグです。
|
108
|
-
"Fig:foo"で図を参照することができます。こんな具合です
|
111
|
+
"Fig:foo"で図を参照することができます。こんな具合ですFig:ruby。
|
109
112
|
|
110
113
|
入力:
|
111
114
|
\Fig:ruby ruby.jpg
|
@@ -127,8 +130,8 @@ Table環境はまだインプリメントされていません。
|
|
127
130
|
=== コードの挿入方法
|
128
131
|
「コード環境」は "\Code:baz FILENAME" で始めて "/Code:baz" で閉じてください。
|
129
132
|
間にキャプションを書くことができます。
|
130
|
-
ここで "baz"
|
131
|
-
"Code:baz"で当該コードを参照することができます。こんな具合です
|
133
|
+
ここで "baz" はコードのタグです。
|
134
|
+
"Code:baz"で当該コードを参照することができます。こんな具合ですCode:hello。
|
132
135
|
|
133
136
|
入力:
|
134
137
|
\Code:hello hello.c
|
@@ -167,8 +170,8 @@ JavaScriptのファイル名を指定します。
|
|
167
170
|
* ソースは http://loto.sourceforge.net/feram/README
|
168
171
|
* http://loto.sourceforge.net/feram/doc/film.xhtml
|
169
172
|
* ソースは http://loto.sourceforge.net/feram/doc/film.txt
|
170
|
-
* http://
|
171
|
-
* ソースは http://
|
173
|
+
* http://t-nissie.users.sourceforge.net/ULMUL/index.ja.html
|
174
|
+
* ソースは http://t-nissie.users.sourceforge.net/ULMUL/README-ja (この文章)
|
172
175
|
|
173
176
|
=== ulmul2xhtmlは消します
|
174
177
|
次のバージョン (0.6.x) からulmul2xhtmlは消します。
|
@@ -176,7 +179,7 @@ JavaScriptのファイル名を指定します。
|
|
176
179
|
== ulmul2mathjaxの使用方法
|
177
180
|
数式を MathJax http://www.mathjax.org/ で出力します。
|
178
181
|
$ ulmul2mathjax --help
|
179
|
-
$ ulmul2mathjax -s ulmul2html5.css -
|
182
|
+
$ ulmul2mathjax -s ulmul2html5.css -j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js \
|
180
183
|
-j 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default' README-en > README-en-mathjax.html
|
181
184
|
|
182
185
|
== ulmul2latexの使用方法
|
@@ -188,13 +191,13 @@ JavaScriptのファイル名を指定します。
|
|
188
191
|
ulmul2latexはまだ発展途上です。
|
189
192
|
|
190
193
|
== 最新のソース・ツリーの入手方法
|
191
|
-
ソース・ツリーは
|
192
|
-
|
193
|
-
$
|
194
|
-
と匿名で
|
194
|
+
ソース・ツリーはGitHubに置いてあります。
|
195
|
+
git(1)コマンドを使って
|
196
|
+
$ git clone git@github.com:t-nissie/ULMUL.git ulmul
|
197
|
+
と匿名でcloneできます。
|
195
198
|
|
196
199
|
== 著作権表示
|
197
|
-
Copyright © 2008
|
200
|
+
Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022 by Takeshi Nishimatsu
|
198
201
|
|
199
202
|
ulmul.rb is distributed in the hope that
|
200
203
|
it will be useful, but WITHOUT ANY WARRANTY.
|
@@ -210,11 +213,6 @@ http://www.w3.org/Talks/Tools/Slidy/ . You can find
|
|
210
213
|
their licenses at http://www.w3.org/Consortium/Legal/copyright-documents
|
211
214
|
and http://www.w3.org/Consortium/Legal/copyright-software .
|
212
215
|
|
213
|
-
Google Inc. has copyrights for files under google-code-prettify
|
214
|
-
directory. Package prettify-21-Jul-2010.zip is distributed
|
215
|
-
from http://code.google.com/p/google-code-prettify/ under the
|
216
|
-
Apache License, Version 2.0.
|
217
|
-
|
218
216
|
== 作者
|
219
217
|
西松タケシ (t_nissie{at}yahoo.co.jp) http://t-nissie.users.sourceforge.net/
|
220
218
|
|
data/Rakefile
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
#! /usr/bin/env rake
|
2
2
|
# -*-Ruby-*-
|
3
|
-
# Time-stamp: <
|
3
|
+
# Time-stamp: <2017-08-31 06:08:40 takeshi>
|
4
4
|
# Author: Takeshi Nishimatsu
|
5
5
|
##
|
6
6
|
$LOAD_PATH.unshift('lib')
|
7
7
|
|
8
8
|
require 'rubygems'
|
9
|
-
require '
|
9
|
+
require 'rubygems/package_task'
|
10
10
|
require 'rake/testtask'
|
11
11
|
require 'rake/clean'
|
12
12
|
require 'ulmul.rb'
|
13
|
-
require 'archive/tar/minitar'
|
14
13
|
require 'zlib'
|
15
14
|
|
16
15
|
spec = eval(File.read("ulmul.gemspec"))
|
@@ -22,7 +21,7 @@ ULMUL_PACKAGE_DIR = '..'
|
|
22
21
|
|
23
22
|
desc "Build a gem for ulmul"
|
24
23
|
task :gem => [ :test ]
|
25
|
-
|
24
|
+
Gem::PackageTask.new(spec) do |g|
|
26
25
|
g.need_tar = true
|
27
26
|
g.need_zip = true
|
28
27
|
g.package_dir = ULMUL_PACKAGE_DIR
|
@@ -48,40 +47,31 @@ end
|
|
48
47
|
# end
|
49
48
|
# end
|
50
49
|
|
51
|
-
desc "Publish to
|
52
|
-
task :
|
53
|
-
|
54
|
-
|
55
|
-
|
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|
|
56
55
|
t.prerequisites.each do |f|
|
57
|
-
sh "scp #{f}
|
56
|
+
sh "scp #{f} web.sourceforge.net:/home/users/t/t-/t-nissie/userweb/htdocs/ULMUL/"
|
58
57
|
end
|
59
|
-
sh "scp index.en.html
|
60
|
-
sh "scp dot.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"
|
61
60
|
end
|
62
61
|
|
63
62
|
desc "Create presentation.en.html from README-en"
|
64
|
-
file "presentation.en.html" => ["bin/ulmul2html5", "README-en", "ulmul-slidy.css", "
|
65
|
-
"google-code-prettify/src/prettify.js", "ulmul-slidy.js", "lib/ulmul.rb"] do |t|
|
63
|
+
file "presentation.en.html" => ["bin/ulmul2html5", "README-en", "ulmul-slidy.css", "ulmul-slidy.js", "lib/ulmul.rb"] do |t|
|
66
64
|
sh "ruby -I lib #{t.prerequisites[0]} -n 'Takeshi Nishimatsu' -s #{t.prerequisites[2]} -s #{t.prerequisites[3]} \
|
67
65
|
-j #{t.prerequisites[4]} -j #{t.prerequisites[5]} -m 2 -l en #{t.prerequisites[1]} > #{t.name}"
|
68
66
|
end
|
69
67
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
-j #{t.prerequisites[4]} -l en #{t.prerequisites[1]} | \
|
68
|
+
["en", "ja"].each{|lang|
|
69
|
+
desc "Create index.#{lang}.html"
|
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://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js -l #{lang} #{t.prerequisites[1]} | \
|
75
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}"
|
76
|
-
end
|
77
|
-
|
78
|
-
desc "Create index.ja.html"
|
79
|
-
file "index.ja.html" => ["bin/ulmul2html5", "README-ja", "ulmul2html5.css", "google-code-prettify/src/prettify.css",
|
80
|
-
"google-code-prettify/src/prettify.js", "lib/ulmul.rb"] do |t|
|
81
|
-
sh "ruby -I lib #{t.prerequisites[0]} -n 'Takeshi Nishimatsu' -s #{t.prerequisites[2]} -s #{t.prerequisites[3]} \
|
82
|
-
-j #{t.prerequisites[4]} -l ja #{t.prerequisites[1]} | \
|
83
|
-
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}"
|
84
|
-
end
|
73
|
+
end
|
74
|
+
}
|
85
75
|
|
86
76
|
desc "Create README-en.tex"
|
87
77
|
file "README-en.tex" => ["bin/ulmul2latex", "README-en", "lib/ulmul.rb", "Rakefile"] do |t|
|
data/index.en.html
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
5
|
<title>ULMUL (Ultra Lightweight MarkUp Language)</title>
|
6
6
|
<meta name="author" content="Takeshi Nishimatsu" />
|
7
|
-
<meta name="copyright" content="Copyright © 2011 Takeshi Nishimatsu" />
|
8
7
|
<script type="text/x-mathjax-config">
|
9
8
|
MathJax.Hub.Config({
|
10
9
|
tex2jax: {
|
@@ -13,26 +12,27 @@
|
|
13
12
|
});
|
14
13
|
</script>
|
15
14
|
<link rel="stylesheet" href="ulmul2html5.css" type="text/css" />
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<link rel="shortcut icon" href="favicon.ico" />
|
15
|
+
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js" type="text/javascript"></script>
|
16
|
+
<link rel="icon" href="favicon.ico" />
|
19
17
|
</head>
|
20
18
|
<body onload="prettyPrint()">
|
21
19
|
<div class="slide cover">
|
22
20
|
<h1 id="LABEL-1">ULMUL (Ultra Lightweight MarkUp Language)</h1><div class="navi">[<a href="index.en.html">English</a>/<a href="index.ja.html">Japanese</a>]</div>
|
23
21
|
<p>
|
24
22
|
"ULMUL" is an original Ultra Lightweight MarkUp Language.
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
ULMUL is written in Ruby.
|
23
|
+
Using "ulmul2html5" or "ulmul2mathjax" commands, You can convert a
|
24
|
+
ULMUL text with TeX style equations into HTML5 documents with
|
25
|
+
MathML or MathJax, respectively. ULMUL is written in Ruby.
|
29
26
|
You can also use ulmul.rb as a library.
|
30
27
|
</p>
|
31
28
|
<p>
|
32
|
-
Homepage of ULMUL: <a href="http://
|
29
|
+
Homepage of ULMUL: <a href="http://t-nissie.users.sourceforge.net/ULMUL/">http://t-nissie.users.sourceforge.net/ULMUL/</a>
|
33
30
|
</p>
|
34
31
|
<p>
|
35
|
-
|
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>
|
36
36
|
</p>
|
37
37
|
<br />
|
38
38
|
<div class="table of contents">
|
@@ -59,7 +59,7 @@ Table of Contents:
|
|
59
59
|
<li><a href="#LABEL-29">Usage of ulmul2mathjax</a></li>
|
60
60
|
<li><a href="#LABEL-30">Usage of ulmul2latex</a></li>
|
61
61
|
<li><a href="#LABEL-31">TODO</a></li>
|
62
|
-
<li><a href="#LABEL-32">
|
62
|
+
<li><a href="#LABEL-32">Repository in GitHub</a></li>
|
63
63
|
<li><a href="#LABEL-33">Copying</a></li>
|
64
64
|
<li><a href="#LABEL-34">Author of ULMUL</a></li>
|
65
65
|
</ul>
|
@@ -198,7 +198,7 @@ Output:
|
|
198
198
|
</p>
|
199
199
|
<p>
|
200
200
|
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
|
201
|
-
<math id="Eq:Emc2" 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>
|
201
|
+
<math id="Eq:Emc2" xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo stretchy='false'>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo stretchy='false'>.</mo></math>
|
202
202
|
</p>
|
203
203
|
<p>
|
204
204
|
You can refer the equation in a way like "Eq:Einstein", as <a href="#Eq:Emc2">Eq. (1)</a>.
|
@@ -237,7 +237,7 @@ Output:
|
|
237
237
|
<figcaption>
|
238
238
|
Figure 1: The is a dummy figure for an example.
|
239
239
|
Cute red logo of Ruby, isn't it?
|
240
|
-
You can write equations even in a caption as <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>a</mi><msup><mi>x</mi><mn>2</mn></msup><mo>+</mo><mi>b</mi><mi>x</mi><mo>+</mo><mi>c</mi><mo>=</mo><mn>0</mn></math>.
|
240
|
+
You can write equations even in a caption as <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>a</mi><msup><mi>x</mi><mn>2</mn></msup><mo stretchy='false'>+</mo><mi>b</mi><mi>x</mi><mo stretchy='false'>+</mo><mi>c</mi><mo stretchy='false'>=</mo><mn>0</mn></math>.
|
241
241
|
</figcaption>
|
242
242
|
</figure>
|
243
243
|
<h3 id="LABEL-16">Tables</h3>
|
@@ -245,8 +245,8 @@ Output:
|
|
245
245
|
Table environment is NOT IMPLEMENTED yet.
|
246
246
|
Start a Table environment with "\Table:bar"
|
247
247
|
and terminate it with "/Table:bar", where "bar" is a tag for the table.
|
248
|
-
You can write a
|
249
|
-
You can refer the
|
248
|
+
You can write a table caption between them.
|
249
|
+
You can refer the table with "Table:bar" as <a href="#Table:diamond">Table 1</a>.
|
250
250
|
</p>
|
251
251
|
<p>
|
252
252
|
Input:
|
@@ -270,12 +270,10 @@ Output:
|
|
270
270
|
<p>
|
271
271
|
Start a Code environment with "\Code:baz FILENAME"
|
272
272
|
and terminate it with "/Code:baz", where "baz" is a tag for the code.
|
273
|
-
You can write a
|
274
|
-
You can refer the
|
275
|
-
Code will be highlighted with
|
276
|
-
|
277
|
-
when options of -s google-code-prettify/src/prettify.css and
|
278
|
-
-j google-code-prettify/src/prettify.js are given.
|
273
|
+
You can write a caption between them.
|
274
|
+
You can refer the code with "Code:baz" as <a href="#Code:hello">Code 1</a>.
|
275
|
+
Code will be highlighted with google-code-prettify when
|
276
|
+
-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.
|
279
277
|
</p>
|
280
278
|
<p>
|
281
279
|
Input:
|
@@ -309,8 +307,8 @@ int main()
|
|
309
307
|
<h2 id="LABEL-18">Usage of ulmul2html5</h2>
|
310
308
|
<h3 id="LABEL-19">Examples</h3>
|
311
309
|
<pre>
|
312
|
-
$ ulmul2html5 foo.txt
|
313
|
-
$ ulmul2html5 -n 'Takeshi Nishimatsu' -s ulmul-slidy.css -j ulmul-slidy.js presentation.txt
|
310
|
+
$ ulmul2html5 foo.txt > foo.html
|
311
|
+
$ ulmul2html5 -n 'Takeshi Nishimatsu' -s ulmul-slidy.css -j ulmul-slidy.js presentation.txt > presentation.html
|
314
312
|
</pre>
|
315
313
|
<h3 id="LABEL-20">Command options</h3>
|
316
314
|
<h4 id="LABEL-21">--help</h4>
|
@@ -350,9 +348,9 @@ If you do not need the Table of Contents, specify 1.
|
|
350
348
|
<ul>
|
351
349
|
<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>
|
352
350
|
</ul></li>
|
353
|
-
<li><a href="http://
|
351
|
+
<li><a href="http://t-nissie.users.sourceforge.net/ULMUL/index.en.html">http://t-nissie.users.sourceforge.net/ULMUL/index.en.html</a>
|
354
352
|
<ul>
|
355
|
-
<li>Its source is <a href="http://
|
353
|
+
<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>
|
356
354
|
</ul></li>
|
357
355
|
</ul>
|
358
356
|
<h3 id="LABEL-28">ulmul2xhtml is obsolete</h3>
|
@@ -369,8 +367,8 @@ It uses MathJax <a href="http://www.mathjax.org/">http://www.mathjax.org/</a> to
|
|
369
367
|
</p>
|
370
368
|
<pre>
|
371
369
|
$ ulmul2mathjax --help
|
372
|
-
$ ulmul2mathjax -s ulmul2html5.css -
|
373
|
-
-j 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default' README-en
|
370
|
+
$ ulmul2mathjax -s ulmul2html5.css -j https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js \
|
371
|
+
-j 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default' README-en > README-en-mathjax.html
|
374
372
|
</pre>
|
375
373
|
</div>
|
376
374
|
|
@@ -406,13 +404,12 @@ For more, see TODO file.
|
|
406
404
|
|
407
405
|
|
408
406
|
<div class="slide">
|
409
|
-
<h2 id="LABEL-32">
|
407
|
+
<h2 id="LABEL-32">Repository in GitHub</h2>
|
410
408
|
<p>
|
411
|
-
You can
|
412
|
-
with svn(1) command:
|
409
|
+
You can clone the source tree of ULMUL from GitHub with git(1) command:
|
413
410
|
</p>
|
414
411
|
<pre>
|
415
|
-
$
|
412
|
+
$ git clone git@github.com:t-nissie/ULMUL.git ulmul
|
416
413
|
</pre>
|
417
414
|
</div>
|
418
415
|
|
@@ -420,7 +417,7 @@ $ svn co svn://rubyforge.org/var/svn/ulmul/ulmul/trunk ulmul
|
|
420
417
|
<div class="slide">
|
421
418
|
<h2 id="LABEL-33">Copying</h2>
|
422
419
|
<p>
|
423
|
-
Copyright © 2008
|
420
|
+
Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022 by Takeshi Nishimatsu
|
424
421
|
</p>
|
425
422
|
<p>
|
426
423
|
ulmul.rb is distributed in the hope that
|
@@ -438,12 +435,6 @@ You can download the original package, slidy.zip, from
|
|
438
435
|
their licenses at <a href="http://www.w3.org/Consortium/Legal/copyright-documents">http://www.w3.org/Consortium/Legal/copyright-documents</a>
|
439
436
|
and <a href="http://www.w3.org/Consortium/Legal/copyright-software">http://www.w3.org/Consortium/Legal/copyright-software</a> .
|
440
437
|
</p>
|
441
|
-
<p>
|
442
|
-
Google Inc. has copyrights for files under google-code-prettify
|
443
|
-
directory. Package prettify-21-Jul-2010.zip is distributed
|
444
|
-
from <a href="http://code.google.com/p/google-code-prettify/">http://code.google.com/p/google-code-prettify/</a> under the
|
445
|
-
Apache License, Version 2.0.
|
446
|
-
</p>
|
447
438
|
</div>
|
448
439
|
|
449
440
|
|