Sorting Text by textStyle.

2008-11-30 Thread Richmond Mathewson
Um, probably reinventing the wheel here. Notwithstanding that, just tried this: put the number of chars in fld f1 into XCHARS repeat with XX=1 to XCHARS if the textStyle of char XX of fld f1 is italic then put char XX of fld f1 after fld f2 end if end repeat where field f1

Re: Sorting Text

2007-03-08 Thread Greg Wills
Ahh, this list amazes me with peoples generosity and knowledge. Thank you to those who provided an answer. It is much appreciated. I will put your suggestions to use in the next few days. cheers Greg ___ use-revolution mailing list

Sorting text

2007-03-07 Thread Greg Wills
Hi All Has been ages since I have joined this discussion. I am writing a small program for a student with Cerebral Palsy who accesses his computer via a trackball. He is about to commence a literacy program and I was going to knock up a program to enable him to participate. My plan was to

Re: Sorting text

2007-03-07 Thread Mark Smith
Greg, you can certainly sort items, but what an item is depends on what the global property the itemDelimiter is (it defaults to comma). So if you want to sort the words in a container, you might try set the itemDelimiter to space sort items of tContainer You can sort lines and items, but I

Re: Sorting text

2007-03-07 Thread Simon HARPER
Hi there, As an addition to this does the sorting machinery allow frequency counts for words in a text field? Cheers Si. Simon Harper 2.44 Kilburn Building University of Manchester (UK) Pri: [EMAIL PROTECTED] Alt: [EMAIL PROTECTED] On 7 Mar 2007, at 09:19, Mark Smith wrote: Greg,

Re: Sorting text

2007-03-07 Thread Marielle Lange
Hi Greg, 1. Does anyone have a similar program If you download SoSmartSoftware excellent revonline picker: http://www.sosmartsoftware.com/?r=revolutionl=en You can look for user movable fields or look for Troutfoot on revonline. My plan was to shuffle a sentence and get him to click on

Re: Sorting text -- frequency count addition

2007-03-07 Thread Marielle Lange
Hi there, As an addition to this does the sorting machinery allow frequency counts for words in a text field? code on mouseup put the text of field 1 into tText put replacetext(tText, [^\w\s], ) into tText put replacetext(tText, \b\d+\b, ) into tText put replacetext(tText, \s+, )

Re: Sorting text

2007-03-07 Thread J. Landman Gay
Simon HARPER wrote: As an addition to this does the sorting machinery allow frequency counts for words in a text field? The old MetaCard IDE shipped with a very efficient word-counting script as one of its examples. Here it is with superfluous stuff removed and reformatted as a function: