Re: White space problem and text wrapping problem

2003-12-04 Thread J.Pietschmann
Abhijit Junnare wrote:
Problem1:
I am having problem with line feed/carriage return.
The line feeds from the souce xml are being converted
to a single white space automatically. I would like to
ignore these line feeds meaning convert these line
feeds to zero width space.
I know that using linefeed-treatment would solve my
problem. But as per the FOP compliance page
linefeed-treatment is not supported.
Is there any way to get around this problem.
You have to convert the LW to zero width space before feeding
it into FOP. If you generate the FO using XSLT, check the SR
templates in the XSL FAQ.
Problem 2:
I would like to keep some text on the sam eline. This
for example I have text string as FirstName LastName
and it appears somewhere in the source. Now if both
FirstName and LastName can fit in the same line I
would like to print them as such but if not then I
would like to print both FirstName and LastName
starting on the next line. I guess 
wrap-option property should help me with this. But I
am not able to get this to working. Am I missing
something here?
I don't think wrap-option would be appropriate. Anyway,
this can easily be solved by using a non-breaking space
instead of the normal space between the words.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: White space problem and text wrapping problem

2003-12-04 Thread Abhijit Junnare
Thanks much!
The wrapping problem is solved by using a non-breaking
space. Which FAP should I exactly look for the first
problem. COuld you send me the link pleas.e Will
really appreciate.
Thanks
Abhi

--- J.Pietschmann [EMAIL PROTECTED] wrote:
 Abhijit Junnare wrote:
  Problem1:
  I am having problem with line feed/carriage
 return.
  The line feeds from the souce xml are being
 converted
  to a single white space automatically. I would
 like to
  ignore these line feeds meaning convert these line
  feeds to zero width space.
  I know that using linefeed-treatment would solve
 my
  problem. But as per the FOP compliance page
  linefeed-treatment is not supported.
  Is there any way to get around this problem.
 
 You have to convert the LW to zero width space
 before feeding
 it into FOP. If you generate the FO using XSLT,
 check the SR
 templates in the XSL FAQ.
 
  Problem 2:
  I would like to keep some text on the sam eline.
 This
  for example I have text string as FirstName
 LastName
  and it appears somewhere in the source. Now if
 both
  FirstName and LastName can fit in the same line I
  would like to print them as such but if not then I
  would like to print both FirstName and LastName
  starting on the next line. I guess 
  wrap-option property should help me with this.
 But I
  am not able to get this to working. Am I missing
  something here?
 
 I don't think wrap-option would be appropriate.
 Anyway,
 this can easily be solved by using a non-breaking
 space
 instead of the normal space between the words.
 
 J.Pietschmann
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: White space problem and text wrapping problem

2003-12-04 Thread Abhijit Junnare
Got it!
Thanks for ur help :)
--- Abhijit Junnare [EMAIL PROTECTED] wrote:
 Thanks much!
 The wrapping problem is solved by using a
 non-breaking
 space. Which FAP should I exactly look for the first
 problem. COuld you send me the link pleas.e Will
 really appreciate.
 Thanks
 Abhi
 

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: White Space Treatment Problem

2003-06-13 Thread David Rosenstein

I ran the code and it came out with the result below.  this looks as though
it should.  when i view the pdf created by the fop it still has the indent
though.

-David Rosenstein
IMS Software

fo:block space-after.optimum=0pt start-indent=3cm font-size=9pt
white-space-collapse=false font-family=sans-serifBatch Size: 100

01 PPS #4762
02 SP.GR.- 0.8283
04 LB./GAL. - 6.899
06 %VOL. ALC.- 91.252
08 CONCENTRATE - 82%
10 PROPELLENT - 18%
12 PROPELLENT IS A-17 (100%)


* As Adjustment for Boil Loss, Suggest Adding:/fo:block


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 6:01 PM
To: [EMAIL PROTECTED]
Subject: Re: White Space Treatment Problem


David Rosenstein wrote:
 I am trying to preserve the white space in an fo:block  (or any
 other fo element).  If I use white-space-collapse=false it works almost
 beautifully, except that the first line of my text is indented by about 5
 letters.  I've put the code and output i get below.

While not obvious from you code, the whitespace must come from
somewhere. Run the XSL transformation standalone, see
  http://xml.apache.org/fop/running.html#check-input
and check whether there is unwanted space at the beginning of the
block.

J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: White Space Treatment Problem

2003-06-13 Thread Roland Neilands
This is your culprit:
start-indent=3cm

Cheers,
Roland

 fo:block space-after.optimum=0pt start-indent=3cm font-size=9pt
 white-space-collapse=false font-family=sans-serifBatch Size: 100

  I am trying to preserve the white space in an fo:block  (or any
  other fo element).  If I use white-space-collapse=false 
 it works almost
  beautifully, except that the first line of my text is 
 indented by about 5
  letters.  I've put the code and output i get below.
 
 While not obvious from you code, the whitespace must come from
 somewhere. Run the XSL transformation standalone, see
   http://xml.apache.org/fop/running.html#check-input
 and check whether there is unwanted space at the beginning of the
 block.
 
 J.Pietschmann
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: White Space Treatment Problem

2003-06-13 Thread David Rosenstein

Unfortunately that did not make the problem go away.  The start-indent is
what we used to create a 3cm margin down the left side of the page  (with
headers in the margin).  Even in blocks where i don't have this start-indent
attribute i still have an indent at the beginning of a preformatted block.

-David Rosenstein
IMS Software

-Original Message-
From: Roland Neilands [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:54 PM
To: [EMAIL PROTECTED]
Subject: RE: White Space Treatment Problem


This is your culprit:
start-indent=3cm

Cheers,
Roland

 fo:block space-after.optimum=0pt start-indent=3cm font-size=9pt
 white-space-collapse=false font-family=sans-serifBatch Size: 100

  I am trying to preserve the white space in an fo:block  (or any
  other fo element).  If I use white-space-collapse=false
 it works almost
  beautifully, except that the first line of my text is
 indented by about 5
  letters.  I've put the code and output i get below.
 
 While not obvious from you code, the whitespace must come from
 somewhere. Run the XSL transformation standalone, see
   http://xml.apache.org/fop/running.html#check-input
 and check whether there is unwanted space at the beginning of the
 block.

 J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: White Space Treatment Problem

2003-06-12 Thread J.Pietschmann
David Rosenstein wrote:
I am trying to preserve the white space in an fo:block  (or any
other fo element).  If I use white-space-collapse=false it works almost
beautifully, except that the first line of my text is indented by about 5
letters.  I've put the code and output i get below.
While not obvious from you code, the whitespace must come from
somewhere. Run the XSL transformation standalone, see
 http://xml.apache.org/fop/running.html#check-input
and check whether there is unwanted space at the beginning of the
block.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: White space problems with TXTRenderer

2003-06-07 Thread Jeremias Maerki
The TXT renderer is certainly not FOP's most sophisticated renderer and,
unfortunately, its developer is no longer active. Please read about the
text renderer here: http://xml.apache.org/fop/output.html#txt

I know there have been similar questions in the past. So please search
through the mailing list archives. I'm pretty sure you'll find some
useful information. Good luck.

On 07.06.2003 09:21:58 Mukul wrote:
 Hello ,
 I am using FOP 0.20.4 to produce TXT file from XML i/p
 document. By the posts I have read about FOP
 TXTRenderer, it seems it does not generate production
 quality TXT o/p.
 
 for e.g. when I write in XSL-FO as
 fo:block
 !--some text..   --
 /fo:block
 
 the TXT o/p generate extra spaces. The TXT o/p is also
 not consistent. For e.g. if my XML has many
 records(tags) , sometimes white spaces problems comes
 in for e.g. 8th record , sometimes white space problem
 comes in some other record.
 
 Is there a way to control the o/p behaviour
 predictably? I want that the TXT o/p should appear as
 equal to a PDF o/p. Ideally the same stylesheet must
 produce identical PDF and TXT o/p s. Is it possible! 



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: White space

2003-02-05 Thread J.Pietschmann
Sal Tarantola wrote:
As I said I know that the whole white-space issue has been tackled
before.
That's why there is a FAQ entry:
 http://xml.apache.org/fop/faq.html#faq-N10583
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: White space

2003-02-04 Thread Calero, Roberto
Title: RE: White space





An example below of what the pdf document renders as
Invoice... Date.. Cust... Inv amount
02010001 01-01-2002 8 282.10


:-P Would not be easier just to create a table with 4 columns 1 header and N-Rows?? Each cell can be assigned a particular format option: centered, aligned to left, right etc etc etc etc etc. 

Come on





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: White space

2003-02-04 Thread Sal Tarantola
Title: Message



Actually no

The 
stylesheet would be generic and just there for rendering all the pdf 
document. Predefined columns and row couldn't work as the stylesheet just 
handles preformatted data. All of the actual processing and formatting 
happens on a different server that is character based. This is just a go 
around to get a web presentation look from the system. 




-Original Message-From: Calero, 
Roberto [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 
04, 2003 5:31 PMTo: '[EMAIL PROTECTED]'Subject: RE: 
White spaceImportance: High

  An example below of what the pdf document renders 
  as Invoice... Date.. Cust... Inv 
  amount 02010001 01-01-2002 8 282.10 
  
  :-P Would not be easier just to create a table with 4 columns 
  1 header and N-Rows?? Each cell can be assigned a particular format option: 
  centered, aligned to left, right etc etc etc etc etc. 
  Come on 
  - To 
  unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
  commands, e-mail: [EMAIL PROTECTED]


RE: White space

2003-02-04 Thread Sal Tarantola
Thanks much.  Worked just as I would have expected it to work.

As I said I know that the whole white-space issue has been tackled
before.

-Original Message-
From: Roland Neilands [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 04, 2003 5:23 PM
To: [EMAIL PROTECTED]
Subject: RE: White space


Sal,

I need to take a string of formatted data from my xml database and 
present it.  I've played with white-space-collapse and changing the 
font around but it still does not present correctly so that all dots 
and spaces line up correctly from line to line.

 An example below of what the pdf document renders as
Invoice... Date.. Cust... Inv amount
02010001 01-01-2002 8 282.10

Use a fixed width font for these lines, eg: font-family=Courier

And to quote Oleg, from the last day or two, use all of these:
white-space-collapse=false 
linefeed-treatment=preserve white-space-treatment=preserve 

... formatted data from my xml database ...
What a strange idea. 

Cheers,
Roland.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: White space

2003-02-04 Thread Calero, Roberto
Title: Message



Ok, 
so... what is the point for using FOP then? You could just create a "formated" 
text file and then just simple put it in your website. Your stylesheet is not 
being generic, just simpler. 

  -Original Message-From: Sal Tarantola 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, February 05, 
  2003 9:47 AMTo: [EMAIL PROTECTED]Subject: RE: 
  White space
  Actually no
  
  The 
  stylesheet would be generic and just there for rendering all the pdf 
  document. Predefined columns and row couldn't work as the stylesheet 
  just handles preformatted data. All of the actual processing and 
  formatting happens on a different server that is character based. This 
  is just a go around to get a web presentation look from the system. 
  
  
  
  
  -Original Message-From: 
  Calero, Roberto [mailto:[EMAIL PROTECTED] Sent: 
  Tuesday, February 04, 2003 5:31 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: White 
  spaceImportance: High
  
An example below of what the pdf document renders 
as Invoice... Date.. Cust... Inv 
amount 02010001 01-01-2002 8 
282.10 
:-P Would not be easier just to create a table with 4 
columns 1 header and N-Rows?? Each cell can be assigned a particular format 
option: centered, aligned to left, right etc etc etc etc etc. 
Come on 
- To 
unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
commands, e-mail: 
[EMAIL PROTECTED]


RE: White space between table-rows. HOW?

2002-06-13 Thread Hahn Kurt (CHA)
I still haven't figured out how I can insert space between table-rows. I
would like to have a propert

-Message d'origine-
De : J.Pietschmann [mailto:[EMAIL PROTECTED]
Envoyé : jeudi, 6. juin 2002 01:09
À : [EMAIL PROTECTED]
Objet : Re: White space between table-rows. HOW?


Hahn Kurt (CHA) wrote:
 Below is a code sample from a table I'm displaying. I need to have some
 space between 2 rows, in order to separate them visually. I tried a number
 of things, especially the various padding-properties but also other
things,
 but no clue so far. The only thing that worked (a little, not really
well),
 was to add an empty row, or to fix the row-heigth, but that's not dynamic,
 so it isn't really that... 

You can use space-before=... on the elements each table
cell in the row following the space, like

  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell text-align=center number-columns-spanned=4
   fo:blockLe procès-verbal de la session du 24 et 25 janvier 2002
 est adopté.   /fo:block 
   /fo:table-cell
  /fo:table-row
  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell
fo:block space-before=30pt4/fo:block 
   /fo:table-cell
   fo:table-cell text-align=left number-columns-spanned=4
fo:block  space-before=30ptDISCUSSIONS ET APPROBATION DE
L'ORDRE DU JOUR/fo:block 
   /fo:table-cell
   /fo:table-row
  fo:table-row 

J.Pietschmann






RE: White space between table-rows. HOW?

2002-06-13 Thread vinod . nayak
this may help you..

fo:table-row .
fo:block color=whitespace/fo:block
fo:block color=whitespace/fo:block
/fo:table-row


-Original Message-
From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 13, 2002 1:14 PM
To: '[EMAIL PROTECTED]'
Subject: TR: White space between table-rows. HOW?


I still haven't figured out how I can insert space between table-rows. I
would like to have a property that applies on a table-row. The various
padding properties didn't seem to produce any effect, no matter what values
I gave. One temporary solution I'm using is to specify the height of the
row, but I need to achieve that dynamically, since not every table-row will
have the same height.

Thx

Kurt

-Message d'origine-
De : J.Pietschmann [mailto:[EMAIL PROTECTED]
Envoyé : jeudi, 6. juin 2002 01:09
À : [EMAIL PROTECTED]
Objet : Re: White space between table-rows. HOW?


Hahn Kurt (CHA) wrote:
 Below is a code sample from a table I'm displaying. I need to have some
 space between 2 rows, in order to separate them visually. I tried a number
 of things, especially the various padding-properties but also other
things,
 but no clue so far. The only thing that worked (a little, not really
well),
 was to add an empty row, or to fix the row-heigth, but that's not dynamic,
 so it isn't really that... 

You can use space-before=... on the elements each table
cell in the row following the space, like

  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell text-align=center number-columns-spanned=4
   fo:blockLe procès-verbal de la session du 24 et 25 janvier 2002
 est adopté.   /fo:block 
   /fo:table-cell
  /fo:table-row
  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell
fo:block space-before=30pt4/fo:block 
   /fo:table-cell
   fo:table-cell text-align=left number-columns-spanned=4
fo:block  space-before=30ptDISCUSSIONS ET APPROBATION DE
L'ORDRE DU JOUR/fo:block 
   /fo:table-cell
   /fo:table-row
  fo:table-row 

J.Pietschmann



This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended recipient
you should not disseminate,distribute,store,print, copy or deliver this
message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail
transmission cannot be guaranteed to be secure or error-free as information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a
hard-copy version.



RE: White space between table-rows. HOW?

2002-06-13 Thread Carter, Will
you could just add a spacer row between your dynamic rows...

fo:table-row
fo:table-cell
fo:block padding=5pt/fo:block
/fo:table-cell
fo:table-cell
fo:block padding=5pt/fo:block
/fo:table-cell
/fo:table-row

will

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, June 13, 2002 4:28 AM
To: [EMAIL PROTECTED]
Subject: RE: White space between table-rows. HOW?


this may help you..

fo:table-row .
fo:block color=whitespace/fo:block
fo:block color=whitespace/fo:block
/fo:table-row


-Original Message-
From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 13, 2002 1:14 PM
To: '[EMAIL PROTECTED]'
Subject: TR: White space between table-rows. HOW?


I still haven't figured out how I can insert space between table-rows. I
would like to have a property that applies on a table-row. The various
padding properties didn't seem to produce any effect, no matter what values
I gave. One temporary solution I'm using is to specify the height of the
row, but I need to achieve that dynamically, since not every table-row will
have the same height.

Thx

Kurt

-Message d'origine-
De : J.Pietschmann [mailto:[EMAIL PROTECTED]
Envoyé : jeudi, 6. juin 2002 01:09
À : [EMAIL PROTECTED]
Objet : Re: White space between table-rows. HOW?


Hahn Kurt (CHA) wrote:
 Below is a code sample from a table I'm displaying. I need to have some
 space between 2 rows, in order to separate them visually. I tried a number
 of things, especially the various padding-properties but also other
things,
 but no clue so far. The only thing that worked (a little, not really
well),
 was to add an empty row, or to fix the row-heigth, but that's not dynamic,
 so it isn't really that... 

You can use space-before=... on the elements each table
cell in the row following the space, like

  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell text-align=center number-columns-spanned=4
   fo:blockLe procès-verbal de la session du 24 et 25 janvier 2002
 est adopté.   /fo:block 
   /fo:table-cell
  /fo:table-row
  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell
fo:block space-before=30pt4/fo:block 
   /fo:table-cell
   fo:table-cell text-align=left number-columns-spanned=4
fo:block  space-before=30ptDISCUSSIONS ET APPROBATION DE
L'ORDRE DU JOUR/fo:block 
   /fo:table-cell
   /fo:table-row
  fo:table-row 

J.Pietschmann



This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended recipient
you should not disseminate,distribute,store,print, copy or deliver this
message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail
transmission cannot be guaranteed to be secure or error-free as information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a
hard-copy version.



Re: White space between table-rows. HOW?

2002-06-06 Thread J.Pietschmann
Hahn Kurt (CHA) wrote:
Below is a code sample from a table I'm displaying. I need to have some
space between 2 rows, in order to separate them visually. I tried a number
of things, especially the various padding-properties but also other things,
but no clue so far. The only thing that worked (a little, not really well),
was to add an empty row, or to fix the row-heigth, but that's not dynamic,
so it isn't really that... 
You can use space-before=... on the elements each table
cell in the row following the space, like
 fo:table-row height=35pt font-weight=bold font-size=12pt
 	fo:table-cell text-align=center number-columns-spanned=4
  	fo:blockLe procès-verbal de la session du 24 et 25 janvier 2002
est adopté.	/fo:block 
  /fo:table-cell
 /fo:table-row
 fo:table-row height=35pt font-weight=bold font-size=12pt
 	fo:table-cell
 	 fo:block space-before=30pt4/fo:block 
  	/fo:table-cell
 	fo:table-cell text-align=left number-columns-spanned=4
 	 fo:block  space-before=30ptDISCUSSIONS ET APPROBATION DE L'ORDRE DU JOUR/fo:block 
  	/fo:table-cell
  /fo:table-row
 fo:table-row 
J.Pietschmann