aboutsummaryrefslogtreecommitdiffhomepage
path: root/data/doc/sisu/markup-samples/sisu_manual/sisu_quickstart.sst
blob: 1d4b2ce123a1db043158bd5bbd31a5b99df23577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
% SiSU 2.0

@title: SiSU
 :subtitle: Quickstart, installation and use

@creator:
 :author: Amissah, Ralph

@rights:
 :copyright: Copyright (C) Ralph Amissah 2007, part of SiSU documentation, License GPL 3

@classify:
 :type: information
 :topic_register: electronic documents:SiSU:document:quickstart;SiSU:manual:quickstart;electronic documents:SiSU:manual:quickstart;SiSU:document:quickstart;SiSU:document:quickstart
 :subject: ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search

% used_by: SiSU.ssm sisu_manual.ssm

@date:
 :created: 2006-09-06
 :available: 2006-09-06
 :issued: 2006-09-06
 :published: 2007-09-16
 :modified: 2011-02-07

@make:
 :num_top: 1
 :breaks: new=C; break=1
 :skin: skin_sisu_manual
 :bold: /Gnu|Debian|Ruby|SiSU/

@links:
 { SiSU Homepage }http://www.sisudoc.org/
 { SiSU Manual }http://www.sisudoc.org/sisu/sisu_manual/
 { Book Samples & Markup Examples }http://www.jus.uio.no/sisu/SiSU/examples.html
 { SiSU Download }http://www.jus.uio.no/sisu/SiSU/download.html
 { SiSU Changelog }http://www.jus.uio.no/sisu/SiSU/changelog.html
 { SiSU Git repo }http://git.sisudoc.org/?p=code/sisu.git;a=summary
 { SiSU List Archives }http://lists.sisudoc.org/pipermail/sisu/
 { SiSU @ Debian }http://packages.qa.debian.org/s/sisu.html
 { SiSU Project @ Debian }http://qa.debian.org/developer.php?login=sisu@lists.sisudoc.org
 { SiSU @ Wikipedia }http://en.wikipedia.org/wiki/SiSU

:A~? @title @creator

:B~? Quickstart - SiSU installation and use

1~ Quickstart - Getting Started Howto

2~ Installation

Installation is currently most straightforward and tested on the Debian platform, as there are packages for the installation of sisu and all requirements for what it does.

3~ Debian Installation

SiSU is available directly from the Debian Sid and testing archives (and possibly Ubuntu), assuming your /etc/apt/sources.list is set accordingly:

code{

  aptitude update
  aptitude install sisu-complete

}code

The following /etc/apt/sources.list setting permits the download of additional markup samples:

code{

#/etc/apt/sources.list

  deb http://ftp.fi.debian.org/debian/ unstable main non-free contrib
  deb-src http://ftp.fi.debian.org/debian/ unstable main non-free contrib

}code

The aptitude commands become:

code{

  aptitude update
  aptitude install sisu-complete sisu-markup-samples

}code

If there are newer versions of SiSU upstream of the Debian archives, they will be available by adding the following to your /etc/apt/sources.list

code{

#/etc/apt/sources.list

  deb http://www.jus.uio.no/sisu/archive unstable main non-free
  deb-src http://www.jus.uio.no/sisu/archive unstable main non-free

}code

repeat the aptitude commands

code{

  aptitude update
  aptitude install sisu-complete sisu-markup-samples

}code

Note however that it is not necessary to install sisu-complete if not all components of sisu are to be used. Installing just the package sisu will provide basic functionality.

3~ RPM Installation

RPMs are provided though untested, they are prepared by running alien against the source package, and against the debs.

They may be downloaded from:

_1 http://www.jus.uio.no/sisu/SiSU/download.html#rpm

as root type:

_1 rpm -i [rpm package name]

3~ Installation from source

To install SiSU from source check information at:

_1 http://www.jus.uio.no/sisu/SiSU/download.html#current

_* download the source package

_* Unpack the source

Two alternative modes of installation from source are provided, setup.rb (by Minero Aoki) and a rant(by Stefan Lang) built install file, in either case: the first steps are the same, download and unpack the source file:

For basic use SiSU is only dependent on the programming language in which it is written Ruby, and SiSU will be able to generate html, EPUB, various XMLs, including ODF (and will also produce LaTeX). Dependencies required for further actions, though it relies on the installation of additional dependencies which the source tarball does not take care of, for things like using a database (postgresql or sqlite)~{ There is nothing to stop MySQL support being added in future. }~ or converting LaTeX to pdf.

!_ setup.rb

This is a standard ruby installer, using setup.rb is a three step process. In the root directory of the unpacked SiSU as root type:

code{

    ruby setup.rb config
    ruby setup.rb setup
    #[and as root:]
    ruby setup.rb install

}code

further information on setup.rb is available from:

_1 http://i.loveruby.net/en/projects/setup/

_1 http://i.loveruby.net/en/projects/setup/doc/usage.html

!_ "install"

The "install" file provided is an installer prepared using "rant". In the root directory of the unpacked SiSU as root type:

_1 ruby install base

or for a more complete installation:

_1 ruby install

or

_1 ruby install base

This makes use of Rant (by Stefan Lang) and the provided Rantfile. It has been configured to do post installation setup setup configuration and generation of first test file. Note however, that additional external package dependencies, such as tetex-extra are not taken care of for you.

Further information on "rant" is available from:

_1 http://make.rubyforge.org/

_1 http://rubyforge.org/frs/?group_id=615

For a list of alternative actions you may type:

_1 ruby install help

_1 ruby install -T

2~ Testing SiSU, generating output

To check which version of sisu is installed:

sisu -v

Depending on your mode of installation one or a number of markup sample files may be found either in the directory:

...

or

...

change directory to the appropriate one:

cd /usr/share/doc/sisu/markup-samples/samples

3~ basic text, plaintext, html, XML, ODF, EPUB

Having moved to the directory that contains the markup samples (see instructions above if necessary), choose a file and run sisu against it

sisu -NhwoabxXyv free_as_in_freedom.rms_and_free_software.sam_williams.sst

this will generate html including a concordance file, opendocument text format, plaintext, XHTML and various forms of XML, and OpenDocument text

3~ LaTeX / pdf

Assuming a LaTeX engine such as tetex or texlive is installed with the required modules (done automatically on selection of sisu-pdf in Debian)

Having moved to the directory that contains the markup samples (see instructions above if necessary), choose a file and run sisu against it

sisu -pv free_as_in_freedom.rms_and_free_software.sam_williams.sst

sisu -3 free_as_in_freedom.rms_and_free_software.sam_williams.sst

should generate most available output formats: html including a concordance file, opendocument text format, plaintext, XHTML and various forms of XML, and OpenDocument text and pdf

3~ relational database - postgresql, sqlite

Relational databases need some setting up - you must have permission to create the database and write to it when you run sisu.

Assuming you have the database installed and the requisite permissions

sisu --sqlite --recreate

sisu --sqlite -v --import free_as_in_freedom.rms_and_free_software.sam_williams.sst

sisu --pgsql --recreate

sisu --pgsql -v --import free_as_in_freedom.rms_and_free_software.sam_williams.sst

2~ Getting Help

3~ The man pages

Type:

_1 man sisu

The man pages are also available online, though not always kept as up to date as within the package itself:

_* {~^ sisu.1 }http://www.jus.uio.no/sisu/man/sisu.1.html

_* {~^ sisu.8 }http://www.jus.uio.no/sisu/man/sisu.8.html

_* {~^ man directory }http://www.jus.uio.no/sisu/man

3~ Built in help

sisu --help

sisu --help --env

sisu --help --commands

sisu --help --markup

3~ The home page

http://www.sisudoc.org/

http://www.jus.uio.no/sisu

http://www.jus.uio.no/sisu/SiSU

2~ Markup Samples

A number of markup samples (along with output) are available off:

http://www.jus.uio.no/sisu/SiSU/examples.html

Additional markup samples are packaged separately in the file:

***

On Debian they are available in non-free~{ the Debian Free Software guidelines require that everything distributed within Debian can be changed - and the documents are authors' works that while freely distributable are not freely changeable. }~ to include them it is necessary to include non-free in your /etc/apt/source.list or obtain them from the sisu home site.