[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Turn off hyphenation within certain elements?
Sure, this is pretty easy. Copy the template that matches code from fo/inlines.xsl and wrap it in an fo:inline: <xsl:template match="code"> <fo:inline hyphenate="false"> <xsl:call-template name="inline.monoseq"/> </fo:inline> </xsl:template> This works in XEP and Antenna House, but not FOP. The XSL-FO standard says that hyphenate goes on block-level objects, not fo:inline. But it seems to work with those two processors anyway. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Thomas Marti" <thx.79@schweiz.org> To: <docbook-apps@lists.oasis-open.org> Sent: Tuesday, June 21, 2005 4:05 AM Subject: [docbook-apps] Turn off hyphenation within certain elements? > Hello > > Is it possible to turn off hyphenation within certain elements and keep it > turned on for all the others? For example, text within <code> should never be > hyphenated. Because it looks really weird, if a method or class name is split > over two lines. > > Thanks... > > Bye, Thomas > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]