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] hyphenation-character not inserted when there are line break

If you intention is to break lines in a programlisting between 
words, and to indicate the line break with backslash, then the 
method that *should* work is described in this reference:


The 'hyphenate.verbatim' parameter is what creates soft hyphens 
between words, which generates the marker when a line breaks. 
The method described there works in XEP and Antenna House, but 
not in FOP.

In FOP 0.20.5, the lines simply don't break, which suggests that 
soft hyphens don't work.  In FOP 0.9, the lines break, but the 
inserted soft hyphens are *all* displayed as hyphens, and the 
desired hyphenation character (backslash) is absent.  You might 
report the problem to the FOP developers.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Xuan Ngo" <xuanngolist@yahoo.ca>
To: <docbook-apps@lists.oasis-open.org>
Sent: Saturday, April 08, 2006 12:02 PM
Subject: [docbook-apps] hyphenation-character not inserted when 
there are line break

> Hi,
> I have been trying to insert a character to show that
> there is a line break within <programlistling> but in
> vain.
> I used xsltproc.exe to generate fo file  and used
> fop.exe to create PDF file. There is no font added,
> everything is default.
> Version of fop =  0.91beta
> Version of xsltproc.exe:
>    Using libxml 20619CVS2426, libxslt 10114CVS1012
> and libexslt 812CVS1012
>    xsltproc was compiled against libxml 20619,
> libxslt 10114 and libexslt 812
>    libxslt 10114 was compiled against libxml 20619
>    libexslt 812 was compiled against libxml 20619
> My Cutomization layer:
> ==================
>    <xsl:attribute-set
> name="monospace.verbatim.properties"
> use-attribute-sets="verbatim.properties">
>        <xsl:attribute
> name="wrap-option">wrap</xsl:attribute>
>        <xsl:attribute
> name="hyphenation-character">\</xsl:attribute>
>    </xsl:attribute-set>
> Messages shown when processing:
> ============================
> xsltproc.exe:
> xsl:attribute-set : use-attribute-sets recursion
> detected
> Making portrait pages on A4 paper (210mmx297mm)
> fop.exe:
> Couldn't find hyphenation pattern en
> Output:
> ======
> This is a test. This is a very long 1-liner code.
> Expected line break at the end of page. Line break
> character should be backslash.
> The output wraps after the word "break" but backslash
> is not inserted after the word "break". I tried to add
> <xsl:param name="hyphenate.verbatim" select="1"/>, it
> still doesn't work. It added a hyphen for every space
> character encountered.
> Can someone help!
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ---------------------------------------------------------------------
> 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]