Bug 77961 - FILEOPEN: ODT exported from MS Office has text grid enabled
Summary: FILEOPEN: ODT exported from MS Office has text grid enabled
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 4.0.4.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: odf
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-26 10:52 UTC by Jay Philips
Modified: 2014-07-03 20:22 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
shows how the table looking lines show up in the document (60.45 KB, image/png)
2014-04-26 10:52 UTC, Jay Philips
Details
the odt file produced by word 2010 (223.22 KB, application/vnd.oasis.opendocument.text)
2014-04-26 10:53 UTC, Jay Philips
Details

Description Jay Philips 2014-04-26 10:52:16 UTC
Created attachment 98013 [details]
shows how the table looking lines show up in the document

I download the .docx file found at < http://download.microsoft.com/documents/customerevidence/Files/710000003670/Xiamen_Tungsten_Group_unifies_enterprise.docx > and opened it with word 2010 and then saved it as an ODT. When i opened the ODT in LibO, it file displays like it has tables all over it. Tested in 4.0 - 4.3.
Comment 1 Jay Philips 2014-04-26 10:53:53 UTC
Created attachment 98014 [details]
the odt file produced by word 2010
Comment 2 Jorendc 2014-04-26 12:24:55 UTC
Reproducible, tested using Windows 8.1 with LibreOffice Version: 4.3.0.0.alpha1+
Build ID: f4a6837025a293312cbc43b9c527851362f11030
TinderBox: Win-x86@47-TDF, Branch:MASTER, Time: 2014-04-26_09:21:18

But are we sure this is a bug in our .odt import filters, and not a bug in Word' export filters?

(In reply to comment #0)
> Tested in 4.0 - 4.3.
With what version of 4.0 did you test? This should be the version in the version field of this bug report (currently 4.2.3.3 is selected). Our version field is the oldest version of LibreOffice that can reproduce this bug (looks like you can reproduce using a version of 4.0-bracnh)

Kind regards,
Joren
Comment 3 Jay Philips 2014-04-26 13:42:13 UTC
Well i opened the file with Calligra Words and it opened fine. Is there a means to know 100% whether its a bug from LibO's or Office's side?

I primarily test on 4.2.3.3 and then test 4.1, 4.0, 4.3, and sometimes 3.6. Thanks for the notice about what the version field is for.
Comment 4 Jorendc 2014-04-26 13:48:27 UTC
(In reply to comment #3)
> Well i opened the file with Calligra Words and it opened fine. Is there a
> means to know 100% whether its a bug from LibO's or Office's side?

I marked your bug as NEW because I'm not 100% which suite is the 'bad' one :-). But I assume it is Word, due the fact our native file format is ODT (at least, it is more likely). Not saying my assumption is correct. So lets mark it as NEW and ask a dev to have a look.
 
> I primarily test on 4.2.3.3 and then test 4.1, 4.0, 4.3, and sometimes 3.6.
> Thanks for the notice about what the version field is for.

Okay, lets mark it as 4.0.6.2 right now. If you know the actual version of 4.0-branch, feel free to edit the field.

You are doing great testing :-). Great you also test older versions to spot regressions.

Kind regards,
Joren
Comment 5 Jay Philips 2014-04-26 14:26:39 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Well i opened the file with Calligra Words and it opened fine. Is there a
> > means to know 100% whether its a bug from LibO's or Office's side?
> 
> I marked your bug as NEW because I'm not 100% which suite is the 'bad' one
> :-). But I assume it is Word, due the fact our native file format is ODT (at
> least, it is more likely). Not saying my assumption is correct. So lets mark
> it as NEW and ask a dev to have a look.

Well Calligra Words native format is also ODT. :)

>  
> > I primarily test on 4.2.3.3 and then test 4.1, 4.0, 4.3, and sometimes 3.6.
> > Thanks for the notice about what the version field is for.
> 
> Okay, lets mark it as 4.0.6.2 right now. If you know the actual version of
> 4.0-branch, feel free to edit the field.
> 

I've been using 4.0.4.2 as thats was the version i could find online. Where can i download the last release of 4.0? I'm also running 3.6.4.3, is that the last 3.6 version?

> You are doing great testing :-). Great you also test older versions to spot
> regressions.
> 
> Kind regards,
> Joren

Thanks. Should i also test 3.5?
Comment 6 Jorendc 2014-04-26 14:39:35 UTC
(In reply to comment #5)
> Well Calligra Words native format is also ODT. :)

Aah, I see :-). That makes sense then :-).

> I've been using 4.0.4.2 as thats was the version i could find online. Where
> can i download the last release of 4.0? I'm also running 3.6.4.3, is that
> the last 3.6 version?

You can find all released LibreOffice versions here: http://downloadarchive.documentfoundation.org/libreoffice/old/

4.0.6.2 is the last version of 4.0-branch, while 3.6.7.2 is the last version of 3.6-branch.

> Thanks. Should i also test 3.5?

If you can, please do :-). The more info, the better. But maybe it is not necessary due the fact it is just present, and probably not a regression.

Kind regards,
Joren
Comment 7 Jay Philips 2014-04-26 17:20:30 UTC
Thanks for the link.
Comment 8 Michael Stahl 2014-07-03 16:58:50 UTC
apparently the document has a text grid applied in its PL0 page style:

    <style:page-layout style:name="PL0">
      <style:page-layout-properties 
        ...
        style:layout-grid-mode="line" style:layout-grid-lines="44"

so since a text grid exists on the page, it's not much of a
surprise that grid lines are displayed.

you can check that on Format->Page, Text Grid tab, it says "Grid (lines only)"

Word does not display a grid when opening the file.

saving the document with LO, some additional attributes appear:

    style:layout-grid-print="true" style:layout-grid-display="true"

these explicitly control whether the grid is displayed.

so probably what happens is that Word has fixed default off for these
attributes while OOo/LO has the default depending on whether the other
attributes are present.

according to Microsoft's Office ODF conformance document,
the style:layout-grid-display attribute is not supported by Word.

http://msdn.microsoft.com/en-us/library/jj671891%28v=office.12%29.aspx

although on Page Layout -> Page Setup -> Document Grid
in Word 2010 it says that a line grid is enabled... but Word does not
display grid lines, even if you click View->Show->Gridlines checkbox.

hmm.... there is actually a grid displayed in Word, but apparently
only in those places where there is no text, such as at the bottom
of the first page.  if you add more text the grid disappears.

an obvious difference is that in Writer the text grid has a 10pt
space for Ruby text, whereas the same is much smaller in Word,
or actually it looks like Word only provides space for Ruby text
if such exists;
this is controlled by the style:layout-grid-ruby-height attribute.

so i don't think there is a bug here really.
Comment 9 Jorendc 2014-07-03 20:22:42 UTC
(In reply to comment #8)
Wow, thanks for your explanation and your analysis of this bug.

> so i don't think there is a bug here really.

I think I have to say 'great' :-). But since you didn't marked it as RESOLVED NOTABUG, are there still some things to discuss/analyze for this bug?

Kind regards,
Joren


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.