https://bugs.freedesktop.org/show_bug.cgi?id=75215

--- Comment #5 from Owen Genat <owen.ge...@gmail.com> ---
Created attachment 106205
  --> https://bugs.freedesktop.org/attachment.cgi?id=106205&action=edit
FODT using an automatic (rather than common) style definition.

It would seem this report may relate to whether ruby text is considered a
common (<office:styles>) or automatic (<office:automatic-styles>) style by the
LO implementation. ODF v1.2, Part 1, ยง3.15.3 states:

> Common and automatic styles behave differently in OpenDocument editing 
> consumers.
> Common styles are presented to the user as a named set of formatting 
> properties. 
> The formatting properties of an automatic style are presented to a user as 
> properties of the object to which the style is applied.

In attachment 94368 the ruby text is defined by a bare <text:ruby> element that
relies on this default (common) style definition:

>    <style:default-style style:family="ruby">
>      <style:ruby-properties
>        style:ruby-align="center"
>        style:ruby-position="below"
>      />

... which is being ignored. Editing the provided example and changing the
referencing element to <text:ruby text:style-name="Ru1"> and including a
related (automatic) style definition:

>    <style:style style:name="Ru1" style:family="ruby">
>      <style:ruby-properties 
>        style:ruby-align="center" 
>        style:ruby-position="below"
>      />

... results in a working example[1], with the ruby text centred and positioned
below the base text. Refer attached. It will need an expert to determine if the
current implementation (using an automatic style) is appropriate or not.

[1] This is the type of XML generated if the example is saved to ODT. Also note
that I removed the original default (common) style definition.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to