Pardon the serial post.

On Mon, Nov 7, 2011 at 3:32 PM, Lex Trotman <[email protected]> wrote:
> On Mon, Nov 7, 2011 at 2:28 PM, Stuart Rackham <[email protected]> wrote:
>> I don't understand what this issue
>> (https://github.com/dagwieers/asciidoc-odf/issues/18):
>>
>> This:
>>
>> .Sidebar
>> ********
>> A sidebar block.
>> ********
>>
>> Generates this:
>>
>> <text:p><draw:frame draw:style-name="sidebarblock" draw:name="frame"
>> text:anchor-type="paragraph" draw:z-index="0"><draw:text-box
>> fo:min-height="0mm"><text:p text:style-name="title">Sidebar</text:p>
>> <text:p>A sidebar block.</text:p>
>> </draw:text-box></draw:frame></text:p>
>>
>> It contain a <text:p> nested in a <test:p> and it displays find in lowriter
>> 3.3.2
>>
>> So what am I missing?
>>
>
> Hi Stuart,
>
> Nesting the inner <text:p> elements inside drawings is the solution
> Dag came up with to allow the nesting and it works fine if everything
> is default formatted like sidebar, but unless you manually mark the
> embedded entities (as you suggested) there is no way of giving them a
> style that depends on the fact that they are nested.

Also should have said sidebar also needs the draw to set its
background and frame.

>
> Where styles applied to HTML cascade and docbook has explicit
> knowledge of the nesting, ODF has no way of applying a style to the
> nested paragraphs other than explicitly.  Neither styles applied to
> the outer <text:p> nor the frame or text box affect the embedded
> <text:p> (at least in our testing).
>
> So if your nested text is to be a different style like verse is a
> different colour, there is (so far) no way to do it.  That has stopped
> work on admonitions and the other example based blocks that have
> different style text until we can find a way to do it. (ATM examples
> are broke in odt.conf)
>
> Cheers
> Lex
>
> PS Dag is also worried about outlawing some nesting, but I don't see
> that as a problem.
>
>>
>> Cheers, Stuart
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "asciidoc" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/asciidoc?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to