?

Log in

No account? Create an account
 
 
07 December 2009 @ 08:43 pm
AKICILJ: Open Office, copy/paste weirdness  
Received from a friend; posted with permission. Open Office running on Windows 7.

Using the Ctrl-C and Ctrl-V shortcuts to cut and paste from Open Office to (for specific instance) Semagic results in all of the formatting commands and (possibly) HTML codes to appear in the pasted text.


I know nothing about Open Office, so I don't have a clue where to start with this one. Any ideas?
 
 
Shadow/Brookekengr on December 8th, 2009 02:51 am (UTC)
It's actually "works as designed". Semagic accepts the formatting because it accepts HTML tags as part of the text entry.

The "fix" if you don't want that is to paste into NotePad or some other text only editor.

Stephen Harrissweh on December 8th, 2009 02:59 am (UTC)
I thought the buffer contained a MIME type associated with it; Is so then if the MIME type was "text/html" then presenting the html markup in the pasted results is of questionable design (indeed, mis-designed because it'd go against expected normal windows behaviour).

If the buffer doesn't contain any associated MIME type then ignore me; I did say I wasn't a windows expert :-)
Shadow/Brookekengr on December 8th, 2009 03:22 am (UTC)
I dunno about that, but from a number of programs dealing with "formatted" text, pasting into programs that allow formatting results in the formatting carrying over.

I'd call that the "expected" result.

I do note that a few programs (Firfox 3.5, IIRC) will ask you whether you want the plain text or the HTML when you tell them to copy a block of text
Stephen Harrissweh on December 8th, 2009 03:30 am (UTC)
The _formatted results_ is what I'd expect; Janet's original question suggested that the formatting markup was visible ("all of the formatting commands and (possibly) HTML codes to appear"). That's unformatted results.

Maybe I misunderstood what Janet (or her friend) was asking.

If Semagic is formatting the results as close to the original as possible then Semagic is doing the right thing; if it's displaying the markup then it's doing the wrong thing,
Shadow/Brookekengr on December 8th, 2009 04:00 am (UTC)
That's because Semagic *always* displays the formatting codes you enter or paste.

Markup is visible in Semagic. It's not WYSIWYG. You have to switch to the preview screen to noyt see the markup.

Like I said "works as designed"
gh4acws on December 8th, 2009 01:09 pm (UTC)
depends on
what mode semagic is in. if it is in HTML it shows the markup - however there is the wysiwyg mode ( switches bottom right )