Bug 122215 - [EDITING] Changing the font size of a paragraph style does not alter existing paragraphs
Summary: [EDITING] Changing the font size of a paragraph style does not alter existing...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-20 08:13 UTC by Luke Kendall
Modified: 2019-05-09 12:55 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Zip file containing the obfuscated file, as .odt and as .fodt (2.01 MB, application/zip)
2018-12-21 04:06 UTC, Luke Kendall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kendall 2018-12-20 08:13:41 UTC
1. Open an existing document in Writer.
2. Open the Paragraph styles (e.g. via Modify) in the Styles panel
3. In the Font tab reduce the Western Text Font Family size 
4. Hit OK

Expected result:

All paragraphs of the defined paragraph style should change to the new font size.

Actual result:

Random parts of many paragraphs of the nominated style, including quite commonly whole paragraphs or whole pages, do not change.

For a novel length document of 90 or so chapters, this causes a nightmare.
You can't use Clear Formatting on the whole document because it would wipe out all italics or bold.
You can't select all text and change the font size to what you want because Select All selects the chapter titles too.
A rough workaround is to select all, change the font size, use Find&Replace to find all heading styles and manually set all headings to the size they should be.

Version: 6.1.3.2
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: x11; 
Locale: en-GB (en_AU.UTF-8); Calc: group threaded
Comment 1 Durgapriyanka 2018-12-20 16:46:51 UTC
Thank you for reporting the bug. I can confirm that the bug is present in

Version: 6.3.0.0.alpha0+
Build ID: 3c964980da07892a02d5ac721d80558c459532d0
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-12-12_02:07:45
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

I do see only random paragraphs are changed to the required font size.
Comment 2 V Stuart Foote 2018-12-20 17:02:00 UTC
Can not confirm on Windows 6.1.4.2 build, all paragraphs with correctly structured styles are updated with the style for entire document.

Suggests poorly managed styles have been applied with some mix of Direct Formatting also in play. 

You can review the content.xml for embedded DF spans. But if review of the ODF's content.xml shows the styled text to only have styles applied we would need a sample document/excerpt that exhibits the issue. 

Save as and attaching as flat ODF makes it easier to review.
Comment 3 Luke Kendall 2018-12-21 04:06:39 UTC
Created attachment 147728 [details]
Zip file containing the obfuscated file, as .odt and as .fodt

I have prepared and used paragraph styles carefully.
To italicise individual words, I select them and use the CTRL-I shortcut.
That seems to me a very natural and reasonable approach to formatting a novel.
If a less user-friendly approach is necessary to achieve good results, I would be interested to learn what that would be.

Please find attached the obfuscated .odt and .fodt files for the novel, in the file 122215.zip

The paragraph style in question is called Chapter Body.
The desired font size is 9pt, to be changed from 10.5 pt.
Comment 4 V Stuart Foote 2018-12-21 18:04:48 UTC
Yep, that is a mess. Seems kind of undisciplined in use of styles and too much direct formatting.

P1-P1464 uniquely formatted paragraphs (multiple parent styles), and
T1-T4589 uniquely formatted text spans.

Not sure the best way to clean it up...

@Regina?
Comment 5 Luke Kendall 2018-12-21 22:45:14 UTC
Are you saying the problem only occurs to paragraphs with direct formatting? I don't see how that would happen on, say, the first few pages, which were all just typed in as Chapter Body style and have very little italicisation (direct formatting). Yet the paragraphs on those first few pages don't change.

Nor do I understand how a paragraph can have multiple parent styles, unless you mean the style Chapter Body is a refinement of Text Body which is a refinement of Default - or something like that?

Is there some recommended reading for how to follow a disciplined use of styles?
As far as I'm aware, I have only used paragraph styles I have created, and used the Ctrl-I shortcut to apply italics where they are needed.  Is that undisciplined?
Comment 6 V Stuart Foote 2018-12-21 23:02:10 UTC
Perhpas have a read of Bruce Byfield's "Designing with LibreOffice" [1]

=-ref-=
[1] http://designingwithlibreoffice.com/download-buy/
Comment 7 Luke Kendall 2018-12-22 08:34:43 UTC
Thanks for the suggestion.  I downloaded and read each section that mentions "manual format", and the section on Styles. Unfortunately the author isn't clear which kind of style he's referring to when he speaks of styles.
So I'm no wiser as to whether italicising some words in a paragraph is considered manual formatting.
That's about the only manual formatting I do, as far as I'm aware, using styles for everything else.
So if that's not the recommended way to do it, I would really like to know what the recommended way is.
Thank you for the suggestion, however.
Comment 8 Cor Nouws 2019-05-06 15:50:27 UTC
(In reply to Luke Kendall from comment #7)
> So if that's not the recommended way to do it, I would really like to know
> what the recommended way is.
I can imagine that!
Can you please ask on the ask-forum or the mailing list?
For clarity, I close this one as NOTABUG.
Cor
Comment 9 Luke Kendall 2019-05-09 12:55:46 UTC
Just making a note that I think I found an appropriate discussion thread on the forum, https://ask.libreoffice.org/en/question/21875/writer-clarification-needed-about-character-attributes/?answer=193218#post-id-193218, and added a comment.

I'm still no clearer on the recommended way to format text that avoids the problems I'm having, though.

I've asked a question:
https://ask.libreoffice.org/en/question/193221/how-to-italicise-text-so-the-style-is-preserved-when-copied-between-docs/