I'm working on Bible verse references in some files and need to insert book abbreviations before digits identifying chapter[colon]verse.
I'm wondering if someone would be so kind as to make a macro for me that would would work on selected text and …
… allow me to input the string I'd like before the "digit(s):digit(s) items. In one file or selection it will be something like "Gen." or "Gen" or even "Ge". It'd be something different in another selection.
Info:
- There are always one of two things before the "digit(s):digit(s)" string: either (1) a return, or (2) a line break. I.e., any "digit(s):digit(s)" found in the selection that do not follow either a return or a line break should not have the abbreviation appended (see "Ecclesiastes 12:13" below which should not become "Ecclesiastes Gen 12:13").
- The sets of digits on either side of the colon could be 1, 2 or 3 digits long, e.g., "119:1", "119:28", "119:150".
- The macro would ask me what to use as an abbreviation. I'd input "Gen" or some other abbreviation.
The result would be (except the bold would not be there, of course; I used it to show what's been added – the bold text plus a space after the abbreviation) …Some text here[return]
1:2 A comment is made here. Then something else is said about 10:15,[line break, aka soft return]49:12. Later there is a comment about Ecclesiastes 12:13.
Thank you!Some text here[return]
Gen 1:2 A comment is made here. Then something else is said about Gen 10:15,[line break, aka soft return]Gen 49:12. Later there is a comment about Ecclesiastes 12:13.