OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: AW: AW: [docbook-apps] adminitions - notes - line break after "Note"


On 12/18/06, Hinrich Aue <hinrich.aue@lci-software.com> wrote:
> I tried fiddling with the arrangement of the blocks.
> But the "object.title.markup" seems to put the "Notes" in his own block and
> I cannot change the behaviour. It's seems to be defined in
> common/gentext.xsl. But the line break has to be defined somewhere...
>
> Can I simply print the word "Note" in a special font instead of calling
> "object.title.markup" in admon.xsl?

The "line break" you're referring to is coming from an fo:block.
Here's my suggestion to get you started:

Try switching to a wrapping fo:block under the list-item-body and then
fo:inline below it (to remove the "line break")

In fo/admon.xsl:

<xsl:template name="graphical.admonition">
 ...
           <fo:list-item-body start-indent="body-start()">
            <fo:block xsl:use-attribute-sets="admonition.properties">
              <xsl:if test="$admon.textlabel != 0 or title">
              <fo:inline xsl:use-attribute-sets="admonition.title.properties">
                <xsl:apply-templates select="." mode="object.title.markup"/>
              </fo:inline>
              </xsl:if>
              <fo:inline> <!-- almost certainly unnecessary -->
                <xsl:apply-templates/>
               </fo:inline>
             </fo:block>
          </fo:list-item-body>


------ gives, essentially:
        <fo:list-block provisional-distance-between-starts="36pt +
18pt" provisional-label-separation="18pt">
          <fo:list-item>
            <fo:list-item-label end-indent="label-end()">
              <fo:block>
                <fo:external-graphic width="auto" height="auto"
content-width="36pt" src="url(images/note.png)"/>
              </fo:block>
            </fo:list-item-label>
            <fo:list-item-body start-indent="body-start()">
              <fo:block>
                <fo:inline font-size="14pt" font-weight="bold"
hyphenate="false"
keep-with-next.within-column="always">note/title</fo:inline>
                <fo:inline>
                  <fo:block space-before.optimum="1em"
space-before.minimum="0.8em" space-before.maximum="1.2em">Text inside
note/para</fo:block>
                </fo:inline>
              </fo:block>
            </fo:list-item-body>
          </fo:list-item>
        </fo:list-block>

The problem with this, of course, is that when you hit the note/para,
you'll still get an fo:block. [I've run into this sort of problem in a
bunch of places and haven't found a good solution...] If you know
exactly what markup will occur inside your notes, you could alter
those elements to not produce fo:blocks.

HTH,
Keith


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]