Jerry Clancy wrote:
We generate a lot of .rtf files. As it is a native format, MS Word handles them fine. However, on our main development system we have used OO Writer instead of Word. Today I noticed that Writer loads and interprets the rtf file OK but then screws it up if saved to it's original RTF format. Reloading the saved file doubles up the links, loses the 'target="dynamic"' (which forces a new window for the link) and screws up the fonts. See the before and after raw RTF results in the attachment. The "before" line is as we originally generate it and the "after" line is what it looks like after saving to .rtf and reloading the file. It seems odd to us that with no changes to the file if would be modified by Writer on saving to the same format.

Fortunately, if we save the original rtf file to a XP .doc format, OO preserves the correct formatting and on reloading it looks the same.

Jerry
As generated:

\pard\ql\f0\fs18\sl18\b\i0\ul0\strike0\nosupersub {\field\fldedit{\*\fldinst {\fs18 HYPERLINK "http://www.billtrak.net/isapi/textvers214.dll/?doc=Bill100525&bill=A-10&clid=264&uid=JERRY"; target="dynamic"}}{\fldrslt {\cs16\fs18\cf2 A-10}}}{\fs18\cf1 } Oliver, S.Y. (D-34); Cryan, J. (D-20)\par
As saved by Writer:

\pard\plain \ltrpar\s1\cf0\sl18\slmult0\rtlch\af0\afs20\lang1033\ltrch\dbch\af0\langfe1033\hich\f0\fs20\lang1033\loch\f0\fs20\lang1033{\field{\*\fldinst HYPERLINK "http://www.billtrak.net/isapi/textvers214.dll/?doc=Bill100525&bill=A-10&clid=264&uid=JERRY"; }{\fldrslt \*\cs17\cf5\ul\ulc0\rtlch\ltrch\dbch\hich\loch{\rtlch \ltrch\loch\f0\fs20\lang1033\i0\b0{\cf4\rtlch\ltrch\dbch\hich\fs18\b\loch\fs18\b {\*\bkmkstart DDE_LINK}A-10}}{\rtlch \ltrch\loch\f0\fs20\lang1033\i0\b0}}{\rtlch\ltrch\dbch\hich\fs18\b\loch\fs18\b Oliver, S.Y. (D-34); Cryan, J. (D-20)}}
\par
------------------------------------------------------------------------

The reason for the change is that internally, OOo is working in the ODF world. So for a text document, whatever format comes in is translated to the appropriate ODF type for editing (even if none actually occurs), and then whatever format is required for the output is generated from the ODF type. The input and output filters are not aware of each other at all. In this case, it seems that some of the incoming RTF information is lost (apparently on output to RTF, since you report that it is captured into the .doc file OK).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@openoffice.org
For additional commands, e-mail: users-h...@openoffice.org

Reply via email to