Re: Use of Phonetic Script
On Aug 17, 2006, at 7:03 PM, Cat Kutay wrote: I am trying to compare phonetic script from the htmlText of a card, and in a database. However the htmlText im meoory seems to lose the unicode formating, and also displaying messages for error do not have the formatting Concerning the displaying of messages, the Revolution command dictionary entry for 'answer' includes this paragraph: The prompt can be either formatted text (in the htmlText property's format) or plain text. If the prompt contains p or a start/end tag pair, the answer command assumes the text is in the same format as the htmlText property. Otherwise, the answer command assumes the text is plain text. So, if you are using 'answer' to display messages with the special characters, try wrapping the text with p. Concerning the loss of unicode in memory, I have assumed IPA for the phonetic script and tried this: on mouseUp set the useUnicode to true -- IPA for er in some dialects of English set the unicodeText of field field to numToChar(0x025A) put the htmlText of field field end mouseUp That put this into the message box: pfont face=Lucida Grande lang=ja#602;/font/p (Don't worry about the ja; Revolution thinks everything is Japanese.) The IPA er is represented by the #602. Notice that the number is now in decimal, not in hexadecimal. I have seen Revolution get confused about diacritical marks, so if there are combining marks in your phonetic notation, then there might be a problem. For example, I tried to modify the above handler to display a dental t, but the diacritic did not display and it was isolated from the t in the htmlText. If the database uses UTF-16 or UTF-18 rather than the number for the character or a character encoding other than Unicode, then you might have trouble with the comparison. If you want Unicode text, then use the unicodeText property. That is UTF-16 in host byte order. You can convert that to UTF-8 with the uniDecode() function. Look at 'unicodeText' and 'uniDecode' in the Revolution dictionary. I might have misunderstood the problem. Please ask again if that is the case. Dar Scott ___ 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: Line numbers in scripteditor?
Hi all, I could not resist: there is a very simple solution: on selectionChanged if the short name of the owner of the target = revScript \ and the short name of the selectedfield = script then put word 2 of the selectedLine into fld GoLine end if pass selectionChanged end selectionChanged Paste this handler into the revCommon back script and save it. The Go line box will be interactive: allowing to go to any line or displaying the number of the current clicked line. Le 17 août 06 à 05:55, Dan Shafer a écrit : Nope. You can: (1) copy-paste and do your script editing in BBEdit on OS X or some other editor on Windows. (2) switch to Galaxy from Daniels-Mara which, if memory serves, does include this ability. On 8/16/06, William de Smet [EMAIL PROTECTED] wrote: Hi there, Is it possible to show line numbers in the scripteditor? If it is I don't know how to show them. greetings, William (from a sunny Holland) ___ Best Regards from Paris, Eric Chatonet -- http://www.sosmartsoftware.com/[EMAIL PROTECTED]/ ___ 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: Line numbers in scripteditor?
Bonjour Éric, I am very happy to read you again here ! Nice weather on this list to day :-))), thanks to William I hope others will post questions that you will not resist to answer to ;-)) Best regards from Grenoble André Le 18 août 06 à 09:13, Eric Chatonet a écrit : Hi all, I could not resist: there is a very simple solution: on selectionChanged if the short name of the owner of the target = revScript \ and the short name of the selectedfield = script then put word 2 of the selectedLine into fld GoLine end if pass selectionChanged end selectionChanged Paste this handler into the revCommon back script and save it. The Go line box will be interactive: allowing to go to any line or displaying the number of the current clicked line. Le 17 août 06 à 05:55, Dan Shafer a écrit : Nope. You can: (1) copy-paste and do your script editing in BBEdit on OS X or some other editor on Windows. (2) switch to Galaxy from Daniels-Mara which, if memory serves, does include this ability. On 8/16/06, William de Smet [EMAIL PROTECTED] wrote: Hi there, Is it possible to show line numbers in the scripteditor? If it is I don't know how to show them. greetings, William (from a sunny Holland) ___ Best Regards from Paris, Eric Chatonet -- http://www.sosmartsoftware.com/[EMAIL PROTECTED]/ ___ 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: Constraining the pointer within a rect
Thanks Phil, Howard and Peter. I can't get Phil's script to work any better, even with messages locked. Howard's seems fine even without. This suggests that the problem with Phil's is not a recursion caused by set mousescreenloc, because Howard uses that too. (Ironically, my original Rev 1.x script used if thens, so maybe I should have just resurrected that). Unless there is a further contribution explaining and fixing the jerky cursor with Phil's script, I declare the Howard method the preferred technique for doing a thing you oughn't ;-)) Best Wishes, David Glasgow Carlton Glasgow Partnership http://www.i-psych.co.uk ___ 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: Constraining the pointer within a rect
..and another interesting thing. Having played with Howards Way (heh!) a little, I find that there are strange 'weaknesses' near the corners of the rect through which you can sneak the pointer a little way until the script spots the breakout and does its thing. How weird is that? Best Wishes, David Glasgow Carlton Glasgow Partnership http://www.i-psych.co.uk ___ 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: Constraining the pointer within a rect
I promise this is the last interesting thing The script works even if Rev isn't the frontmost application, as long as there are no windows between the front and the Rev stack. I found my pointer a prisoner when I was in Mail! Best Wishes, David Glasgow Carlton Glasgow Partnership http://www.i-psych.co.uk ___ 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: Constraining the pointer within a rect
Hi David, I sent you another suggestion. Maybe it slipped through. Try it. It's stable. Just put this into the script of a button or rectangle. Try it --- local constrain,boxL,boxR,boxT,boxB ON mouseDown put item 1 of rect of me+4 into boxL -- change 4 to your own needs put item 3 of rect of me-4 into boxR -- change 4 put item 2 of rect of me+4 into boxT -- change 4 put item 4 of rect of me-4 into boxB -- change 4 put true into constrain END mouseDown ON mouseMove x,y IF not constrain THEN exit mouseMove set the screenmouseloc to \ globalloc(min(boxR,max(boxL,(x))) , min(boxB,max(boxT,(y END mouseMove ON mouseUp put false into constrain END mouseUp ON mouseRelease mouseUp END mouseRelease --- Jan ___ 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: Print Card Missing Objects?
And while we're on the subject - I am basically filling in a form and then copying the filled in form to a new card. This should be done over 200 times, resulting in over 200 cards. However, by the time I reach 20-25 cards, the stack becomes VERY lethargic and even after the script has finished (for 25 cards it takes about 1.5 minutes), the stack is super super slow. I don't have too many cards and I should be able to have the 200 I want, right? Any ideas on why it's so slow? It's basically just fields and buttons. full post below Quick reply, since I have little time this morning and am not familiar with the printing issues in Rev. Point 1. Design the fields and buttons on a card that you want to use for all 200 cards and group them. Now, while in pointer mode, select the group, go into the inspector and choose Behave like a background. This will mean that if you are in browse mode, looking at this card and choose New Card from the menu, the new card will also have this group. At this point, the fields will be blank, since each card can hold different information. You may have a field that is a set of instructions that you want to appear on every card and when you make a change, it will change on every card. To do this, go into pointer mode, select the group, choose 'edit group', select the field, then in the inspector choose 'share text'. You could already know this, but when you say 'copy the filled form to another card', this sounds like a counter-productive technique. If you want the field contents to be copied to the next card, I would suggest a small utility script such as repeat with x = 1 to the number of fields put field x of the previous card into field x end repeat To make 200 cards try repeat 200 times lock screen new card repeat with x = 1 to the number of fields put field x of the previous card into field x end repeat end repeat By the way, do know Devin Asay at BYU? He is a very accomplished Rev guy and does a lot to help others on this list. Devin Asay Humanities Technology and Research Support Center Brigham Young University Hope this helps Jim Ault Las Vegas On 8/17/06 10:28 PM, Sharon Stamps [EMAIL PROTECTED] wrote: Here's my problem - I am setting up a stack and then printing all the cards. I have been testing the printing feature to make sure it looks right before printing over 200 cards at a time. As I have been testing, parts of my card have gone missing - on one printout I have a line in my table field, the next printout I don't; I have an image on the lower right hand corner that prints every time, but the group of buttons to the left of it doesn't print out at all. Between printings I have changed the data I am importing, but nothing in the stack itself. (Although I did try to move the group of buttons to see if I could get them to show up in the printout) I didn't know I would run into this problem and I need a solution ASAP! Can anyone help? And while we're on the subject - I am basically filling in a form and then copying the filled in form to a new card. This should be done over 200 times, resulting in over 200 cards. However, by the time I reach 20-25 cards, the stack becomes VERY lethargic and even after the script has finished (for 25 cards it takes about 1.5 minutes), the stack is super super slow. I don't have too many cards and I should be able to have the 200 I want, right? Any ideas on why it's so slow? It's basically just fields and buttons. Thanks a bunch in advance! Sharon _ Sharon Stamps Testing Specialist English Language Center Brigham Young University (801) 319-7907 [EMAIL PROTECTED] ___ 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: Constraining the pointer within a rect
On 18 Aug 2006, at 1:31 pm, Jan Sælid wrote: Hi David, I sent you another suggestion. Maybe it slipped through. Try it. It's stable. Just put this into the script of a button or rectangle. Try it Thanks, Jan. It is very jerky and slow here. Maybe this is an OS X thing? I am using Panther, G4 iMac/TiBook. Best Wishes, David Glasgow Carlton Glasgow Partnership http://www.i-psych.co.uk___ 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: Plugins folder? (was Re: How Galaxy is...)
Oddly though, my Galaxy Studio did not work in this configuration. I had to move the Galaxy folder and stack to the Applications/ Revolution Studio/2.7.3-gm-1/Plugins folder to get it to load automatically. I don't know why. Bob Sneidar IT Manager Logos Management Calvary Chapel CM As to where it is documented, I'm not sure. Perhaps in a 2.7.? read me file? I found it. It was hidden under Distribution Structure: There is a new directory structure. The customization folder is in Documents/My Revolution [edition], and contains subfolders: Plug ins now load from Plugins folder Database drivers now load from Database Drivers folder Externals now load from Externals folder External database drivers loaded here are picked up by Standalone Builder Object Libraries now stored in Resources/Object Libraries Image Libraries now stored in Resources/Image Libraries Files placed in these folders will override the files installed in the main Revolution installation directory. Thus all of these components will survive an update to the main Revolution install. Hmmm. I assume that by externals, it means revolution externals. Dar Scott ___ 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
Rev cgi gzip HTML data to browser
Hi list, Has anyone tried to send compress data (gzip) from Rev cgi to a browser ? I've spent the afternoon experimenting with this, and it works quite well (compress() squeezes 1 Mb of HTML data into 120 Kb), but it seems that the browser takes forever to decompress the code... And finally, there's no real gain, since the time saved in downloading data is lost when browser decompresses data... Is there any trick / tip ? I had the feeling that decompress routines embeded in the browser (IE6 Win) would be much faster, at least as fast as the decompress() function in Rev... Sure, my Win box is a bit slow (Athlon 1.46 GHz), but nevertheless... Thanks, JB ___ 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
Top 5 Articles at revJournal.com
I was reviewing the hit logs for revJournal.com today, and discovered that the top 5 most frequently accessed articles there are, in order: #1: Using Imported Images in Your Stack by Sandy Beadle http://www.revjournal.com/tutorials/importing-images-in-revolution.html #2: Making of ArcadeEngine by Malte Brill http://www.revjournal.com/features/arcade-engine.html #3: Everything You Know Is Wrong, Part 1 by Mark Wieder, Ah Software http://www.revjournal.com/tutorials/everything-you-know.html #4: Handy Handlers #5: Pack/Unpack by yours truly http://www.revjournal.com/tutorials/handy-handlers-005.html #5: Saving data in Revolution standalones by Sarah Reichelt http://www.revjournal.com/tutorials/saving_data_in_revolution.html If you haven't read these yet I think you'll find them very useful. Many thanks to these authors and the others who've contributed to revJournal. As a community-driven effort, revJournal relies on submissions like these from Rev developers who want to share their knowledge to help others. If you'd like to contribute an article to the growing knowledge base there, just drop me a note anytime. And don't worry if you're not a professional developer -- the #1 article at revJournal was submitted by an educator who learned a few tips about working with images and wanted to pass those along (good work, Sandy). -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.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
How to find which applications for this file?
From a file path or a file extension or a MIME type, how can we get a list of the applications which can open the corresponding file? The launch document filepath can open the corresponding application like a double-click in the Finder/Windows Explorer. But has anyone some tricks to get a list of compatible application for a file or MIME: Applescript (on MacOSX) or shell commands (MacOSX, Windows, Linux)? Thanks for each appropriate reply! ___ 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
HTML email from Rev
Quick question - client wants to able to send emails with images and links. Attachments do not show up reliably. Different email clients show things different ways - what is the best way to do this so it works? What are the steps to get Rev to create and send rich email that shows correctly in the majority of email clients? ___ 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
Problems with standalonebuilder of Rev.2.7.3.?
Hi I've got a stack I can tax my students in terms of different language skills with (sliders, text fields in combination with sliders). The program runs very fast on my PowerPC, OS 10.3.9. I store the data of each student in textfiles. They are reloadable in my taxation panel. If I use Revolution 2.7.2 and have a standalone for the intel-32 processor built , the program runs sufficiently, that means, it's slower than on the PowerPC, but every feature of the program works as I want it to do. If I use Revolution 2.7.3, it seems to be faster, but storing data doesn't work anymore. There must be something wrong with the path, and the sliders in combination with the textfields don't work anymore. You can enter data into the texfields using the ask dialogue, but the thumbposition of the sliders don't change. What's wrong here? Has anybody had the same or other problems with the Rev.2.7.3. standalone builder? Martin ___ 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: Print Card Missing Objects?
Jim, Thanks for the help - I thought of this, but decided it might be counter-productive, because I didn't want to have to create all the cards before copying the info. I have fields, buttons, and graphics that need to be located in a certain place on each different form, so having the group placed on the card would mean that I would have to run the script to each card to accomplish that, right? I really appreciate the suggestion. And actually, I went ahead and built the standalone and the copying process was speedy (less than a minute for 200 cards). For some reason, it was just a problem with doing it in the revolution environment. I also worked around my printing appearance issues by just printing to a pdf and then printing the pdf. Not completely efficient, but I needed a quick solution and that was the one. I'm still wondering why the problem occurs when revolution prints... Thanks for recommending Devin - he's actually one of main reasons why I use revolution and why I even started programming at all! I gave him a ring as soon as I ran into my problems - but he's out of the office until the 22nd. I was hoping he or one of you would read this and respond. :) And Devin, if you see this, I'd really appreciate it if you wouldn't schedule being gone right when I need advice :) Thanks again! Sharon On Aug 18, 2006, at 8:07 AM, Jim Ault wrote: And while we're on the subject - I am basically filling in a form and then copying the filled in form to a new card. This should be done over 200 times, resulting in over 200 cards. However, by the time I reach 20-25 cards, the stack becomes VERY lethargic and even after the script has finished (for 25 cards it takes about 1.5 minutes), the stack is super super slow. I don't have too many cards and I should be able to have the 200 I want, right? Any ideas on why it's so slow? It's basically just fields and buttons. full post below Quick reply, since I have little time this morning and am not familiar with the printing issues in Rev. Point 1. Design the fields and buttons on a card that you want to use for all 200 cards and group them. Now, while in pointer mode, select the group, go into the inspector and choose Behave like a background. This will mean that if you are in browse mode, looking at this card and choose New Card from the menu, the new card will also have this group. At this point, the fields will be blank, since each card can hold different information. You may have a field that is a set of instructions that you want to appear on every card and when you make a change, it will change on every card. To do this, go into pointer mode, select the group, choose 'edit group', select the field, then in the inspector choose 'share text'. You could already know this, but when you say 'copy the filled form to another card', this sounds like a counter-productive technique. If you want the field contents to be copied to the next card, I would suggest a small utility script such as repeat with x = 1 to the number of fields put field x of the previous card into field x end repeat To make 200 cards try repeat 200 times lock screen new card repeat with x = 1 to the number of fields put field x of the previous card into field x end repeat end repeat By the way, do know Devin Asay at BYU? He is a very accomplished Rev guy and does a lot to help others on this list. Devin Asay Humanities Technology and Research Support Center Brigham Young University Hope this helps Jim Ault Las Vegas On 8/17/06 10:28 PM, Sharon Stamps [EMAIL PROTECTED] wrote: Here's my problem - I am setting up a stack and then printing all the cards. I have been testing the printing feature to make sure it looks right before printing over 200 cards at a time. As I have been testing, parts of my card have gone missing - on one printout I have a line in my table field, the next printout I don't; I have an image on the lower right hand corner that prints every time, but the group of buttons to the left of it doesn't print out at all. Between printings I have changed the data I am importing, but nothing in the stack itself. (Although I did try to move the group of buttons to see if I could get them to show up in the printout) I didn't know I would run into this problem and I need a solution ASAP! Can anyone help? And while we're on the subject - I am basically filling in a form and then copying the filled in form to a new card. This should be done over 200 times, resulting in over 200 cards. However, by the time I reach 20-25 cards, the stack becomes VERY lethargic and even after the script has finished (for 25 cards it takes about 1.5 minutes), the stack is super super slow. I don't have too many cards and I should be able to have the 200 I want, right? Any ideas on why it's so slow? It's basically just fields and buttons. Thanks a bunch in advance!
Re: How to find which applications for this file?
I wanted to do the same on Mac OS X, it seems the only api for such a thing is the Carbon one: Launch services I made a command line standalone that facilitates it with filepaths. I can send it to you if you want it (no source code). the usage is: path to app -default path to file gives back the standard application path to app -all path to file gives back all the apps that claim to open up the file. to use it from rev you'd do this: shell(test -all /Users/Test/Desktop/test.rev) On Aug 18 2006, at 18:14, Joel Guillod wrote: From a file path or a file extension or a MIME type, how can we get a list of the applications which can open the corresponding file? The launch document filepath can open the corresponding application like a double-click in the Finder/Windows Explorer. But has anyone some tricks to get a list of compatible application for a file or MIME: Applescript (on MacOSX) or shell commands (MacOSX, Windows, Linux)? Thanks for each appropriate reply! ___ 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: Constraining the pointer within a rect
David, It must be the screenmouseloc that slows the mac. As stated earlier. I guess that is practical to know. I have always used tips from the free stacks of Tactile Media. In their dragsample stack, they explain that it's always more efficient to compare variables instead of repeatedly testing the object's dimensions/position. That's why the dimensions and limits is set outside the mousemove handler in my example. I'll think of a way to replace the screenmouseloc. David wrote Thanks, Jan. It is very jerky and slow here. Maybe this is an OS X thing? I am using Panther, G4 iMac/TiBook. ___ 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