https://bugs.freedesktop.org/show_bug.cgi?id=37540

--- Comment #5 from Romano Giannetti <[email protected]> 2011-09-17 
08:15:27 PDT ---
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.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to