Macro: combine paragraphs based on pilcrows
Posted: 2013-10-14 20:22:42
Attached is a sample file that has text like this:
I would like to make a macro that does the following things:
(*) places "CHAPTER #" above each new chapter (i.e. above the $$ Ro 1:1 verse, above the $$ Ro 2:1 verse, etc.), where "#" is the chapter number (number before colon; can be up to three digits long). This paragraph style I'd name "EC-Chapter Titles".
(*) replaces each pilcrow with a hard return and indent, thus starting a new paragraph there with indent
(*) removes the other hard returns, but leaves a space after the end of each verse
(*) removes the $$ Ro #:# and preserves only the verse number (digit(s) after colon), making that number bold
Some of these things I can do, e.g., replace pilcrows with hard returns. But much of it is over my head.
Thanks for ideas to help me plan this. I'm not even sure I've listed the tasks in the right order so one task doesn't mess up another, but I tried to.
Code: Select all
$$ Ro 1:1
¶ Words are here
$$ Ro 1:2
More words are here
$$ Ro 1:3
¶ Still more words here
$$ Ro 2:1
¶ Chapter 2 words start here
$$ Ro 2:2
More chapter 2 words here.
(*) places "CHAPTER #" above each new chapter (i.e. above the $$ Ro 1:1 verse, above the $$ Ro 2:1 verse, etc.), where "#" is the chapter number (number before colon; can be up to three digits long). This paragraph style I'd name "EC-Chapter Titles".
(*) replaces each pilcrow with a hard return and indent, thus starting a new paragraph there with indent
(*) removes the other hard returns, but leaves a space after the end of each verse
(*) removes the $$ Ro #:# and preserves only the verse number (digit(s) after colon), making that number bold
Some of these things I can do, e.g., replace pilcrows with hard returns. But much of it is over my head.
Thanks for ideas to help me plan this. I'm not even sure I've listed the tasks in the right order so one task doesn't mess up another, but I tried to.