[oXygen-user] Smart Pasting from Word
Lee, David
dlee at epocrates.com
Sun Oct 23 07:54:31 CDT 2011
Probably wont solve your problem, but it solves many of my Office-smart-pastes-junk problems.
I keep a copy of Notepad open at all times. (actually have a keyboard macro for it).
Whenever I want to paste from Word or other 'smart' program, I first paste into notepad, which is converted to plan *text*
THEN I copy/paste from notepad to the destination program.
All formatting is lost, but atleast bogus formatting is lost too.
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
dlee at epocrates.com
812-482-5224
-----Original Message-----
From: oxygen-user-bounces at oxygenxml.com [mailto:oxygen-user-bounces at oxygenxml.com] On Behalf Of George Cristian Bina
Sent: Sunday, October 23, 2011 4:43 AM
To: Eliot Kimber
Cc: Oxygen User
Subject: Re: [oXygen-user] Smart Pasting from Word
Hi Eliot,
I do not know if and how one can customize what Word puts in the clipboard.
What you can try is to look at the XHTML code and see if you can do
something in the conversion from XHTML to DITA. To get the XHTML content
just create an XHTML document, switch to Author mode and paste inside
the body element - the default
frameworks/xhtml/resources/xhtml2xhtml.xsl copies all the content of the
body element.
If you find a specific pattern for this content then you can handle that
in the frameworks/dita/resources/xhtml2dita.xsl to convert it to a list.
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 10/22/11 3:51 PM, Eliot Kimber wrote:
> I finally got a chance to try this feature--very nice.
>
> However, in my case, I have text that uses List Number paragraphs but when
> pasted they come into Oxygen as<p> elements with literal numbers, not as
> ordered lists (this is with DITA as the target).
>
> Is there a way to control this? I assume it's a function of how Word is
> constructing what it puts on the clipboard.
>
> Cheers,
>
> Eliot
>
_______________________________________________
oXygen-user mailing list
oXygen-user at oxygenxml.com
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
More information about the oXygen-user
mailing list