Colored vowels?
Posted: 2011-04-28T09:32:56-07:00
Hi all,
This is a fairly random sounding request, but I need to find a way to color consonants and vowels differently in an annotation line. I'm writing a perl script to generate memory cards for a preschool and they want to color code the vowels for all of their materials.
Does anyone have any idea how I can accomplish that? I can't for the life of me figure out how to do it in a reasonable way with a standard font. So far the only way I've been able to come up with was to create two strings from the source text and then use a mono-spaced font with two different annotate lines. Of course, they don't like the font. So my next thought was to generate 48 images (one for both cases and every letter) and then do a bunch of math to put every letter in the right place. It just seems like there should be an easier way so I thought I would ask the experts.
Thanks!
This is a fairly random sounding request, but I need to find a way to color consonants and vowels differently in an annotation line. I'm writing a perl script to generate memory cards for a preschool and they want to color code the vowels for all of their materials.
Does anyone have any idea how I can accomplish that? I can't for the life of me figure out how to do it in a reasonable way with a standard font. So far the only way I've been able to come up with was to create two strings from the source text and then use a mono-spaced font with two different annotate lines. Of course, they don't like the font. So my next thought was to generate 48 images (one for both cases and every letter) and then do a bunch of math to put every letter in the right place. It just seems like there should be an easier way so I thought I would ask the experts.
Thanks!