Bug 90128 - rich quotes saved or loaded from RTF incorrectly
Summary: rich quotes saved or loaded from RTF incorrectly
Status: RESOLVED DUPLICATE of bug 93896
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.6.3 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-20 13:31 UTC by Tomislav Nakic-Alfirevic
Modified: 2015-10-16 15:41 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of quotes being replaced by unrecognisable symbols (8.20 KB, image/png)
2015-03-20 13:31 UTC, Tomislav Nakic-Alfirevic
Details
minimal sample demonstrating behaviour (4.08 KB, application/rtf)
2015-03-23 13:03 UTC, Tomislav Nakic-Alfirevic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomislav Nakic-Alfirevic 2015-03-20 13:31:42 UTC
Created attachment 114209 [details]
screenshot of quotes being replaced by unrecognisable symbols

Procedure:

- created new Writer document
- entered some text, inserted some comments which contain "rich" quotes
- saved document as an RTF file
- opened the document

Observed behaviour:

- rich quotes in comments were gone and in their place were symbols I don't recognise (see attachment)

Expected behaviour:

- quotes are still in place

Repeatability: loaded RTF on 2 linux machines, problem present (although each machine displayed different symbols instead of smart quotes!)

No problems using .odt, for example: quotes saved and loaded without issues.
Comment 1 A (Andy) 2015-03-21 08:51:09 UTC
For me not reproducible with LO 4.4.1.2 (Win 8.1) with simple quotation marks.  Maybe a Linux only issue?  If you do not mean quotation marks, what did you mean with "rich quotes"?
Comment 2 Buovjaga 2015-03-21 18:48:06 UTC
Please attach an .odt file so we can quickly test.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 3 Tomislav Nakic-Alfirevic 2015-03-23 13:03:12 UTC
Created attachment 114273 [details]
minimal sample demonstrating behaviour
Comment 4 Tomislav Nakic-Alfirevic 2015-03-23 13:08:29 UTC
(In reply to Andy from comment #1)

> For me not reproducible with LO 4.4.1.2 (Win 8.1) with simple quotation
> marks.  Maybe a Linux only issue?  If you do not mean quotation marks, what
> did you mean with "rich quotes"?

I don't know if it's a Linux-only issue: I don't have a different OS at hand to try it out elsewhere.

As for "rich quotes", I mean quotation marks which do not use the same symbol as the beginning and the end of the quotation, but 2 different symbols.


(In reply to Beluga from comment #2)
> Please attach an .odt file so we can quickly test.
> 
> Set to NEEDINFO.
> Change back to UNCONFIRMED after you have provided the document.

Attached file after removing sensitive contents. Unfortunately, the comment where I could previously observe the problem now also contains the letter "ÿ" at the beginning and the end of the quoted text, which was previously not present (compare with previously attached screenshot).
Comment 5 Buovjaga 2015-03-24 12:13:31 UTC
(In reply to Tomislav Nakic-Alfirevic from comment #4)
> (In reply to Beluga from comment #2)
> > Please attach an .odt file so we can quickly test.
> > 
> > Set to NEEDINFO.
> > Change back to UNCONFIRMED after you have provided the document.
> 
> Attached file after removing sensitive contents. Unfortunately, the comment
> where I could previously observe the problem now also contains the letter
> "ÿ" at the beginning and the end of the quoted text, which was previously
> not present (compare with previously attached screenshot).

Please attach an .odt file without any problems so we can test saving to .rtf.
Thanks.
Comment 6 Tomislav Nakic-Alfirevic 2015-03-24 14:24:36 UTC
(In reply to Beluga from comment #5)

> Please attach an .odt file without any problems so we can test saving to
> .rtf.
> Thanks.

Not sure I can do that: there wasn't an .odt document to begin with. As I said, I created a new empty document, wrote something in it and saved it directly as an .rtf file. It looked fine on my machine, but the colleague who opened the document on his saw the problem with the quotes (I sat next to him, so I saw it). I closed my .rtf and opened it again and could see the problem on my machine.

In the meantime, I have switched to using .odt, but the problem doesn't reveal itself when saving the .odt as an .rtf.
Comment 7 raal 2015-03-24 15:09:31 UTC
I can not confirm with 
Version: 4.5.0.0.alpha0+
Build ID: c3087d969671e62182eb049850479e77190ccff4
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-03-22_04:37:00

Version: 4.4.3.0.0+
Build ID: 5151160704492a2c438daa70acef1c8a87d6de55
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-4-4, Time: 2015-03-22_01:39:25

Please test with 4.3.x or 4.4.x, LO 4.2.x is EOL.
http://www.libreoffice.org/download/libreoffice-fresh/
Comment 8 Gordo 2015-03-25 00:49:25 UTC
Does this maybe have something to do with not having a font on the pc and the use of RTL (language is Arabic).  I noticed in attachment 114273 [details] that there is a custom paragraph style which uses Nimbus Mono L.  My LO is telling me that I don't have that font, so I did the following:
1. New Text Document.
2. Copied "scramble" from attachment and pasted in new document.
3. Insert -> Comment at the end of "scramble".
4. Typed "test", with quotes in comment.
5. Saved document as rtf.
6. Reopened document.
Result:
Square symbols in place of quotes.

I repeated the test but changed the language of "scramble" to English (UK).  When saved and reopened, the quotes appear as normal.

I was going to test setting the language to Arabic but use English and Liberation Serif font.  I set CTL to Arabic.  In the document I had the choice of my default English or Romanian(?).  So, I didn't get very far with that.  I noticed in the attachment that there is also Rhaeto-Romance as one of the language choices.

Windows
Version: 4.4.1.2
Build ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Comment 9 Tomislav Nakic-Alfirevic 2015-03-26 20:16:13 UTC
(In reply to Gordo from comment #8)
> Does this maybe have something to do with not having a font on the pc and
> the use of RTL (language is Arabic).  I noticed in attachment 114273 [details]
> [details] that there is a custom paragraph style which uses Nimbus Mono L. 
> My LO is telling me that I don't have that font, so I did the following:
> 1. New Text Document.
> 2. Copied "scramble" from attachment and pasted in new document.
> 3. Insert -> Comment at the end of "scramble".
> 4. Typed "test", with quotes in comment.
> 5. Saved document as rtf.
> 6. Reopened document.
> Result:
> Square symbols in place of quotes.
> 
> I repeated the test but changed the language of "scramble" to English (UK). 
> When saved and reopened, the quotes appear as normal.
> 
> I was going to test setting the language to Arabic but use English and
> Liberation Serif font.  I set CTL to Arabic.  In the document I had the
> choice of my default English or Romanian(?).  So, I didn't get very far with
> that.  I noticed in the attachment that there is also Rhaeto-Romance as one
> of the language choices.

Lot of stuff here, not enough time to try it all out, but in brief:

- unlikely to be a font issue as the problem was observed on the machine the document was created on, after the RTF was closed and reopened
- RTLs weren't used: Croatian (latin alphabet)
- what do fonts have to do with the file format/would you still see square symbols instead of quotes if you had saved the document as an .odt?
Comment 10 Gordo 2015-03-27 01:15:23 UTC
@Tomislav:  Opening your file in a text editor shows the default language to be deflang1025 which is Arabic.  Either that got copied into the document or the rtf parser in LO bugged.  When you created your document, did you copy and paste from any other sources?

While I was able to recreate the square symbols, it was not from scratch, but from data that might have been created from a bug.

So...

Could you please attach an odt version of your original rtf attachment?  Even if, as you say, the problem doesn't reveal itself when saving the .odt as an .rtf, someone else can either copy the text into an unsaved document to test saving as an rtf or delve into the data of the document.

And lastly, see if you can test it with a more recent version of LO.

Thanks

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 11 QA Administrators 2015-10-14 19:50:34 UTC
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team

This NEEDINFO message was generated on: 2015-10-14
Comment 12 Simo Kaupinmäki 2015-10-16 15:41:06 UTC
This looks like a duplicate of bug 93896 (it's more recent, but has additional information and the requested .odt file).

*** This bug has been marked as a duplicate of bug 93896 ***