|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
copying unicode text into other applications Hello, all. I have Unicode text in a field, the text consisting of syllabic
characters from the Canadian Aboriginal Syllabics portion of Unicode. It displays fine, and I¹m very happily able to produce it via a script, but I can¹t figure out how to copy it to the clipboard so that it comes out right pasted into, say, MicroSoft Word. The Revolution dictionary says: To copy or export Unicode text from a field while preserving font, style, size, and color information, use the htmlText property. Now, really, this note is not terribly helpful, because it doesn't tell you HOW to do this! So when I try something like: set the clipboarddata["htmltext"] to the htmlText of field "my_field" I get garbage pasted into Word. And when I try set the clipboarddata["htmltext"] to the unicodeText of field "my_field" Still garbage. What is the command (sequence) to get the Unicode text to properly copy? Thanks. rand valentine _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: copying unicode text into other applicationsHi Rand,
This should be one of the following: set the clipboarddata["html"] to the htmlText of field "my_field" set the clipboarddata["rtf"] to the rtfText of field "my_field" set the clipboarddata["unicode"] to the unicodeText of field "my_field" Due to bugs in Revolution, each method has advantages and disadvantages. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html for more info. On 13 jul 2008, at 19:46, Randolph Valentine wrote: > Hello, all. I have Unicode text in a field, the text consisting of > syllabic > characters from the Canadian Aboriginal Syllabics portion of > Unicode. It > displays fine, and I’m very happily able to produce it via a script, > but I > can’t figure out how to copy it to the clipboard so that it comes > out right > pasted into, say, MicroSoft Word. > > The Revolution dictionary says: > > To copy or export Unicode text from a field while preserving font, > style, > size, and color information, use the htmlText property. > > Now, really, this note is not terribly helpful, because it doesn't > tell you > HOW to do this! > > So when I try something like: > > set the clipboarddata["htmltext"] to the htmlText of field "my_field" > > I get garbage pasted into Word. > > And when I try > > set the clipboarddata["htmltext"] to the unicodeText of field > "my_field" > > Still garbage. What is the command (sequence) to get the Unicode > text to > properly copy? Thanks. > > rand valentine > _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: copying unicode text into other applications--- Randolph Valentine <jrvalent@...> wrote:
> Hello, all. I have Unicode text in a field, the > text consisting of syllabic > characters from the Canadian Aboriginal Syllabics > portion of Unicode. It > displays fine, and I¹m very happily able to produce > it via a script, but I > can¹t figure out how to copy it to the clipboard so > that it comes out right > pasted into, say, MicroSoft Word. > > The Revolution dictionary says: > > To copy or export Unicode text from a field while > preserving font, style, > size, and color information, use the htmlText > property. > > Now, really, this note is not terribly helpful, > because it doesn't tell you > HOW to do this! > > So when I try something like: > > set the clipboarddata["htmltext"] to the htmlText of > field "my_field" > > I get garbage pasted into Word. > > And when I try > > set the clipboarddata["htmltext"] to the unicodeText > of field "my_field" > > Still garbage. What is the command (sequence) to > get the Unicode text to > properly copy? Thanks. > > rand valentine > Almost there - from the documentation for 'clipboardData': ## set the clipboardData["html"] to the htmlText of field "my_field" ## And in extreme cases where this doesn't work, you can still try the following trick: ## select char 1 to -1 of field "my_field" copy ## Hope this helped, Jan Schenkel. Quartam Reports & PDF Library for Revolution <http://www.quartam.com> ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
| Free Forum Powered by Nabble | Forum Help |