review 0.6.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +441 -0
- data/README.rdoc +25 -0
- data/Rakefile +13 -1
- data/VERSION +1 -1
- data/bin/review-check +1 -1
- data/bin/review-compile +19 -10
- data/bin/review-epubmaker +114 -17
- data/bin/review-index +8 -1
- data/bin/review-pdfmaker +378 -0
- data/bin/review-preproc +2 -3
- data/bin/review-vol +1 -2
- data/debian/README.Debian +12 -0
- data/debian/README.source +5 -0
- data/debian/changelog +5 -0
- data/debian/compat +1 -0
- data/debian/control +22 -0
- data/debian/copyright +60 -0
- data/debian/docs +5 -0
- data/debian/manpage.1.ex +59 -0
- data/debian/patches/path.diff +91 -0
- data/debian/patches/series +1 -0
- data/debian/review.install +13 -0
- data/debian/review.links +4 -0
- data/debian/rules +13 -0
- data/debian/source/format +1 -0
- data/doc/format.rdoc +477 -0
- data/doc/format.re +19 -0
- data/doc/format_idg.rdoc +180 -0
- data/doc/ruby-uuid/README +11 -0
- data/doc/ruby-uuid/README.ja +34 -0
- data/doc/sample.css +17 -0
- data/doc/sample.yaml +8 -4
- data/lib/lineinput.rb +1 -1
- data/lib/review/book.rb +43 -36
- data/lib/review/builder.rb +78 -33
- data/lib/review/compiler.rb +45 -48
- data/lib/review/epubbuilder.rb +1 -675
- data/lib/review/exception.rb +1 -1
- data/lib/review/htmlbuilder.rb +627 -49
- data/lib/review/htmlutils.rb +5 -0
- data/lib/review/idgxmlbuilder.rb +239 -250
- data/lib/review/index.rb +84 -7
- data/lib/review/latexbuilder.rb +261 -42
- data/lib/review/latexutils.rb +15 -6
- data/lib/review/preprocessor.rb +40 -6
- data/lib/review/textutils.rb +22 -0
- data/lib/review/topbuilder.rb +4 -1
- data/lib/uuid.rb +312 -0
- data/review.gemspec +44 -12
- data/test/CHAPS +2 -0
- data/test/bib.re +13 -0
- data/test/test.re +43 -0
- data/test/test_book.rb +1191 -0
- data/test/test_builder.rb +147 -0
- data/test/test_htmlbuilder.rb +191 -10
- data/test/test_htmlutils.rb +24 -0
- data/test/test_idgxmlbuilder.rb +310 -0
- data/test/test_index.rb +15 -0
- data/test/test_latexbuilder.rb +217 -6
- data/test/test_lineinput.rb +198 -0
- data/test/test_textutils.rb +68 -0
- data/test/test_uuid.rb +156 -0
- metadata +43 -10
- data/doc/format.txt +0 -434
- data/doc/format_idg.txt +0 -194
- data/doc/format_sjis.txt +0 -313
- data/setup.rb +0 -1587
- data/test/test_epubbuilder.rb +0 -73
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'review/textutils'
|
3
|
+
|
4
|
+
class TextUtilsTest < Test::Unit::TestCase
|
5
|
+
include ReVIEW::TextUtils
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@tu_nil = Object.new
|
9
|
+
@tu_nil.extend ReVIEW::TextUtils
|
10
|
+
def @tu_nil.pre_paragraph;nil;end
|
11
|
+
def @tu_nil.post_paragraph;nil;end
|
12
|
+
|
13
|
+
@tu_p = Object.new
|
14
|
+
@tu_p.extend ReVIEW::TextUtils
|
15
|
+
def @tu_p.pre_paragraph;'<p>';end
|
16
|
+
def @tu_p.post_paragraph;'</p>';end
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_detab
|
20
|
+
detabed = detab("\t\tabc")
|
21
|
+
assert_equal " abc", detabed
|
22
|
+
detabed = detab("\tabc\tbcd")
|
23
|
+
assert_equal " abc bcd", detabed
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_detab_with_arg
|
27
|
+
detabed = detab("\t\tabcd\tef",2)
|
28
|
+
assert_equal " abcd ef", detabed
|
29
|
+
detabed = detab("\tabc\tdef", 4)
|
30
|
+
assert_equal " abc def", detabed
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_split_paragraph_empty_nil
|
34
|
+
ret = @tu_nil.split_paragraph([])
|
35
|
+
assert_equal ret, [""]
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_split_paragraph_empty_p
|
39
|
+
ret = @tu_p.split_paragraph([])
|
40
|
+
assert_equal ret, ["<p></p>"]
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_split_paragraph_p
|
44
|
+
ret = @tu_p.split_paragraph(["abc"])
|
45
|
+
assert_equal ["<p>abc</p>"], ret
|
46
|
+
ret = @tu_p.split_paragraph(["abc","def"])
|
47
|
+
assert_equal ["<p>abcdef</p>"], ret
|
48
|
+
ret = @tu_p.split_paragraph(["abc","","def"])
|
49
|
+
assert_equal ["<p>abc</p>","<p>def</p>"], ret
|
50
|
+
ret = @tu_p.split_paragraph(["abc","","","def"])
|
51
|
+
assert_equal ["<p>abc</p>","<p>def</p>"], ret
|
52
|
+
ret = @tu_p.split_paragraph(["abc","","","def","ghi"])
|
53
|
+
assert_equal ["<p>abc</p>","<p>defghi</p>"], ret
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_split_paragraph_nil
|
57
|
+
ret = @tu_nil.split_paragraph(["abc"])
|
58
|
+
assert_equal ["abc"], ret
|
59
|
+
ret = @tu_nil.split_paragraph(["abc","def"])
|
60
|
+
assert_equal ["abcdef"], ret
|
61
|
+
ret = @tu_nil.split_paragraph(["abc","","def"])
|
62
|
+
assert_equal ["abc","def"], ret
|
63
|
+
ret = @tu_nil.split_paragraph(["abc","","","def"])
|
64
|
+
assert_equal ["abc","def"], ret
|
65
|
+
ret = @tu_nil.split_paragraph(["abc","","","def","ghi"])
|
66
|
+
assert_equal ["abc","defghi"], ret
|
67
|
+
end
|
68
|
+
end
|
data/test/test_uuid.rb
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Original license is below:
|
4
|
+
#
|
5
|
+
# Copyright(c) 2005 URABE, Shyouhei.
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this code, to deal in the code without restriction, including without
|
9
|
+
# limitation the rights to use, copy, modify, merge, publish, distribute,
|
10
|
+
# sublicense, and/or sell copies of the code, and to permit persons to whom the
|
11
|
+
# code is furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the code.
|
15
|
+
#
|
16
|
+
# THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHOR OR COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE CODE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
# CODE.
|
23
|
+
|
24
|
+
require 'test/unit'
|
25
|
+
require 'uuid'
|
26
|
+
|
27
|
+
class TC_UUID < Test::Unit::TestCase
|
28
|
+
def test_v1
|
29
|
+
u1 = UUID.create
|
30
|
+
u2 = UUID.create
|
31
|
+
assert_not_equal u1, u2
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_v1_repeatability
|
35
|
+
u1 = UUID.create 1, 2, "345678"
|
36
|
+
u2 = UUID.create 1, 2, "345678"
|
37
|
+
assert_equal u1, u2
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_v3
|
41
|
+
u1 = UUID.create_md5 "foo", UUID::NameSpace_DNS
|
42
|
+
u2 = UUID.create_md5 "foo", UUID::NameSpace_DNS
|
43
|
+
u3 = UUID.create_md5 "foo", UUID::NameSpace_URL
|
44
|
+
assert_equal u1, u2
|
45
|
+
assert_not_equal u1, u3
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_v5
|
49
|
+
u1 = UUID.create_sha1 "foo", UUID::NameSpace_DNS
|
50
|
+
u2 = UUID.create_sha1 "foo", UUID::NameSpace_DNS
|
51
|
+
u3 = UUID.create_sha1 "foo", UUID::NameSpace_URL
|
52
|
+
assert_equal u1, u2
|
53
|
+
assert_not_equal u1, u3
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_v4
|
57
|
+
# This test is not perfect, because the random nature of version 4
|
58
|
+
# UUID it is not always true that the three objects below really
|
59
|
+
# differ. But in real life it's enough to say we're OK when this
|
60
|
+
# passes.
|
61
|
+
u1 = UUID.create_random
|
62
|
+
u2 = UUID.create_random
|
63
|
+
u3 = UUID.create_random
|
64
|
+
assert_not_equal u1.raw_bytes, u2.raw_bytes
|
65
|
+
assert_not_equal u1.raw_bytes, u3.raw_bytes
|
66
|
+
assert_not_equal u2.raw_bytes, u3.raw_bytes
|
67
|
+
end
|
68
|
+
|
69
|
+
def test_pack
|
70
|
+
u1 = UUID.pack 0x6ba7b810, 0x9dad, 0x11d1, 0x80, 0xb4,
|
71
|
+
"\000\300O\3240\310"
|
72
|
+
assert_equal UUID::NameSpace_DNS, u1
|
73
|
+
end
|
74
|
+
|
75
|
+
def test_unpack
|
76
|
+
tl, tm, th, cl, ch, m = UUID::NameSpace_DNS.unpack
|
77
|
+
assert_equal 0x6ba7b810, tl
|
78
|
+
assert_equal 0x9dad, tm
|
79
|
+
assert_equal 0x11d1, th
|
80
|
+
assert_equal 0x80, cl
|
81
|
+
assert_equal 0xb4, ch
|
82
|
+
assert_equal "\000\300O\3240\310", m
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_parse
|
86
|
+
u1 = UUID.pack 0x6ba7b810, 0x9dad, 0x11d1, 0x80, 0xb4,
|
87
|
+
"\000\300O\3240\310"
|
88
|
+
u2 = UUID.parse "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
|
89
|
+
u3 = UUID.parse "urn:uuid:6ba7b810-9dad-11d1-80b4-00c04fd430c8"
|
90
|
+
assert_equal u1, u2
|
91
|
+
assert_equal u1, u3
|
92
|
+
end
|
93
|
+
|
94
|
+
def test_to_s
|
95
|
+
u1 = UUID.parse "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
|
96
|
+
assert_equal "6ba7b810-9dad-11d1-80b4-00c04fd430c8", u1.to_s
|
97
|
+
end
|
98
|
+
|
99
|
+
def test_to_i
|
100
|
+
u1 = UUID.parse "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
|
101
|
+
assert_equal 0x6ba7b8109dad11d180b400c04fd430c8, u1.to_i
|
102
|
+
end
|
103
|
+
|
104
|
+
#def test_time
|
105
|
+
# assert_raises(RangeError) do
|
106
|
+
# UUID::Nil.time
|
107
|
+
# end
|
108
|
+
# 0.times do |i|
|
109
|
+
# t = Time.at i, i
|
110
|
+
# u = UUID.create 0, t
|
111
|
+
# assert_equal t.tv_sec, u.time.tv_sec
|
112
|
+
# assert_equal t.tv_usec, u.time.tv_usec
|
113
|
+
# end
|
114
|
+
#end
|
115
|
+
|
116
|
+
def test_version
|
117
|
+
assert_equal 0, UUID::Nil.version
|
118
|
+
assert_equal 1, UUID.create.version
|
119
|
+
100.times do # x100 random tests may be enough?
|
120
|
+
assert_equal 4, UUID.create_random.version
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
def test_clock
|
125
|
+
assert_equal 0, UUID::Nil.clock
|
126
|
+
1000.times do |i| # clock is 14bit so 8191 suffice, but it's too slow
|
127
|
+
u = UUID.create i
|
128
|
+
assert_equal i, u.clock
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
def test_equality
|
133
|
+
u1 = UUID.parse "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
|
134
|
+
u2 = UUID.parse "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
|
135
|
+
assert_equal u1.hash, u2.hash
|
136
|
+
case u1
|
137
|
+
when u2
|
138
|
+
assert_equal true, true # ok
|
139
|
+
else
|
140
|
+
flunk "u1 != u2"
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
# Local Variables:
|
148
|
+
# mode: ruby
|
149
|
+
# coding: utf-8
|
150
|
+
# indent-tabs-mode: t
|
151
|
+
# tab-width: 3
|
152
|
+
# ruby-indent-level: 3
|
153
|
+
# fill-column: 79
|
154
|
+
# default-justification: full
|
155
|
+
# End:
|
156
|
+
# vi: ts=3 sw=3
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 9
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.9.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- kmuto
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-01 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
|
-
description: ReVIEW is a digital publishing system for books and ebooks. It supports
|
22
|
+
description: ReVIEW is a digital publishing system for books and ebooks. It supports InDesign, EPUB and LaTeX.
|
23
23
|
email: kmuto@debian.org
|
24
24
|
executables:
|
25
25
|
- review-check
|
@@ -27,6 +27,7 @@ executables:
|
|
27
27
|
- review-compile
|
28
28
|
- review-epubmaker
|
29
29
|
- review-index
|
30
|
+
- review-pdfmaker
|
30
31
|
- review-preproc
|
31
32
|
- review-validate
|
32
33
|
- review-vol
|
@@ -46,13 +47,29 @@ files:
|
|
46
47
|
- bin/review-compile
|
47
48
|
- bin/review-epubmaker
|
48
49
|
- bin/review-index
|
50
|
+
- bin/review-pdfmaker
|
49
51
|
- bin/review-preproc
|
50
52
|
- bin/review-validate
|
51
53
|
- bin/review-vol
|
54
|
+
- debian/README.Debian
|
55
|
+
- debian/README.source
|
56
|
+
- debian/changelog
|
57
|
+
- debian/compat
|
58
|
+
- debian/control
|
59
|
+
- debian/copyright
|
60
|
+
- debian/docs
|
61
|
+
- debian/manpage.1.ex
|
62
|
+
- debian/patches/path.diff
|
63
|
+
- debian/patches/series
|
64
|
+
- debian/review.install
|
65
|
+
- debian/review.links
|
66
|
+
- debian/rules
|
67
|
+
- debian/source/format
|
68
|
+
- doc/format.rdoc
|
52
69
|
- doc/format.re
|
53
|
-
- doc/
|
54
|
-
- doc/
|
55
|
-
- doc/
|
70
|
+
- doc/format_idg.rdoc
|
71
|
+
- doc/ruby-uuid/README
|
72
|
+
- doc/ruby-uuid/README.ja
|
56
73
|
- doc/sample.css
|
57
74
|
- doc/sample.yaml
|
58
75
|
- lib/lineinput.rb
|
@@ -79,12 +96,21 @@ files:
|
|
79
96
|
- lib/review/topbuilder.rb
|
80
97
|
- lib/review/unfold.rb
|
81
98
|
- lib/review/volume.rb
|
99
|
+
- lib/uuid.rb
|
82
100
|
- review.gemspec
|
83
|
-
-
|
84
|
-
- test/
|
101
|
+
- test/CHAPS
|
102
|
+
- test/bib.re
|
103
|
+
- test/test.re
|
104
|
+
- test/test_book.rb
|
105
|
+
- test/test_builder.rb
|
85
106
|
- test/test_helper.rb
|
86
107
|
- test/test_htmlbuilder.rb
|
108
|
+
- test/test_htmlutils.rb
|
109
|
+
- test/test_idgxmlbuilder.rb
|
87
110
|
- test/test_latexbuilder.rb
|
111
|
+
- test/test_lineinput.rb
|
112
|
+
- test/test_textutils.rb
|
113
|
+
- test/test_uuid.rb
|
88
114
|
has_rdoc: true
|
89
115
|
homepage: http://github.com/kmuto/review
|
90
116
|
licenses: []
|
@@ -116,7 +142,14 @@ signing_key:
|
|
116
142
|
specification_version: 3
|
117
143
|
summary: "ReVIEW: a easy-to-use digital publishing system"
|
118
144
|
test_files:
|
119
|
-
- test/
|
145
|
+
- test/test_book.rb
|
146
|
+
- test/test_builder.rb
|
120
147
|
- test/test_helper.rb
|
121
148
|
- test/test_htmlbuilder.rb
|
149
|
+
- test/test_htmlutils.rb
|
150
|
+
- test/test_idgxmlbuilder.rb
|
151
|
+
- test/test_index.rb
|
122
152
|
- test/test_latexbuilder.rb
|
153
|
+
- test/test_lineinput.rb
|
154
|
+
- test/test_textutils.rb
|
155
|
+
- test/test_uuid.rb
|
data/doc/format.txt
DELETED
@@ -1,434 +0,0 @@
|
|
1
|
-
ReVIEW �ե����ޥå�
|
2
|
-
==================
|
3
|
-
|
4
|
-
ReVIEW �ե����ޥåȤ�ʸˡ�ˤĤ��Ʋ��⤷�ޤ���ReVIEW
|
5
|
-
�ե����ޥåȤ� ASCII �� EWB ����ܤȤ��ʤ��顢������
|
6
|
-
RD ��Ƽ� Wiki ��ʸˡ��Ȥꤤ��ƴ��Dz����Ƥ��ޤ���
|
7
|
-
|
8
|
-
�� ����
|
9
|
-
|
10
|
-
����δ֤ϱѸ������Τ褦�˰�Զ����ޤ��������������Ǥ�
|
11
|
-
�ޤ魯�Ȥ������������� 1 ����� 1 �Ԥ��ѹ����Ƥ���ޤ���
|
12
|
-
|
13
|
-
[��]
|
14
|
-
|
15
|
-
����餯����餯������
|
16
|
-
���ιԤ�Ʊ������
|
17
|
-
|
18
|
-
�������������
|
19
|
-
|
20
|
-
�� �ϡ��ᡦ�ࡦ��
|
21
|
-
|
22
|
-
�ϡ��ᡦ�ࡦ�ʤΥ���ץ����ϡ�=�ס�==�ס�===�ס�====��
|
23
|
-
�Ǥ���5 ��٥�ʾ�ϻȤ��ޤ���
|
24
|
-
|
25
|
-
[��]
|
26
|
-
|
27
|
-
= �ϤΥ���ץ����
|
28
|
-
|
29
|
-
== ��Υ���ץ����
|
30
|
-
|
31
|
-
=== ��Υ���ץ����
|
32
|
-
|
33
|
-
==== �ʤΥ���ץ����
|
34
|
-
|
35
|
-
�� �����ʤ�
|
36
|
-
|
37
|
-
�����ʸˡ�� [column] ���ɲä���ȥ����Υ���ץ�����
|
38
|
-
�ʤ�ޤ���
|
39
|
-
|
40
|
-
[��]
|
41
|
-
|
42
|
-
===[column] ����ѥ��饳��ѥ���
|
43
|
-
|
44
|
-
���ΤȤ�����=�פȡ�[column]�פ�ɬ�����äĤ��ƽʤ����
|
45
|
-
�ʤ�ޤ������äƤ⤤���ޤ���
|
46
|
-
|
47
|
-
�� �վ��
|
48
|
-
|
49
|
-
�վ�� (HTML �Ǹ��� ul) �ϡ�*�פ�ɽ�����ޤ���
|
50
|
-
�ͥ��ȤϤ��ޤ���
|
51
|
-
|
52
|
-
[��]
|
53
|
-
|
54
|
-
* �����
|
55
|
-
* ������
|
56
|
-
* �軰�ι���
|
57
|
-
|
58
|
-
�� �ֹ��դ��վ��
|
59
|
-
|
60
|
-
�ֹ��դ��βվ�� (HTML �Ǹ��� ol) �ϡ�1. ���ס�2. ����
|
61
|
-
��3. ���פǼ����ޤ����ͥ��ȤϤ��ޤ���
|
62
|
-
|
63
|
-
[��]
|
64
|
-
|
65
|
-
1. ����
|
66
|
-
2. �����
|
67
|
-
3. �軰�ξ��
|
68
|
-
|
69
|
-
�� �Ѹ�ꥹ��
|
70
|
-
|
71
|
-
�Ѹ�ꥹ�� (HTML �Ǹ��� dl) �ϡ�:�פ�ȤäƼ����ޤ���
|
72
|
-
|
73
|
-
[��]
|
74
|
-
|
75
|
-
: Alpha
|
76
|
-
DEC �κ�äƤ��� RISC CPU��
|
77
|
-
��ư���������黻��®����
|
78
|
-
: POWER
|
79
|
-
IBM �ȥ�ȥ����餬��Ʊ����� RISC CPU��
|
80
|
-
�����Ȥ��� POWER PC �����롣
|
81
|
-
: SPARC
|
82
|
-
Sun ����äƤ��� RISC CPU��
|
83
|
-
CPU �������䤹�Τ����ա�
|
84
|
-
|
85
|
-
Ƭ�Ρ�:�פ��켫�Τϥƥ����ȤǤϤʤ��Τ����դ��Ƥ���������
|
86
|
-
|
87
|
-
�ޤ����ꥹ����Ǥ��Ҥ��륤��饤��̿���ͭ���Ǥ���
|
88
|
-
|
89
|
-
�� �����������ɤʤɤΥꥹ��
|
90
|
-
|
91
|
-
�����������ɥꥹ�Ȥˤϥ���ץ������դ��ꥹ�Ȥȥ����
|
92
|
-
�������դ��ʤ��ꥹ�Ȥ�����ޤ�������ץ�����դ��ꥹ
|
93
|
-
�Ȥϡ�//list[���̻�][����ץ����]{ �� //}�פǡ�
|
94
|
-
����ץ����ʤ��ꥹ�Ȥϡ�//emlist{ �� //}�פǤ���
|
95
|
-
|
96
|
-
[��]
|
97
|
-
|
98
|
-
//list[main][main()]{ ����main�פ����̻Ҥǡ�main()�פ�����ץ����
|
99
|
-
int
|
100
|
-
main(int argc, char **argv)
|
101
|
-
{
|
102
|
-
puts("OK");
|
103
|
-
return 0;
|
104
|
-
}
|
105
|
-
//}
|
106
|
-
|
107
|
-
[��]
|
108
|
-
|
109
|
-
//emlist{
|
110
|
-
printf("hello");
|
111
|
-
//}
|
112
|
-
|
113
|
-
�֥��å���Ǥ��Ҥ��륤��饤��̿���ͭ���Ǥ���
|
114
|
-
|
115
|
-
�ޤ���ʸ��ǡ֥ꥹ�� X �Ƥ��������פΤ褦�˥ꥹ�Ȥ����
|
116
|
-
������ϡ�//list �ǻ��ꤷ�����̻Ҥ�Ȥäơ�@<list>{main}��
|
117
|
-
��ɽ�����ޤ���
|
118
|
-
|
119
|
-
�����������ɤΰ���
|
120
|
-
|
121
|
-
�����������ɤ���Ѥ����硢�ե�����̾��ɬ�פǤ���
|
122
|
-
|
123
|
-
[��]
|
124
|
-
|
125
|
-
//source[/hello/world.rb]{
|
126
|
-
puts "hello world!"
|
127
|
-
//}
|
128
|
-
|
129
|
-
�����ֹ��դ�����ץ����ꥹ��
|
130
|
-
|
131
|
-
����ץ����Υꥹ��(list)�Ǽ�ưŪ�˹��ֹ椬�Ĥ��ޤ���
|
132
|
-
|
133
|
-
[��]
|
134
|
-
|
135
|
-
//listnum[hello][�ϥ�������]{
|
136
|
-
puts "hello world!"
|
137
|
-
//}
|
138
|
-
|
139
|
-
������ˡ��list���Ѥ��ޤ���
|
140
|
-
|
141
|
-
[��]
|
142
|
-
|
143
|
-
..��@<list>{hello}��ߤƤ���������
|
144
|
-
|
145
|
-
�����ֹ��դ�����ץ����ʤ��ꥹ��
|
146
|
-
|
147
|
-
����ץ����̵���Υꥹ��(emlist)�Ǽ�ưŪ�˹��ֹ椬�Ĥ��ޤ���
|
148
|
-
|
149
|
-
[��]
|
150
|
-
|
151
|
-
//emlistnum{
|
152
|
-
puts "hello world!"
|
153
|
-
//}
|
154
|
-
|
155
|
-
����ʸ��ǤΥ����������ɰ���
|
156
|
-
��ʸ��ǥ����������ɤ���Ѥ��Ƶ��Ҥ��ޤ���
|
157
|
-
|
158
|
-
[��]
|
159
|
-
|
160
|
-
@<code>{p = obj.ref_cnt}
|
161
|
-
|
162
|
-
�� ���ޥ�ɥ饤��Υ���ץ���
|
163
|
-
|
164
|
-
���ޥ�ɥ饤��������Ȥ��� //cmd{ �� //} ��Ȥ��ޤ���
|
165
|
-
|
166
|
-
[��]
|
167
|
-
|
168
|
-
//cmd{
|
169
|
-
$ ls /
|
170
|
-
//}
|
171
|
-
|
172
|
-
�֥��å���Ǥ��Ҥ��륤��饤��̿���ͭ���Ǥ���
|
173
|
-
|
174
|
-
�� ��
|
175
|
-
|
176
|
-
�ޤ� //image{ �� //} �ǻ��ꤷ�ޤ�����ɮ��ϥ������������Ȥ�
|
177
|
-
���ؤ��Ƥ��뤿�ᡢ���ߡ��Υ������������Ȥ����äƤ��뤳�Ȥ�����
|
178
|
-
�ޤ���������ʬ�ϡ����ǻ��ˤ�ñ��̵�뤷�Ƥ���������
|
179
|
-
|
180
|
-
[��]
|
181
|
-
|
182
|
-
//image[unixhistory][UNIX��OS�δ�ñ�ʷ���]{
|
183
|
-
System V ����
|
184
|
-
+----------- SVr4 --> �Ƽᆭ��UNIX��Solaris, AIX, HP-UX, ...��
|
185
|
-
V1 --> V6 --|
|
186
|
-
+--------- 4.4BSD --> FreeBSD, NetBSD, OpenBSD, ...
|
187
|
-
BSD ����
|
188
|
-
|
189
|
-
--------------> Linux
|
190
|
-
//}
|
191
|
-
|
192
|
-
�ޤ���ʸ��ǡֿ� X �Ƥ��������פΤ褦�˿ޤ���ꤹ����ϡ�
|
193
|
-
//image �ǻ��ꤷ�����̻Ҥ��Ѥ��ơ�@<img>{unixhistory}�פ�
|
194
|
-
���Ҥ��ޤ���//image �� @<img> �ǤĤŤ꤬�㤦�Τ����դ��Ƥ���������
|
195
|
-
|
196
|
-
�� ɽ
|
197
|
-
|
198
|
-
ɽ�� //table[���̻�][����ץ����]{ �� //} �Ǥ����إå������Ƥ�
|
199
|
-
ʬ��������ϡ�------�פǽ���Ǥ���ޤ���
|
200
|
-
|
201
|
-
�����֤�Ǥ�ոĿ��Υ��֤Ƕ��ڤ�ޤ����ޤ����������Ƭ�Ρ�.�פϺ�
|
202
|
-
�������Τǡ���������Ƭʸ������.�פξ��ϡ�.�פ�⤦���;�פ�
|
203
|
-
�դ��Ƥ����������㤨�С�.�פȤ������ƤΥ����ϡ�..�פȽޤ���
|
204
|
-
�ޤ������Υ����ϡ�.�פȽޤ���
|
205
|
-
|
206
|
-
[��]
|
207
|
-
|
208
|
-
//table[envvars][���פʴĶ��ѿ�]{
|
209
|
-
̾�� ��̣
|
210
|
-
-------------------------------------------------------------
|
211
|
-
PATH ���ޥ�ɤ�¸�ߤ���ǥ��쥯�ȥ�
|
212
|
-
TERM �ȤäƤ���ü���μ��ࡣlinux��kterm��vt100�ʤ�
|
213
|
-
LANG �桼���Υǥե���ȥ������롣���ܸ�ʤ�ja_JP.eucJP��ja_JP.utf8
|
214
|
-
LOGNAME �桼���Υ�������̾
|
215
|
-
TEMP ����ե�������֤��ǥ��쥯�ȥꡣ/tmp�ʤ�
|
216
|
-
PAGER man�ʤɤǵ�ư����ƥ����ȱ����ץ�����ࡣless�ʤ�
|
217
|
-
EDITOR �ǥե���ȥ��ǥ�����vi��emacs�ʤ�
|
218
|
-
MANPATH man�Υ��������֤��Ƥ���ǥ��쥯�ȥ�
|
219
|
-
DISPLAY X Window System�Υǥե���ȥǥ����ץ쥤
|
220
|
-
//}
|
221
|
-
|
222
|
-
��ʸ��ǡ�ɽ X �Ƥ��������פΤ褦��ɽ����ꤹ�����
|
223
|
-
@<table>{envvars} �Ȥ���ɽ����Ȥ��ޤ���
|
224
|
-
|
225
|
-
ɽ��Ǥ��Ҥ��륤��饤��̿���ͭ���Ǥ���
|
226
|
-
|
227
|
-
�� ����
|
228
|
-
|
229
|
-
���Ѥϡ�//quote{ �� //}�פ�ȤäƵ��Ҥ��ޤ���
|
230
|
-
|
231
|
-
[��]
|
232
|
-
|
233
|
-
//quote{
|
234
|
-
ɴʹ�ϰ츫��ǡ������
|
235
|
-
//}
|
236
|
-
|
237
|
-
������Ǥ��Ҥ��륤��饤��̿���ͭ���Ǥ���
|
238
|
-
�ޤ������ޤΤȤ�����������̤Υ֥��å���ʸ��Ȥ����ȤϤǤ��ޤ���
|
239
|
-
|
240
|
-
�� ����
|
241
|
-
|
242
|
-
�����ϡ�//footnote�פ�ȤäƵ��Ҥ��ޤ���
|
243
|
-
|
244
|
-
[��]
|
245
|
-
|
246
|
-
�ѥå��������ܽ�Υ��ݡ��ȥ����Ȥ�������Ǥ��ޤ�@<fn>{site}��
|
247
|
-
�Ƽ�����������ɤ��ƥ��ȡ��뤷�Ƥ����Ƥ���������
|
248
|
-
//footnote[site][�ܽ�Υ��ݡ��ȥ����ȡ� http://i.loveruby.net/ja/stdcompiler ]
|
249
|
-
|
250
|
-
��ʸ��Ρ�@<fn>{site}�פϵ����ֹ���ִ����졢���ܽ�Υ��ݡ���
|
251
|
-
�����ȡġġפȤ���ʸ�ϼºݤε������Ѵ�����ޤ���
|
252
|
-
|
253
|
-
������ʸ�������
|
254
|
-
|
255
|
-
����ʸ����Ʊ��ǥ��쥯�ȥ���� bib.re ��������ޤ���
|
256
|
-
//bibpaper[site][����ץ����]{..������..}
|
257
|
-
�����Ȥ�̵�����������ǽ�Ǥ���
|
258
|
-
//bibpaper[site][����ץ����]
|
259
|
-
|
260
|
-
[��]
|
261
|
-
|
262
|
-
//bibpaper[lins][Lins, 1991]{
|
263
|
-
Refael D. Lins. A shared memory architecture for parallel study of
|
264
|
-
algorithums for cyclic reference_counting. Technical Report 92,
|
265
|
-
Computing Laboratory, The University of Kent at Canterbury , August
|
266
|
-
1991
|
267
|
-
//}
|
268
|
-
|
269
|
-
��ʸ��ǻ���ʸ���Ȥ��������ϼ��Τ褦�ˤ��Ƥ���������
|
270
|
-
|
271
|
-
[��]
|
272
|
-
|
273
|
-
�ĤȤ������椬�Τ��Ƥ��ޤ�(@<bib>{lins})
|
274
|
-
|
275
|
-
�� ���ʸ
|
276
|
-
|
277
|
-
���ʸ�� //read{ �� //} �ǻ��ꤷ�ޤ���lead �Ǥʤ� read
|
278
|
-
�ʤΤϡ�ASCII �� EWB ����read�פ�ȤäƤ�������Ǥ���
|
279
|
-
|
280
|
-
[��]
|
281
|
-
|
282
|
-
//read{
|
283
|
-
�ܾϤǤϤޤ������ܤγ��פˤĤ����ä���
|
284
|
-
����Linux�ǥץ�����������ˡ���������Ƥ����ޤ���
|
285
|
-
//}
|
286
|
-
|
287
|
-
�� ��������
|
288
|
-
|
289
|
-
//noindent
|
290
|
-
������Ƭ�Υ���ǥ�Ȥʤ�
|
291
|
-
|
292
|
-
//linebreak
|
293
|
-
����
|
294
|
-
|
295
|
-
//pagebreak
|
296
|
-
���ڡ���
|
297
|
-
|
298
|
-
�� ������
|
299
|
-
|
300
|
-
�����ʥ����Ǥ���ã�Ǥ��ʤ�����Ҥ��뤿��� //comment ��Ȥ��ޤ���
|
301
|
-
|
302
|
-
[��]
|
303
|
-
|
304
|
-
//comment[������ 1 �Ԥ�����]
|
305
|
-
|
306
|
-
�� ����¾��ʸˡ
|
307
|
-
|
308
|
-
ReVIEW ��Ǥ�դΥ֥��å����ɲò�ǽ�ʤΤǡ��ܤˤ�ä����ѥ֥��å���
|
309
|
-
�Ȥ���礬����ޤ�������ޤǤ˻Ȥä����ʲ��˼����ޤ���
|
310
|
-
|
311
|
-
//prototype
|
312
|
-
�ؿ��ץ��ȥ����ס��ؤդĤ���Linux�ץ�����ߥ٤ǻ��ѡ�
|
313
|
-
|
314
|
-
//type
|
315
|
-
�ؿ��η�������ؤդĤ���Haskell�ץ�����ߥ٤ǻ��ѡ�
|
316
|
-
|
317
|
-
�� ������ǻȤ�ʸˡ (����饤��̿��)
|
318
|
-
|
319
|
-
@<list>{program}
|
320
|
-
�֥ꥹ��1.5�פΤ褦��ʸ������ִ�����롣
|
321
|
-
|
322
|
-
@<img>{unixhistory}
|
323
|
-
�ֿ�1.3�פΤ褦��ʸ������ִ�����롣
|
324
|
-
|
325
|
-
@<table>{ascii}
|
326
|
-
��ɽ1.2�פΤ褦��ʸ������ִ�����롣
|
327
|
-
|
328
|
-
@<fn>{site}
|
329
|
-
�����ֹ���ִ�����롣
|
330
|
-
|
331
|
-
@<kw>{��Ǥ��, credential}
|
332
|
-
������ɡ������ʤɤˤ��ƶ�Ĵ���Ƥ���������
|
333
|
-
|
334
|
-
@<chap>{advanced}
|
335
|
-
����17�ϡפΤ褦�ʡ����ֹ��ޤ�ƥ����Ȥ��ִ�����롣
|
336
|
-
|
337
|
-
@<title>{advanced}
|
338
|
-
���ξϤξ�����ִ�����롣
|
339
|
-
|
340
|
-
@<chapref>{advanced}
|
341
|
-
����17�ϡ֤���˿ʤ������ס٤Τ褦�ˡ����ֹ�ȥ����ȥ�
|
342
|
-
��ޤ�ƥ����Ȥ��ִ�����롣
|
343
|
-
|
344
|
-
@<bou>{�դ��路��}
|
345
|
-
˵����
|
346
|
-
|
347
|
-
@<ruby>{ľ٣, ���礯����}
|
348
|
-
��ӡ�
|
349
|
-
|
350
|
-
@<ami>{�����ݥ����}
|
351
|
-
ʸ�����Ф��륢�ߤ�����
|
352
|
-
|
353
|
-
@<b>{�ɤ����Ƥ�}
|
354
|
-
������
|
355
|
-
|
356
|
-
�� �����ѥ��� (�ץ�ץ����å�̿��)
|
357
|
-
|
358
|
-
����ޤǤ��������������Ϥ��٤ƺǽ��ʳ��ޤǻĤꡢ�������
|
359
|
-
�ƶ���Ϳ���ޤ���������Ф��ưʲ��Υ��������Ԥ��Ȥ������
|
360
|
-
���ѥ����Ǥ��ꡢ�ǽ��ʳ��ǤϤ��٤ƾä���Ƥ��ޤ��ޤ���
|
361
|
-
|
362
|
-
#@#
|
363
|
-
�����ȡ����ιԤˤϲ���Ƥ�̵�뤵��롣
|
364
|
-
|
365
|
-
#@warn(...)
|
366
|
-
�ٹ��å��������ץ�ץ��������˥�å����������Ϥ���롣
|
367
|
-
|
368
|
-
#@require, #@provide
|
369
|
-
������ɤΰ�¸�ط���������롣
|
370
|
-
|
371
|
-
#@mapfile(�ե�����̾) �� #@end
|
372
|
-
�ե���������Ƥξ��Ÿ�����롣
|
373
|
-
|
374
|
-
#@maprange(�ե�����̾, �ϰ�̾) �� #@end
|
375
|
-
�ե���������ϰϤξ��Ÿ�����롣
|
376
|
-
|
377
|
-
#@mapoutput(���ޥ��) �� #@end
|
378
|
-
���ޥ�ɤ�¹Ԥ��ơ����ν��Ϸ�̤�Ÿ�����롣
|
379
|
-
|
380
|
-
��HTML�Υ쥤�����ȵ�ǽ
|
381
|
-
|
382
|
-
CHAPS�ե����뤬�֤���Ƥ���ǥ��쥯�ȥ�� layouts/layout.erb
|
383
|
-
���֤��Ȥ��� html �� ERB ��ɾ�����ޤ���
|
384
|
-
|
385
|
-
[��]
|
386
|
-
|
387
|
-
<html>
|
388
|
-
<head>
|
389
|
-
<title><%= title %></title>
|
390
|
-
</head>
|
391
|
-
[��]
|
392
|
-
|
393
|
-
<html>
|
394
|
-
<head>
|
395
|
-
<title><%= title %></title>
|
396
|
-
</head>
|
397
|
-
<body>
|
398
|
-
<%= body %>
|
399
|
-
<hr/>
|
400
|
-
</body>
|
401
|
-
</html>
|
402
|
-
|
403
|
-
���������ȥ����(�ܼ�������ǽ)
|
404
|
-
|
405
|
-
PART �ե������������Ƥ���������
|
406
|
-
PART �ե������ CHAPS �����櫓���б����Ƥ��ޤ���
|
407
|
-
|
408
|
-
[��]
|
409
|
-
|
410
|
-
CHAPS:
|
411
|
-
intro.re
|
412
|
-
|
413
|
-
start.re
|
414
|
-
|
415
|
-
end.re
|
416
|
-
|
417
|
-
PART:
|
418
|
-
(���ϤʤΤǶ���)
|
419
|
-
�Ϥ��ޤ����
|
420
|
-
��������
|
421
|
-
|
422
|
-
�����
|
423
|
-
|
424
|
-
Web �ϥ��ѡ���Ҥ���ˤϡ���� @<href>�������� //label
|
425
|
-
��Ȥ��ޤ�����ν� @<href>{URL, ʸ��ɽ��} �ǡ���, ʸ��ɽ���פ�
|
426
|
-
��ά����� URL �����ΤޤȤ��ޤ���URL ��� , ��Ȥ������Ȥ��ˤϡ�\,
|
427
|
-
��ɽ�����Ƥ���������
|
428
|
-
|
429
|
-
[��]
|
430
|
-
@<href>{http://github.com/, GitHub}
|
431
|
-
@<href>{http://www.google.com/}
|
432
|
-
@<href>{#point1, �ɥ��������ݥ����}
|
433
|
-
@<href>{chap1.html#point1, �ɥ��������ݥ����}
|
434
|
-
//label[point1]
|