From owner-freebsd-questions@FreeBSD.ORG Tue Feb 21 07:13:47 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9D2516A420 for ; Tue, 21 Feb 2006 07:13:47 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3716443D46 for ; Tue, 21 Feb 2006 07:13:46 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.4/8.13.1) with ESMTP id k1L7Diud016781 for ; Mon, 20 Feb 2006 23:13:45 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.4/8.13.1/Submit) id k1L7DiOD016780 for freebsd-questions@FreeBSD.ORG; Mon, 20 Feb 2006 23:13:44 -0800 (PST) (envelope-from kline) Date: Mon, 20 Feb 2006 23:13:44 -0800 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20060221071344.GA16641@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 19+ years of service to the Unix community Cc: Subject: perl script to capture header...?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 07:13:48 -0000 People, I think perl is the best way to capture NN "THE FOR BAR" and "THE FOO BAR" NN+1 and create the header in HTML
"THE FOO BAR"
NN
such that each of ch1 thru ch5 have the title and below the page number within tags. I want to label every page number tagged so that people looking in the table-of-contents anf the index can eailt jump to any page. So I'll want to fgets() every line, capture the number and title (which are saved in $1 and $2,$3,$4), right? This book was scanned last summer; ready all but these final tweaks. Thanks for any specifics. gary -- Gary Kline kline@thought.org www.thought.org Public service Unix