[docbook-apps] v5, pdf output, font-family config

2013-03-02 Thread davep

In my import stylesheet I have

xsl:param name=body.font.familyaries, 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.familyariesSCB/xsl:param
xsl:param name=dingbat.font.familyZapfDingbats/xsl:param
xsl:param name=monospace.font.familydin/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-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



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

2013-03-02 Thread Bob Stayton

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
b...@sagehill.net

--
From: davep da...@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.familyaries, 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.familyariesSCB/xsl:param
xsl:param name=dingbat.font.familyZapfDingbats/xsl:param
xsl:param name=monospace.font.familydin/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-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org





-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



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

2013-03-02 Thread davep

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
b...@sagehill.net

--
From: davep da...@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.familyaries, 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.familyariesSCB/xsl:param
xsl:param name=dingbat.font.familyZapfDingbats/xsl:param
xsl:param name=monospace.font.familydin/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-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org









regards

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

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org