delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/29/19:34:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <cb51e2e05082916341b260b74@mail.gmail.com>
Date: Mon, 29 Aug 2005 16:34:01 -0700
From: Joshua Daniel Franklin <joshuadfranklin AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Proposed FAQ in DocBook
In-Reply-To: <Pine.GSO.4.63.0508290929130.27062@slinky.cs.nyu.edu>
Mime-Version: 1.0
References: <cb51e2e050803221558317848 AT mail DOT gmail DOT com> <cb51e2e050805222537cf0c30 AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 61 DOT 0508181836060 DOT 23183 AT slinky DOT cs DOT nyu DOT edu> <cb51e2e05081816517b0eeb99 AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 61 DOT 0508182115430 DOT 23183 AT slinky DOT cs DOT nyu DOT edu> <cb51e2e05081821426d7c9fd3 AT mail DOT gmail DOT com> <cb51e2e05082621375ab0b0e3 AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0508290929130 DOT 27062 AT slinky DOT cs DOT nyu DOT edu>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j7TNY99J001806

On 8/29/05, Igor Pechtchanski  wrote:
> > Well, I didn't figure out how to do it in DocBook, but it was no
> > problem with sed:
> >
> > sed -i 's;</a><a name="id[0-9]*"></a>;</a>;g' faq/faq*.html
> 
> BTW, I don't think I saw the "id\d+" form of reference ever used in the
> FAQ, but just in case, to fully preserve the prior functionality (i.e.,
> allow references to those anchor forms), you could use something like
> 
> sed -i 's;<a name="\(.*\)"></a><a name="\(id[0-9]*\)"></a>;<a name="\1" id="\2"></a>;g' faq/faq*.html

Yeah, by default DocBook automatically generates the id* anchors, but it's only 
supposed to when you don't define id yourself, so I think this is a
bug with the
qandaentry processing code. I didn't need them so I discarded them on purpose.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019