Bug in Mac version: pasting HTML>Docbook

jbzech
Posts: 35

Bug in Mac version: pasting HTML>Docbook

Tue Nov 08, 2011 7:15 pm

This problem only seems to apply to the mac version of Oxygen Editor, as I am able to successfully perform this action on the PC version.

I am unable to copy and paste large chunks of simple HTML text into a DocBook book document. When I try to do it, I get an error message: "Resetting to invalid mark." My source HTML is very simple, h1 tags, p tags, and some em tags. And it doesn't seem to matter whether there is more than 1 h1 head or not. One h1 head and a thousand words of text in p tags will cause the error.

I can successfully paste a small chunk (a head and a few hundred words), but that isn't very useful. For now, I'm able to work around this by using a secondary PC, but I would like to iron out this bug in the Mac version for future work.

Please let me know if I can help with further info.

Working on Mac OS 10.6 with Oxygen Editor, version 13.1, build 2011110718.
sorin_ristache
Posts: 4144

Re: Bug in Mac version: pasting HTML>Docbook

Wed Nov 09, 2011 5:07 pm

Hello,

Thank you for reporting the problem but I cannot reproduce it. I tried on Mac OS X 10.6.3 with the same build of Oxygen 13.1 (build number 2011110718). I pasted an HTML fragment (copied from either Firefox or Safari) with one h1 title and two p elements with about 10,000 words each. I pasted the fragment in a DocBook document both in Author mode and in Text mode but I get no error. Please send us a sample HTML file for reproducing the problem.


Thank you,
Sorin
jbzech
Posts: 35

Re: Bug in Mac version: pasting HTML>Docbook

Wed Nov 09, 2011 6:52 pm

Thanks for the reply. The one intermediate part I hadn't considered is the browser I am copying from. I am opening my HTML in a browser, copying all the text, and then pasting into DocBook in Author Mode (so that the background HTML tags are converted to the basic DocBook tags). Again, this works fine in Windows.

I hadn't though about browser differences, though.

I tested the recent Mac versions of Chrome (my preference), Safari, and Firefox. Here's what happened:

- Chrome: gave me that error I mentioned and won't let me paste in anything.
- Safari: pastes in the text but even in author mode, it pastes in the text as plain text with no tags applied (not helpful) and all whitespace collapsed.
- Firefox: works exactly the right way. Text is pasted in with the DocBook tags applied in the background.

I'm perfectly happy to use Firefox on my Mac platform to do this work, so I'm satisfied. I simply use Chrome by default.

Again, I don't have any problems going HTML>DocBook via copy/paste from Chrome on the Windows 7 platform. Just Mac.

If you'd still like a sample file or more info to investigate the problems with Chrome & Safari, let me know.

Thanks,

jz
sorin_ristache
Posts: 4144

Re: Bug in Mac version: pasting HTML>Docbook

Thu Nov 10, 2011 10:24 am

jbzech wrote:- Chrome: gave me that error I mentioned and won't let me paste in anything.


There is a problem with the (X)HTML from the clipboard. Without parsable (X)HTML code in the clipboard the paste cannot be done in Oxygen.

jbzech wrote:- Safari: pastes in the text but even in author mode, it pastes in the text as plain text with no tags applied (not helpful) and all whitespace collapsed.


Was the cursor in a different position or in a different type of document (for example not a Docbook document) when you pasted in Author mode compared with the Firefox case? Was the copied fragment different? The tags of the copied fragment are converted to the markup of the target document only if it is Docbook, DITA or TEI. In other document types only plain text is pasted.


Regards,
Sorin
dcdenison
Posts: 31

Re: Bug in Mac version: pasting HTML>Docbook

Mon Jan 28, 2013 6:37 pm

Hi, I'm getting the same problem: when I try to paste HTML into Author I get "resetting to invalid mark."

Have there been any developments since these posts a year ago?

BTW, Pasting from Chrome to Oxygen Author.

thanks!
dcdenison
Posts: 31

Re: Bug in Mac version: pasting HTML>Docbook

Mon Jan 28, 2013 6:43 pm

BTW, I'm on a Mac.

Also, works much better in Firefox. Just tried that.

Is that the workaround?

Return to “DocBook”

Who is online

Users browsing this forum: No registered users and 1 guest