docbook: Screen colour
Subject:
Re: Screen colour
From:
"Jacob C" ####@####.####
Date:
16 Jan 2003 19:16:42 -0000
Message-Id: <002601c2bd93$db23e4c0$0300a8c0@tdak.com>
Thanks for the help everybody but I ended up doing something different.
Since I couldn't seem to ever get ldp.dsl working I started using
docbook.dsl (which works) - I don't fully understand the docbook system yet
but I changed/added the following to dbparam.dsl and I have grey coloured
backgrounds now :-)
(element tgroup
(let* ((wrapper (parent (current-node)))
(frameattr (attribute-string (normalize "frame") wrapper))
(pgwide (attribute-string (normalize "pgwide") wrapper))
(footnotes (select-elements (descendants (current-node))
(normalize "footnote")))
(border (if (equal? frameattr (normalize "none"))
'(("BORDER" "0"))
'(("BORDER" "1"))))
(bgcolor '(("BGCOLOR" "#E0E0E0")))
(width (if (equal? pgwide "1")
(list (list "WIDTH" ($table-width$)))
'()))
(head (select-elements (children (current-node)) (normalize "thead")))
(body (select-elements (children (current-node)) (normalize "tbody")))
(feet (select-elements (children (current-node)) (normalize "tfoot"))))
(make element gi: "TABLE"
attributes: (append
border
width
bgcolor
'(("CELLSPACING" "0"))
'(("CELLPADDING" "4"))
(if %cals-table-class%
(list (list "CLASS" %cals-table-class%))
'()))
(process-node-list head)
(process-node-list body)
(process-node-list feet)
(make-table-endnotes))))
;;Should verbatim items be 'shaded' with a table?
(define %shade-verbatim%
#t)
;;Define shade-verbatim attributes
(define ($shade-verbatim-attr$)
(list
(list "BORDER" "0")
(list "BGCOLOR" "#E0E0E0")
(list "WIDTH" ($table-width$))))
----- Original Message -----
From: "Greg Ferguson" ####@####.####
To: "Jacob C" ####@####.####
Cc: ####@####.####
Sent: Thursday, January 16, 2003 8:45 AM
Subject: Re: Screen colour
> > Is there any way to change the background color for <screen>?
>
> If you're using DSSSL, ldp.dsl for example, it's done here:
>
> (define (shade-verbatim-element-colors element)
> (case element
> (("SYNOPSIS") (list "#000000" "#6495ED"))
> ;; ...
> ;; Add your verbatim elements here
> ;; ...
> (else (list "#000000" "#E0E0E0"))))
>
>
>
> --
> Greg Ferguson * SGI principal engr / LDP contributor
> SGI Tech Pubs * http://techpubs.sgi.com/ | gferg(at)sgi.com
> Linux Doc Project* http://tldp.org/ | gferg(at)metalab.unc.edu
>
>