Re: Copying from MS word into RunRev 4.0
No not really. It works for you because Parallels is doing a clipboard translation itself, so the quote survives. It would be the same thing as first pasting into a Rich Text Editor, recopying, and then pasting into Livecode. That always works. Bob On Sep 3, 2011, at 12:03 AM, Keith Clarke wrote: Jonathan, I've just copied pasted 'it's' (with a curly single right-hand quote) from Word 2010 (Windows) on my Parallels VM into TextWrangler on my Mac and the curly quote character survives intact. So, for me, Word export and the clipboard are working OK. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
On Sep 2, 2011, at 11:13 AM, Jonathan Lynch wrote: Even with both apps open, it omits apostrophes when i paste from Word to RunRev 4.0 Jonathan... the version is the key - you're using 4.0, not 4.6.3, where this bug has been fixed. I tried duplicating your test, going from Word 2007 on Windows with a field with it's in it and then copied to the clipboard and tried to paste into 4.0 - no go. But I did the same thing with 4.6.3, and it worked properly. Not sure if you can upgrade to 4.6.3, but clearly this was fixed sometime between 4.0 and 4.6.3. Just thought you should know... Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Thanks Ken :) Sent from my iPhone On Sep 5, 2011, at 4:44 PM, Ken Ray k...@sonsothunder.com wrote: On Sep 2, 2011, at 11:13 AM, Jonathan Lynch wrote: Even with both apps open, it omits apostrophes when i paste from Word to RunRev 4.0 Jonathan... the version is the key - you're using 4.0, not 4.6.3, where this bug has been fixed. I tried duplicating your test, going from Word 2007 on Windows with a field with it's in it and then copied to the clipboard and tried to paste into 4.0 - no go. But I did the same thing with 4.6.3, and it worked properly. Not sure if you can upgrade to 4.6.3, but clearly this was fixed sometime between 4.0 and 4.6.3. Just thought you should know... Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Jonathan, I've just copied pasted 'it's' (with a curly single right-hand quote) from Word 2010 (Windows) on my Parallels VM into TextWrangler on my Mac and the curly quote character survives intact. So, for me, Word export and the clipboard are working OK. I repeated this with Word into a new (Mac - I don't have a Win LC development instance) LC stack and new field with the same results (except the field displayed a straight quote). Copying and pasting the single quote from the LC field created some interesting results. Pasting into TextWrangler (and Notepad on Windows) revealed a curly quote (so the Parallels clipboard is OK) but pasting back into Word 2010 (Win) rendered a straight single right hand quote - but that might have been pilot error, as I don't quite understand all Word's pasting options that pop-up?!? ;-) You might want to repeat the above with your LC (Win) instance and to check that on your system, Word, the Windows clipboard and the Windows LC engine are all working OK - and test manually first, to avoid any script-based complications. My gut feel is that this may have something to do with LiveCode's current (variable) support for unicode - especially when using scripts to process the clipboardData. Check out numtochar in the dictionary - if you can set the useUnicode property in the right place, you may be lucky and be able to adapt James' handler to work with the curly single right quote. Again, during testing, it may be sensible to avoid rendering the text in a field but rather use a variable and view via custom properties. Good luck, Keith.. On 3 Sep 2011, at 01:14, James Hurley wrote: Message: 10 Date: Fri, 2 Sep 2011 11:21:17 -0400 From: Jonathan Lynch jonathandly...@gmail.com To: use-livecode@lists.runrev.com Subject: Copying from MS word into RunRev 4.0 Message-ID: CAC-_fWRN6P5_cmTPHZu3cqT7YTh95r22wudGo=w4apdplt5...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. This is quite an issue for me. My work around is to hijack the paste operation, use VB Script to create an invisible Word doc and save that doc as a text file, then use Rev to retrieve the contents of the text file. This works, but takes approximately 1.5 seconds to complete the procedure. Does anyone know if the recent versions of Live Code allow for pasting from an MS Word document without omitting characters? I know it worked fine back with RunRev 2.5, so I know it is possible for it to be done. Well, thanks for you help. Peace, Jonathan Jonathan, I have been working on a similar problem. However I work with a Mac, where the apostrophe does come through, but as a char num 213. I have been first saving the Word document in rtf format and using some tips I got from Jacque. Here is my import handler: on mouseUp answer file Get the RTF file. put file: it into tFIle put url tFile into tText replace \emdash with -- in tText set the rtfText of field theText to tText replace numToChar(213) with ' in field theTExt--Here is where the apostrophe is handled. replace numToChar(210) with quote in field theText replace numToChar(211) with quote in field theText delete line 1 of field theText-- Don't ask. end mouseUp You can add your own variants of replace numToChar... A very simple way to locate these variants is with something like this in a button script. on mouseUp put field 1 into tList--This would be the Word text you want to check repeat for each char tChar in tList put tChar tab charToNum(tChar) cr after results end repeat put results into field 2 end mouseUp Put the potentially offending Word text into field 1 and read the list of how each character is rendered both as character and as ascii number. Very simple but potentialy revealing. Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Jonathan, I think this may be fallout from an old MS/Adobe battle. there have been problems with the how data was formatted on the clipboard by MS and then having issues with pasting into Adobe apps. from all i read on that it was a big finger pointing game with adobe saying MS was not doing apple standard formatting of their data on the clipboard to make it accessible and MS saying it was adobe being stupid on how they looked at data on the clipboard... in my experience its gotten worse with later revs of word... it is a muck... the straight quote does help with similar unicode issues in dreamweaver, but there are some other characters like em dashes that also give out of bounds character codes. cheers jeff On Sep 3, 2011, at 1:00 PM, use-livecode-requ...@lists.runrev.com wrote: I blame Microsoft, because this is obviously intentional in some fashion. I think it would be good, though, for RunRev to have a way to access to the full text despire Microsoft's attempt to hide it. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Copying from MS word into RunRev 4.0
Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. This is quite an issue for me. My work around is to hijack the paste operation, use VB Script to create an invisible Word doc and save that doc as a text file, then use Rev to retrieve the contents of the text file. This works, but takes approximately 1.5 seconds to complete the procedure. Does anyone know if the recent versions of Live Code allow for pasting from an MS Word document without omitting characters? I know it worked fine back with RunRev 2.5, so I know it is possible for it to be done. Well, thanks for you help. Peace, Jonathan -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Jonathan Lynch wrote: Does anyone know if the recent versions of Live Code allow for pasting from an MS Word document without omitting characters? I know it worked fine back with RunRev 2.5, so I know it is possible for it to be done. Odd. I've also discovered a complimenting issue, which may be related: When copying Unicode data from LiveCode fields, pasting into Word renders the text very badly, as though the encoding type is either incorrect or absent in the Clipboard. Anyone know a reliable way to copy Unicode text from a LiveCode field to paste into Word? Is this an engine bug, or a Richard bug? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
You could probably do the reverse of what I am doing. That is, you could create an HTML file with the proper unicode text, then use VBScript (if you are using Windows) to create an invisible word document and open up the HTML file. Then, do selection.wholestory and selection.copy. Then, close the invisible word document. It would take a second or two, but it would put the unicode text into the clipboard, but formatted by an MS Word document, and thus compatible with MS Word. Did that make sense? On Fri, Sep 2, 2011 at 11:39 AM, Richard Gaskin ambassa...@fourthworld.comwrote: Jonathan Lynch wrote: Does anyone know if the recent versions of Live Code allow for pasting from an MS Word document without omitting characters? I know it worked fine back with RunRev 2.5, so I know it is possible for it to be done. Odd. I've also discovered a complimenting issue, which may be related: When copying Unicode data from LiveCode fields, pasting into Word renders the text very badly, as though the encoding type is either incorrect or absent in the Clipboard. Anyone know a reliable way to copy Unicode text from a LiveCode field to paste into Word? Is this an engine bug, or a Richard bug? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.comhttp://www.livecodejournal.com/ LiveCode Journal blog: http://LiveCodejournal.com/**blog.irvhttp://livecodejournal.com/blog.irv __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Even with both apps open, it omits apostrophes when i paste from Word to RunRev 4.0 If I paste it into notepad first, then copy and paste from notepad into Rev, it works fine without dropping characters. On Fri, Sep 2, 2011 at 12:07 PM, Bob Sneidar b...@twft.com wrote: I did this on a Mac and it works fine. I believe that MS Office clipboard data is specially formatted, and the app has to be running in order to do an on the fly translation of the data. I have noticed in the past that if I copy something from an office product and then launch another program, then paste, I usually get nothing, because the other app wasn't open at the time I copied, so I suspect the translation only gets done when switching between open applications. Bob On Sep 2, 2011, at 8:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. This is quite an issue for me. My work around is to hijack the paste operation, use VB Script to create an invisible Word doc and save that doc as a text file, then use Rev to retrieve the contents of the text file. This works, but takes approximately 1.5 seconds to complete the procedure. Does anyone know if the recent versions of Live Code allow for pasting from an MS Word document without omitting characters? I know it worked fine back with RunRev 2.5, so I know it is possible for it to be done. Well, thanks for you help. Peace, Jonathan -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Thanks for testing it, Bob :) On Fri, Sep 2, 2011 at 12:13 PM, Jonathan Lynch jonathandly...@gmail.comwrote: Even with both apps open, it omits apostrophes when i paste from Word to RunRev 4.0 If I paste it into notepad first, then copy and paste from notepad into Rev, it works fine without dropping characters. On Fri, Sep 2, 2011 at 12:07 PM, Bob Sneidar b...@twft.com wrote: I did this on a Mac and it works fine. I believe that MS Office clipboard data is specially formatted, and the app has to be running in order to do an on the fly translation of the data. I have noticed in the past that if I copy something from an office product and then launch another program, then paste, I usually get nothing, because the other app wasn't open at the time I copied, so I suspect the translation only gets done when switching between open applications. Bob On Sep 2, 2011, at 8:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. This is quite an issue for me. My work around is to hijack the paste operation, use VB Script to create an invisible Word doc and save that doc as a text file, then use Rev to retrieve the contents of the text file. This works, but takes approximately 1.5 seconds to complete the procedure. Does anyone know if the recent versions of Live Code allow for pasting from an MS Word document without omitting characters? I know it worked fine back with RunRev 2.5, so I know it is possible for it to be done. Well, thanks for you help. Peace, Jonathan -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
On 9/2/11 10:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. I haven't tried it, but it might be possible to trap the pasteKey message and instead of pasting directly, set the htmltext of the selection to the clipboard[html]. Maybe Word inserts character entities that LiveCode can read. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
I just tried it, but no success. I copied a bunch of apostrophes from Word, and used a button that puts the clipboarddata[html] into a field. All the field shows is p/p - all of the apostrophes were omitted, even though I can paste them into Notepad. Do you have any other suggestions? I will try them all. Unfortunately, all elements in the clipboarddata array do not have the missing characters - I tried them. I just worked out a technique using VBScript and IE rather than Word, and it works fine, but is no faster than the method I was using with Word. Are there any externals available that might be useful? On Fri, Sep 2, 2011 at 1:10 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 9/2/11 10:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. I haven't tried it, but it might be possible to trap the pasteKey message and instead of pasting directly, set the htmltext of the selection to the clipboard[html]. Maybe Word inserts character entities that LiveCode can read. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
That's an interesting method of DRM. Another level of obfuscation. Thanks Microsoft. On 2 September 2011 09:07, Bob Sneidar b...@twft.com wrote: I did this on a Mac and it works fine. I believe that MS Office clipboard data is specially formatted, and the app has to be running in order to do an on the fly translation of the data. I have noticed in the past that if I copy something from an office product and then launch another program, then paste, I usually get nothing, because the other app wasn't open at the time I copied, so I suspect the translation only gets done when switching between open applications. Bob On Sep 2, 2011, at 8:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. This is quite an issue for me. My work around is to hijack the paste operation, use VB Script to create an invisible Word doc and save that doc as a text file, then use Rev to retrieve the contents of the text file. This works, but takes approximately 1.5 seconds to complete the procedure. Does anyone know if the recent versions of Live Code allow for pasting from an MS Word document without omitting characters? I know it worked fine back with RunRev 2.5, so I know it is possible for it to be done. Well, thanks for you help. Peace, Jonathan -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
I am thinking that this could be accomplished with a hidden RevBrowser stack that points to an HTML page that has nothing but a single text area. typing ^v ^a ^c into the browser text area would get me the clipboard text in a clean fashion, and be much faster than how I do it now. Will update if I can figure out how to make it work Peace, J On Fri, Sep 2, 2011 at 1:51 PM, Jonathan Lynch jonathandly...@gmail.comwrote: I just tried it, but no success. I copied a bunch of apostrophes from Word, and used a button that puts the clipboarddata[html] into a field. All the field shows is p/p - all of the apostrophes were omitted, even though I can paste them into Notepad. Do you have any other suggestions? I will try them all. Unfortunately, all elements in the clipboarddata array do not have the missing characters - I tried them. I just worked out a technique using VBScript and IE rather than Word, and it works fine, but is no faster than the method I was using with Word. Are there any externals available that might be useful? On Fri, Sep 2, 2011 at 1:10 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 9/2/11 10:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. I haven't tried it, but it might be possible to trap the pasteKey message and instead of pasting directly, set the htmltext of the selection to the clipboard[html]. Maybe Word inserts character entities that LiveCode can read. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
It might be worth avoiding pasting into an LC field (LC fields can be awkward when working with formatted text such as HTML/XML as they interpret some tags). It might be worth an experiment to 1) paste the clipboard contents into an LC variable, instead of a field 2) set custom property to the variable and then 3) view the custom property in the Property inspector - to see if you get any characters or blanks That way you'd know if the problem is with the LC paste function (a potential engine bug) or simply a field rendering one (a problem I get with HTML and XML tags all the time). Best, Keith.. On 2 Sep 2011, at 18:51, Jonathan Lynch wrote: I just tried it, but no success. I copied a bunch of apostrophes from Word, and used a button that puts the clipboarddata[html] into a field. All the field shows is p/p - all of the apostrophes were omitted, even though I can paste them into Notepad. Do you have any other suggestions? I will try them all. Unfortunately, all elements in the clipboarddata array do not have the missing characters - I tried them. I just worked out a technique using VBScript and IE rather than Word, and it works fine, but is no faster than the method I was using with Word. Are there any externals available that might be useful? On Fri, Sep 2, 2011 at 1:10 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 9/2/11 10:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. I haven't tried it, but it might be possible to trap the pasteKey message and instead of pasting directly, set the htmltext of the selection to the clipboard[html]. Maybe Word inserts character entities that LiveCode can read. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
What is DRM? On Fri, Sep 2, 2011 at 2:45 PM, stephen barncard stephenrevoluti...@barncard.com wrote: That's an interesting method of DRM. Another level of obfuscation. Thanks Microsoft. On 2 September 2011 09:07, Bob Sneidar b...@twft.com wrote: I did this on a Mac and it works fine. I believe that MS Office clipboard data is specially formatted, and the app has to be running in order to do an on the fly translation of the data. I have noticed in the past that if I copy something from an office product and then launch another program, then paste, I usually get nothing, because the other app wasn't open at the time I copied, so I suspect the translation only gets done when switching between open applications. Bob On Sep 2, 2011, at 8:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. This is quite an issue for me. My work around is to hijack the paste operation, use VB Script to create an invisible Word doc and save that doc as a text file, then use Rev to retrieve the contents of the text file. This works, but takes approximately 1.5 seconds to complete the procedure. Does anyone know if the recent versions of Live Code allow for pasting from an MS Word document without omitting characters? I know it worked fine back with RunRev 2.5, so I know it is possible for it to be done. Well, thanks for you help. Peace, Jonathan -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Hi Keith, The characters are entitely absent from the clipboarddata[html] and every other element of the clipboard array. Are there other means of accessing the clipboard besides using the clipboarddata or paste operations? On Fri, Sep 2, 2011 at 2:48 PM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: It might be worth avoiding pasting into an LC field (LC fields can be awkward when working with formatted text such as HTML/XML as they interpret some tags). It might be worth an experiment to 1) paste the clipboard contents into an LC variable, instead of a field 2) set custom property to the variable and then 3) view the custom property in the Property inspector - to see if you get any characters or blanks That way you'd know if the problem is with the LC paste function (a potential engine bug) or simply a field rendering one (a problem I get with HTML and XML tags all the time). Best, Keith.. On 2 Sep 2011, at 18:51, Jonathan Lynch wrote: I just tried it, but no success. I copied a bunch of apostrophes from Word, and used a button that puts the clipboarddata[html] into a field. All the field shows is p/p - all of the apostrophes were omitted, even though I can paste them into Notepad. Do you have any other suggestions? I will try them all. Unfortunately, all elements in the clipboarddata array do not have the missing characters - I tried them. I just worked out a technique using VBScript and IE rather than Word, and it works fine, but is no faster than the method I was using with Word. Are there any externals available that might be useful? On Fri, Sep 2, 2011 at 1:10 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 9/2/11 10:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. I haven't tried it, but it might be possible to trap the pasteKey message and instead of pasting directly, set the htmltext of the selection to the clipboard[html]. Maybe Word inserts character entities that LiveCode can read. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Digital Rights Management. Copy protection. On 2 September 2011 11:48, Jonathan Lynch jonathandly...@gmail.com wrote: What is DRM? On Fri, Sep 2, 2011 at 2:45 PM, stephen barncard stephenrevoluti...@barncard.com wrote: That's an interesting method of DRM. Another level of obfuscation. Thanks Microsoft. Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
I'm confused, how do you know the characters are missing until you paste the clipboard contents somewhere within LC to render them and see them? If you 'test' by rendering any formatted text into a field, you get the field's behaviour of partial interpretation of some text formatting in your test data. However, if you test by rendering into a custom property (or file) you will not get the field's artefacts added to the clipboard data. I hope that helps. Best, Keith.. On 2 Sep 2011, at 19:59, Jonathan Lynch wrote: Hi Keith, The characters are entitely absent from the clipboarddata[html] and every other element of the clipboard array. Are there other means of accessing the clipboard besides using the clipboarddata or paste operations? On Fri, Sep 2, 2011 at 2:48 PM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: It might be worth avoiding pasting into an LC field (LC fields can be awkward when working with formatted text such as HTML/XML as they interpret some tags). It might be worth an experiment to 1) paste the clipboard contents into an LC variable, instead of a field 2) set custom property to the variable and then 3) view the custom property in the Property inspector - to see if you get any characters or blanks That way you'd know if the problem is with the LC paste function (a potential engine bug) or simply a field rendering one (a problem I get with HTML and XML tags all the time). Best, Keith.. On 2 Sep 2011, at 18:51, Jonathan Lynch wrote: I just tried it, but no success. I copied a bunch of apostrophes from Word, and used a button that puts the clipboarddata[html] into a field. All the field shows is p/p - all of the apostrophes were omitted, even though I can paste them into Notepad. Do you have any other suggestions? I will try them all. Unfortunately, all elements in the clipboarddata array do not have the missing characters - I tried them. I just worked out a technique using VBScript and IE rather than Word, and it works fine, but is no faster than the method I was using with Word. Are there any externals available that might be useful? On Fri, Sep 2, 2011 at 1:10 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 9/2/11 10:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. I haven't tried it, but it might be possible to trap the pasteKey message and instead of pasting directly, set the htmltext of the selection to the clipboard[html]. Maybe Word inserts character entities that LiveCode can read. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
I see what you are saying. I just tried the following: * on* mouseUp *put* the clipboarddata[html] into tHTML *put* the number of chars in tHTML linefeed tHTML into field feedback * end* mouseUp The output of this script is the following: 7 p/p p/p contains 7 characters, which is what the output counted. If there were hidden characters that did not show up in the field, then the character count should have been higher. I think MS Word does something funny with copying - very annoying. On Fri, Sep 2, 2011 at 3:08 PM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: I'm confused, how do you know the characters are missing until you paste the clipboard contents somewhere within LC to render them and see them? If you 'test' by rendering any formatted text into a field, you get the field's behaviour of partial interpretation of some text formatting in your test data. However, if you test by rendering into a custom property (or file) you will not get the field's artefacts added to the clipboard data. I hope that helps. Best, Keith.. On 2 Sep 2011, at 19:59, Jonathan Lynch wrote: Hi Keith, The characters are entitely absent from the clipboarddata[html] and every other element of the clipboard array. Are there other means of accessing the clipboard besides using the clipboarddata or paste operations? On Fri, Sep 2, 2011 at 2:48 PM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: It might be worth avoiding pasting into an LC field (LC fields can be awkward when working with formatted text such as HTML/XML as they interpret some tags). It might be worth an experiment to 1) paste the clipboard contents into an LC variable, instead of a field 2) set custom property to the variable and then 3) view the custom property in the Property inspector - to see if you get any characters or blanks That way you'd know if the problem is with the LC paste function (a potential engine bug) or simply a field rendering one (a problem I get with HTML and XML tags all the time). Best, Keith.. On 2 Sep 2011, at 18:51, Jonathan Lynch wrote: I just tried it, but no success. I copied a bunch of apostrophes from Word, and used a button that puts the clipboarddata[html] into a field. All the field shows is p/p - all of the apostrophes were omitted, even though I can paste them into Notepad. Do you have any other suggestions? I will try them all. Unfortunately, all elements in the clipboarddata array do not have the missing characters - I tried them. I just worked out a technique using VBScript and IE rather than Word, and it works fine, but is no faster than the method I was using with Word. Are there any externals available that might be useful? On Fri, Sep 2, 2011 at 1:10 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 9/2/11 10:21 AM, Jonathan Lynch wrote: Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. I haven't tried it, but it might be possible to trap the pasteKey message and instead of pasting directly, set the htmltext of the selection to the clipboard[html]. Maybe Word inserts character entities that LiveCode can read. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
On 9/2/11 2:08 PM, Keith Clarke wrote: I'm confused, how do you know the characters are missing until you paste the clipboard contents somewhere within LC to render them and see them? The clipboardData is already a variable, so examining it to see what was actually copied should show accurate info. But you do make a good point, because looking at the variable contents has to put it into a field somewhere, even if it's only in the variable watcher. It may be the field rendering that's wrong instead of the clipboard content. Jonathan, you could test that with something like this: get the clipboardData[text] put numToChar(whatever Word uses) is in it If the message box shows true, then the characters are in there but the field isn't rendering them. You can then do a replace looking for numToChar(whatever) and replacing those with regular apostrophes. There was a bug in the database about copying text from Word. It was fixed and closed some time ago, but if the above doesn't work I think you should enter another bug report about it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
I tried this: * on* mouseUp *put* the clipboarddata[text] into ttext *put* chartonum(tTExt) into field Feedback * end* mouseUp I ran this after copying a single apostrophe from MS Word, but it came back empty. I do not think it is a problem with the rendering the character. I can paste the character into a textarea in IE, then copy it again and paste it into a field in Rev without any problem. I think that copying from Word does something different than copying from IE. On Fri, Sep 2, 2011 at 3:28 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 9/2/11 2:08 PM, Keith Clarke wrote: I'm confused, how do you know the characters are missing until you paste the clipboard contents somewhere within LC to render them and see them? The clipboardData is already a variable, so examining it to see what was actually copied should show accurate info. But you do make a good point, because looking at the variable contents has to put it into a field somewhere, even if it's only in the variable watcher. It may be the field rendering that's wrong instead of the clipboard content. Jonathan, you could test that with something like this: get the clipboardData[text] put numToChar(whatever Word uses) is in it If the message box shows true, then the characters are in there but the field isn't rendering them. You can then do a replace looking for numToChar(whatever) and replacing those with regular apostrophes. There was a bug in the database about copying text from Word. It was fixed and closed some time ago, but if the above doesn't work I think you should enter another bug report about it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Jonathan, check that you have the useUnicode property set to true in your handler, as it's clear that the code for curly quotes (2019) is way up above the 127-255 range that numtochar will support without unicode enabled. http://en.wikipedia.org/wiki/Quotation_mark_glyphs I've not had to dig into unicode yet, so I don't know too much more, but it's a recurring theme for community members, so the archives may be useful. Best, Keith.. On 2 Sep 2011, at 20:28, J. Landman Gay wrote: On 9/2/11 2:08 PM, Keith Clarke wrote: I'm confused, how do you know the characters are missing until you paste the clipboard contents somewhere within LC to render them and see them? The clipboardData is already a variable, so examining it to see what was actually copied should show accurate info. But you do make a good point, because looking at the variable contents has to put it into a field somewhere, even if it's only in the variable watcher. It may be the field rendering that's wrong instead of the clipboard content. Jonathan, you could test that with something like this: get the clipboardData[text] put numToChar(whatever Word uses) is in it If the message box shows true, then the characters are in there but the field isn't rendering them. You can then do a replace looking for numToChar(whatever) and replacing those with regular apostrophes. There was a bug in the database about copying text from Word. It was fixed and closed some time ago, but if the above doesn't work I think you should enter another bug report about it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Hi Keith, I just tried doing this with the useunicode set to true, but the apostrophe was still absent. On Fri, Sep 2, 2011 at 3:56 PM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: Jonathan, check that you have the useUnicode property set to true in your handler, as it's clear that the code for curly quotes (2019) is way up above the 127-255 range that numtochar will support without unicode enabled. http://en.wikipedia.org/wiki/Quotation_mark_glyphs I've not had to dig into unicode yet, so I don't know too much more, but it's a recurring theme for community members, so the archives may be useful. Best, Keith.. On 2 Sep 2011, at 20:28, J. Landman Gay wrote: On 9/2/11 2:08 PM, Keith Clarke wrote: I'm confused, how do you know the characters are missing until you paste the clipboard contents somewhere within LC to render them and see them? The clipboardData is already a variable, so examining it to see what was actually copied should show accurate info. But you do make a good point, because looking at the variable contents has to put it into a field somewhere, even if it's only in the variable watcher. It may be the field rendering that's wrong instead of the clipboard content. Jonathan, you could test that with something like this: get the clipboardData[text] put numToChar(whatever Word uses) is in it If the message box shows true, then the characters are in there but the field isn't rendering them. You can then do a replace looking for numToChar(whatever) and replacing those with regular apostrophes. There was a bug in the database about copying text from Word. It was fixed and closed some time ago, but if the above doesn't work I think you should enter another bug report about it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
...if you have control overt the Word environment, I think I'd look into enforcing straight quotes prior to export. It's an options/preferences setting and I seem to remember it being possible to set all quotes to straight, via a command - so that HTML export doesn't get corrupted. Good luck! Keith.. On 2 Sep 2011, at 21:15, Jonathan Lynch wrote: Hi Keith, I just tried doing this with the useunicode set to true, but the apostrophe was still absent. On Fri, Sep 2, 2011 at 3:56 PM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: Jonathan, check that you have the useUnicode property set to true in your handler, as it's clear that the code for curly quotes (2019) is way up above the 127-255 range that numtochar will support without unicode enabled. http://en.wikipedia.org/wiki/Quotation_mark_glyphs I've not had to dig into unicode yet, so I don't know too much more, but it's a recurring theme for community members, so the archives may be useful. Best, Keith.. On 2 Sep 2011, at 20:28, J. Landman Gay wrote: On 9/2/11 2:08 PM, Keith Clarke wrote: I'm confused, how do you know the characters are missing until you paste the clipboard contents somewhere within LC to render them and see them? The clipboardData is already a variable, so examining it to see what was actually copied should show accurate info. But you do make a good point, because looking at the variable contents has to put it into a field somewhere, even if it's only in the variable watcher. It may be the field rendering that's wrong instead of the clipboard content. Jonathan, you could test that with something like this: get the clipboardData[text] put numToChar(whatever Word uses) is in it If the message box shows true, then the characters are in there but the field isn't rendering them. You can then do a replace looking for numToChar(whatever) and replacing those with regular apostrophes. There was a bug in the database about copying text from Word. It was fixed and closed some time ago, but if the above doesn't work I think you should enter another bug report about it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Unfortunately, I do not have that control. this is for coworkers to be able to paste specific chunks of text into a message repository. They all work in MS Word, then will copy and past into the application. It would look weird if i told them they have to not use Word because my application can't see all the characters they type. what I am doing now works, I just hate the delay upon pasting. I blame Microsoft, because this is obviously intentional in some fashion. I think it would be good, though, for RunRev to have a way to access to the full text despire Microsoft's attempt to hide it. thanks for all of your thoughts on this, Keith. If you have any more suggestions, I am open to them. Peace, J On Fri, Sep 2, 2011 at 4:24 PM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: ...if you have control overt the Word environment, I think I'd look into enforcing straight quotes prior to export. It's an options/preferences setting and I seem to remember it being possible to set all quotes to straight, via a command - so that HTML export doesn't get corrupted. Good luck! Keith.. On 2 Sep 2011, at 21:15, Jonathan Lynch wrote: Hi Keith, I just tried doing this with the useunicode set to true, but the apostrophe was still absent. On Fri, Sep 2, 2011 at 3:56 PM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: Jonathan, check that you have the useUnicode property set to true in your handler, as it's clear that the code for curly quotes (2019) is way up above the 127-255 range that numtochar will support without unicode enabled. http://en.wikipedia.org/wiki/Quotation_mark_glyphs I've not had to dig into unicode yet, so I don't know too much more, but it's a recurring theme for community members, so the archives may be useful. Best, Keith.. On 2 Sep 2011, at 20:28, J. Landman Gay wrote: On 9/2/11 2:08 PM, Keith Clarke wrote: I'm confused, how do you know the characters are missing until you paste the clipboard contents somewhere within LC to render them and see them? The clipboardData is already a variable, so examining it to see what was actually copied should show accurate info. But you do make a good point, because looking at the variable contents has to put it into a field somewhere, even if it's only in the variable watcher. It may be the field rendering that's wrong instead of the clipboard content. Jonathan, you could test that with something like this: get the clipboardData[text] put numToChar(whatever Word uses) is in it If the message box shows true, then the characters are in there but the field isn't rendering them. You can then do a replace looking for numToChar(whatever) and replacing those with regular apostrophes. There was a bug in the database about copying text from Word. It was fixed and closed some time ago, but if the above doesn't work I think you should enter another bug report about it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Do all things with love ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Copying from MS word into RunRev 4.0
Message: 10 Date: Fri, 2 Sep 2011 11:21:17 -0400 From: Jonathan Lynch jonathandly...@gmail.com To: use-livecode@lists.runrev.com Subject: Copying from MS word into RunRev 4.0 Message-ID: CAC-_fWRN6P5_cmTPHZu3cqT7YTh95r22wudGo=w4apdplt5...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Hi everyone. When I type this word into MS Word: it's Then copy and paste it into a field in RunRev, the apostrophe gets omitted. This is on a windows system. The character in question is not the usual apostrophe, but is the curly apostrophe that MS Word uses. This is quite an issue for me. My work around is to hijack the paste operation, use VB Script to create an invisible Word doc and save that doc as a text file, then use Rev to retrieve the contents of the text file. This works, but takes approximately 1.5 seconds to complete the procedure. Does anyone know if the recent versions of Live Code allow for pasting from an MS Word document without omitting characters? I know it worked fine back with RunRev 2.5, so I know it is possible for it to be done. Well, thanks for you help. Peace, Jonathan Jonathan, I have been working on a similar problem. However I work with a Mac, where the apostrophe does come through, but as a char num 213. I have been first saving the Word document in rtf format and using some tips I got from Jacque. Here is my import handler: on mouseUp answer file Get the RTF file. put file: it into tFIle put url tFile into tText replace \emdash with -- in tText set the rtfText of field theText to tText replace numToChar(213) with ' in field theTExt--Here is where the apostrophe is handled. replace numToChar(210) with quote in field theText replace numToChar(211) with quote in field theText delete line 1 of field theText-- Don't ask. end mouseUp You can add your own variants of replace numToChar... A very simple way to locate these variants is with something like this in a button script. on mouseUp put field 1 into tList--This would be the Word text you want to check repeat for each char tChar in tList put tChar tab charToNum(tChar) cr after results end repeat put results into field 2 end mouseUp Put the potentially offending Word text into field 1 and read the list of how each character is rendered both as character and as ascii number. Very simple but potentialy revealing. Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode