docbook-apps

  • 1.  v5, pdf output, font-family config

    Posted 03-02-2013 15:41
    In my import stylesheet I have

    <xsl:param name="body.font.family">aries, ariesItalic,
    ariesBoldOSfigs</xsl:param>

    I.e. I want the formatter to use different fonts to match
    normal, body, bold.

    when I look at the xxx.fo file I see

    font-family="aries ariesItalic ariesBoldOSfigs,Symbol,ZapfDingbats"

    So although the font list is comma separated from the
    <xsl:param name="title.font.family">ariesSCB</xsl:param>
    <xsl:param name="dingbat.font.family">ZapfDingbats</xsl:param>
    <xsl:param name="monospace.font.family">din</xsl:param>

    specs, for some reason the comma separated list in $body.font.family
    has the comma's stripped?

    is there any reason for this... and how can I stop it please?




    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



  • 2.  Re: [docbook-apps] v5, pdf output, font-family config

    Posted 03-02-2013 18:59
    Hi Dave,
    I am not able to duplicate this problem. When I put a comma-separated list
    of fonts in that param, the commas appear in the FO file. Looking at the
    code, it just copies that param without any further processing. I cannot
    explain where your commas went.

    But I don't see how this list is going to accomplish your goal. The
    formatter does not use that list to select bold and italic. The association
    of italic and bold comes in the font configuration file for the formatter,
    using the currently selected font name to find by association the italic or
    bold variant.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    --------------------------------------------------
    From: "davep" <davep@dpawson.co.uk>
    Sent: Saturday, March 02, 2013 7:41 AM
    To: <docbook-apps@lists.oasis-open.org>
    Subject: [docbook-apps] v5, pdf output, font-family config

    > In my import stylesheet I have
    >
    > <xsl:param name="body.font.family">aries, ariesItalic,
    > ariesBoldOSfigs</xsl:param>
    >
    > I.e. I want the formatter to use different fonts to match
    > normal, body, bold.
    >
    > when I look at the xxx.fo file I see
    >
    > font-family="aries ariesItalic ariesBoldOSfigs,Symbol,ZapfDingbats"
    >
    > So although the font list is comma separated from the
    > <xsl:param name="title.font.family">ariesSCB</xsl:param>
    > <xsl:param name="dingbat.font.family">ZapfDingbats</xsl:param>
    > <xsl:param name="monospace.font.family">din</xsl:param>
    >
    > specs, for some reason the comma separated list in $body.font.family
    > has the comma's stripped?
    >
    > is there any reason for this... and how can I stop it please?
    >
    >
    >
    >
    > regards
    >
    > --
    > Dave Pawson
    > XSLT XSL-FO FAQ.
    > http://www.dpawson.co.uk
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >
    >



  • 3.  Re: [docbook-apps] v5, pdf output, font-family config

    Posted 03-03-2013 07:58
    Hi Bob
    On 02/03/13 18:59, Bob Stayton wrote:
    > Hi Dave,
    > I am not able to duplicate this problem. When I put a comma-separated
    > list of fonts in that param, the commas appear in the FO file. Looking
    > at the code, it just copies that param without any further processing.
    > I cannot explain where your commas went.
    >
    > But I don't see how this list is going to accomplish your goal. The
    > formatter does not use that list to select bold and italic. The
    > association of italic and bold comes in the font configuration file for
    > the formatter, using the currently selected font name to find by
    > association the italic or bold variant.


    Using AH
    I have set up normal, italic and bold separate fonts in the
    font-config.xml file.

    I need to give the formatter a request to make use of that config
    information (if that makes sense).
    font-family does that? I.e. choose from this list as appropriate.

    Hence I need
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
    font-family="aries, ariesItalic, ariesBoldOSfigs, din,Symbol,ZapfDingbats"
    ....


    I think it's pagesetup.xsl the body.fontset param?
    merges the fonts?

    It does copy the contents of $body.font.family through (including
    commas!), so it must have been something odd I was doing.

    Now working, thanks for your reply.
    Sorry to waste bwidth.

    regards




    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    > --------------------------------------------------
    > From: "davep" <davep@dpawson.co.uk>
    > Sent: Saturday, March 02, 2013 7:41 AM
    > To: <docbook-apps@lists.oasis-open.org>
    > Subject: [docbook-apps] v5, pdf output, font-family config
    >
    >> In my import stylesheet I have
    >>
    >> <xsl:param name="body.font.family">aries, ariesItalic,
    >> ariesBoldOSfigs</xsl:param>
    >>
    >> I.e. I want the formatter to use different fonts to match
    >> normal, body, bold.
    >>
    >> when I look at the xxx.fo file I see
    >>
    >> font-family="aries ariesItalic ariesBoldOSfigs,Symbol,ZapfDingbats"
    >>
    >> So although the font list is comma separated from the
    >> <xsl:param name="title.font.family">ariesSCB</xsl:param>
    >> <xsl:param name="dingbat.font.family">ZapfDingbats</xsl:param>
    >> <xsl:param name="monospace.font.family">din</xsl:param>
    >>
    >> specs, for some reason the comma separated list in $body.font.family
    >> has the comma's stripped?
    >>
    >> is there any reason for this... and how can I stop it please?
    >>
    >>
    >>
    >>
    >> regards
    >>
    >> --
    >> Dave Pawson
    >> XSLT XSL-FO FAQ.
    >> http://www.dpawson.co.uk
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >>
    >>
    >



    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk