Activating Hyphenation in DocBook-Documents

Support knowledgebase (ke_docbook-hyphenation)
Applies to

SuSE Linux: Versions 7.2 to 7.3

Situation

When generating a PostScript or PDF flie with jadetex you want to create a text with justified setting and hyphenation instead of ragged setting.

Procedure

Set the necessary parameters in the control file for the respective stylesheet. The settings for docbook-dsssl-stylesheets are:

(define %hyphenation% #t)
(define %default-quadding% 'justify)
If you use db2ps or db2pdf from the package docbktls (docbook-toys), you can copy suse-both.dsl in the current directory:

cp /usr/share/sgml/docbook/docbook-toys/suse-both.dsl .
Edit it by modifying style-specification for print and then apply it with the option --style:
db2pdf --style ./suse-both.dsl my_doc.sgml

Further setting possibilities can be found in the parameter files:

/usr/share/sgml/docbook/docbook-dsssl-stylesheets/print/dbparam.dsl
/usr/share/sgml/docbook/docbook-dsssl-stylesheets/html/dbparam.dsl

The Patch

--- suse-both.dsl  Thu Nov 15 09:43:11 2001
+++ suse-both.dsl       Thu Nov 15 09:42:41 2001
@@ -36,6 +36,8 @@
   "./")
 (define %admon-graphics%
   #f)
+(define %hyphenation% #t)
+(define %default-quadding% 'justify)
 
 ;; this is necessary because right now jadetex does not understand
 ;; symbolic entities, whereas things work well with numeric entities.

Keywords: SGML, XML, DOCBOOK, HYPHENATION, DOCBKTLS, DOCBOOK-TOYS, DB2X.SH, DB2PDF, DB2PS

SDB-ke_docbook-hyphenation, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 27. Nov 2001
SuSE Linux AG - Last generated: 28. Nov 2001 by glazzar (sdb_gen 1.40.0)