Using Color in Microsoft PowerPoint |
|||
|---|---|---|---|
Notes on Selections
I have implemented code to interpret your selection in the best manner I can devise.
- A presentation is a set of one or more slides.
- A slide is a set of one or more shapes.
- A shape is a set of one or more paragraphs.
- A paragraph is a set of one or more sentences.
- A sentence is a set of one or more lines.
- A word is a set of one or more characters.
How to effect coloring
By virtue of the macro you run, you elect to color individual Characters, Words, Sentences, Paragraphs, Shapes or Slides.
That is, six coloring macros are made available to you.
If you select several paragraphs and elect to color by sentence, then I assign a different color to every sentence in your selected paragraphs.
If you select a chunk of text from partway through a word, and have elected to color by word, I will color the entire first word, not just the part that you have selected.
Apparent Anomalies
From time to time this interpretation will appear to have broken down.
Anomaly 1
Consider the example above. The color scheme, assigned by line, appears to run purple, blue, gray etc.
What you can not see is that as the program code looped through all the paragraphs, and through all the sentences of each paragraph, and through all the lines of each sentence, the second line was set to orange (as the second line of the first sentence of the first paragraph) and then was set to blue (as the first line of the second sentence of the first paragraph).
Consequently you may consider that your color scheme of purple, orange, blue,… is skipping a color.
It is not.
Anomaly 2
In the image above the second shape appears to have been colored-by-line rather than by color-by-character, as we had requested.
The second shape tells the true story.
In both shapes color-by-character has been effected, but the second shape has an unfortuitous set of text whose paragraphs match in length the cycle (set) of chosen colors.
The colors appear to restart on each paragraph, but they are really just cycling through the set.
Anomaly 3
In the image above the first text box appears to have failed in our color-by-paragraph method. It appears that all the paragraphs in the first shape are colored the same color.
On some of the basic slide patterns, the first text box holds all the text as a single paragraph, despite one's use of the Enter key to start a new paragraph.
Impact of selecting a set of shapes
Or a set of slides, for that matter.
I start each text unit afresh.
Consequently when you select a set of slides, I will process all the slides, all the shapes in each slide, all the paragraphs in each shape, all the sentences in each paragraph etc, assigning colors according to one of the seven choices available to you.
Consider what happens when you ask to color by Words and you select a set of slides.
I will format each word throughout the set of slides as a continuous stream of words according to your color scheme.
If your scheme is Red, Orange, Yellow, Green, Blue, Violet, then the first words of your first paragraph in your first shape in your first slide will be colored Red, Orange, Yellow, Green, Blue, Violet, and will then repeat with Red, Orange, Yellow, etc.
When I reach the second slide, I do not restart the coloring, so your second slide may well start off Yellow, Green, Blue, and so on.
Future Development
Allow the user to elect to ignore punctuation marks as targets for color.
Allow the user to elect to ignore white space as targets for color.
Allow the user to Color By Lines.
Allow the user to Color By Runs.
Loading
Toronto and Mississauga, Monday, August 29, 2011 6:02 PM
Copyright © 1996-2011 Chris Greaves. All Rights Reserved.