Bug 138406 - Permanently setting heading numbering font fails
Summary: Permanently setting heading numbering font fails
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-22 11:32 UTC by cmflatscher
Modified: 2020-12-03 09:51 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Demo of heading numbering failure (46.12 KB, application/vnd.oasis.opendocument.text)
2020-11-22 11:32 UTC, cmflatscher
Details
Video - Proof of bug (7.63 MB, video/mp4)
2020-12-01 09:15 UTC, cmflatscher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cmflatscher 2020-11-22 11:32:17 UTC
Created attachment 167472 [details]
Demo of heading numbering failure

Hi,

I have updated my sample document and adjusted it all to my needs.

When I create a header in that document it looks like this:

Chapter 1 Header 1

When Pressing CTRL+1 I get the Header 1 as I defined it but the Numbering always uses "Numbering Symbols". I have created a new numbering style called "Header 1 Numbering" which inherited all its functions / features from "Numbering Symbol". Now I want to change the numbering style for Header 1 permanently to use "Header 1 Numbering". However I am unable to do this - not even via "Tools / Chapter Numbering...".

To be more precise:

I keep this document as a blank document similar to a template. Whenever I create a new document with it I save it under a different name. However the Header 1 numbering always uses "Numbering Symbols" instead of "Header 1 Numbering". I can not set "Header 1 Numbering" as default numbering for Header 1. See also attached sample document.

Please fix.

Thanks!

Regards,

--Christian
Comment 1 James Harris 2020-11-23 10:41:43 UTC Comment hidden (spam)
Comment 2 Timur 2020-11-27 20:45:03 UTC
Sounds related or duplicate of bug 137810. 
If so, it started with LO 6.4.5.
Comment 3 Timur 2020-11-28 09:30:54 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2020-11-28 14:26:00 UTC Comment hidden (obsolete)
Comment 5 cmflatscher 2020-11-28 16:59:39 UTC
How 2:

1. Create a new document
2. Assign a different font to Heading 1
3. Under Character Styles create a new style that inherits its functions from the predefined "Numbering Symbols", give it a new name, e.g. "Header 1 Numbering", assign this new style a new font, e.g. the same as given to Heading 1 in step 2
4. Write a short text and press Control + 1
5. Add chapter numbering via "Format / Bullets and Numbering..."
6. Under the "Customise" tab set Number to "1, 2, 3, ..."
7. In the "Seperator" field type in "Chapter "
8. Click on the "Position" tab and in the field "Numbering followed by" select "Space"

You will notice that the font of the Chapter numbering reverts to the default font for the entire document.

You can manually change this then via the "Format / Bullets and Numbering..." to the desired font of "Header 1 Numbering". However if you elect to delete the entire content of the document, clear all formatting, save that document, close LibreOffice Writer and then open that document up again and start over with a Heading 1 you will find that Writer does apply the default font to the chapter numbering again. Using the menu "Tools / Chapter Numbering..." does not have any form of impact.

See also the sample document I attached to this bug that shows this behaviour.
Comment 6 QA Administrators 2020-11-29 05:00:54 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2020-11-29 14:20:07 UTC
(In reply to cmflatscher from comment #5)
> How 2:
> 
> 1. Create a new document
> 2. Assign a different font to Heading 1
> 3. Under Character Styles create a new style that inherits its functions
> from the predefined "Numbering Symbols", give it a new name, e.g. "Header 1
> Numbering", assign this new style a new font, e.g. the same as given to
> Heading 1 in step 2
> 4. Write a short text and press Control + 1
> 5. Add chapter numbering via "Format / Bullets and Numbering..."
> 6. Under the "Customise" tab set Number to "1, 2, 3, ..."
> 7. In the "Seperator" field type in "Chapter "
> 8. Click on the "Position" tab and in the field "Numbering followed by"
> select "Space"
> 
> You will notice that the font of the Chapter numbering reverts to the
> default font for the entire document.
> 
> You can manually change this then via the "Format / Bullets and
> Numbering..." to the desired font of "Header 1 Numbering". However if you
> elect to delete the entire content of the document, clear all formatting,
> save that document, close LibreOffice Writer and then open that document up
> again and start over with a Heading 1 you will find that Writer does apply
> the default font to the chapter numbering again. Using the menu "Tools /
> Chapter Numbering..." does not have any form of impact.
> 
> See also the sample document I attached to this bug that shows this
> behaviour.

I guess after step 6 you should have added another step "Change Character Style to the style you created".

I don't reproduce the problem. After step 8, the font of the chapter numbering seen in the document stays as the expected font (the one I defined in the style).

Arch Linux 64-bit
Version: 7.2.0.0.alpha0+
Build ID: c638985dd3a63cdf76b2af67cd890f656a9c38eb
CPU threads: 8; OS: Linux 5.9; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 25 November 2020
Comment 8 Timur 2020-11-29 17:25:08 UTC
Christian, in addition to your expected comment on previous one, please also comment on relation to bug 137810.
Comment 9 cmflatscher 2020-11-30 09:24:05 UTC
Thank you for all your feedback.

I appreciate if somebody can look at the attached file and verify if the problem does or not exist with LO Writer v7.0.3.1. On my computer the issue is 100 % reproducible. It never works.

Maybe something is not correct with my file.

I appreciate it if I can get some instructions on how I can repair this file myself in case it can be fixed.


Bug 137810 is similar to mine. The issue in Bug 137810 appears to be associated with colouring the heading number whereas my issue is to do with selected font not working at all.

The code fix may apply to both bugs.


Please keep this bug open until my document which I have attached on 2020-11-22 has been reviewed and some conclusions have been drawn from it.

Thank you.
Comment 10 Buovjaga 2020-11-30 10:40:15 UTC
(In reply to cmflatscher from comment #9)
> I appreciate if somebody can look at the attached file and verify if the
> problem does or not exist with LO Writer v7.0.3.1. On my computer the issue
> is 100 % reproducible. It never works.
> 
> Maybe something is not correct with my file.

There is some conflicting information here. Do you really mean that it is 100% reproducible for you with a completely fresh file?
Comment 11 cmflatscher 2020-11-30 18:01:45 UTC
I did some further tests.

LO v6.4.4.2 (x86)
LO v6.4.7.2 (x64)
LO v7.0.3.1 (x64)

Parallel installed. No issues at all when Numbering the Heading and adding in a text before the actual chapter number.

I checked out the settings for chapter numbering via the menu "Format / Bullets and Numbering...". Under the tab "Customize" I found that in all these versions the default "Character Style" is "None".

In my file I found that the default Character Style defaults to "Numbering Symbols".

I remember having upgraded my LO from an older v4 with which I created the attached sample file. I upgraded then to LO 5, LO 6 and the latest LO 7.

My conclusion is that this issue is tied to the .odt file which I attached to t his Bugzilla rather than LO itself.

That leads me to the question:

Can this be fixed or must I recreate that file all over again which certainly will be a long and tedious task?

I use LO at work and have little time to do tests except on week ends.

I appreciate if the issue tied to the .ODT file can be fixed rather than me having to recreate that file from scratch.

Thanks!
Comment 12 cmflatscher 2020-11-30 19:29:18 UTC
I have now been able to reproduce this bug rock solid with LO 7.0.3.1.

I will document this a little bit later to clearly demonstrate the bug in LO.
Comment 13 cmflatscher 2020-12-01 09:15:34 UTC
Created attachment 167705 [details]
Video - Proof of bug
Comment 14 cmflatscher 2020-12-01 09:17:16 UTC
Buovjaga,
Timur,

Attached is a video demonstrating that this issue is indeed a bug.

Please review and advise.

Thanks!
Comment 15 Buovjaga 2020-12-01 11:50:13 UTC
(In reply to cmflatscher from comment #13)
> Created attachment 167705 [details]
> Video - Proof of bug

What happens in 1:48? Why does the numbering suddenly appear?
Comment 16 cmflatscher 2020-12-01 13:48:21 UTC
If you define first time around numbering for Heading via "Format / Bullets and Numbering..." then this numbering scheme remains in place. If you then clear the formatting and create a new header, press CTRL+1 in then the numbering will appear automatically.
Comment 17 Buovjaga 2020-12-01 14:07:55 UTC
(In reply to cmflatscher from comment #13)
> Created attachment 167705 [details]
> Video - Proof of bug

The problem that I see and reproduce is that the rendering of the numbering font sometimes does not match what it should be. So we see a Sans serif font, when a serif font is set, for example when the Character style in Bullets and Numbering is set to None.

Is this the problem that you want to focus on?
Comment 18 cmflatscher 2020-12-01 14:16:11 UTC
This is what I want to have looked at:

- Change for the entire document the default font
- Change the font for headings
- When I by mistake change the font of "Numbering Symbols" then the font for numbering headings should not change
- or a function should be introduced that allows to reset the font of "Numbering Symbols" to "Factory defaults" thus repairing the mistake made

HTH.
Comment 19 Buovjaga 2020-12-01 14:41:24 UTC
I think I still don't fully understand the main point, so will bring in more people to look at this from a user experience perspective.
Comment 20 Heiko Tietze 2020-12-01 15:59:57 UTC
(In reply to Buovjaga from comment #19)
> I think I still don't fully understand the main point...
Me neither ;-)

(In reply to cmflatscher from comment #0)
Chapter 1 <Text 1> -> What do you want to achieve?

(In reply to cmflatscher from comment #18)
> - When I by mistake change the font of "Numbering Symbols" then the font for
> numbering headings should not change
Tools > Chapter Numbering (which is used for the outline numbering) allows to apply a character style to the outline. Handy feature, I'd say.
Comment 21 cmflatscher 2020-12-01 18:38:44 UTC
Thanks.

Tools > Chapter Numbering did not work on my installation of LO 6.4.x.x.

I found by not changing the character style for Numbering Symbols all works as I expected. Even if I decide at a later point in time to change the font for headings.

I have now completely recreated my document, drawn my lessons from it and all is fine.

You can consider this issue as resolved.

Thanks.