RE: How to prevent hyphenation after hyphens?

2012-06-13 Thread SNawa

Thanks Eric

How to insert non-breaking hyphen properly? I change content to

fo:block margin-right=120pt border-width=1pt border-color=black
border-style=solid
firstamp;#x2011;second firstamp;#x2011;second
firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second
firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second
firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second
firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second
firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second
firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second
firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second
firstamp;#x2011;second firstamp;#x2011;second
/fo:block

and I get next result 

http://old.nabble.com/file/p34004367/%2523.png 

Why is '#' inserted?


Amick, Eric wrote:
 
 Hyphenation means adding a hyphen to text, so the hyphenate property won't
 help. Most likely your best bet is changing the hyphens in the text to
 non-breaking hyphens (Unicode U+2011), presumably in the style sheet if
 you're using one. If that doesn't work, you can try wrapping each word in
 an fo:inline with 
 keep-together.within-line=always.
 
 Eric Amick   Systems Engineer II
 Legislative Computer Systems
 
 -Original Message-
 From: SNawa [mailto:navat...@gmail.com]
 Sent: Tuesday, June 12, 2012 12:29
 To: fop-users@xmlgraphics.apache.org
 Subject: How to prevent hyphenation after hyphens?
 
 
 Hi all
 I have content with hyphens
 
 fo:block margin-right=120pt border-width=1pt border-color=black
 border-style=solid hyphenate=false
 first-second first-second first-second first-second first-
 second
 first-second first-second first-second first-second first-second
 first-second first-second first-second first-second first-second
 first-second first-second first-second first-second first-second
 first-second first-second first-second first-second first-second
 /fo:block
 
 Output looks like
 http://old.nabble.com/file/p34000343/hyphens.png
 
 How to prevent hyphenation after hyphens? I want that the first and
 second
 words stay in the same line
 
 Thanks
 --
 View this message in context: http://old.nabble.com/How-to-prevent-
 hyphenation-after-hyphens--tp34000343p34000343.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 
 -
 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
 
 
 
-- 
View this message in context: 
http://old.nabble.com/How-to-prevent-hyphenation-after-hyphens--tp34000343p34004367.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



How to prevent hyphenation after hyphens?

2012-06-12 Thread SNawa

Hi all
I have content with hyphens

fo:block margin-right=120pt border-width=1pt border-color=black
border-style=solid hyphenate=false
first-second first-second first-second first-second first-second
first-second first-second first-second first-second first-second
first-second first-second first-second first-second first-second
first-second first-second first-second first-second first-second
first-second first-second first-second first-second first-second
/fo:block

Output looks like
http://old.nabble.com/file/p34000343/hyphens.png 

How to prevent hyphenation after hyphens? I want that the first and second
words stay in the same line

Thanks
-- 
View this message in context: 
http://old.nabble.com/How-to-prevent-hyphenation-after-hyphens--tp34000343p34000343.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Auto reducing the letter spacing

2012-06-05 Thread SNawa

Could FOP reduce letter spacing automatically like XEP engine?


Pascal Sancho wrote:
 
 Hi,
 
 I see 2 options:
   - either play with letter-spacing (this is what Xep does),
   - or insert a ZWSP (#x200b;) where you want a break opportunity 
 (before each uppercase letter could be a good place for a method name).
 
 Le 04/06/2012 11:14, SNawa a écrit :
 Hi All I have table with some text. One of the words in that text is too
 long for table column. FOP output XEP renderer can fit a long word
 automatically by reducing letter spacing. Can FOP to do it? Attached zip
 contains input and output in PDF input_and_output.zip
 http://old.nabble.com/file/p33956645/input_and_output.zip
 
 -- 
 Pascal
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Auto-reducing-the-letter-spacing-tp33956645p33964571.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Auto reducing the letter spacing

2012-06-04 Thread SNawa

Hi All

I have table with some text. One of the words in that text is too long for
table column.
FOP output
http://old.nabble.com/file/p33956645/fop_output.png 

XEP renderer can fit a long word automatically by reducing letter spacing.

http://old.nabble.com/file/p33956645/xep_output.png 

Can FOP to do it?


Attached zip contains input and output in PDF
http://old.nabble.com/file/p33956645/input_and_output.zip
input_and_output.zip 
-- 
View this message in context: 
http://old.nabble.com/Auto-reducing-the-letter-spacing-tp33956645p33956645.html
Sent from the FOP - Users mailing list archive at Nabble.com.