|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
hyphenate.verbatim.characters format for multiple characters?In my PDFs (docbook-xsl v1.72.0 + fop 0.93), <replaceable> elements containing long strings do not wrap; this is particularly noticeable in narrow table columns. So I attempted to specify a number of characters for the hyphenate.verbatim.characters parameter.
My first question is - does this affect <replaceable> text? My second question is: each format I try gives an "unexpected token" error in fop. I've tried the following formats to specify space, comma and period as breaking characters: <xsl:param name="hyphenate.verbatim.characters" select="',',' ','.'"></xsl:param> <xsl:param name="hyphenate.verbatim.characters" select=", ."></xsl:param> Could anyone give a working example of setting hyphenate.verbatim.characters? Thanks, P. |
|
|
Re: hyphenate.verbatim.characters format for multiple characters?Hi Paul,
The hyphenate.verbatim feature only affects content in programlisting, screen, and synopsis, not replaceable. The other problem is that the hyphenate.verbatim feature inserts soft hyphen characters, which FOP does not yet support. It just prints hyphens at each point. I think you are looking for something more like ulink.hyphenate, which uses a template named hyphenate-url to insert the character specified by the ulink.hyphenate parameter after every character specified in the ulink.hyphenate.chars parameter. Since FOP doesn't support soft hyphens, you will have to use zero width spaces, which do work in FOP: <xsl:param name="ulink.hyphenate"></xsl:param> <xsl:param name="ulink.hyphenate.chars">. ,</xsl:param> Of course, this doesn't automatically work with replaceable text. You will need to customize the replaceable template to call hyphenate-url. And it will affect your printed ulink URLs too, unless you differentiate the customization. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@... ----- Original Message ----- From: "Paul Moloney" <paul_moloney@...> To: <docbook-apps@...> Sent: Monday, February 26, 2007 10:01 AM Subject: [docbook-apps] hyphenate.verbatim.characters format for multiple characters? > > In my PDFs (docbook-xsl v1.72.0 + fop 0.93), <replaceable> elements > containing long strings do not wrap; this is particularly noticeable in > narrow table columns. So I attempted to specify a number of characters > for > the hyphenate.verbatim.characters parameter. > > My first question is - does this affect <replaceable> text? > > My second question is: each format I try gives an "unexpected token" > error > in fop. I've tried the following formats to specify space, comma and > period > as breaking characters: > > <xsl:param name="hyphenate.verbatim.characters" select="',',' > ','.'"></xsl:param> > <xsl:param name="hyphenate.verbatim.characters" select=", > ."></xsl:param> > > Could anyone give a working example of setting > hyphenate.verbatim.characters? > > Thanks, > > P. > > > -- > View this message in context: > http://www.nabble.com/hyphenate.verbatim.characters-format-for-multiple-characters--tf3294427.html#a9163861 > Sent from the docbook apps mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: docbook-apps-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
| Free embeddable forum powered by Nabble | Forum Help |