Hi Skip,
If you're using LC 5.5 or better, have you considered processing the
styledText of the field after the paste instead of the clipboardData
before the paste? I found this makes it possible to do pretty much
whatever you need to do. I recently created a field behavior script that
allows you (or my client's customers actually) to paste Arabic text into
a field and have it wrap and do line breaks correctly! (I hope to
release a version of it to the community soon)
You would have to do something like this:
lock screen
create inv fld "_temp_"
set the unicodeText of fld "_temp_" to the clipboardData["unicode"]
put the styledText of fld "_temp_" into tMyTextA
delete field "_temp_"
-- and now process the 'tMyTextA' array
Food for thought -
Phil Davis
On 5/14/13 12:04 PM, Magicgate Software - Skip Kimpel wrote:
I have used clipboarddata for many project in the past. Today I was trying
to process a clipboard selection that came from a Word 2003 document and it
did not preserve any of the spaces. I have used the format of "text",
"html", "rtf"..... actually tried all the available options.
Suggestions?
SKIP
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
Phil Davis
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode