Thank you Pascal, it's a good idea !

Here is my example with the 2 Pascal solutions :

First solution : <fo:inline keep-together.within-line="always"> arround the ° character <fo:block><fo:inline font-size="14pt" font-family="Helvetica">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN</fo:inline><fo:inline keep-together.within-line="always" font-size="14pt" font-family="Helvetica">°</fo:inline><fo:inline font-size="14pt" font-family="Helvetica">AAAAAAAAAAAAAAAAAA</fo:inline></fo:block>

Second solution : Word joined / &#x2060; before ° character
<fo:block><fo:inline font-size="14pt" font-family="Helvetica">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN&#x2060;°AAAAAAAAAAAAAAAAAA</fo:inline></fo:block>

Christian Pestel

christian.pes...@orange.fr


-----Message d'origine----- From: Pascal Sancho
Sent: Thursday, October 25, 2012 9:33 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Fw: Word secability on character #176

Hi,

I'm not familiar with hyphenation patterns. As a starting point, you
can read [1].

That said, you can insert a WJ char (Word Joiner, ie: &#x2060;) where
you want no break, in your case, just before the '°' character. FOP
behaves as expected with it.

[1] http://xmlgraphics.apache.org/fop/1.1/hyphenation.html#patterns

2012/10/24 Christian Pestel <christian.pes...@orange.fr>:
Hi Pascal,

I clarify my request.
We don't use fophyph.jar, so what is the list of characters which cut words
?
Is this list configurable ?
Thank


-----Message d'origine----- From: Christian Pestel
Sent: Wednesday, October 24, 2012 5:59 PM

To: fop-users@xmlgraphics.apache.org
Subject: Re: Word secability on character #176

Thank you Pascal.

Is there a possibility to indicate in the config Fop to do not cut on this
character ?


-----Message d'origine----- From: Pascal Sancho
Sent: Wednesday, October 24, 2012 5:47 PM

Hi,
You should use the keep-together property (see [1]):
<fo:inline keep-together.within-line="always">...</fo:inline>

[1] http://www.w3.org/TR/2006/REC-xsl11-20061205/#keep-together

2012/10/24 Christian Pestel <christian.pes...@orange.fr>:

Hi,

Fop don’t cut a long word like “AAAAAAAAAAAAAAAABBBBBBBBBBBB”
The pdf result is
AAAAAAAAAAAAAAAABBBBB
the end of line is truncated. That’s ok.

Fop cut a long word like “AAAAAAAAAAAAAAAA BBBBBBBBBBBB” on the space
character.
The pdf result is
AAAAAAAAAAAAAAAA
BBBBBBBBBBBB
That’s ok.

But on the word “AAAAAAAAAAAAAAAAN°BBBBBBBBBBBB”
The pdf result is
AAAAAAAAAAAAAAAAN
°BBBBBBBBBBBB

I would like this result
AAAAAAAAAAAAAAAAN°BBBBBBBBBBBB

Have you a solution to not cut on the ° (#176) character ?
Thanks.


--
pascal

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

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

Reply via email to