From 895a6d904cdcc88bcbd59bf20905a669ef32ef84 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Sun, 8 Oct 2000 19:15:06 +0000 Subject: [PATCH] Reorganise things a little bit. Redefine two functions in <[ %output.print; [ ... ]]> to support image handling. --- share/sgml/freebsd.dsl | 152 +++++++++++++++++++++++++++++------------ 1 file changed, 108 insertions(+), 44 deletions(-) diff --git a/share/sgml/freebsd.dsl b/share/sgml/freebsd.dsl index f9a1cd2929..14960e2a4e 100644 --- a/share/sgml/freebsd.dsl +++ b/share/sgml/freebsd.dsl @@ -1,8 +1,10 @@ - + - + + + + @@ -45,47 +47,6 @@ ;; Write a manifest? #f) - (define %callout-graphics% - ;; Use graphics in callouts? - #t) - - (define %callout-graphics-ext% - ;; The extension to use for callout images. This is an extension - ;; to the stylesheets, they do not support this functionality - ;; natively. - ".png") - - (define %callout-graphics-path% - ;; Path to callout graphics - "./imagelib/callouts/") - - ;; Redefine $callout-bug$ to support the %callout-graphic-ext% - ;; variable. - (define ($callout-bug$ conumber) - (let ((number (if conumber (format-number conumber "1") "0"))) - (if conumber - (if %callout-graphics% - (if (<= conumber %callout-graphics-number-limit%) - (make empty-element gi: "IMG" - attributes: (list (list "SRC" - (root-rel-path - (string-append - %callout-graphics-path% - number - %callout-graphics-ext%))) - (list "HSPACE" "0") - (list "VSPACE" "0") - (list "BORDER" "0") - (list "ALT" - (string-append - "(" number ")")))) - (make element gi: "B" - (literal "(" (format-number conumber "1") ")"))) - (make element gi: "B" - (literal "(" (format-number conumber "1") ")"))) - (make element gi: "B" - (literal "(??)"))))) - @@ -134,11 +95,97 @@ ]]> + + + + + + + (define %section-autolabel% @@ -166,6 +213,18 @@ (normalize "legalnotice") (normalize "abstract"))) + (define %admon-graphics% + ;; Use graphics in admonitions? + #f) + + (define %admon-graphics-path% + ;; Path to admonition images + "./imagelib/admon/") + + (define ($admon-graphic$ #!optional (nd (current-node))) + ;; Admonition graphic file + (string-append %admon-graphics-path% (case-fold-down (gi nd)) ".png")) +