Changing the Style of Words in Field And Quotation Marks?
chipp at altuit.com
Mon May 3 14:49:07 CDT 2010
Or, you could just check if the character is a quote and increment your counter justly. Seems to me the easiest way to do this.
CEO, Shafer Walters Group, Inc
On May 3, 2010, at 2:36 PM, Devin Asay <devin_asay at byu.edu> wrote:
> On May 3, 2010, at 1:22 PM, John Patten wrote:
>> Hi All...
>> I'm working on a little student utility that changes the text color
>> and underlines the individual word in the target field as they hit the
>> space bar. I'm wondering how I should handle passages of text that are
>> surrounded by quotation marks?
>> I was taking the text passage and stripping out the quotes to get the
>> total number of words in the field. Then using that number and
>> reducing it to target the specific words in the field to modify their
>> text style.
>> The quotation marks create a single word out of the phrase, and if I
>> attempt to delete a quote and then add it back the total number of
>> words in my variable is off. In any case, everything gets all wonky
>> when there are quotes in the passage...
> You might try simply replacing the quotes with "curled" quotes, which Rev doesn't see as real quote marks. You'd have to account for cross-platform differences, however.
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode