Bug 70668 - FILEOPEN: Display does not fit to a page format from a Calligra Words document.
Summary: FILEOPEN: Display does not fit to a page format from a Calligra Words document.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.2.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ODF-import
  Show dependency treegraph
 
Reported: 2013-10-20 13:20 UTC by Markus Elfring
Modified: 2023-12-06 03:18 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
simple test document (5.80 KB, application/vnd.oasis.opendocument.text)
2013-10-20 13:20 UTC, Markus Elfring
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Elfring 2013-10-20 13:20:36 UTC
Created attachment 87873 [details]
simple test document

I have loaded a document which I created with the program "Calligra Words 2.7.3-99.1" in a KDE 4.11.2 session. The display shows a page setting "ISO A4 portrait" instead of the specified page format "ISO A5 landscape" in the source file "styles.xml".
Do I stumble on an open issue for the handling of the XML element "style:page-layout-properties"?
Comment 1 Thomas van der Meulen [retired] 2013-11-20 16:30:45 UTC
Does anybody got an idea? 
The file opens in A4.
Comment 2 Jean-Baptiste Faure 2013-11-24 15:10:31 UTC
I do not see "A5" in the file styles.xml. Page size is given in pt, not in mm.
I do not know if this is consistent with the ODF standard.

Did you file a bug report against Calligra? If not why? 

Is there some settings in Calligra allowing to use the mm as unit? AFAIK paper formats (ISO 216) are defined in mm.

Best regards. JBF
Comment 3 Markus Elfring 2013-11-24 16:20:44 UTC
(In reply to comment #2)
> Did you file a bug report against Calligra?

Yes. - But they deal with other issues.   ;-)


> If not why?

I did not really care for the chosen unit in this case.


> Is there some settings in Calligra allowing to use the mm as unit?

Yes. - A drop-down list is available in the dialogue "page layout".
Comment 4 Jean-Baptiste Faure 2013-11-24 18:09:51 UTC
Please do not mark NEW a bug that you reported yourself.

Could you make some tests of import in LO with various settings in Calligra like the unit?

Set status back to needinfo.

Best regards. JBF
Comment 5 Markus Elfring 2013-11-24 20:30:14 UTC
(In reply to comment #4)

Calligra Words 2.7.4-5.1 does not store my alternate page unit selection into specified test files. This program seems to "prefer" the point unit there at the moment.
Comment 6 Jean-Baptiste Faure 2013-11-24 22:15:47 UTC
Ok, so I think we should ask our Writer expert:

Hi Miklos,

Please, do you know who is right here ? LO, Calligra, both, nobody? ;-)

Best regards. JBF
Comment 7 QA Administrators 2014-06-01 21:29:55 UTC Comment hidden (obsolete)
Comment 8 steve 2014-10-28 00:26:59 UTC
I do not have calligra. I, as JBF already, can confirm that the test file opens in DIN A4 page format.

Setting to NEW. A dev now needs to elaborate on the details if this is indeed something that needs fixing on LOs side or if it is NOTOURBUG and needs to be fixed in Calligra.
Comment 9 Robinson Tryon (qubit) 2015-12-18 10:50:49 UTC Comment hidden (obsolete)
Comment 10 Oliver Specht (CIB) 2016-04-28 14:12:58 UTC
You can see in the list of page styles there is "Default style" and "Default"
The first is the built-in default and the latter is the loaded style.

In styles.xml you find:
    <office:master-styles>
    <style:master-page style:name="Standard" style:display-name="Default" style:page-layout-name="pm1"/>
    </office:master-styles>

After removing the attribute
    style:display-name="Default" 
the file loads correctly as A5 format.

I'm quite sure the bug is on the LO side. If built-in styles are loaded the display-name should not matter.
Comment 11 Xisco Faulí 2016-09-19 15:29:48 UTC Comment hidden (obsolete)
Comment 12 Xisco Faulí 2017-09-29 08:51:30 UTC Comment hidden (obsolete)
Comment 13 Markus Elfring 2017-10-08 12:32:44 UTC
(In reply to Xisco Faulí from comment #12)

The wrong page format is still displayed by the application “LibreOffice Writer 5.4.1.2-555.1” (Build-ID: 40m0(Build:2)) for my test document (in an XFCE session on an openSUSE Tumbleweed system).
Comment 14 QA Administrators 2018-10-09 02:52:52 UTC Comment hidden (obsolete)
Comment 15 Markus Elfring 2018-10-09 18:00:35 UTC
(In reply to QA Administrators from comment #14)
The wrong page format is still displayed by the application “LibreOffice Writer 6.1.2.1-735.4” (Build-ID: 10(Build:1)) for my test document (in an XFCE session on an openSUSE Tumbleweed system).
Comment 16 QA Administrators 2021-08-12 03:57:29 UTC Comment hidden (obsolete)
Comment 17 Jean-Baptiste Faure 2021-08-12 12:13:44 UTC
With my LO 7.2.1.0+ the file opens in portrait Letter format.

In order to decide if the problem is on the LibreOffice side or on the Calligra side, it would be interesting to test this file in the latest version of Calligra.

Status has been set to NEEDINFO, please set it back to NEW once requested information has been provided.

Best regards. JBF
Comment 18 Markus Elfring 2021-08-18 19:21:05 UTC
(In reply to Jean-Baptiste Faure from comment #17)
> With my LO 7.2.1.0+ the file opens in portrait Letter format.

Is this software behaviour questionable?


> In order to decide if the problem is on the LibreOffice side or on the
> Calligra side, it would be interesting to test this file in the latest
> version of Calligra.

I find that my test document is displayed in the expected way (including page orientation and size) also by the software version “Calligra Words 3.2.1-9”.

Under which circumstances will the desired clarification be achieved for further applications finally?
Comment 19 Jean-Baptiste Faure 2021-08-24 21:59:47 UTC
(In reply to Markus Elfring from comment #18)
> (In reply to Jean-Baptiste Faure from comment #17)
> > With my LO 7.2.1.0+ the file opens in portrait Letter format.
> 
> Is this software behaviour questionable?

Well, this behaviour is a consequence of the bug #139918. If I set default system papersize to A4, your file opens in portrait A4.
For me that means that LO does not see the page size in your file and use the default papersize instead.
If I set the page to A5 landscape and save the file with LO, I get A5 landscape again on reopening.
What happens if you save your file with the last version of Calligra?

Best regards. JBF
Comment 20 Markus Elfring 2021-08-25 06:06:38 UTC
(In reply to Jean-Baptiste Faure from comment #19)
> For me that means that LO does not see the page size in your file and use
> the default papersize instead.

Will this view trigger software corrections for the desired handling of specified page formats from documents?
Comment 21 Regina Henschel 2021-12-05 17:27:55 UTC
There exists no place in the document that determines the to be used master-page and there exists no <style:default-page-layout> element. Therefor the inheritance chain as described in ODF 16.2 (part 3) gets no page-layout and an "implementation-dependent" default is used. So LO behaves ODF conform.

This has nothing to do with "display-name".

We can improve the situation by changing the "implementation-dependent" behavior of LO so, that in the above situation, if there exists a single <style:master-page> element, then this is used.

I consider it a shortcoming of Calligra, that it does neither use the style:master-page-name attribute in a paragraph-style nor provide a <style:default-page-layout> element.
Comment 22 Laurent Balland 2021-12-05 20:16:38 UTC
(In reply to Regina Henschel from comment #21)
> There exists no place in the document that determines the to be used
> master-page and there exists no <style:default-page-layout> element.
> Therefor the inheritance chain as described in ODF 16.2 (part 3) gets no
> page-layout and an "implementation-dependent" default is used. So LO behaves
> ODF conform.
In a new saved document (whatever the version), I can't find where LO defines its default page layout. There is no <style:default-page-layout> element.
Comment 23 QA Administrators 2023-12-06 03:18:03 UTC
Dear Markus Elfring,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

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

Warm Regards,
QA Team

MassPing-UntouchedBug