T
tbl
After OCRing a rather large glossary, and fixing most of the
common errors, I'd now like to make the "terms" bold (OCR didn't
pick that up).
I'm now using Word 2000, and I haven't played with macros or
WordBasic since Word version 2, remember none of it, and am
wondering if someone would like to suggest the code to:
Search for ^p
If the next character is uppercase, move the cursor (insertion
point?) ignore it and search for the next lowercase character,
and starting from there, search for the next uppercase character.
If the next character is not uppercase, select from the next
character to the character or space before the next uppercase
character, and make the selection bold. Then recurse thru the
document, repeating the above until all the entries have been
treated.
Or something like that
Each glossary entry is a paragraph, with a period at the end.
Unfortunately, only a space separates the "term" from its
definition.
Examples:
A horizon Surface stratum of mineral soil, characterized by
maximum accumulation of [...].
In the above example "A Horizon" should be uppercase.
abiotic Nonliving; the abiotic component of the environment
includes soil, water, air [...].
In the above example, "abiotic" should be uppercase.
C4 plant Any plant that produces as its first step in
photosynthesis a four-carbon com-pound, [...].
In the example above, "C4 plant" should be uppercase, and the
"4" is subscript.
ATP Adenosine triphosphate; major energy-transferring molecules
in all biological sys-tems.
In the example above, "ATP" should be uppercase (this config
could be tough because of no lowercase in the "term").
Thanks, even just for reading!
common errors, I'd now like to make the "terms" bold (OCR didn't
pick that up).
I'm now using Word 2000, and I haven't played with macros or
WordBasic since Word version 2, remember none of it, and am
wondering if someone would like to suggest the code to:
Search for ^p
If the next character is uppercase, move the cursor (insertion
point?) ignore it and search for the next lowercase character,
and starting from there, search for the next uppercase character.
If the next character is not uppercase, select from the next
character to the character or space before the next uppercase
character, and make the selection bold. Then recurse thru the
document, repeating the above until all the entries have been
treated.
Or something like that
Each glossary entry is a paragraph, with a period at the end.
Unfortunately, only a space separates the "term" from its
definition.
Examples:
A horizon Surface stratum of mineral soil, characterized by
maximum accumulation of [...].
In the above example "A Horizon" should be uppercase.
abiotic Nonliving; the abiotic component of the environment
includes soil, water, air [...].
In the above example, "abiotic" should be uppercase.
C4 plant Any plant that produces as its first step in
photosynthesis a four-carbon com-pound, [...].
In the example above, "C4 plant" should be uppercase, and the
"4" is subscript.
ATP Adenosine triphosphate; major energy-transferring molecules
in all biological sys-tems.
In the example above, "ATP" should be uppercase (this config
could be tough because of no lowercase in the "term").
Thanks, even just for reading!