Smart Pasting from Word

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 -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.reallysi.com www.rsuitecms.com

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

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@epocrates.com 812-482-5224 -----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@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@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

So the conversion is just a transform and I can modify it? Super cool. Will have to look at that more carefully. Cheers, E. On 10/23/11 3:42 AM, "George Cristian Bina" <george@oxygenxml.com> wrote:
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
-- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.reallysi.com www.rsuitecms.com

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yes, I also like how easy it is to customize. That's definitely worth putting in the Oxygen docs, along with the tip to use the xhtml framework's identity transform to find out what's being fed to the xslt. David On 10/25/2011 08:18 PM, Eliot Kimber wrote:
So the conversion is just a transform and I can modify it? Super cool. Will have to look at that more carefully.
Cheers,
E.
On 10/23/11 3:42 AM, "George Cristian Bina" <george@oxygenxml.com> wrote:
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
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOp2nvAAoJEMHeSXG7afUhXE8H/i5LKqnpIhfIi1+Tf+NixSTG wSfKjzysmcWqtV4A/uvJSAztEVY6AMC5sGW4vzn5bAafQ55+GiJ/PmXJvvcKCFdp lcLw6ZnPI5aHRcuwD4x2j8Q2ixkY3G3Y16VLc4pOKVbE4fhBGTeXDzf5uMqv/Mdc HWxgm9jdA6ZjktblkVGfoY9lD363XelknBRy6B9UC0d6LXuS3EK+VLSWu3S2EH70 sZygN04Idj080+CtWaERmqMkWvuNmbPp3wgw6qKen6YDHYA7k4CwsmvCxI2SU9rO lmqVfvnsfJ362+ODptXDWOhetg/xu3/opp046wRpr/PPxjugt+E0bNDmAOY8R74= =eZA5 -----END PGP SIGNATURE-----
participants (4)
-
David Cramer
-
Eliot Kimber
-
George Cristian Bina
-
Lee, David