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: [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 &#xAD;

I tried to include an image. Now attached.
<xsl:param name="hyphenate">true</xsl:param>
<xsl:param name="ulink.hyphenate.chars">/_&amp;</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" <davep@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">/_&amp;</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-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

Attachment: Screenshot-1.png
Description: PNG image



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