On 07/11/11 17:32, Lex Trotman 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.

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)

Nope, sorry to be obtuse but I still don't get it.
These nested frames work:

.Sidebar
********
A sidebar block.

NOTE: Lorum ipsum.

********

So why don't you wrap nested blocks in draw:frames?

I think I need some real ODF markup examples along the lines:

from this AsciiDoc source: ...
this is what asciidoc generates naturally: ...
but this is what we need it to generate: ...


Cheers, Stuart


Cheers
Lex

PS Dag is also worried about outlawing some nesting, but I don't see
that as a problem.

j>>
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