Bug 133361 - Character style applied to a footnote definition is not honored
Summary: Character style applied to a footnote definition is not honored
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.4.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-25 08:15 UTC by Jambunathan K
Modified: 2020-05-25 12:09 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
bug.odt (13.05 KB, application/vnd.oasis.opendocument.text)
2020-05-25 08:15 UTC, Jambunathan K
Details
Screenshot of how bug.odt is rendered on my machine (2.63 KB, image/png)
2020-05-25 08:16 UTC, Jambunathan K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jambunathan K 2020-05-25 08:15:03 UTC
Created attachment 161249 [details]
bug.odt

Character style (in this case 'OrgSuperscript' style) applied to a footnote definition is NOT honored.  But ... the same character style applied to a footnote reference is honored correctly.  If you note carefully, the size of the character style is honored, but not it's position.  In a sense, the character style is getting applied in only partially.

See attached bug.odt, and the screenshot of  the rendering.  




Version: 6.4.4.2
Build ID: 1:6.4.4-1
CPU threads: 4; OS: Linux 5.6; UI render: default; VCL: gtk3; 
Locale: en-IN (en_IN); UI-Language: en-US
Calc: threaded


~$ uname -a
Linux debian 5.6.0-1-amd64 #1 SMP Debian 5.6.7-1 (2020-04-29) x86_64 GNU/Linux

~$ dpkg -l | grep writer
ii  libreoffice-writer                    1:6.4.4-1                            amd64        office productivity suite -- word processor
ii  libxml-writer-perl                    0.625-1                              all          Perl module for writing XML documents
~$
Comment 1 Jambunathan K 2020-05-25 08:16:14 UTC
Created attachment 161251 [details]
Screenshot of how bug.odt is rendered on my machine
Comment 2 Jambunathan K 2020-05-25 08:30:21 UTC
> Character style (in this case 'OrgSuperscript' style) applied to a footnote definition is NOT honored.


Expected Behaviour: First, OrgFootnoteAnchor gets applied.  Then OrgSuperscript  is applied.  I expect to see a superscript-ed anchor at the site of note definition.
Comment 3 Mike Kaganski 2020-05-25 08:52:31 UTC
This is not a bug.

The configuration of footnotes (Tools->Footnotes and Endnotes) defines that footnote anchors use OrdFootnoteAnchor character style. You insert the footnote anchor, and apply character style OrgSuperscript *over the text including the anchor*. So the end result is this (in the absence of direct formatting, which would add to complexity): first, character formatting from paragraph is evaluated (taking e.g. font name and size); then character style of the text run is applied over that - overriding position ("Superscript") and relative font size; and lastly, the anchor field is processed, applying OrdFootnoteAnchor over the previous property set - which applies the only property present in the style: "Normal position", which replaces "Superscript"  from OrgSuperscript.

This is the intended and correct behaviour; if you need to customize your footnotes/endnotes, you need to use the mentioned dialog and set the style there.
Comment 4 Jambunathan K 2020-05-25 12:09:04 UTC
>  So the end result is this (in the absence of direct formatting, which would add to complexity): first, character formatting from paragraph is evaluated (taking e.g. font name and size); then character style of the text run is applied over that - overriding position ("Superscript") and relative font size; and lastly, the anchor field is processed, applying OrdFootnoteAnchor over the previous property set - which applies the only property present in the style: "Normal position", which replaces "Superscript"  from OrgSuperscript.

That was quick.  Thanks for explaining how the styles are applied.