This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: More justify
- From: Ian Castle <ian dot castle at coldcomfortfarm dot net>
- To: Lars Bjørndal <lars dot bjorndal at grieg dot uib dot no>
- Cc: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 28 Feb 2002 16:40:37 +0000
- Subject: Re: DOCBOOK-APPS: More justify
- References: <m3d6yrgg5w.fsf@fox.broadpark.no>
%default-quadding% (for the html stylesheets) specifies the value of the
"ALIGN" attribute of the <P> tag in the HTML. i.e it is not a DSSSL
attribute!
It defaults to "#f" which means "don't generate an align tag at all"
otherwise it can be
"left", "center", "right", "justify".
So you should have
(define %default-quadding% "left")
which will cause the paragraph to be generated with <P ALIGN="left">
Of course, you should, nowadays, use CSS to set an appropriate attribute
with a stylesheet:
(define %stylesheet%
;; Name of the stylesheet to use
"style.css")
(define %css-decoration%
;; Enable CSS decoration of elements
#t)
and leave %default-quadding% as #f.
But it begs the question why you paragraphs are justified!
On Wed, 2002-02-27 at 14:20, Lars Bjørndal wrote:
> Hi
>
> I can't solve my problem with getting html's with no justified text.
> Pleas help me!
>
> I've modified the file ldp.dsl, and put in the line:
>
> (define %default-quadding% 'start)
>
> This line is placed after this:
>
> <!--
> ;; ===================================================
> ;; customize the html stylesheet; borrowed from Cygnus
> ;; at http://sourceware.cygnus.com/ (cygnus-both.dsl)
> ;; ===================================================
> -->
>
> <!-- <DEFANGED_STYLE-specification id="html" use="docbook">
> <!-- <DEFANGED_STYLE-specification-body>
>
> (declare-characteristic preserve-sdata?
> ;; this is necessary because right now jadetex does not understand
> ;; symbolic entities, whereas things work well with numeric entities.
> "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
> #f)
>
> Without the quadding-line I've inserted, all works well while
> compiling. But when inserting this line, I get this errormessage after
> the command db2html -u -d ~/tmp/ldp.dsl#html p.sgml
>
> The first errormessage are:
>
> jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/dbhtml.dsl:324:17:E: invalid value for "attributes" characteristic
> jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/dbhtml.dsl:324:17:E: invalid value for "attributes" characteristic
> jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/dbhtml.dsl:324:17:E: invalid value for "attributes" characteristic
> jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/dbhtml.dsl:324:17:E: invalid value for "attributes" characteristic
> jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/dbhtml.dsl:324:17:E: invalid value for "attributes" characteristic
>
> What can I do to solve this problem and to get my html's without
> justified text?
>
> Lars
> --
> Lars Bjørndal <lars.bjorndal@grieg.uib.no>
> Storetveitåsen 15, 5067 Bergen.
> Tlf.: 55 28 87 55 Mobil: 958 37 537 Telefaks: 55 28 40 67