Hi Dave,
I do think if justification is set to on, that text-align-last should be set
to left? Looks horrible stretched out to justify?
I completely agree, as did the authors of the XSL-FO spec. The spec says the default
value for text-align-last is 'relative', which they describe as:
"If text-align is justify, then the alignment of the last line, and of any line ending
in U+000A, will be start. If text-align is not justify, text-align-last will use the
value of text-align."
Since the DocBook stylesheet does not set a root value for text-align-last, this
statement applies.
The only time text-align-last is set to 'justify' is for table of contents entries
that are displaying a dot leader and right-aligned page number. In that particular
context, the fo:leader is allowed to expand to fill the space, and not the text. That
is the only way to achieve that effect.
Regarding the ulinks, you *must* also set the 'ulink.hyphenate' param, as described
here:
http://www.sagehill.net/docbookxsl/Ulinks.html#BreakLongUrls
Your mail did not mention that param, but it is necessary to achieve the effect.
Bob Stayton
Sagehill Enterprises
b...@sagehill.net
----- Original Message -----
From: "davep" <da...@dpawson.co.uk>
To: "Bob Stayton" <b...@sagehill.net>
Cc: "Docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Monday, October 10, 2011 6:50 AM
Subject: Re: [docbook-apps] fo output, docbook 5,
On 10/10/2011 02:38 PM, Bob Stayton wrote:
Hi Dave,
I'm not sure what you are describing here. There is no DocBook
stylesheet param named 'text-align-last', so that is why it does not
appear in the documentation. In the XSL-FO standard, there is a
formatting property of that name, and it is used to format entries in
a table of contents. Where did you see that name as a param?
param.xsl
I did see it... but didn't note its context?
<xsl:attribute-set name="toc.line.properties">
<xsl:attribute name="text-align-last">justify</xsl:attribute>
<xsl:attribute name="text-align">start</xsl:attribute>
<xsl:attribute name="end-indent"><xsl:value-of
select="concat($toc.indent.width, 'pt')"/></xsl:attribute>
<xsl:attribute name="last-line-end-indent"><xsl:value-of
select="concat('-', $toc.indent.width, 'pt')"/></xsl:attribute>
</xsl:attribute-set>
My bad, I apologise.
I do think if justification is set to on, that text-align-last should be set
to left? Looks horrible stretched out to justify?
Regarding ulink hyphens, it works for me in XEP. To what value did
you set the other required param, the 'ulink.hyphenate' param? I used
­
I tried to include an image. Now attached.
<xsl:param name="hyphenate">true</xsl:param>
<xsl:param name="ulink.hyphenate.chars">/_&</xsl:param>
So I'm expecting it to break at the slash character?
Which version of xep are you using please?
Regarding screenshot, that element is just a semantic container for a
single mediaobject.
That's my email app. I tried to insert a file called screenshot into the
file.
See attached.
In FO output, it just adds an fo:block wrapper without any
properties, so any properties it gets would be inherited. If the
fo:root has text-align="justify", then that would be inherited by its
container. But since there is only one line object in the container,
that line should be using text-align-last, which defaults to 'start'
when text-align="justify". So I can't see how there would be an
interaction. Are you seeing something odd?
Yes. See the attached graphic, if it comes through?
You say that if I set justify, then text-align-last defaults to left?
Where please? grep doesn't show that?
regards DaveP
----- Original Message ----- From: "davep" <da...@dpawson.co.uk>
To: "Docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Monday, October 10, 2011 1:46 AM
Subject: [docbook-apps] fo output, docbook 5,
Two issues.
There is a param
<xsl:param name="text-align-last">left</xsl:param>
Not visible on http://docbook.sourceforge.net/release/xsl/1.76.1/doc/fo/
Tried setting
<xsl:param name="ulink.hyphenate.chars">/_&</xsl:param>
and I see no hyphenation on the / character, xep formatter.
I have hyphenate set to true.
Screenshot
Is there some interaction between text-align=justify and this?
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
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org