← Back to team overview

desktop-packages team mailing list archive

[Bug 295014] Re: [Upstream] Cannot remove highlight from .doc in Word exported from Writer

 

Launchpad has imported 8 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=37540.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-05-24T12:42:56+00:00 Hirt-o wrote:

FILESAVE as word 97-2003 doc Format saves highlighted text not correct.

When opening the file with word2000, 2003 or 2010 the text is not
highlighted but has a colored background.

This behaviour is independent of the source of the highlightening
(imported from Word or highlighted in Libreoffice or Openoffice).

However, when opened in Libreoffice/Openoffice the text is recognized
correct as highlighted text and not as background.

This behaviour is included in LibO 3.4 RC1

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/295014/comments/3

------------------------------------------------------------------------
On 2011-06-13T10:25:28+00:00 Hirt-o wrote:

LibO 3.3RC1 does not fix this issue

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/295014/comments/4

------------------------------------------------------------------------
On 2011-07-01T06:34:24+00:00 Hirt-o wrote:

Version 3.3.3 and 3.4.1RC3 still show this bug. 
This Bug is on x86 and x86-64 on both Linux and Windows

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/295014/comments/5

------------------------------------------------------------------------
On 2011-09-05T10:15:06+00:00 Eliotfur wrote:

My colleague just noticed this issue like this:
"I never can remove color highlights in your *** documents made in your *** LibreOffice... Throw it in ***"... And so on...

The bug happens not only when you export as DOC, but also when you
export as DOCX and then edit it in Office 2007 or 2010...

Additional info:
There are two buttons on the toolbar in Word 2010 – one changes highlight color and the other changes text background color (Word2003 has only one of those)

1. Make a document in LibreOffice that consists of 3+ paraghraph
2. Highlight ENTIRE central paragraph yellow
3. Save as DOC or DOCX
4. Open in Office 2007-2010
5. Enable display hidden characters (!)
6. Try to remove highlighting (background color)
a) Select the entire paragraph with the paragraph sign in the end. Change text background option using the control on the panel. Doesn't work.
b) Select the entire paragraph with the paragraph sign in the end. ... Does work.

Anyway, most people, when they see highlighted text in MS Word, assume
it is "highlighted text", not "text background"... The second option is
hidden deep in MS Word 2007-2010 and nonexistent in MS Word prior
2003...

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/295014/comments/6

------------------------------------------------------------------------
On 2011-09-17T14:49:22+00:00 Romano Giannetti wrote:

I have dug a bit more into the problem, and the matter is that it seems
that OO (or LO) do not have the duality background-highlighting that MS
Word has , so I suppose the problem is not so easily solved.

I did found a rtf + grep hack to solve the problem, but it's still a bad
hack.

More details are in:

https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/645269


So yes, please solve this. It is a major interoperability problem.

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/295014/comments/8

------------------------------------------------------------------------
On 2011-09-17T15:15:27+00:00 Romano Giannetti wrote:

To simplify things, I copy here my findings too:

I saved (from MS Word) the file in RTF format. The sequence, highlighted
by MS, which works (you can remove the highlight) is like that:

{\rtlch\fcs1 \af37 \ltrch\fcs0 \lang1033\langfe1025\highlight7\langnp1033\insrsid5522236\charrsid3873419 \hich\af37\dbch\af37\loch\f37
This text has been highlighted with Microsoft Word 2007}

The sequence that you cannot modify is this one:

{\rtlch\fcs1 \af37 \ltrch\fcs0
\lang1033\langfe1025\chshdng0\chcfpat0\chcbpat7\langnp1033\insrsid5522236 \hich\af37\dbch\af37\loch\f37 This text has been modified and highlighted with O\hich\af37\dbch\af37\loch\f37 penoffice (version 1:3.2.0-7ubuntu4.1, Ubuntu Linux 10.04 up-to-date).
}

Note that if I change "\chshdng0\chcfpat0\chcbpat7" to "\highlight7" in
the rtf file, then MS Word can edit it correctly.

The command:

sed 's/\\chcbpat/\\highlight/g' < in.rtf > out.rtf

makes a editable file. Saved my day.

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/295014/comments/9

------------------------------------------------------------------------
On 2011-12-16T07:36:25+00:00 Robotic-boyer wrote:

Created attachment 54486
Example text with bug

In the zip file there are:
Sottolineatura_WO.doc => Original file made with MS Word
Sottolineatura_LO.doc => the same after saved with LO Writer

The bug is:
Ms_Word doesn't use "shading" text property for underline text, while LO_Writer uses it.

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/295014/comments/10

------------------------------------------------------------------------
On 2011-12-16T10:55:06+00:00 Christopher M. Penalver wrote:

Robotic Boyer, please do not toggle the Version. For more on this please
see http://wiki.documentfoundation.org/BugReport_Details#Version

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/295014/comments/11


** Changed in: df-libreoffice
   Importance: Medium => High

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/295014

Title:
  [Upstream] Cannot remove highlight from .doc in Word exported from
  Writer

Status in LibreOffice Productivity Suite:
  Confirmed
Status in The OpenOffice.org Suite:
  Confirmed
Status in “libreoffice” package in Ubuntu:
  Triaged
Status in “openoffice.org” package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: openoffice.org-core

  1)  lsb_release -rd
  Description:	Ubuntu 11.04
  Release:	11.04

  2) apt-cache policy libreoffice-writer
  libreoffice-writer:
    Installed: 1:3.3.3-1ubuntu2
    Candidate: 1:3.3.3-1ubuntu2
    Version table:
   *** 1:3.3.3-1ubuntu2 0
          100 /var/lib/dpkg/status
       1:3.3.2-1ubuntu5 0
          500 http://us.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
       1:3.3.2-1ubuntu4 0
          500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages

  3) What is expected to happen in documented exported from Writer
  opened in Word via the Terminal:

  cd ~/Desktop && wget
  https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/295014/+attachment/410599/+files/test_highlight.doc
  && wine ~/.wine/drive_c/Program\ Files/Microsoft\
  Office/OFFICE11/WINWORD.EXE test_highlight.doc

  click the Highlight button -> No Fill and the highlight is removed.

  4) What happens instead is the highlight is not removed.

  WORKAROUND: In Excel click Format -> Boarders and Shading... ->
  Shading tab -> click No Fill button -> under Preview change drop down
  Apply to: text -> OK button

  WORKAROUND: Use AbiWord to export documents with highlighting.

  apt-cache policy abiword
  abiword:
    Installed: 2.8.6-0.3build1
    Candidate: 2.8.6-0.3build1
    Version table:
   *** 2.8.6-0.3build1 0
          500 http://us.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/295014/+subscriptions