perl script to capture header...??
Gary Kline
kline at tao.thought.org
Mon Feb 20 23:13:48 PST 2006
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
<CENTER>"THE FOO BAR"<BR>
<A NAME=#NN"> NN </A><BR>
</CENTER>
such that each of ch1 thru ch5 have the title and below the
page number within <A ...> </A> 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 at thought.org www.thought.org Public service Unix
More information about the freebsd-questions
mailing list