Bug 93785 - FORMATTING: register-true has no effect with text in frames
Summary: FORMATTING: register-true has no effect with text in frames
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Frame
  Show dependency treegraph
 
Reported: 2015-08-30 17:27 UTC by Milan Bouchet-Valat
Modified: 2022-10-10 09:28 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
ODT document showing the problem (2.67 MB, application/vnd.oasis.opendocument.text)
2015-08-30 17:27 UTC, Milan Bouchet-Valat
Details
Sample modified (2.60 MB, application/vnd.oasis.opendocument.text)
2015-08-30 22:16 UTC, m_a_riosv
Details
Screenshot with the text in two pages (50.02 KB, image/png)
2015-08-31 14:33 UTC, m_a_riosv
Details
Screenshots showing alignment issues (186.98 KB, application/vnd.oasis.opendocument.graphics)
2015-08-31 15:12 UTC, Milan Bouchet-Valat
Details
Sample file adjusted (2.59 MB, application/vnd.oasis.opendocument.text)
2015-08-31 19:02 UTC, m_a_riosv
Details
update test case - see comment 14 (3.61 MB, application/vnd.oasis.opendocument.text)
2022-10-10 09:28 UTC, Cor Nouws
Details
screenshot of updated test case - see comment 14 (407.06 KB, image/png)
2022-10-10 09:28 UTC, Cor Nouws
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Bouchet-Valat 2015-08-30 17:27:13 UTC
Created attachment 118280 [details]
ODT document showing the problem

In the attached ODT document, the text in the frame of the second page does not seems to respect the register-true setting. The lines of the paragraphs are not vertically aligned between the first and the second page, as can be seen from the print preview with pages side-by-side.

If I add some text before the frame on the second page, then in certain conditions the text in the frame gets vertically aligned with the text on the first page. I couldn't figure what exactly needs to be changed to get that result. I may be missing something, but this sounds like a bug to me.
Comment 1 m_a_riosv 2015-08-30 20:59:52 UTC
Hi @Milan, thanks for reporting.

The frame has their own options like the space to content in Borders tab or the Spacing in the Wrap tab. I you put those to 0, seems Ok.
 
OTH the space option seems to be respected, change the font size for "Text Body" to 24, and the space height is applied also for the text in the frame.

For me not a bug, please if you are not agree reopen it.
Comment 2 Milan Bouchet-Valat 2015-08-30 21:50:08 UTC
(In reply to m.a.riosv from comment #1)
> Hi @Milan, thanks for reporting.
> 
> The frame has their own options like the space to content in Borders tab or
> the Spacing in the Wrap tab. I you put those to 0, seems Ok.
Hm, I just tried that, and it doesn't seem to fix the problem. Could you attach a document where you see the problem go away?

> OTH the space option seems to be respected, change the font size for "Text
> Body" to 24, and the space height is applied also for the text in the frame.
Indeed, that's interesting. But despite the increase in the vertical space between lines, the text in the frame is still not aligned with that on the first page...

> For me not a bug, please if you are not agree reopen it.
For now, I've not been able to fix this, so I'm reopening. :-)
Comment 3 m_a_riosv 2015-08-30 22:16:27 UTC
Created attachment 118281 [details]
Sample modified

The text style it's different for the text "Text body" and in the frame is "Caption"
Comment 4 Milan Bouchet-Valat 2015-08-31 08:54:36 UTC
(In reply to m.a.riosv from comment #3)
> Created attachment 118281 [details]
> Sample modified
I see only one page in this document. How do you check that lines are perfectly aligned? I don't think they are, and if I move the frame to another page, I can see in print preview mode that they aren't.

> The text style it's different for the text "Text body" and in the frame is
> "Caption"
Yes, I know that. Yet, both paragraph styles are set up to be vertically aligned, and it works outside of a frame.
Comment 5 m_a_riosv 2015-08-31 14:33:41 UTC
Created attachment 118289 [details]
Screenshot with the text in two pages

Attached file after reduce to zero the frame option "Border - space to content", also deleting border line makes a little difference.

Please could you attach a screenshot with what is wrong.
Comment 6 Milan Bouchet-Valat 2015-08-31 15:12:03 UTC
Created attachment 118291 [details]
Screenshots showing alignment issues

Sure, here are two screenshots: one with my original test case, and one after setting the frame margins to 0.
Comment 7 m_a_riosv 2015-08-31 19:02:02 UTC
Created attachment 118295 [details]
Sample file adjusted

If I'm not wrong, frames have their own position, so we need to find a way for them to make their position and the text, equal.

Setting up the frame options in Type-tab Anchor - "As character" and the position for Vertical - "From bottom" to "Base line", seems to do what you want, of course with Border-tab "spacing to Contents" equal to zero and without line for the border. If you put again the line for the border, remember set up again to zero the spacing to contents. Not perfect but almost.

Maybe is more flexible using Anchor - "To character", modifying the "by" distance for Vertical position "From top", allow a fine adjust.
Comment 8 Milan Bouchet-Valat 2015-08-31 20:08:46 UTC
Ah, good catch!

But this behaviour does'nt make much sense to me. One of the most interesting uses of frames is to have them anchored to a page, separate from the main text, so that you don't interrupt its flow. If you can't anchor the frame to the page, the whole strategy fails. (FWIW, this solution was recommended recently here:
http://listarchives.libreoffice.org/global/users/msg45646.html )

I would think that when a paragraph type is set to align vertically via the register-true feature, it should have the priority. If you don't want it, you wouldn't configure the paragraph type like this.
Comment 9 m_a_riosv 2015-08-31 22:03:10 UTC
Sorry, but I don't see the issue. Maybe someone else can.
Comment 10 Cor Nouws 2015-09-08 11:54:08 UTC
Thanks Milan ánd Migual for testing and so on!
I set this to new. Could see it as an enhancement ?
Comment 11 QA Administrators 2016-09-20 10:29:47 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2019-12-03 14:45:32 UTC Comment hidden (obsolete)
Comment 13 QA Administrators 2022-10-10 03:32:08 UTC Comment hidden (obsolete)
Comment 14 Cor Nouws 2022-10-10 09:26:20 UTC
Sill unchanged in Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 100dc387ffd7df84199dae51abd9de35440905f1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: nl-NL (en_US.UTF-8); UI: en-US
Calc: threaded

Will attach an updated test version
 - with style in frame similar to outside
 - with all boarder settings 0
and a screen shot of the result
Comment 15 Cor Nouws 2022-10-10 09:28:09 UTC
Created attachment 182935 [details]
update test case - see comment 14
Comment 16 Cor Nouws 2022-10-10 09:28:45 UTC
Created attachment 182936 [details]
screenshot of updated test case - see comment 14