Re: Highlight instances of found text
Aloha and Namaste, Peter Thank you! this is very helpful... it's what I was looking for, but my string manipulation skills are not as strong as yours and I defaulted to the old "hack" which is to use find and then FoundChunk, which always *seems* to work well, but often introduces some unsolvable gremlin. e.g. my function passes all lines/Paragraphs containing the search string to a field for review, highlighting every instance of the found text. The user can then print this out after editing it. Using "Supreme Being" it found all the instances, but for some mysterious reason highlighted all instances except "Supreme Being; where the phrase was bounded by a quotation mark and a semi colon, the find function will not find that string a such if "find whole" is used... but your routine surely will... I will try yours instead. I offer the user both options "Partial Match" (any string in any location) or "Whole words" so I can use both of these routines Thanks! # example of the "Find... Foundchunk" "hack" on gatherRefs # set the next instance hilite color back to light blue Global gHiliteColorNo put 1 into gHiliteColorNo push card ask "What topic?" if it is empty then exit gatherRefs put it into jai Put "REFERENCES TO " "e& Jai "e& " in the Saiva Dharma Shastras" & cr &cr into Output repeat with x = 2 to (the number of cards of this stack) if (fld "paraSubject" of cd x contains jai) or (fld "text" of cd x contains jai) then put fld "ParaNumber" of cd x && fld "ParaSubject" of cd x &cr& fld "text" of cd x & cr & cr after output end if end repeat Put "GLOSSARY REFERENCES" & " TO " "e& Jai "e& " in the Saiva Dharma Shastras"& cr & cr after output open stack "glossary" repeat with x = 1 to (the number of cards of this stack) put fld "text" of card x into tEntries repeat for each line y in tEntries if y contains jai then put y & cr & cr after tGlossaryResults end repeat end repeat if tGlossaryResults <> empty then put tGlossaryResults after output else put "--NONE" after output end if close stack "glossary" put output into fld "ref-text" of cd 1 of stack "read references" open stack "Read References" put jai into fld "readRef_StringToFind" repeat until FoundIt is empty find whole jai in fld "ref-Text" put the foundChunk into FoundIt if foundIt is not empty then set the backgroundcolor of foundit to yellow end if end repeat set the scroll of fld "ref-text" to 0 pop card toplevel stack "Read References" end gatherRefs Peter Brigham MD wrote: I'm a little late to this party, Sivakatirswami, but if you haven't found something better, try this. (The offsets function is quite fast; it's one of my utility functions when I need all instances of a string in a text block.) on colorize tString, fldRef put length(tString) into tLen put the text of fldRef into tText put offsets(tString,tText) into oList if oList = 0 then exit colorize repeat for each item i in oList set the textColor of char i to i+tLen-1 of fldRef to 247,9,9 -- or whatever color you like end repeat end colorize on revertToBlack fldRef set the textColor of char 1 to -1 of fldRef to black end revertToBlack function offsets str,@cntr -- returns a comma-delimited list of all the offsets of str in cntr -- cntr is passed by reference to avoid unnecessary duplication -- of very large text blocks in memory -- cntr contents are not altered by this function if str is not in cntr then return 0 put "" into osList put 0 into startPoint repeat put offset(str,cntr,startPoint) into os if os = 0 then exit repeat add os to startPoint put startPoint & comma after osList end repeat delete last char of osList return osList end offsets If you want only whole words colorized, you can use this: on colorizeWords tString, fldRef put the text of fldRef into tText put the number of words of tString into L put wordOffsets(tString,tText) into oList if oList = 0 then exit colorizeWords repeat for each item i in oList if word i of tText <> tString then next repeat set the textColor of word i to i+L-1 of fldRef to 247,9,9 -- or whatever color end repeat end colorizeWords function wordOffsets str,@cntr -- returns a comma-delimited list of all the wordoffsets of str in cntr -- not limited to whole words (will catch str as part of a word) -- cntr is passed by reference to avoid unnecessary duplication -- of very large text blocks in memory -- cntr contents are not altered by this function put offsets(str,cntr) into charList if charList = 0 then return 0 put "" into woList repeat for each item i in charList put the number of words of (char 1 to i of cntr) & "," after woList end repeat delete char -1 of woList return woL
Re: Moving objects with arrow keys
Hi Sarah, None of those settings seems to change anything though what you suggested certainly made sense. I believe I changed them to about every possible combination with no effect. Thanks, Joe Wilkins On Jul 7, 2009, at 10:09 PM, Sarah Reichelt wrote: On Wed, Jul 8, 2009 at 2:54 PM, Joe Lewis Wilkins wrote: OK, fellas. I've tried new stacks and the arrow keys work with them, but I've tried five different HC stacks that have been converted to Rev Stacks and the arrow keys don't work on any of them as they should. So... guess it has to do with the conversion process. Would someone else, please try a converted stack to see if this is ALWAYS the case. Check the settings for the navigationArrows and the textArrows. Maybe having HCaddressing set to true (as it will be for you imported stacks) changes these settings. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ChartsEngine Webinar tomorrow
On Jul 8, 2009, at 7:30 AM, Shao Sean wrote: or they could just click the "show me in my time zone" link as i did only to discover it was at 11am EST but I did manage to get there about 11:15 and got to see Malte build the CPU load application in 20 lines of code! Could you also hear him? If so, did you use head phones, speakers? Wish I knew the magic formula for this webinar thing. I left after a few minutes as I could not hear any audio. I'll watch (and listen to) the recorded version today. sims ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving objects with arrow keys
Thanks guys. I'll just keep trying. We're using the same everything. Joe Wilkins On Jul 7, 2009, at 9:36 PM, Jim Sims wrote: On Jul 8, 2009, at 5:16 AM, Joe Lewis Wilkins wrote: Regardless, I am pretty sure that I used to be able to select an object and then move it a pixel at a time using the arrow keys. I'm trying to convert another old HC stack and find that doing this in 3.5 does not work. Am I batty or just confusing Rev with what I can do in MacDraft? I just selected a btn, used my arrow keys and could move it one pixel at a time. Using Rev 3.5 and OS X 10.5.7 sims ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ChartsEngine Webinar tomorrow
or they could just click the "show me in my time zone" link as i did only to discover it was at 11am EST but I did manage to get there about 11:15 and got to see Malte build the CPU load application in 20 lines of code! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving objects with arrow keys
On Wed, Jul 8, 2009 at 2:54 PM, Joe Lewis Wilkins wrote: > OK, fellas. I've tried new stacks and the arrow keys work with them, but > I've tried five different HC stacks that have been converted to Rev Stacks > and the arrow keys don't work on any of them as they should. So... guess it > has to do with the conversion process. Would someone else, please try a > converted stack to see if this is ALWAYS the case. Check the settings for the navigationArrows and the textArrows. Maybe having HCaddressing set to true (as it will be for you imported stacks) changes these settings. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving objects with arrow keys
OK, fellas. I've tried new stacks and the arrow keys work with them, but I've tried five different HC stacks that have been converted to Rev Stacks and the arrow keys don't work on any of them as they should. So... guess it has to do with the conversion process. Would someone else, please try a converted stack to see if this is ALWAYS the case. TIA, Joe Wilkins On Jul 7, 2009, at 9:36 PM, Jim Sims wrote: On Jul 8, 2009, at 5:16 AM, Joe Lewis Wilkins wrote: Regardless, I am pretty sure that I used to be able to select an object and then move it a pixel at a time using the arrow keys. I'm trying to convert another old HC stack and find that doing this in 3.5 does not work. Am I batty or just confusing Rev with what I can do in MacDraft? I just selected a btn, used my arrow keys and could move it one pixel at a time. Using Rev 3.5 and OS X 10.5.7 sims ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving objects with arrow keys
On Jul 8, 2009, at 5:16 AM, Joe Lewis Wilkins wrote: Regardless, I am pretty sure that I used to be able to select an object and then move it a pixel at a time using the arrow keys. I'm trying to convert another old HC stack and find that doing this in 3.5 does not work. Am I batty or just confusing Rev with what I can do in MacDraft? I just selected a btn, used my arrow keys and could move it one pixel at a time. Using Rev 3.5 and OS X 10.5.7 sims ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving objects with arrow keys
Looking this time at my demo Rev 3.5 for Windows, in the "Edit > Preferences > General" I see an "Arrow keys navigate through cards" checkbox. And, I created a stack, added a button, deselected then selected it, and clicking on my keyboard arrow keys nudged the button's position. Perhaps your keyboard has some kind of toggle for turning on/off its arrow keys? Also, you know Rev has arrow related commands? Check in the docs for the word "arrow". -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving objects with arrow keys
Thanks Nicolas, but in 3.5 I find nothing in preferences that allows me to use arrow keys in this manner. Still doesn't work for me. Joe Wilkins On Jul 7, 2009, at 8:28 PM, Nicolas Cueto wrote: I'm on 2.9 but, make sure "Development > Suppress messages" in the toolbar is unchecked, and look at the preferences for "Arrow key" settings. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Moving objects with arrow keys
I'm on 2.9 but, make sure "Development > Suppress messages" in the toolbar is unchecked, and look at the preferences for "Arrow key" settings. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Moving objects with arrow keys
Hi all, I'm sure I asked this once before and got no reply; or intended to ask and forgot. Regardless, I am pretty sure that I used to be able to select an object and then move it a pixel at a time using the arrow keys. I'm trying to convert another old HC stack and find that doing this in 3.5 does not work. Am I batty or just confusing Rev with what I can do in MacDraft? TIA, Joe Wilkins ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rev cannot open my jpeg ! - and some serious thinking
On Jun 28, 2009, at 10:07 AM, Mike Markkula wrote: Sarah, I too wish wish wish Rev would remove the 4095 pixel width limit! (there is no height limit) As is, its a deal breaker for any serious app in the photography arena. I've been looking into the problem with images wider than 4091 pixels on OS X. A while ago, Devin Asay suggested that one could load the image, then split the imagedata before displaying it in sections. Mike Markkula wrote a nice stack to do just that, but asked for my help when it didn't work quite correctly, for no apparent reason. The problem is worse than we thought. A wide image imports without reporting errors, but the imagedata is messed up before you can get to it. Its very odd. If an image is 4091 wide, everything seems fine. If an image is wider than that, the imagedata is wrong starting with pixel #4048 (!). What a strange number! The scary part is that the messed up bytes came from somewhere wrong. We don't know where they came from. Its unlikely that they would be outside of Rev's app space (page fault) but it could be dangerous to _write_ to those locations by exporting the image by whatever means. I made an ugly little stack to view the raw pixels of an image. Its at: http://www.jhj.com/WideBug.zip with some test images that have consistent RGB values. Note that pixel 4047 is OK, 4048 is not. 4100 (last of first row) is not, and different. In each example, the last row appears to be correct. I haven't looked deeper, I've seen enough. It doesn't matter how you load the image - there is a button each for the three methods I know about - all give the same results. Beware! Vote for bug # 4026 !! http://quality.runrev.com/qacenter/show_bug.cgi?id=4026 Jerry Jensen ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Filter Image Without Type on OSX?
Hi Scott, If you are absolutely sure that all of the files are going to be "JPEG" then just rename the files so that they all have .jpg put onto the end of them. Then perform your process. I hope this helps! Rick On Jul 7, 2009, at 6:54 PM, Scott Rossi wrote: Answering my own question: Is it possible to use any kind of wildcard with file filtering on OSX? I have several JPEG images that show no file type (just the empty boxes) which often happens when Preview gets ahold of them. Then when trying to filter a list of images in an answer file dialog using "JPEG", the aforementioned JPEGs are grayed out and not selectable. Is there any way to work around this? Guess I have to use "answer file with type" Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution __ Rick Harrison You can buy my $10 music album "Funny Time Machine" digital CD on the iTunes Store Now! To visit the iTunes Store now to listen to samples of my CD please click on the following link. (Please note you must have iTunes installed on your computer for this link to work.) http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playListId=213668290 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: UDP not connecting on Mac OSX Leopard
Jim Ault wrote: Jim - I could preface each part of my reply with "Sorry I don't have a Mac w/ Leopard to check," I don't seem to be able to make the easy connections between Macs running OSX 10.5 using Alex Tweedly's companion stacks UDP Echo Client UDP Echo Server I have set the fire wall in OSX to 'allow all incoming connections', ...check, but I wouldn't be surprised if that meant "allow incoming TCP connections", and there might be a separate setting for UDP. both computers have a static IP address, are connected to the internet using a switch (not a router) No, I don't believe that. (Almost) no-one is connected to the Internet without a router - it's just a question of where the router is. Do you mean that the computers are both connected to a switch - and behind that is the router and Internet connection ? And therefore the two should be communicating locally ? but UDP traffic between them does not test positive. This has not been a problem in the past using OSX 10.4 (Tiger) [1] compiled - UDP Echo Client running as an app on computer B UDP Echo Server in Rev 2.7.2 on computer A [2] compiled - UDP Echo Client running as an app on computer B UDP Echo Server in Rev 2.9.0 on computer A Do you still have 10.4 systems around so you can try client on 10.4 and server on 10.5, etc. ? Can anyone shed some light on how to make this work? Stupid question - does it work with client and server on the same computer ? Are they on the same subnet ? Can you do a ping from one to the other ? How about a traceroute - just to check there is a direct connection ? If you clear the arp cache, then run the client, does the sever then show up in the arp cache ? (in a terminal window - "arp -a" to see the cache, "arp -d -a" to clear it) I'll try to find a Leopard system tomorrow to play with it -- Alex. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Filter Image Without Type on OSX?
Answering my own question: > Is it possible to use any kind of wildcard with file filtering on OSX? > > I have several JPEG images that show no file type (just the empty boxes) > which often happens when Preview gets ahold of them. Then when trying to > filter a list of images in an answer file dialog using "JPEG", the > aforementioned JPEGs are grayed out and not selectable. Is there any way to > work around this? Guess I have to use "answer file with type" Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Filter Image Without Type on OSX?
Hello List: Is it possible to use any kind of wildcard with file filtering on OSX? I have several JPEG images that show no file type (just the empty boxes) which often happens when Preview gets ahold of them. Then when trying to filter a list of images in an answer file dialog using "JPEG", the aforementioned JPEGs are grayed out and not selectable. Is there any way to work around this? (Rev 3.5) Thanks & Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ChartsEngine Webinar tomorrow
Fredrik Andersson wrote: I must say I'm sorry I missed the webinar too. When I was running the scripting conferences, Sarah gave me the idea of posting the meeting time in seconds. Rev always converts the seconds to your local time, so everyone would just do the conversion in the message box to find out when to be there. After I started doing that, everyone always arrived together. Bill, if you have control over the webinar announcement, that might be a cool thing to do. Then the attendees just do this: convert to short time put it -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ChartsEngine Webinar tomorrow
Ah yes, I must say I'm sorry I missed the webinar too. For some reason I thought it begun at 5 PM GMT and that it would start at 7 PM here in Sweden. I've downloaded the webinar-file and will watch it later tonight. Thanks for posting it! Regards, Fredrik 6 jul 2009 kl. 13.09 skrev Malte Brill: Hi all, just a quick note that tomorrow will be the next webinar in the revSelect series. This time it is my turn to tell interested people something about chartsEngine. Anyone who is interested in hearing a bit more about how chartsEngine works, and wants to watch me build a real world application with it may register here: https://www2.gotomeeting.com/register/586628922 Hope to see you there! Malte ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Terms: revLet, webLet?
"revlets" is indeed the official term and they can be used on ANY host not just on-rev. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
ChartsEngine Webinar video link
Hi! (I hope you do not mind me changing the subject) For those of you who missed it. The recorded session is here: http://runrev.com/offers/webinar-2009-07-07/2009-07-07-chartsEngine.wmv After watching the video I am thinking about upgrading my DSL connection though. The video lags a bit, but I hope it is interesting anyways. All the best, Malte ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ChartsEngine Webinar tomorrow
I too managed to miss the webinar today. It would be really nice to have an access to the recorded video. Regards Viktoras Andre Garzia wrote: Hello Malte, I lost your webinar due to timezone jinx, I just tried to log in now to discover that I am one hour late argh! Will a video be put online? Cheers andre On Mon, Jul 6, 2009 at 8:09 AM, Malte Brill wrote: Hi all, just a quick note that tomorrow will be the next webinar in the revSelect series. This time it is my turn to tell interested people something about chartsEngine. Anyone who is interested in hearing a bit more about how chartsEngine works, and wants to watch me build a real world application with it may register here: https://www2.gotomeeting.com/register/586628922 Hope to see you there! Malte ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: use-revolution Digest, Vol 70, Issue 13
Ik ben afwezig tijdens de week van 6 tot 10 juli, als u dringende vragen heeft, kan je steeds terecht bij mijn collega's van ICADS. mvg, Paul ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rev 4 beta status [OT-humor]
=={) Richmond (cream pie) :- On Jul 7, 2009, at 9:36 AM, Richmond Mathewson wrote: " 7 July" was not sent in a "hey you slack lot, stir your stumps" kind of way, but just a gentle sort of "keep us posted, Please" sort of way. If Marian and Colin can't tell the difference between aggressive and friendly question marks I really don't know what to say, except, possibly: !:) Marian Petrides wrote: OK, gang. I'm as eager as the rest of you, but how about we cut the RunRev team a little slack here. Personally, I'd prefer to get a beta without known problems rather than a beta on-time that will need replacement in a day or two because there are known problems that couldn't get addressed prior to release. My 2 cents. Marian On Jul 7, 2009, at 9:17 AM, Colin Holgate wrote: On Jul 7, 2009, at 6:23 AM, Richmond Mathewson wrote: 7 July Up to the end of today would still be "early next week". After that it becomes "middle of next week". But I suppose it's best to have a version that runs ok! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ChartsEngine Webinar tomorrow
Hello Malte, I lost your webinar due to timezone jinx, I just tried to log in now to discover that I am one hour late argh! Will a video be put online? Cheers andre On Mon, Jul 6, 2009 at 8:09 AM, Malte Brill wrote: > Hi all, > just a quick note that tomorrow will be the next webinar in the revSelect > series. This time it is my turn to tell interested people something about > chartsEngine. Anyone who is interested in hearing a bit more about how > chartsEngine works, and wants to watch me build a real world application > with it may register here: > > https://www2.gotomeeting.com/register/586628922 > > Hope to see you there! > > Malte > > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Highlight instances of found text
I'm a little late to this party, Sivakatirswami, but if you haven't found something better, try this. (The offsets function is quite fast; it's one of my utility functions when I need all instances of a string in a text block.) on colorize tString, fldRef put length(tString) into tLen put the text of fldRef into tText put offsets(tString,tText) into oList if oList = 0 then exit colorize repeat for each item i in oList set the textColor of char i to i+tLen-1 of fldRef to 247,9,9 -- or whatever color you like end repeat end colorize on revertToBlack fldRef set the textColor of char 1 to -1 of fldRef to black end revertToBlack function offsets str,@cntr -- returns a comma-delimited list of all the offsets of str in cntr -- cntr is passed by reference to avoid unnecessary duplication -- of very large text blocks in memory -- cntr contents are not altered by this function if str is not in cntr then return 0 put "" into osList put 0 into startPoint repeat put offset(str,cntr,startPoint) into os if os = 0 then exit repeat add os to startPoint put startPoint & comma after osList end repeat delete last char of osList return osList end offsets If you want only whole words colorized, you can use this: on colorizeWords tString, fldRef put the text of fldRef into tText put the number of words of tString into L put wordOffsets(tString,tText) into oList if oList = 0 then exit colorizeWords repeat for each item i in oList if word i of tText <> tString then next repeat set the textColor of word i to i+L-1 of fldRef to 247,9,9 -- or whatever color end repeat end colorizeWords function wordOffsets str,@cntr -- returns a comma-delimited list of all the wordoffsets of str in cntr -- not limited to whole words (will catch str as part of a word) -- cntr is passed by reference to avoid unnecessary duplication -- of very large text blocks in memory -- cntr contents are not altered by this function put offsets(str,cntr) into charList if charList = 0 then return 0 put "" into woList repeat for each item i in charList put the number of words of (char 1 to i of cntr) & "," after woList end repeat delete char -1 of woList return woList end wordOffsets You can add caseSensitive = true if you like. One caveat about the word colorizing routine -- Rev is idiosyncratic in defining anything enclosed by quotes as a single word. (Why?? If you command-right-arrow to step through words of a text, Rev knows to treat quotation marks as just another character and will move from word to word the way any other text app does, so the engine knows what the usual definition of a word is. Bug report anyone?) To colorize all words including those within a quotation, you have to first replace the quote character by some other character in the field, then restore the quotes. (The obvious remaining utility functions, itemOffsets() and lineOffsets(), are left as an exercise for the reader, but are quite handy to have in a library.) HTH, -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jul 3, 2009, at 10:41 PM, Sivakatirswami wrote: Does anyone have a function that will highlight/colorize instances of found text in a field? e.g. say we have a search function, user types "chapati" In the particular ebook I have, all instances (lines or paragraphs containing) of "chapati" are "gathered" and then posted to a field for review... I would like to have all instance of "chapati" in that field be highlighted or colorized. I'm sure I can figure it out but someone I'm sure has already cooked this dosai before and I'm a fan of using recipes. Thanks Sivakatirswami ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Free RevMedia 4
Will the Free RevMedia 4 have a "locked in" set of GUI component stacks as RevMedia 2.9 does? This would make it extremely difficult, if not impossible, to "graft on" modified revTools stacks for teaching purposes. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rev 4 beta status
On Jul 7, 2009, at 10:36 AM, Richmond Mathewson wrote: If Marian and Colin can't tell the difference between aggressive and friendly question marks I really don't know what to say, except, possibly: !:) You seemed not to be able to distinguish between my optimistic reply and Marian's more critical one. I could easily see that they were friendly question marks, from the font you had used... ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rev 4 beta status
" 7 July" was not sent in a "hey you slack lot, stir your stumps" kind of way, but just a gentle sort of "keep us posted, Please" sort of way. If Marian and Colin can't tell the difference between aggressive and friendly question marks I really don't know what to say, except, possibly: !:) Marian Petrides wrote: OK, gang. I'm as eager as the rest of you, but how about we cut the RunRev team a little slack here. Personally, I'd prefer to get a beta without known problems rather than a beta on-time that will need replacement in a day or two because there are known problems that couldn't get addressed prior to release. My 2 cents. Marian On Jul 7, 2009, at 9:17 AM, Colin Holgate wrote: On Jul 7, 2009, at 6:23 AM, Richmond Mathewson wrote: 7 July Up to the end of today would still be "early next week". After that it becomes "middle of next week". But I suppose it's best to have a version that runs ok! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rev 4 beta status
OK, gang. I'm as eager as the rest of you, but how about we cut the RunRev team a little slack here. Personally, I'd prefer to get a beta without known problems rather than a beta on-time that will need replacement in a day or two because there are known problems that couldn't get addressed prior to release. My 2 cents. Marian On Jul 7, 2009, at 9:17 AM, Colin Holgate wrote: On Jul 7, 2009, at 6:23 AM, Richmond Mathewson wrote: 7 July Up to the end of today would still be "early next week". After that it becomes "middle of next week". But I suppose it's best to have a version that runs ok! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rev 4 beta status
On Jul 7, 2009, at 6:23 AM, Richmond Mathewson wrote: 7 July Up to the end of today would still be "early next week". After that it becomes "middle of next week". But I suppose it's best to have a version that runs ok! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
UDP not connecting on Mac OSX Leopard
I don't seem to be able to make the easy connections between Macs running OSX 10.5 using Alex Tweedly's companion stacks UDP Echo Client UDP Echo Server I have set the fire wall in OSX to 'allow all incoming connections', both computers have a static IP address, are connected to the internet using a switch (not a router) but UDP traffic between them does not test positive. This has not been a problem in the past using OSX 10.4 (Tiger) [1] compiled - UDP Echo Client running as an app on computer B UDP Echo Server in Rev 2.7.2 on computer A [2] compiled - UDP Echo Client running as an app on computer B UDP Echo Server in Rev 2.9.0 on computer A Can anyone shed some light on how to make this work? Thanks, Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [weblet] How can a webLet communicate with the hosting html page?
Had a look, I like your hack - great to know you can embed dynamically generated stacks using a cgi / iRev script! 2009/7/7 splash21 > Where there's a will, there's a way > This example is pretty basic and I've only tested it on Firefox/Vista. > > http://splash21.on-rev.com/revlet/ > > You can send text from the web page to the revlet. Communication can flow > the other way as well. > > I saved the test revlet stack with a variable containing a string of 'X' > characters in the openStack script. > The .rev file is not embedded on the HTML page - instead there's a .irev > file embedded. The .irev file opens the real revlet file as binary, > replaces the string of X's with the user's session key and spits the > resulting binary file out to the browser. This gets downloaded as the > revlet which now contains the session key and can now communicate with the > web page. > > It may seem like a total hack of a workaround, but it's simple - and it > seems to work. Hope some of you guys find it useful! It's doing the server based roundtrip for the communication though - to get a responsive Web2.0 type app you need to use Javascript on the client side. We'll have to wait for revised version of the plugin for that - maybe with luck we'll even get "do script as javaScript" for standalones as well :) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rev 4 beta status
7 July Kevin Miller wrote: Hi all, Well folks, we got really very close to having a build this evening. Unfortunately we had some last minute issues on one of the platforms that has eaten up a few days and so we're behind where we had aimed to be. We have a handle on the problem now but we're going to have to take the weekend to hammer on the fix a little more and do the build early next week. I'm sorry to keep you waiting, I know everyone is really looking forward to trying this. But I'd rather make sure we have something that passes our internal tests before we send it out. We're working flat out, we're close. I'll post an update on our status on Monday. Kind regards, Kevin Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/ Runtime Revolution - User-Centric Development Tools ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution