Smart copy-paste
Post here questions and problems related to editing and publishing DITA content.
Smart copy-paste
When I try to do smart paste from an Excel file into a concept topic in Oxygen Author, the copied table cells just go in as plain text. What is the secret to doing smart copy/paste of table cells as demonstrated in http://www.oxygenxml.com/demo/Smart_Pas ... ments.html? I haven't made any modifications to preferences which should affect this behavior.
Our use case is actually to copy two columns of Excel data into an unordered list in DITA. In fact it would be only "half-smart," as for each row we want the two columns to collapse into a single list item. Is this possible? For example, could we use refactoring to accomplish this?
Gary
Our use case is actually to copy two columns of Excel data into an unordered list in DITA. In fact it would be only "half-smart," as for each row we want the two columns to collapse into a single list item. Is this possible? For example, could we use refactoring to accomplish this?
Gary
Re: Smart copy-paste
Hello,
Could you please let us know what specific version and build of oXygen XML Author are you using?
You can find this information in the oXygen's menu Help > About.
Best Regards,
Costin
Could you please let us know what specific version and build of oXygen XML Author are you using?
You can find this information in the oXygen's menu Help > About.
Best Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Re: Smart copy-paste
Hi,
We have tested the Smart Paste behavior for both v16 and v17 versions and it works as it should, in both of them.
Do you recall to have created any custom Document Type Association (framework)?
If you did, you should try performing Smart Paste, using the default DITA Document Type Association in oXygen and see if this changes anything.
For that, first go into the oXygen menu Options > Preferences > Document Type Association > Location and make sure you have the Default location selected for the frameworks folder in the oXygen installation, not a custom one.
Then, back to the > Document Type Association page, check if you have the default "DITA" document type selected; if you don't please enable it.
Restart oXygen and retry copy-pasting content in Author mode.
If the Smart Paste feature works find with the default DITA document type predefined in oXygen, that would mean the issue is related to some custom framework you might have created, so you should double check its configuration and especially the presence of the "ro.sync.ecss.extensions.dita.DITAExtensionsBundle" in the "Extensions bundle" field under the "Extensions" tab in the configuration dialog for the appropriate custom document type association you have configured.
Regards,
Costin
We have tested the Smart Paste behavior for both v16 and v17 versions and it works as it should, in both of them.
Do you recall to have created any custom Document Type Association (framework)?
If you did, you should try performing Smart Paste, using the default DITA Document Type Association in oXygen and see if this changes anything.
For that, first go into the oXygen menu Options > Preferences > Document Type Association > Location and make sure you have the Default location selected for the frameworks folder in the oXygen installation, not a custom one.
Then, back to the > Document Type Association page, check if you have the default "DITA" document type selected; if you don't please enable it.
Restart oXygen and retry copy-pasting content in Author mode.
If the Smart Paste feature works find with the default DITA document type predefined in oXygen, that would mean the issue is related to some custom framework you might have created, so you should double check its configuration and especially the presence of the "ro.sync.ecss.extensions.dita.DITAExtensionsBundle" in the "Extensions bundle" field under the "Extensions" tab in the configuration dialog for the appropriate custom document type association you have configured.
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Smart copy-paste
Post by sorin_ristache »
Hi,
In what Java version was the Oxygen application running? You can see the Java version in the Oxygen application by going to menu Oxygen XML Author -> About Oxygen XML Author -- the System Properties tab -- the java.runtime.version property.
We need these details in order to reproduce and fix the problem.
Oxygen 17 can run in a Java 6 virtual machine or in a Java 8 one as you can read on the Download page. The Java 8 virtual machine has some known problems with accessing the OS X system clipboard. The Mac app where you performed the Copy action should place the copied content in the OS X system clipboard, and the Oxygen application will fetch it from there.
What is the name and version number of the application on the Mac OS X machine where you performed the Copy action? Was it Microsoft Office for Mac?gwhite wrote:Using Oxygen Author 17.0.
Ah! Out of curiosity I just tried the smart paste in 16.1 and it worked as expected.
In what Java version was the Oxygen application running? You can see the Java version in the Oxygen application by going to menu Oxygen XML Author -> About Oxygen XML Author -- the System Properties tab -- the java.runtime.version property.
We need these details in order to reproduce and fix the problem.
Oxygen 17 can run in a Java 6 virtual machine or in a Java 8 one as you can read on the Download page. The Java 8 virtual machine has some known problems with accessing the OS X system clipboard. The Mac app where you performed the Copy action should place the copied content in the OS X system clipboard, and the Oxygen application will fetch it from there.
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Smart copy-paste
Post by sorin_ristache »
Do you mean an XML Refactoring action? You would need to develop your own custom XML Refactoring script.gwhite wrote:Our use case is actually to copy two columns of Excel data into an unordered list in DITA. In fact it would be only "half-smart," as for each row we want the two columns to collapse into a single list item. Is this possible? For example, could we use refactoring to accomplish this?
I suggest writing a short XSLT stylesheet to transform the table to a list and run it on the result of the Smart Paste action.
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
Re: Smart copy-paste
This was on a Windows 7 machine, not OSX. The java runtime version is 1.8.0_40-b25.
I do have two extensions -- one that creates a table with different characteristics from the default created from the toolbar -- and one that is the extension for the Dynamic Information Model functionality you guys made available on github. I think the latter is the only difference between my Oxygen 16.1 and Oxygen 17.0 setups--the DITA DIM extension; it's not present in 16.1 (and Smart Paste works in 16.1). Well, also in 16.1, Additional frameworks directories under Document Type Association > Locations specifies ${frameworksDir}/dita-ext. That's different. For 17.0, the additional framework directory is specified as ${pd}/frameworks.
The Priority for both extensions is Normal, whereas the Priority for the DITA document type is Low. Don't know if that's a problem.
Gary
I do have two extensions -- one that creates a table with different characteristics from the default created from the toolbar -- and one that is the extension for the Dynamic Information Model functionality you guys made available on github. I think the latter is the only difference between my Oxygen 16.1 and Oxygen 17.0 setups--the DITA DIM extension; it's not present in 16.1 (and Smart Paste works in 16.1). Well, also in 16.1, Additional frameworks directories under Document Type Association > Locations specifies ${frameworksDir}/dita-ext. That's different. For 17.0, the additional framework directory is specified as ${pd}/frameworks.
The Priority for both extensions is Normal, whereas the Priority for the DITA document type is Low. Don't know if that's a problem.
Gary
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Smart copy-paste
Post by sorin_ristache »
This is probably the cause of the problem. The document types that were added probably have no Smart Paste handler. In order to check this, please switch the DITA document type of Oxygen (the built-in DITA document type that comes int he Oxygen install kit) to High, re-open the DITA topic and try again the Smart Paste feature.gwhite wrote:The Priority for both extensions is Normal, whereas the Priority for the DITA document type is Low. Don't know if that's a problem.
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Smart copy-paste
Post by sorin_ristache »
I figured it out eventually: Microsoft Excel places badly formatted content in the Windows system clipboard, which can't be parsed as a well-formatted table by other clipboard consuming applications like Oxygen.gwhite wrote:This didn't actually work, Sorin. Changed the DITA document type Priority to High, saved, then restarted oXygen and tried Smart Paste. No luck.
I have a workaround for you: first paste the table in Microsoft Word (or other Word-compatible application, like OpenOffice Writer or LibreOffice Writer), and after that copy the table from the Word application and paste it to Oxygen Author mode. It requires an extra copy & paste operation, but it works
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Smart copy-paste
Post by sorin_ristache »
Oxygen 16.1 comes with a Java 1.7 virtual machine, while Oxygen 17.0 comes with a Java 1.8 one, which is not as able as the JVM 1.7 to extract correctly the clipboard content placed by the Excel application. So it is strange only in the sense that JVM 1.8 from Oracle has this unexpected regression (as compared with JVM 1.7) w.r.t. the handling of the Windows system clipboard.
That offers you another workaround: replace the default Windows JVM 1.8 from the OXYGEN_17_INSTALL_DIR/jre directory with a JVM 1.7 one.
That offers you another workaround: replace the default Windows JVM 1.8 from the OXYGEN_17_INSTALL_DIR/jre directory with a JVM 1.7 one.
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
Re: Smart copy-paste
Hi Eddie,
Could you try to download the latest Oxygen 17 kit from our web site, install it and try to reproduce the problem?
One of our minor bug fix releases contained a possible fix for your problem:
http://www.oxygenxml.com/rssBuildID.xml
Radu
Could you try to download the latest Oxygen 17 kit from our web site, install it and try to reproduce the problem?
One of our minor bug fix releases contained a possible fix for your problem:
http://www.oxygenxml.com/rssBuildID.xml
Regards,Author/Smart Paste: Copying table data from MS Excel and pasting it in the Author mode did not generate a table structure.
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Smart copy-paste
Within the past few days, running the latest version of Oxygen with no reversion to the previous JRE, I have noticed that when I copy-paste content from MS Word the formatting is retained, including table data. Just now tried with Excel and it works as expected.
Seems to be fixed!
Gary
Seems to be fixed!
Gary
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service