White Papers/DiType On Linux

From Docs

Jump to: navigation, search

Get PDF

Contents

DiType on Linux and Unix

DiType runs fine on Linux and Unix (checked on FC5 and FreeBSD6.1). The distributions lack the GUI tools (ActiType, DiType Assistant).

Unpack

$ tar -xzvf ditype-linux-0611140832.tar.gz 
ditype.tgz
revision
install.sh
$ 

Install

Default installation asks for the target directory, temporary directory to be used by DiType, and license file

$ ./install.sh 
linux-gnu
Ditype installation directory [/opt/RenderX/ditype] : /home/msulyaev/ditype-linux 
Directory for temporary files [/tmp/ditype] : /home/msulyaev/ditype-linux/tmp
License file [license.xml] : /home/msulyaev/license.xml
Installation directory: /home/msulyaev/ditype-linux
Temporary directory: /home/msulyaev/ditype-linux/tmp
License: /home/msulyaev/license.xml
Please wait...
Copying license file to `/home/msulyaev/ditype-linux/etc/license.xml'
Done
$ 

Alternatively, you may avoid interactivity by appending required params to the command line:

$ D=/home/msulyaev/ditype-linux
$ T=$D/tmp
$ L=/home/msulyaev/license.xml
$ ./install.sh -d $D -t $T -l $L
linux-gnu
Installation directory: /home/msulyaev/ditype-linux
Temporary directory: /home/msulyaev/ditype-linux/tmp
License: /home/msulyaev/license.xml
Please wait...
Copying license file to `/home/msulyaev/ditype-linux/etc/license.xml'
Done
$ 

Start the server

cd to the target directory and run the server:

$ bin/ditype-server start

Format a file

From the target directory:

$ bin/ditype -f pdf doc/examples/tests/hello-DiType.fo 
waiting for files
shakehand ok
(document [cliser:/home/msulyaev/ditype-linux/doc/examples/tests/hello-DiType.fo]
  (transform [from 'xsl' to 'fo'])
  (validate [Ok])
  (simplify )
  (compile 
    (masters [all-pages])
    (sequence [all-pages]
      (flow [xsl-region-body]
      * substituted font: Helvetica normal normal 400  NORMAL NORMAL 400)))
  (format 
    (sequence [all-pages]
      (flow [1][xsl-region-body])
      (static content [1]))
    (postprocess ))
  (generate [XEPOUT][1])
  (generate [PDF]
    (generate [PostScript][1])))
$

Users may link the scripts to where it is convenient.

Stop the server

cd to the target directory and type:

$ bin/ditype-server stop

or, no matter where you are:

$ curl http://localhost:19800/kill 1>/dev/null 2>&1 &

Unistallation

Simply remove the directory where you installed DiType.

Personal tools