From jkoshy@FreeBSD.ORG  Wed Aug 21 22:45:48 2002
Return-Path: <jkoshy@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 729)
	id 9F36737B400; Wed, 21 Aug 2002 22:45:48 -0700 (PDT)
Message-Id: <20020822054548.9F36737B400@hub.freebsd.org>
Date: Wed, 21 Aug 2002 22:45:48 -0700 (PDT)
From: Joseph Koshy <jkoshy@FreeBSD.ORG>
Reply-To: Joseph Koshy <jkoshy@FreeBSD.ORG>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] minor cleanup to DOCROOT/share/sgml/freebsd.dsl
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41879
>Category:       docs
>Synopsis:       [patch] cleanup to DOCROOT/share/sgml/freebsd.dsl
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gabor
>State:          closed
>Quarter:        
>Keywords:       all
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 21 22:50:01 PDT 2002
>Closed-Date:    Wed Jan 22 13:52:32 UTC 2014
>Last-Modified:  Wed Jan 22 13:52:32 UTC 2014
>Originator:     Joseph Koshy
>Release:        FreeBSD 4.6-RC i386
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD ob9714.india.hp.com 4.6-RC FreeBSD 4.6-RC #2: Mon Jun 10 11:56:40 IST 2002 root@ob47191.india.hp.com:/home/obj-stable/home/src-stable/sys/OB47191 i386

(with textproc/docproj installed)

>Description:

We don't need a project specific version of procedure $callout-bug$;
setting %callout-graphics-extension% to ".png" ``just works''
with v1.73 of dsssl-docbook-modular.

>How-To-Repeat:

>Fix:

Patch supplied.

Index: share/sgml/freebsd.dsl
===================================================================
RCS file: /home/ncvs/doc/share/sgml/freebsd.dsl,v
retrieving revision 1.64
diff -u -r1.64 freebsd.dsl
--- share/sgml/freebsd.dsl	27 Feb 2002 04:56:44 -0000	1.64
+++ share/sgml/freebsd.dsl	22 Aug 2002 06:10:42 -0000
@@ -174,7 +174,7 @@
           ;; Use graphics in callouts?
           #t)
 
-        (define %callout-graphics-ext%
+        (define %callout-graphics-extension%
           ;; The extension to use for callout images.  This is an extension
           ;; to the stylesheets, they do not support this functionality
           ;; natively.
@@ -184,32 +184,6 @@
           ;; 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 "(??)")))))
       ]]>
 
       <!-- Two-sided Print output ....................................... --> 



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->hrs 
Responsible-Changed-By: hrs 
Responsible-Changed-When: Sat Apr 26 14:38:30 PDT 2003 
Responsible-Changed-Why:  
I'll work on this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41879 
State-Changed-From-To: open->closed 
State-Changed-By: gabor 
State-Changed-When: Wed Jan 22 13:52:04 UTC 2014 
State-Changed-Why:  
We do not any more use DSSSL.  Thanks for the submission, though. 


Responsible-Changed-From-To: hrs->gabor 
Responsible-Changed-By: gabor 
Responsible-Changed-When: Wed Jan 22 13:52:04 UTC 2014 
Responsible-Changed-Why:  
We do not any more use DSSSL.  Thanks for the submission, though. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41879 
>Unformatted:
