|
|
|
|
|
|
|
|
|
|
|
|
|
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.
SiSU is available directly from the Debian Sid and testing archives (and possibly Ubuntu), assuming your /etc/apt/sources.list is set accordingly:
aptitude update
aptitude install sisu-complete
The following /etc/apt/sources.list setting permits the download of additional markup samples:
#/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
The aptitude commands become:
aptitude update
aptitude install sisu-complete sisu-markup-samples
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
#/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
repeat the aptitude commands
aptitude update
aptitude install sisu-complete sisu-markup-samples
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.
RPMs are provided though untested, they are prepared by running alien against the source package, and against the debs.
They may be downloaded from:
as root type:
rpm -i [rpm package name]
To install SiSU from source check information at:
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) 99 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:
ruby setup.rb config
ruby setup.rb setup
#[and as root:]
ruby setup.rb install
further information on setup.rb is available from:
"install"
The "install" file provided is an installer prepared using "rant". In the root directory of the unpacked SiSU as root type:
ruby install base
or for a more complete installation:
ruby install
or
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:
For a list of alternative actions you may type:
ruby install help
ruby install -T
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
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
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
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
Type:
man sisu
The man pages are also available online, though not always kept as up to date as within the package itself:
sisu --help
sisu --help --env
sisu --help --commands
sisu --help --markup
A number of markup samples (along with output) are available off:
Additional markup samples are packaged separately in the file:
***
On Debian they are available in non-free 103 to include them it is necessary to include non-free in your /etc/apt/source.list or obtain them from the sisu home site.
99. There is nothing to stop MySQL support being added in future.
100. ‹http://www.jus.uio.no/sisu/man/sisu.1.html›
101. ‹http://www.jus.uio.no/sisu/man/sisu.8.html›
102. ‹http://www.jus.uio.no/sisu/man›
103. 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.