From owner-cvs-src@FreeBSD.ORG Tue Jun 14 05:25:18 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF03B16A41C; Tue, 14 Jun 2005 05:25:18 +0000 (GMT) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (vlsi00.si.noda.tus.ac.jp [133.31.130.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58D5643D55; Tue, 14 Jun 2005 05:25:18 +0000 (GMT) (envelope-from hrs@FreeBSD.org) Received: from delta.allbsd.org (p19186-adsau12honb8-acca.tokyo.ocn.ne.jp [221.113.175.186]) (authenticated bits=128) by mail.allbsd.org (8.13.1/8.13.1) with ESMTP id j5E5PEJU054240; Tue, 14 Jun 2005 14:25:16 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (alph.allbsd.org [192.168.0.10]) by delta.allbsd.org (8.13.1/8.13.1) with ESMTP id j5E5Onqs098646; Tue, 14 Jun 2005 14:24:50 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 14 Jun 2005 14:24:40 +0900 (JST) Message-Id: <20050614.142440.102582593.hrs@allbsd.org> To: murray@freebsdmall.com From: Hiroki Sato In-Reply-To: <20050614021720.GB21692@freebsdmall.com> References: <20050613190330.GB12924@freebsdmall.com> <1118692905.3919.51.camel@localhost> <20050614021720.GB21692@freebsdmall.com> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart0(Tue_Jun_14_14_24_40_2005_823)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.83/937/Tue Jun 14 06:46:03 2005 on gatekeeper.allbsd.org X-Virus-Status: Clean Cc: bmah@FreeBSD.org, src-committers@FreeBSD.org, hrs@FreeBSD.org, simon@FreeBSD.org, cvs-src@FreeBSD.org Subject: Re: cvs commit: src/release/doc/en_US.ISO8859-1/relnotes/common new.sgml X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 05:25:19 -0000 ----Security_Multipart0(Tue_Jun_14_14_24_40_2005_823)-- Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Jun_14_14_24_40_2005_628)--" Content-Transfer-Encoding: 7bit ----Next_Part(Tue_Jun_14_14_24_40_2005_628)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Murray Stokely wrote in <20050614021720.GB21692@freebsdmall.com>: mu> On Mon, Jun 13, 2005 at 01:01:45PM -0700, Bruce A. Mah wrote: mu> > If memory serves me right, Murray Stokely wrote: mu> > > On Tue, Jun 14, 2005 at 02:26:01AM +0900, Hiroki Sato wrote: mu> > > > I fixed the right margin just now. However, the footnote issue seems mu> > > > more complicated as far as I checked. Generating footnotes from mu> > > > is directly processed in (element ulink) by using (make page-footnote), mu> > > > so it may need to define a "footnote-mode" and rewrite this part to mu> > > > use it... mu> > > mu> > > Is it OK to just put the ulink inline in parenthesis rather than mu> > > generating a broken footnote for it? If so, just use > > role="inline">. mu> > mu> > Hmmm...I didn't know you could do that. But I'm going to guess that the mu> > destination of the link is going to overflow the limited space in the mu> > table column allotted for the name of the advisory...???... mu> mu> Ahh. Turns out this was a local patch, so you can't just use mu> 'role=inline' by default. I have a lot of code related to ulinks and mu> footnotes for print output available here : mu> mu> http://www.FreeBSD.org/~murray/wrsfootnote.dsl mu> mu> Not sure if this will help do what you want. Thanks! Yes, I think role="inline" is a useful knob but this is not enough in because it needs more space for URL in the column. I made and attached a patch to fix table endnotes when was used in the
. The footnote number will be "a,b,c,..." (independent from footnotes in the document body) and content of the footnotes will be put just after the table. The rendered version is avaiable from http://people.allbsd.org/~hrs/FreeBSD/errata.pdf. Comments are welcome :) -- | Hiroki SATO ----Next_Part(Tue_Jun_14_14_24_40_2005_628)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="table-footnote.diff" Index: release.dsl =================================================================== RCS file: /home/ncvs/src/release/doc/share/sgml/release.dsl,v retrieving revision 1.7.6.1 diff -d -u -I\$FreeBSD:.*\$ -I\$NetBSD:.*\$ -I\$OpenBSD:.*\$ -I\$DragonFly:.*\$ -I\$Id:.*\$ -I\$Translation:.*\$ -I\$hrs:.*\$ -r1.7.6.1 release.dsl --- release.dsl 13 Jun 2005 17:13:24 -0000 1.7.6.1 +++ release.dsl 14 Jun 2005 05:07:42 -0000 @@ -108,21 +108,73 @@ (define bop-footnotes #t) (define %footnote-ulinks% #t) -; disable (make page-footnote) in tgroup element temporarily. + (define (make-table-endnotes) + (let* ((footnotes (node-list (select-elements (descendants (current-node)) + (normalize "footnote")) + (select-elements (descendants (current-node)) + (normalize "ulink")))) + (headsize (HSIZE 3)) + (tgroup (ancestor-member (current-node) (list (normalize "tgroup")))) + (cols (string->number (attribute-string (normalize "cols") tgroup)))) + (if (node-list-empty? footnotes) + (empty-sosofo) + (make sequence + (with-mode table-footnote-mode + (process-node-list footnotes)))))) + + ;; disable (make page-footnote) in tgroup element temporarily. (element ulink (make sequence (if (node-list-empty? (children (current-node))) (literal (attribute-string (normalize "url"))) (make sequence - ($charseq$) (if %footnote-ulinks% (if (node-list-empty? (ancestor-member (current-node) (list (normalize "tgroup")))) (next-match) (make sequence + ($charseq$) + (make line-field + font-family-name: %body-font-family% + ($ss-seq$ + (literal (table-footnote-number (current-node))))) (empty-sosofo))) (empty-sosofo)))))) + + (define %table-footnote-size-factor% (* 0.8 %footnote-size-factor%)) + (define %table-footnote-row-margin% 0pt) + + ;; XXX: ss-seq does not work properly... + (mode table-footnote-mode + (element ulink + (let* ((tgroup (ancestor-member (current-node) (list (normalize "tgroup")))) + (cols (string->number (attribute-string (normalize "cols") tgroup)))) + (make table-row + (make table-cell + n-columns-spanned: cols + cell-before-row-margin: %table-footnote-row-margin% + cell-after-row-margin: %table-footnote-row-margin% + cell-before-column-margin: %cals-cell-before-column-margin% + cell-after-column-margin: %cals-cell-after-column-margin% + start-indent: %cals-cell-content-start-indent% + end-indent: %cals-cell-content-end-indent% + (make sequence + ($ss-seq$ + (literal (table-footnote-number (current-node)))) + (literal (gentext-label-title-sep (normalize "footnote"))) + (make paragraph + font-family-name: %body-font-family% + font-size: (* %table-footnote-size-factor% %bf-size%) + font-posture: 'upright + quadding: %default-quadding% + line-spacing: (* (* %table-footnote-size-factor% %bf-size%) + %line-spacing-factor%) + space-before: %para-sep% + space-after: %para-sep% + start-indent: %footnote-field-width% + first-line-start-indent: (- %footnote-field-width%) + (make line-field + field-width: %footnote-field-width% + (literal (attribute-string (normalize "url"))))))))))) ]]>