On 05/09/2018 08:15 AM, Vic Steadman wrote:

Thank you for your quick response.  I am sorry for my delay in sending you the 
files you asked for due to a holiday in the UK and difficulty reproducing the 
superscript problem in text that I can share with you.


No  problem.



I have realised that this 2nd problem only occurs when I paste MS Word text 
that was created using XMLMind back into XMLMind (after my customer had 
reviewed my drafts in Word)

See the example files.
... Footnote Text.docx is the original MS Word file containing footnotes:

"Footnote Text.docx" has been created using the XMLmind XSL-FO Converter add-on and not using MS-Word.




... Footnote Text.dita is that text pasted into XML Mind.
... Footnote Text2.docx is the result when published to Word 2007+ - no problem 
with footnote numbering.

"Footnote Text2.docx" already contains double footnote numbers. Open it in MS-Word and you'll immediately see this.

Anyway this is really not a problem. "Footnote Text.docx" alone is sufficient to diagnose the issue. See explanations below.




... Footnote Text2.dita is this 2nd word document pasted into XMLMind - the 
footnotes now contain extra numbering

When this last file is published to MS Word it contains the double footnote 
numbers.


XXE's "Paste From Word" facility (and also our "Word To XML" add-on, which is "Paste From Word" on steroids) have not been designed to be good at this kind of round-tripping between MS-Word and XXE.

XXE's "Paste From Word" facility and the "Word To XML" add-on have been designed to be as good as possible at dealing with files created "by hand" using MS-Word.

The double footnote numbers come from the fact that XMLmind XSL-FO Converter generates DOCX markup, which once copied to the clipboard by MS-Word gives us the following HTML (A):

---
<span style='mso-bookmark:I_d39e21_'><sup><span lang=EN style='font-size:8.0pt;
mso-bidi-font-size:10.0pt;color:black'>(2)</span></sup></span>
---

While MS-Word generates a different DOCX markup, which once copied to the clipboard by MS-Word gives us the following HTML (B):

---
<span class=MsoFootnoteReference><span style='mso-special-character:
footnote'><![if !supportFootnotes]><span class=MsoFootnoteReference><span
style='font-size:10.0pt;line-height:107%;font-family:"Calibri",sans-serif;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA'>[2]</span></span><![endif]></span></span>
---

In a nutshell,

- In case (B), XXE's "Paste From Word" has sufficient information (class=MsoFootnoteReference) to get rid of the footnote numbering.

- In case (A), out of the box, XXE's "Paste From Word" thinks that "<sup>(2)</sup>" is part of the body of the footnote and as such, will not discard it.





I am using:

Microsoft Office 365 ProPlus
Version 1708 (Build 8431.2242



By the way, the first issue you have reported is fixed now, both in XXE's "Paste From Word" facility and also in the "Word To XML" add-on.

You can patch your XXE v8.0 copy if you want. Simply replace <XXE_install_dir>/addon/paste_from_word/xslt/topic.xslt by attached file.



Attachment: topic.xslt
Description: application/xslt

--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to