You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Xuan Ngo <xu...@yahoo.ca> on 2007/12/20 21:37:19 UTC

hyphenation-character doesn't appear in pdf

I tried to change the hyphenation-character with a backslash in <programlisting> tag but it is not
appearing in the pdf output. However, long line in pdf are broken down to multiple lines.
Can some1 tell me what is wrong with my customization layer?
I'm using Docbook 1.73.2 and FOP v0.94.

Here is my customization layer:
    <xsl:param name="hyphenate.verbatim" select="1"></xsl:param>
    
    <xsl:attribute-set name="monospace.verbatim.properties"
use-attribute-sets="verbatim.properties monospace.properties">
      <xsl:attribute name="wrap-option">wrap</xsl:attribute>
      <xsl:attribute name="hyphenation-character">\</xsl:attribute>
    </xsl:attribute-set>

I also attach all required files in case that they are needed.

thx!



      Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://mail.yahoo.ca

Re: hyphenation-character doesn't appear in pdf

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Dec 21, 2007, at 09:16, Jeremias Maerki wrote:

Hi

> Right, as soon as you enable white-space-treatment="preserve" the
> hyphenation-character is just ignored. Otherwise, the hyphenation
> character works fine. Can you please open an issue in Bugzilla and add
> your files there? We'll have to look into this.
> http://issues.apache.org/bugzilla/

Filing a bug is not necessary. Vincent recently added this issue to  
an open Bugzilla entry that already indicates there are still  
problems with hyphenation in combination with preserved linefeeds/ 
white-space.

see: http://issues.apache.org/bugzilla/show_bug.cgi?id=38264

>
> Unfortunately, I could not come up with a work-around.
>
> On 20.12.2007 21:37:19 Xuan Ngo wrote:
>> <snip />
>>     <xsl:attribute-set name="monospace.verbatim.properties"
>> use-attribute-sets="verbatim.properties monospace.properties">
>>       <xsl:attribute name="wrap-option">wrap</xsl:attribute>
>>       <xsl:attribute name="hyphenation-character">\</xsl:attribute>
>>     </xsl:attribute-set>

Maybe it's possible to tweak/customize one of the above referenced  
attribute set(s), so it does not generate a white-space- 
treatment="preserve" in the result.
That is: if you really don't need preserved white-space around  
linefeeds.


Best browse around on the Docbook site, or ask on the Docbook list,  
unless there's a guru hanging out here that can tell you how.



Cheers

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: hyphenation-character doesn't appear in pdf

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Right, as soon as you enable white-space-treatment="preserve" the
hyphenation-character is just ignored. Otherwise, the hyphenation
character works fine. Can you please open an issue in Bugzilla and add
your files there? We'll have to look into this.
http://issues.apache.org/bugzilla/

Unfortunately, I could not come up with a work-around.

On 20.12.2007 21:37:19 Xuan Ngo wrote:
> I tried to change the hyphenation-character with a backslash in <programlisting> tag but it is not
> appearing in the pdf output. However, long line in pdf are broken down to multiple lines.
> Can some1 tell me what is wrong with my customization layer?
> I'm using Docbook 1.73.2 and FOP v0.94.
> 
> Here is my customization layer:
>     <xsl:param name="hyphenate.verbatim" select="1"></xsl:param>
>     
>     <xsl:attribute-set name="monospace.verbatim.properties"
> use-attribute-sets="verbatim.properties monospace.properties">
>       <xsl:attribute name="wrap-option">wrap</xsl:attribute>
>       <xsl:attribute name="hyphenation-character">\</xsl:attribute>
>     </xsl:attribute-set>
> 
> I also attach all required files in case that they are needed.
> 
> thx!
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org