Using find to add punctuation etc. multiple times

D

DOH

I need to create some very long lists of verses from the Bible to create
lists for a program I'm working on. The lists need to be in .txt format, but
I want to use Word for its find/replace capabilities. Then I'll save the file
in .txt format. I need to create text files that include for example, every
verse in an entire book of the Bible (e.g., Genesis, which has fifty chaps.
and many verses in each chap.) Each verse needs to have the book abbrev.
followed by the verse number followed by a punctuation mark (most periods,
e.g., GE 1:1.), and followed by the actual text of the verse itself (and each
on a single line--non-wrapped--in the txt file). The access I have for the
verses is such that only the first verse of each chap. has the full chap and
verse number (e.g., "1:1," etc.), and then each following verse is preceded
only by the verse number (e.g., 1, 2, etc.) until the beginning of the next
chap. I need therefore to somehow insert the book abbrev. and chap. number
prior to the verse number, as well as to place a period immediately after
almost all of the verse numbers. The only way I can think to do it is to use
find any digit, and then use replace to add the book name, chap. number, and
punc., but then that will eliminate the digit too. Any suggestions would be
greatly appreciated. Btw, I'm using 98SE and Word2K. Thanks.
 
J

John McGhie [MVP - Word and Word Macintosh]

You can do this using Outline Numbering, but you have to define a custom
outline scheme.

Use the built-in heading styles Heading 1 through 9. Change the formatting
so they all look like normal text if you wish.

Then define Heading 1 to have The abbreviation of the book as its text. So
Heading 1 says "Ecc."

Define Heading 2 to inherit Heading 1's number (which will be the text
abbreviation) plus the chapter number. So Heading 2 says "Ecc.1."

Define Heading 3 to inherit the first two plus a number. So Heading 3 says
"Ecc.1.1"

Set the Book name as Heading 1. The Chapter title as Heading 2, and use
Heading 3 for each verse. Word will automatically number the verses
correctly for you, provided that you ensure that each verse is a paragraph
of its own.

Shauna Kelly's website http://www.shaunakelly.com/word/index.html will
explain how to do this.

Cheers


I need to create some very long lists of verses from the Bible to create
lists for a program I'm working on. The lists need to be in .txt format, but
I want to use Word for its find/replace capabilities. Then I'll save the file
in .txt format. I need to create text files that include for example, every
verse in an entire book of the Bible (e.g., Genesis, which has fifty chaps.
and many verses in each chap.) Each verse needs to have the book abbrev.
followed by the verse number followed by a punctuation mark (most periods,
e.g., GE 1:1.), and followed by the actual text of the verse itself (and each
on a single line--non-wrapped--in the txt file). The access I have for the
verses is such that only the first verse of each chap. has the full chap and
verse number (e.g., "1:1," etc.), and then each following verse is preceded
only by the verse number (e.g., 1, 2, etc.) until the beginning of the next
chap. I need therefore to somehow insert the book abbrev. and chap. number
prior to the verse number, as well as to place a period immediately after
almost all of the verse numbers. The only way I can think to do it is to use
find any digit, and then use replace to add the book name, chap. number, and
punc., but then that will eliminate the digit too. Any suggestions would be
greatly appreciated. Btw, I'm using 98SE and Word2K. Thanks.

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top