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.
- data/README-en +118 -63
- data/README-ja +92 -58
- data/Rakefile +26 -10
- data/bin/ulmul2html5 +7 -58
- data/bin/ulmul2latex +34 -0
- data/bin/ulmul2xhtml +6 -58
- data/google-code-prettify/CHANGES.html +130 -0
- data/google-code-prettify/COPYING +202 -0
- data/google-code-prettify/README-zh-Hans.html +143 -0
- data/google-code-prettify/README.html +203 -0
- data/google-code-prettify/src/lang-apollo.js +51 -0
- data/google-code-prettify/src/lang-css.js +78 -0
- data/google-code-prettify/src/lang-fortran.js +53 -0
- data/google-code-prettify/src/lang-hs.js +101 -0
- data/google-code-prettify/src/lang-lisp.js +93 -0
- data/google-code-prettify/src/lang-lua.js +59 -0
- data/google-code-prettify/src/lang-ml.js +56 -0
- data/google-code-prettify/src/lang-proto.js +35 -0
- data/google-code-prettify/src/lang-scala.js +54 -0
- data/google-code-prettify/src/lang-sql.js +57 -0
- data/google-code-prettify/src/lang-vb.js +61 -0
- data/google-code-prettify/src/lang-vhdl.js +34 -0
- data/google-code-prettify/src/lang-wiki.js +53 -0
- data/google-code-prettify/src/lang-yaml.js +27 -0
- data/google-code-prettify/src/prettify.css +44 -0
- data/google-code-prettify/src/prettify.js +1508 -0
- data/google-code-prettify/tests/large_input_test.html +122 -0
- data/google-code-prettify/tests/prettify_test.html +2772 -0
- data/google-code-prettify/tests/test_base.js +132 -0
- data/google-code-prettify/tests/test_styles.css +5 -0
- data/hello.c +7 -0
- data/index.en.html +221 -120
- data/index.ja.html +182 -115
- data/lib/ulmul.rb +477 -276
- data/test/unit/ulmul_test.rb +21 -0
- data/ulmul-slidy.css +21 -8
- data/ulmul.gemspec +9 -5
- data/ulmul2html5.css +19 -5
- data/ulmul2xhtml.css +17 -1
- metadata +90 -12
- data/tests/ulmul_test.rb +0 -14
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# ulmul_test.rb -*-ruby-*-
|
|
2
|
+
# Time-stamp: <2011-04-02 17:10:52 takeshi>
|
|
3
|
+
# Author: Takeshi NISHIMATSU
|
|
4
|
+
##
|
|
5
|
+
require 'rubygems'
|
|
6
|
+
require 'test/unit'
|
|
7
|
+
require 'ulmul'
|
|
8
|
+
class TestULMUL < Test::Unit::TestCase
|
|
9
|
+
def test_exist_Ulmul
|
|
10
|
+
assert_instance_of(Class, Ulmul)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def test_method_parse
|
|
14
|
+
assert(Ulmul.method_defined?(:parse))
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def test_singleton_new
|
|
18
|
+
u = Ulmul.new()
|
|
19
|
+
assert_instance_of(Ulmul, u)
|
|
20
|
+
end
|
|
21
|
+
end
|
data/ulmul-slidy.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* ulmul-slidy.css -*-CSS-*-
|
|
2
2
|
|
|
3
3
|
Original slidy.css is modified by Takeshi NISHIMATSU
|
|
4
|
-
Time-stamp: <
|
|
4
|
+
Time-stamp: <2011-04-01 11:31:15 takeshi>
|
|
5
5
|
|
|
6
6
|
References:
|
|
7
7
|
http://daily-expo.com/csslite/
|
|
@@ -79,6 +79,7 @@ div.slide.cover {
|
|
|
79
79
|
div.slide.cover h1{
|
|
80
80
|
font-weight: bold;
|
|
81
81
|
font-size: 1.6em;
|
|
82
|
+
line-height: 1.6em;
|
|
82
83
|
margin: 20% 10% 1%;
|
|
83
84
|
padding: 0.5em 0;
|
|
84
85
|
background: transparent;
|
|
@@ -102,11 +103,23 @@ div.toolbar {
|
|
|
102
103
|
background-color: #e3e3ff;
|
|
103
104
|
}
|
|
104
105
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
figure img { width:50%;
|
|
107
|
+
margin-left:auto;
|
|
108
|
+
margin-right:auto;
|
|
109
|
+
display: block;}
|
|
109
110
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
figure figcaption { width:60%;
|
|
112
|
+
margin-left:auto;
|
|
113
|
+
margin-right:auto;}
|
|
114
|
+
|
|
115
|
+
table {
|
|
116
|
+
border: blue 2px solid;
|
|
117
|
+
text-align: center;
|
|
118
|
+
margin: auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
p.code.caption {
|
|
122
|
+
width: 80%;
|
|
123
|
+
margin: auto;
|
|
124
|
+
display: block;
|
|
125
|
+
}
|
data/ulmul.gemspec
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# ulmul.gemspec -*-ruby-*-
|
|
2
|
-
# Time-stamp: <
|
|
2
|
+
# Time-stamp: <2011-04-02 18:00:52 takeshi>
|
|
3
3
|
# Author: Takeshi Nishimatsu
|
|
4
4
|
##
|
|
5
5
|
Gem::Specification.new do |s|
|
|
@@ -7,11 +7,12 @@ Gem::Specification.new do |s|
|
|
|
7
7
|
s.name = 'ulmul'
|
|
8
8
|
|
|
9
9
|
s.bindir = 'bin'
|
|
10
|
-
s.executables = ['ulmul2html5', 'ulmul2xhtml']
|
|
10
|
+
s.executables = ['ulmul2html5', 'ulmul2xhtml', 'ulmul2latex']
|
|
11
11
|
s.default_executable= 'ulmul2html5'
|
|
12
12
|
|
|
13
13
|
s.summary = 'ULMUL is an Ultra Lightweight Mark-Up Language'
|
|
14
|
-
s.files = Dir.glob("{
|
|
14
|
+
s.files = Dir.glob("{google-code-prettify}/**/*") <<
|
|
15
|
+
'lib/ulmul.rb' << 'test/unit/ulmul_test.rb' <<
|
|
15
16
|
'ulmul2xhtml.css' << 'favicon.ico' <<
|
|
16
17
|
'ulmul2html5.css' << 'XHTML-vs-HTML5.ja.txt' <<
|
|
17
18
|
'ChangeLog' <<
|
|
@@ -19,18 +20,21 @@ Gem::Specification.new do |s|
|
|
|
19
20
|
'README-ja' << 'index.ja.html' <<
|
|
20
21
|
'Rakefile' << 'ulmul.gemspec' << 'setup.rb' <<
|
|
21
22
|
'ruby.jpg' <<
|
|
23
|
+
'hello.c' <<
|
|
22
24
|
'ulmul-slidy.js' <<
|
|
23
25
|
'ulmul-slidy.css'
|
|
24
26
|
s.author = 'Takeshi Nishimatsu'
|
|
25
|
-
s.email = '
|
|
27
|
+
s.email = 't_nissie@yahoo.co.jp'
|
|
26
28
|
s.rubyforge_project = 'ulmul'
|
|
27
29
|
s.homepage = 'http://ulmul.rubyforge.org/'
|
|
28
|
-
s.test_files = ['
|
|
30
|
+
s.test_files = ['test/unit/ulmul_test.rb']
|
|
29
31
|
|
|
30
32
|
s.has_rdoc = true
|
|
31
33
|
# s.extra_rdoc_files = %w(README)
|
|
32
34
|
|
|
33
35
|
s.add_dependency('math_ml', '>=0.9')
|
|
36
|
+
s.add_dependency('aasm', '>=2.2.0')
|
|
37
|
+
s.add_dependency('exifr', '>=1.0.5')
|
|
34
38
|
|
|
35
39
|
s.description = <<-EOF
|
|
36
40
|
"ULMUL" is an original Ultra Lightweight MarkUp Language.
|
data/ulmul2html5.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* -*-CSS-*-
|
|
2
2
|
* style.css for index.??.html of ulmul
|
|
3
|
-
* Time-stamp: <
|
|
3
|
+
* Time-stamp: <2011-03-31 19:04:27 takeshi>
|
|
4
4
|
* Author: Takeshi NISHIMATSU
|
|
5
5
|
*/
|
|
6
6
|
body
|
|
@@ -66,17 +66,31 @@ pre
|
|
|
66
66
|
|
|
67
67
|
figure img{
|
|
68
68
|
width: 30%;
|
|
69
|
-
margin
|
|
70
|
-
margin-right: auto;
|
|
69
|
+
margin: auto;
|
|
71
70
|
display: block;
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
figure figcaption{
|
|
75
74
|
width: 40%;
|
|
76
|
-
margin
|
|
77
|
-
margin-right: auto;
|
|
75
|
+
margin: auto;
|
|
78
76
|
display: block;
|
|
79
77
|
}
|
|
80
78
|
|
|
79
|
+
table {
|
|
80
|
+
border: blue 2px solid;
|
|
81
|
+
text-align: center;
|
|
82
|
+
margin: auto;
|
|
83
|
+
}
|
|
84
|
+
|
|
81
85
|
div.navi { text-align: right;
|
|
82
86
|
margin-right: 1.0em; }
|
|
87
|
+
|
|
88
|
+
div.table.of.contents {
|
|
89
|
+
margin-left: 10%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
p.code.caption {
|
|
93
|
+
width: 80%;
|
|
94
|
+
margin: auto;
|
|
95
|
+
display: block;
|
|
96
|
+
}
|
data/ulmul2xhtml.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* -*-CSS-*-
|
|
2
2
|
* style.css for index.??.html of ulmul
|
|
3
|
-
* Time-stamp: <
|
|
3
|
+
* Time-stamp: <2011-03-31 19:30:43 takeshi>
|
|
4
4
|
* Author: Takeshi NISHIMATSU
|
|
5
5
|
*/
|
|
6
6
|
body
|
|
@@ -78,5 +78,21 @@ div.figure div.figcaption{
|
|
|
78
78
|
display: block;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
table {
|
|
82
|
+
border: blue 2px solid;
|
|
83
|
+
text-align: center;
|
|
84
|
+
margin: auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
81
87
|
div.navi { text-align: right;
|
|
82
88
|
margin-right: 1.0em; }
|
|
89
|
+
|
|
90
|
+
div.table.of.contents {
|
|
91
|
+
margin-left: 10%;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
p.code.caption {
|
|
95
|
+
width: 80%;
|
|
96
|
+
margin: auto;
|
|
97
|
+
display: block;
|
|
98
|
+
}
|
metadata
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ulmul
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
hash: 11
|
|
5
|
+
prerelease: false
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 5
|
|
9
|
+
- 0
|
|
10
|
+
version: 0.5.0
|
|
5
11
|
platform: ruby
|
|
6
12
|
authors:
|
|
7
13
|
- Takeshi Nishimatsu
|
|
@@ -9,31 +15,93 @@ autorequire: lib/ulmul.rb
|
|
|
9
15
|
bindir: bin
|
|
10
16
|
cert_chain: []
|
|
11
17
|
|
|
12
|
-
date:
|
|
18
|
+
date: 2011-04-02 00:00:00 +09:00
|
|
13
19
|
default_executable: ulmul2html5
|
|
14
20
|
dependencies:
|
|
15
21
|
- !ruby/object:Gem::Dependency
|
|
16
22
|
name: math_ml
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
prerelease: false
|
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
20
26
|
requirements:
|
|
21
27
|
- - ">="
|
|
22
28
|
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 25
|
|
30
|
+
segments:
|
|
31
|
+
- 0
|
|
32
|
+
- 9
|
|
23
33
|
version: "0.9"
|
|
24
|
-
|
|
34
|
+
type: :runtime
|
|
35
|
+
version_requirements: *id001
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
37
|
+
name: aasm
|
|
38
|
+
prerelease: false
|
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
40
|
+
none: false
|
|
41
|
+
requirements:
|
|
42
|
+
- - ">="
|
|
43
|
+
- !ruby/object:Gem::Version
|
|
44
|
+
hash: 7
|
|
45
|
+
segments:
|
|
46
|
+
- 2
|
|
47
|
+
- 2
|
|
48
|
+
- 0
|
|
49
|
+
version: 2.2.0
|
|
50
|
+
type: :runtime
|
|
51
|
+
version_requirements: *id002
|
|
52
|
+
- !ruby/object:Gem::Dependency
|
|
53
|
+
name: exifr
|
|
54
|
+
prerelease: false
|
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
56
|
+
none: false
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
hash: 29
|
|
61
|
+
segments:
|
|
62
|
+
- 1
|
|
63
|
+
- 0
|
|
64
|
+
- 5
|
|
65
|
+
version: 1.0.5
|
|
66
|
+
type: :runtime
|
|
67
|
+
version_requirements: *id003
|
|
25
68
|
description: " \"ULMUL\" is an original Ultra Lightweight MarkUp Language.\n ULMUL texts can be converted into HTML5 with \"ulmul2html5\" command\n and into XHTML with \"ulmul2xhtml\" command.\n TeX style equations are converted into MathML.\n ULMUL is written in Ruby.\n You can also use ulmul.rb as a library.\n Visit its project homepage http://ulmul.rubyforge.org/ .\n\n Use ulmul-slidy.js and ulmul-slidy.css in the ulmul package for your presentations using Firefox.\n"
|
|
26
|
-
email:
|
|
69
|
+
email: t_nissie@yahoo.co.jp
|
|
27
70
|
executables:
|
|
28
71
|
- ulmul2html5
|
|
29
72
|
- ulmul2xhtml
|
|
73
|
+
- ulmul2latex
|
|
30
74
|
extensions: []
|
|
31
75
|
|
|
32
76
|
extra_rdoc_files: []
|
|
33
77
|
|
|
34
78
|
files:
|
|
79
|
+
- google-code-prettify/CHANGES.html
|
|
80
|
+
- google-code-prettify/COPYING
|
|
81
|
+
- google-code-prettify/README-zh-Hans.html
|
|
82
|
+
- google-code-prettify/README.html
|
|
83
|
+
- google-code-prettify/src/lang-apollo.js
|
|
84
|
+
- google-code-prettify/src/lang-css.js
|
|
85
|
+
- google-code-prettify/src/lang-fortran.js
|
|
86
|
+
- google-code-prettify/src/lang-hs.js
|
|
87
|
+
- google-code-prettify/src/lang-lisp.js
|
|
88
|
+
- google-code-prettify/src/lang-lua.js
|
|
89
|
+
- google-code-prettify/src/lang-ml.js
|
|
90
|
+
- google-code-prettify/src/lang-proto.js
|
|
91
|
+
- google-code-prettify/src/lang-scala.js
|
|
92
|
+
- google-code-prettify/src/lang-sql.js
|
|
93
|
+
- google-code-prettify/src/lang-vb.js
|
|
94
|
+
- google-code-prettify/src/lang-vhdl.js
|
|
95
|
+
- google-code-prettify/src/lang-wiki.js
|
|
96
|
+
- google-code-prettify/src/lang-yaml.js
|
|
97
|
+
- google-code-prettify/src/prettify.css
|
|
98
|
+
- google-code-prettify/src/prettify.js
|
|
99
|
+
- google-code-prettify/tests/large_input_test.html
|
|
100
|
+
- google-code-prettify/tests/prettify_test.html
|
|
101
|
+
- google-code-prettify/tests/test_base.js
|
|
102
|
+
- google-code-prettify/tests/test_styles.css
|
|
35
103
|
- lib/ulmul.rb
|
|
36
|
-
-
|
|
104
|
+
- test/unit/ulmul_test.rb
|
|
37
105
|
- ulmul2xhtml.css
|
|
38
106
|
- favicon.ico
|
|
39
107
|
- ulmul2html5.css
|
|
@@ -47,8 +115,12 @@ files:
|
|
|
47
115
|
- ulmul.gemspec
|
|
48
116
|
- setup.rb
|
|
49
117
|
- ruby.jpg
|
|
118
|
+
- hello.c
|
|
50
119
|
- ulmul-slidy.js
|
|
51
120
|
- ulmul-slidy.css
|
|
121
|
+
- bin/ulmul2html5
|
|
122
|
+
- bin/ulmul2xhtml
|
|
123
|
+
- bin/ulmul2latex
|
|
52
124
|
has_rdoc: true
|
|
53
125
|
homepage: http://ulmul.rubyforge.org/
|
|
54
126
|
licenses: []
|
|
@@ -59,23 +131,29 @@ rdoc_options: []
|
|
|
59
131
|
require_paths:
|
|
60
132
|
- lib
|
|
61
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
|
+
none: false
|
|
62
135
|
requirements:
|
|
63
136
|
- - ">="
|
|
64
137
|
- !ruby/object:Gem::Version
|
|
138
|
+
hash: 3
|
|
139
|
+
segments:
|
|
140
|
+
- 0
|
|
65
141
|
version: "0"
|
|
66
|
-
version:
|
|
67
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
|
+
none: false
|
|
68
144
|
requirements:
|
|
69
145
|
- - ">="
|
|
70
146
|
- !ruby/object:Gem::Version
|
|
147
|
+
hash: 3
|
|
148
|
+
segments:
|
|
149
|
+
- 0
|
|
71
150
|
version: "0"
|
|
72
|
-
version:
|
|
73
151
|
requirements: []
|
|
74
152
|
|
|
75
153
|
rubyforge_project: ulmul
|
|
76
|
-
rubygems_version: 1.3.
|
|
154
|
+
rubygems_version: 1.3.7
|
|
77
155
|
signing_key:
|
|
78
156
|
specification_version: 3
|
|
79
157
|
summary: ULMUL is an Ultra Lightweight Mark-Up Language
|
|
80
158
|
test_files:
|
|
81
|
-
-
|
|
159
|
+
- test/unit/ulmul_test.rb
|
data/tests/ulmul_test.rb
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#! /usr/bin/env ruby
|
|
2
|
-
# isi_test.rb -*-ruby-*-
|
|
3
|
-
# Time-stamp: <2008-01-01 17:43:26 takeshi>
|
|
4
|
-
# Author: Takeshi NISHIMATSU
|
|
5
|
-
##
|
|
6
|
-
require 'rubygems'
|
|
7
|
-
require 'rubyunit'
|
|
8
|
-
require 'ulmul'
|
|
9
|
-
|
|
10
|
-
class TestISI < RUNIT::TestCase
|
|
11
|
-
def test_exist_Ulmul
|
|
12
|
-
assert_instance_of(Class, Ulmul)
|
|
13
|
-
end
|
|
14
|
-
end
|