Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
Oh, great. I just realized we all failed to see the obvious:

Onur, you're trying to create a font metrics XML file from a TrueType
font (.ttf) but you're calling the PFMReader to do that. You need to use
the TTFReader! PFMReader is for the .pfm files of a Type 1 font.

On 31.08.2006 18:16:34 Onur Senturk wrote:
 I looked at the FOP website and tried to figure things out. The first thing
 i tried was to generate an xml file from a true type font(times new roman).
 But i couldn't. How am i supposed to generate it?
 
 i coded something like this first:
 
 PFMReader df = *new* PFMReader();
 
 
 df.constructFontXML(df.loadPFM
 (c:\\times.ttf),TimesNewRoman,,,c:\\times.xml);


snip/


Jeremias Maerki


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



Re: font not found in 0.92beta from ant

2006-09-10 Thread Jeremias Maerki
It looks like you're migrating from 0.20.5 to 0.92beta. Please make sure
you also update the format of your configuration file which contains the
font configuration. The configuration format has changed quite a bit.
Please read the documentation and look into the sample conf/fop.xconf
file for a starting point.

Please don't reuse ancient threads, especially if you're not sure we're
talking about the same issue which in this case seems to happen. The
thread you hijacked was primarily about Ant integration.

On 05.09.2006 16:33:26 Naveen Bandhu wrote:
 
  Hi, 
  
  I am using FOP from trunk, but still the warning 
  
  fop.fonts.FontInfo (FontInfo.java:260) - Font 'Frutiger,normal,400' not
  found. Substituting with 'any,normal,400'.
  
  My implementation
  
   
  fopFactory.setUserConfig(StringUtils.urlToString(userConfigUrl));
   
  fopFactory.setFontBaseURL(StringUtils.urlToString(fontBaseUrl));
ua = fopFactory.newFOUserAgent();
  //ua.setURIResolver(new FOURIResolver() {
  //  public Source resolve(String href, String base) throws
  TransformerException {
  //  File f=new File(base,href);
  //  return new StreamSource(f);   
  //  }  
  //  });
  if (baseUrl != null) {
ua.setBaseURL(StringUtils.urlToString(baseUrl));
// Configuration.put(baseDir,
  StringUtils.urlToString(baseUrl));
  }
  //
  //Configuration.dumpConfiguration();
   
  ByteArrayOutputStream byteArrayOut = null;
  try {


  byteArrayOut = new ByteArrayOutputStream();
  //driver.setOutputStream( byteArrayOut );
  
 Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, ua,
  byteArrayOut);
  
  // Setup JAXP using identity transformer
  TransformerFactory factory = TransformerFactory.newInstance();
  Transformer transformer = factory.newTransformer(); //
  identity transformer
  
  // Setup input stream
  Source src;
  if (xmlfoDoc != null) {
  src = new DOMSource( xmlfoDoc );
  } else {
  //encode the euro character becuase the fop rderer doesn't
  support the iso euro-character
  String euroEncodedString =
  xmlfoString.replaceAll(String.valueOf((char)128),#x20AC;);
  src = new StreamSource( new
  StringInputStream(euroEncodedString));
  }
  
Result res = new SAXResult(fop.getDefaultHandler());
  
  // Start XSLT transformation and FOP processing
  transformer.transform(src, res);
  
  Am i doing anything wrong ?
snip/

Jeremias Maerki


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



Re: PDF7 Problem

2006-09-10 Thread Jeremias Maerki
First, there's no FOP 2.0. You probably meant 0.20.5. Second, I don't
know what we can do for you if Adobe changes something in their software.
You'd better ask their support. Maybe you find something about this in
their changelog if they have one.

On 07.09.2006 10:21:38 pavithra atrangada wrote:
 Hello
 
 I am using FOP 2.0 and until recently it was working correctly with Adobe 6
 for saving the PDF with the filename equals to XML file name
 
 We migrated to PDF 7 now the filename defaults to Servlet name.
 
 Could anybody help me out.
 
 Thanks
 Pavithra



Jeremias Maerki


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



Re: formatting tables

2006-09-10 Thread Jeremias Maerki
As Pascal already hinted, you'll have to use 
background-color=from-table-column()
on each table-cell to apply the background color of a table-column to
each cell of that column. Note that according to the specification
table-column does not generate or return any areas. It holds a set of
traits that provide constraints on the column widths and a specification
of some presentation characteristics, such as background which affects
the areas generated by the fo:table (see § 6.7.3 – fo:table on page 127).
Inheritable properties may also be specified on the fo:table-column.
These can be referenced by the from-table-column() function in an
expression.

Following the link to 6.7.3, fo:table would have to produce the
background for a table-column, but that's not implemented, yet, although
the compliance page suggests so (probably my fault, I'll correct that).
So for now, you'll have to use the from-table-column() work-around.

On 08.09.2006 09:08:21 paul wrote:
 I haven't had much time to investigate further, but I noticed that setting the
 background-color attribute of a row like this
 
 fo:table-row background-color=blue
 
 does work, (table-layout=fixed). 
 
 
 Coloring entire columns doesn't seem to work the same way.
 
 fo:table-column column-number=1 column-width=20% 
 background-color=blue/


Jeremias Maerki


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



Re: trouble positionning an image on the top of my document

2006-09-10 Thread Dirk Bromberg

Hi,

try to set font-size=0pt at the fo:block where the image is in.

Dirk


Olivier Mansour schrieb:

Hello

I have a problem with fop 0.92. I try to set a picture on the top left 
of the page.
It's obvious but I have a little white space on the top of the PDF 
doc. Here the fo file and the pdf given


An idea ?

Thank you !



-
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: outputting TIFF-G images

2006-09-10 Thread Jeremias Maerki
There's a configuration value you can set to modify the compression used
but it's poorly designed (requiring an integer value) and undocumented.
Furthermore, it does not support setting CCITT-G4 compression.
Generating monochrome (1bit) images has also not been implemented, yet.

To implement all this, changes would have to be made in:
- Java2DRenderer.getPageImage(): Extract code into a protected method to
instantiate the BufferedImage that we paint on. Right now, it always
allocates an 24 bit RGB image with an 8-bit alpha channel.
- TIFFRenderer.LazyPageImagesIterator.next(): Code to handle 1bit images.
- TIFFRenderer.configure(): provide better configuration using names for
compression methods.
- Override the new protected method described above to create the
Buffered image depending on the configuration.

If you don't want to hack FOP code, the work-around is to convert the
generated TIFF file after generation to CCITT format somehow. Obvious,
isn't it? :-)

On 08.09.2006 11:04:22 Oliver Hernàndez Valls wrote:
 Hi all,
   I'm working with fop to generate MTIFF text images. At the moment i'm 
 using fop-trunk because no justification functionality is working in fop 
 0.92 for tiffs.
   Right now I've all the functionality to generate parametrized text 
 images implemented. By default fop uses packbits compression and colored 
 image coding.
   I'd like to change the tiff coding to TIFF-G because generated images 
 with the default tiff coding are very big (around 9000 kB) and 
 coloration is not needed for the images I'm generating.
   I'm using the new FOUserAgent parameter setTargetResolution(int), but 
 I can't see any way to change the default encoding for tiff images.
   Some time ago I readed this somewhere in the source code: //TODO 
 Support output of monochrome bitmaps (fax-style), but don't know if it 
 has something to do with changing tiff coding.
 
   Any hint/workarround/documentation please?
 
 Thanks a lot, salut / cheers !


Jeremias Maerki


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



Re: No element mapping found

2006-09-10 Thread Jeremias Maerki
This may hint at a multi-threading issue we've solved some time ago.
Please get the latest source code of FOP from Subversion (FOP Trunk) and
see if the situation improves.

On 08.09.2006 11:42:46 flyingscot wrote:
 
 Hi!
 
 I have a strange problem: My java software uses embedded FOP. Sometimes the
 rendering process comes to an exception: 
 org.apache.fop.apps.FOPException: Error (0/0): No element mapping definition
 found for fo:root
 
 The strange thing is: this problem only occure under Windows XP, under Linux
 everything is perfect.
 Moreover this problem exists not all the time: e.g. last two weeks everthing
 was ok under Windows, but today the error occures all the time.
 
 The exception sometimes differes a bit: the element is e.g.
 fo:layout-master-set or fo:flow and so on, and sometime Java completely
 freezes...
 
 I have no idea anymore...
 
 CU Immo!



Jeremias Maerki


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



Re: Wrapping long character strings

2006-09-10 Thread Jeremias Maerki
I'd have to look up whether according to UAX#14/TR14 we would be allowed
to break between two * characters in the first place. Not that FOP
already implements the full rule set, yet! At any rate, I'd try to
insert a zero-width space (#x200B;) after each * character to allow
for breaks in between. Maybe that helps.

On 09.09.2006 04:43:02 Wyatt Tellis wrote:
 I'm building a medical report printing application and I'm having 
 trouble forcing long characters strings (not really words) to wrap. FOP 
 gives the error: Line 1 of a paragraph overflows the available area. 
 (fo:block...  For example I may have a series of 80 '*' characters. I 
 would like to have that string wrap to 2 lines instead of  continuing 
 over the edge of the page.  Per the wiki 
 (http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessages), 
 I've tried using the wrap-option and overflow attributes to get the 
 strings to wrap with no luck. Hyphenation doesn't work either. I'm using 
 0.92.beta. Is there a way to get this to work in FOP?



Jeremias Maerki


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



fopFactory setFontBaseURL

2006-09-10 Thread Shue-Yen Tsai
Hi:

I embed FOP 0.92 to my program. I can't get the font
to work. I put the 

fopFactory.setFontBaseURL(file:///C:/fonts);

in the program and put my ttf files, metric files
under the folder c:/fonts. I still got error on
finding fonts. Do I have to create userconfig.xml in
this folder or something else?

Sam

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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Manuel Mall
On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote:
 Hi:

 I embed FOP 0.92 to my program. I can't get the font
 to work. I put the

 fopFactory.setFontBaseURL(file:///C:/fonts);

Sam

please try 
fopFactory.setFontBaseURL(file:///C:/fonts/);
and check if that fixes it.

Manuel

 in the program and put my ttf files, metric files
 under the folder c:/fonts. I still got error on
 finding fonts. Do I have to create userconfig.xml in
 this folder or something else?

 Sam


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



Re: NullPointerException while printing

2006-09-10 Thread Jeremias Maerki
That seems to be a bug in ExampleFO2OldStylePrint.java. If you
instantiate the Renderer yourself, you also have to set the user agent.
See additional line below. Sorry for the trouble.

On 06.09.2006 10:52:43 flyingscot wrote:
 
 Hello!
 
 I have some problems embedding FOP 0.92b with an overridden Print-Renderer,
 similar to the  ExampleFO2OldStylePrint.java example.
 
 Her is my simplified sourcecode:
 
 class printFO
 {
 public static void main(String[] args)
 {
   try {
   PrinterJob printerJob = PrinterJob.getPrinterJob();
   PrintRenderer p_renderer = new PrintRenderer(printerJob);
   
   FopFactory fopFactory = FopFactory.newInstance();
   FOUserAgent foUserAgent= fopFactory.newFOUserAgent();
 
   foUserAgent.setRendererOverride(p_renderer);

p_renderer.setUserAgent(foUserAgent);



   Fop fop= fopFactory.newFop(MimeConstants.MIME_FOP_PRINT, 
 foUserAgent,
 null);
   File sourcefile=new File(args[0]);
   String baseURL = null;
   
   baseURL = new File(sourcefile.getAbsolutePath()).
   getParentFile().toURL().toExternalForm();
   
   foUserAgent.setBaseURL(baseURL);
 
   Result res = new SAXResult(fop.getDefaultHandler());
 
 TransformerFactory factory = TransformerFactory.newInstance();
 Transformer transformer;
 
   transformer = factory.newTransformer();
 
 // Create a SAXSource from the input Source file
 Source src = new StreamSource(sourcefile);
 
 // Start XSLT transformation and FOP processing
 transformer.transform(src, res);
   } catch (Exception e) {
   e.printStackTrace();
   }   
 }
 }

snip/

 PS.: My main point is to direct the printer output to a special printer and
 a special tray, so I need this PrinterJob instance. If you have an
 alternative way to do so: please drop me a note!

Well, a better way would be support for the Java Printing System (JPS,
available since J2SE 1.4). If you can make it work with the hint above,
good. Otherwise, someone has to implement support for JPS first. It's
on my personal list but I don't have much fun time left lately.


Jeremias Maerki


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai

Thanks. I tried but still not working. 
Other than the TTF and Metric file what else should be in the folder to make
it working?



Manuel Mall-2 wrote:
 
 On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote:
 Hi:

 I embed FOP 0.92 to my program. I can't get the font
 to work. I put the

 fopFactory.setFontBaseURL(file:///C:/fonts);
 
 Sam
 
 please try 
   fopFactory.setFontBaseURL(file:///C:/fonts/);
 and check if that fixes it.
 
 Manuel

 in the program and put my ttf files, metric files
 under the folder c:/fonts. I still got error on
 finding fonts. Do I have to create userconfig.xml in
 this folder or something else?

 Sam

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

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233141
Sent from the FOP - Users forum at Nabble.com.


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



Re: Turkish character support

2006-09-10 Thread Onur Senturk
I did try that too. I converted the ttf file to xml but, what do i have to do next? i copied the xml file to the conf directory, but nothing seemed to have changed.
On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
Oh, great. I just realized we all failed to see the obvious:Onur, you're trying to create a font metrics XML file from a TrueType
font (.ttf) but you're calling the PFMReader to do that. You need to usethe TTFReader! PFMReader is for the .pfm files of a Type 1 font.On 31.08.2006 18:16:34 Onur Senturk wrote: I looked at the FOP website and tried to figure things out. The first thing
 i tried was to generate an xml file from a true type font(times new roman). But i couldn't. How am i supposed to generate it? i coded something like this first: PFMReader df = *new* PFMReader();
 df.constructFontXML(df.loadPFM (c:\\times.ttf),TimesNewRoman,,,c:\\times.xml); snip/
Jeremias Maerki-To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]-- Onur Şentürk 


Re: fopFactory setFontBaseURL

2006-09-10 Thread Manuel Mall
On Sunday 10 September 2006 19:58, Sam Tsai wrote:
 Thanks. I tried but still not working.
 Other than the TTF and Metric file what else should be in the folder
 to make it working?

What is the exact error message(s) FOP is producing?

Does that give any clue about what might be wrong?

Manuel

 Manuel Mall-2 wrote:
  On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote:
  Hi:
 
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the
 
  fopFactory.setFontBaseURL(file:///C:/fonts);
 
  Sam
 
  please try
  fopFactory.setFontBaseURL(file:///C:/fonts/);
  and check if that fixes it.
 
  Manuel
 
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
 
  Sam
 
  ---
 -- 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: trouble positionning an image on the top of my document

2006-09-10 Thread Olivier Mansour


Le 10 sept. 06 à 12:45, Dirk Bromberg a écrit :


Hi,

try to set font-size=0pt at the fo:block where the image is in.


it works thank you !



Dirk


Olivier Mansour schrieb:

Hello

I have a problem with fop 0.92. I try to set a picture on the top  
left of the page.
It's obvious but I have a little white space on the top of the PDF  
doc. Here the fo file and the pdf given


An idea ?

Thank you !

- 
---


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



-
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: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai

Manuel:

The message is I got from log4J

Font 'Arial,normal,400' not found. Substituting with default font. I also
attached the Arial.xml metric file. 

Sam

http://www.nabble.com/user-files/235939/Arial.xml Arial.xml 

Manuel Mall-2 wrote:
 
 On Sunday 10 September 2006 19:58, Sam Tsai wrote:
 Thanks. I tried but still not working.
 Other than the TTF and Metric file what else should be in the folder
 to make it working?
 
 What is the exact error message(s) FOP is producing?
 
 Does that give any clue about what might be wrong?
 
 Manuel

 Manuel Mall-2 wrote:
  On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote:
  Hi:
 
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the
 
  fopFactory.setFontBaseURL(file:///C:/fonts);
 
  Sam
 
  please try
 fopFactory.setFontBaseURL(file:///C:/fonts/);
  and check if that fixes it.
 
  Manuel
 
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
 
  Sam
 
  ---
 -- 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233269
Sent from the FOP - Users forum at Nabble.com.


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai

I put this line:

fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));

and the config file content is:

?xml version=1.0 encoding=UTF-8?

!-- New document created at Sun Sep 10 05:56:26 CDT 2006 --

configuration
font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
embed-url=file:///C:/fonts/Arial/arial.ttf
  font-triplet name=Arial style=normal weight=normal/
  font-triplet name=ArialMT style=normal weight=normal/
/font 
/configuration


Sam


Jeremias Maerki-2 wrote:
 
 Just a hunch:
 Make sure you call setFontBaseURL() after you specify a userconfig.xml 
 (if any) and before you create an FOUserAgent or a Fop instance.
 
 On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
 Hi:
 
 I embed FOP 0.92 to my program. I can't get the font
 to work. I put the 
 
 fopFactory.setFontBaseURL(file:///C:/fonts);
 
 in the program and put my ttf files, metric files
 under the folder c:/fonts. I still got error on
 finding fonts. Do I have to create userconfig.xml in
 this folder or something else?
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233414
Sent from the FOP - Users forum at Nabble.com.


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Jeremias Maerki
That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta,
so you have to use that configuration layout. It has changed since
0.20.5. Please take conf/fop.xconf as a template!

See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html

On 10.09.2006 14:34:42 Sam Tsai wrote:
 
 I put this line:
 
 fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));
 
 and the config file content is:
 
 ?xml version=1.0 encoding=UTF-8?
 
 !-- New document created at Sun Sep 10 05:56:26 CDT 2006 --
 
 configuration
   font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
 embed-url=file:///C:/fonts/Arial/arial.ttf
   font-triplet name=Arial style=normal weight=normal/
   font-triplet name=ArialMT style=normal weight=normal/
 /font   
 /configuration
 
 
 Sam
 
 
 Jeremias Maerki-2 wrote:
  
  Just a hunch:
  Make sure you call setFontBaseURL() after you specify a userconfig.xml 
  (if any) and before you create an FOUserAgent or a Fop instance.
  
  On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
  Hi:
  
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the 
  
  fopFactory.setFontBaseURL(file:///C:/fonts);
  
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
  
  
  Jeremias Maerki


Jeremias Maerki


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai


Thanks a lot.

I got it working. You are right. I copied the configuration file came with
0.92beta and modify the font entry. Now it worked well.

Sam

Jeremias Maerki-2 wrote:
 
 That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta,
 so you have to use that configuration layout. It has changed since
 0.20.5. Please take conf/fop.xconf as a template!
 
 See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html
 
 On 10.09.2006 14:34:42 Sam Tsai wrote:
 
 I put this line:
 
 fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));
 
 and the config file content is:
 
 ?xml version=1.0 encoding=UTF-8?
 
 !-- New document created at Sun Sep 10 05:56:26 CDT 2006 --
 
 configuration
  font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
 embed-url=file:///C:/fonts/Arial/arial.ttf
   font-triplet name=Arial style=normal weight=normal/
   font-triplet name=ArialMT style=normal weight=normal/
 /font  
 /configuration
 
 
 Sam
 
 
 Jeremias Maerki-2 wrote:
  
  Just a hunch:
  Make sure you call setFontBaseURL() after you specify a userconfig.xml 
  (if any) and before you create an FOUserAgent or a Fop instance.
  
  On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
  Hi:
  
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the 
  
  fopFactory.setFontBaseURL(file:///C:/fonts);
  
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
  
  
  Jeremias Maerki
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233515
Sent from the FOP - Users forum at Nabble.com.


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai

Jeremias:

I have an additional question 

So the setFontURL alone won't do the job. You still need the confiuration
file. Is this correct statement?

Sam


Jeremias Maerki-2 wrote:
 
 That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta,
 so you have to use that configuration layout. It has changed since
 0.20.5. Please take conf/fop.xconf as a template!
 
 See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html
 
 On 10.09.2006 14:34:42 Sam Tsai wrote:
 
 I put this line:
 
 fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));
 
 and the config file content is:
 
 ?xml version=1.0 encoding=UTF-8?
 
 !-- New document created at Sun Sep 10 05:56:26 CDT 2006 --
 
 configuration
  font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
 embed-url=file:///C:/fonts/Arial/arial.ttf
   font-triplet name=Arial style=normal weight=normal/
   font-triplet name=ArialMT style=normal weight=normal/
 /font  
 /configuration
 
 
 Sam
 
 
 Jeremias Maerki-2 wrote:
  
  Just a hunch:
  Make sure you call setFontBaseURL() after you specify a userconfig.xml 
  (if any) and before you create an FOUserAgent or a Fop instance.
  
  On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
  Hi:
  
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the 
  
  fopFactory.setFontBaseURL(file:///C:/fonts);
  
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
  
  
  Jeremias Maerki
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233526
Sent from the FOP - Users forum at Nabble.com.


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Jeremias Maerki
setFontBaseURL() alone won't configure all fonts. This base URL is only
used to resolve relative URLs used in the font configuration. Something
is in the works to change the whole font subsystem of FOP. When that
comes we may have a system where you can simply specify a number of
directories and all fonts found there will automatically be used without
the need to run PFMReader or TTFReader. But that lies in the future.

On 10.09.2006 14:49:39 Sam Tsai wrote:
 
 Jeremias:
 
 I have an additional question 
 
 So the setFontURL alone won't do the job. You still need the confiuration
 file. Is this correct statement?
 
 Sam
 
 
 Jeremias Maerki-2 wrote:
  
  That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta,
  so you have to use that configuration layout. It has changed since
  0.20.5. Please take conf/fop.xconf as a template!
  
  See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html
  
  On 10.09.2006 14:34:42 Sam Tsai wrote:
  
  I put this line:
  
  fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));
  
  and the config file content is:
  
  ?xml version=1.0 encoding=UTF-8?
  
  !-- New document created at Sun Sep 10 05:56:26 CDT 2006 --
  
  configuration
 font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
  embed-url=file:///C:/fonts/Arial/arial.ttf
font-triplet name=Arial style=normal weight=normal/
font-triplet name=ArialMT style=normal weight=normal/
  /font
  /configuration
  
  
  Sam
  
  
  Jeremias Maerki-2 wrote:
   
   Just a hunch:
   Make sure you call setFontBaseURL() after you specify a userconfig.xml 
   (if any) and before you create an FOUserAgent or a Fop instance.
   
   On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
   Hi:
   
   I embed FOP 0.92 to my program. I can't get the font
   to work. I put the 
   
   fopFactory.setFontBaseURL(file:///C:/fonts);
   
   in the program and put my ttf files, metric files
   under the folder c:/fonts. I still got error on
   finding fonts. Do I have to create userconfig.xml in
   this folder or something else?


Jeremias Maerki


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



Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
If you're starting FOP from the command-line, yes.

If you embed FOP in a Java application, see: 
http://xmlgraphics.apache.org/fop/0.92/embedding.html#config-external

On 10.09.2006 14:24:18 Onur Senturk wrote:
 How do i make sure fop uses the configuration file?
 I'm using these arguments -c userconfig.xml is this correct?
 
 
 On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
 
  The next step in the documentation [1]: Register the fonts with FOP by
  adjusting the user configuration file. Use the conf/fop.xconf as a
  template.
 
  [1] http://xmlgraphics.apache.org/fop/0.92/fonts.html#register
 
  The whole process in short steps:
  1. Create a XML font metrics file (use TTFReader for a TTF file)
  2. Register the XML font metrics file and the TTF font in the user
  configuration file.
  3. Make sure FOP uses the user configuration file.
 
  On 10.09.2006 14:05:03 Onur Senturk wrote:
   I did try that too. I converted the ttf file to xml but, what do i have
  to
   do next? i copied the xml file to the conf directory, but nothing seemed
  to
   have changed.
  
   On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
   
Oh, great. I just realized we all failed to see the obvious:
   
Onur, you're trying to create a font metrics XML file from a TrueType
font (.ttf) but you're calling the PFMReader to do that. You need to
  use
the TTFReader! PFMReader is for the .pfm files of a Type 1 font.
   
On 31.08.2006 18:16:34 Onur Senturk wrote:
 I looked at the FOP website and tried to figure things out. The
  first
thing
 i tried was to generate an xml file from a true type font(times new
roman).
 But i couldn't. How am i supposed to generate it?

 i coded something like this first:

 PFMReader df = *new* PFMReader();


 df.constructFontXML(df.loadPFM
 (c:\\times.ttf),TimesNewRoman,,,c:\\times.xml);
   
   
snip/
 


Jeremias Maerki


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



Re: Turkish character support

2006-09-10 Thread Onur Senturk
by the way, which version do you suggest me to use? 0.92beta or 0.20.5
i'm currently using 20.5
On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
If you're starting FOP from the command-line, yes.If you embed FOP in a Java application, see: 
http://xmlgraphics.apache.org/fop/0.92/embedding.html#config-externalOn 10.09.2006 14:24:18 Onur Senturk wrote: How do i make sure fop uses the configuration file? I'm using these arguments -c 
userconfig.xml is this correct? On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:   The next step in the documentation [1]: Register the fonts with FOP by
  adjusting the user configuration file. Use the conf/fop.xconf as a  template.   [1] http://xmlgraphics.apache.org/fop/0.92/fonts.html#register
   The whole process in short steps:  1. Create a XML font metrics file (use TTFReader for a TTF file)  2. Register the XML font metrics file and the TTF font in the user
  configuration file.  3. Make sure FOP uses the user configuration file.   On 10.09.2006 14:05:03 Onur Senturk wrote:   I did try that too. I converted the ttf file to xml but, what do i have
  to   do next? i copied the xml file to the conf directory, but nothing seemed  to   have changed. On 9/10/06, Jeremias Maerki 
[EMAIL PROTECTED] wrote:   Oh, great. I just realized we all failed to see the obvious:   Onur, you're trying to create a font metrics XML file from a TrueType
font (.ttf) but you're calling the PFMReader to do that. You need to  usethe TTFReader! PFMReader is for the .pfm files of a Type 1 font.   
On 31.08.2006 18:16:34 Onur Senturk wrote: I looked at the FOP website and tried to figure things out. The  firstthing i tried was to generate an xml file from a true type font(times new
roman). But i couldn't. How am i supposed to generate it? i coded something like this first:
 PFMReader df = *new* PFMReader(); df.constructFontXML(df.loadPFM (c:\\times.ttf),TimesNewRoman,,,c:\\times.xml);
      snip/ Jeremias Maerki-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]-- Onur Şentürk 


Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
0.92beta, of course.

On 10.09.2006 16:03:07 Onur Senturk wrote:
 by the way, which version do you suggest me to use? 0.92beta or 0.20.5
 i'm currently using 20.5


Jeremias Maerki


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



Re: Turkish character support

2006-09-10 Thread Onur Senturk
ok, now i'm trying to do the things you told me, on this version. thanks :)
On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
0.92beta, of course.On 10.09.2006 16:03:07 Onur Senturk wrote: by the way, which version do you suggest me to use? 
0.92beta or 0.20.5 i'm currently using 20.5Jeremias Maerki-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- Onur Şentürk 


Re: Wrapping long character strings

2006-09-10 Thread Wyatt Tellis
The asterisks are only one example. What about other character strings? 
Unfortunately I have no control over what data is put in the report, but 
I have to make sure that all characters are presented to the reader. I 
can implement the (#x200B;) workaround, but would prefer a FO only 
solution. Is there some value of either the overflow or wrap-option 
attributes that might help with this situation? I'm trying to emulate 
the behavior of apps such as MS Word or Notepad that do the line 
wrapping automatically (I really don't want hyphenation because these 
are not true English words).


-Wyatt

Jeremias Maerki wrote:

I'd have to look up whether according to UAX#14/TR14 we would be allowed
to break between two * characters in the first place. Not that FOP
already implements the full rule set, yet! At any rate, I'd try to
insert a zero-width space (#x200B;) after each * character to allow
for breaks in between. Maybe that helps.

On 09.09.2006 04:43:02 Wyatt Tellis wrote:
I'm building a medical report printing application and I'm having 
trouble forcing long characters strings (not really words) to wrap. FOP 
gives the error: Line 1 of a paragraph overflows the available area. 
(fo:block...  For example I may have a series of 80 '*' characters. I 
would like to have that string wrap to 2 lines instead of  continuing 
over the edge of the page.  Per the wiki 
(http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessages), 
I've tried using the wrap-option and overflow attributes to get the 
strings to wrap with no luck. Hyphenation doesn't work either. I'm using 
0.92.beta. Is there a way to get this to work in FOP?




Jeremias Maerki


-
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: Turkish character support

2006-09-10 Thread Onur Senturk
There is still something wrong. The special characters still appear as #what should i do?On 9/10/06, Onur Senturk 
[EMAIL PROTECTED] wrote:ok, now i'm trying to do the things you told me, on this version. thanks :)

On 9/10/06, Jeremias Maerki 
[EMAIL PROTECTED] wrote:
0.92beta, of course.On 
10.09.2006 16:03:07 Onur Senturk wrote: by the way, which version do you suggest me to use? 
0.92beta or 0.20.5 i'm currently using 20.5Jeremias Maerki-To unsubscribe, e-mail: 

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

-- Onur Şentürk 
-- Onur Şentürk


Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
As I suspected, your copy/paste garbled the file. I didn't get the right
characters.

Anyway, with your attached file the base 14 fonts included in FOP don't
work but Arial and Verdana work. So, if you generate the font metrics
file for one of those fonts and configure it with FOP, it works. As I
said it's just a matter of choosing a font which contains the missing
characters.

On 10.09.2006 18:22:32 Onur Senturk wrote:
 So you mean, I can use the Arial fonts with no problems, right?
 I'll attach the xml right away.
 
 
 On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
 
  Hmm, that document renders just fine with the Base14 serif font. Also
  fonts like Arial or Verdana will come out just fine. Given the fact that
  you've pasted the file into an ISO-8859-9 encoded mail with an UTF-8
  header leaves me with an uncertainty if I'm really displaying the right
  characters. You should usually attach XML files to a mail, not
  copy/paste them to avoid any nasty side-effects.
snip/

Jeremias Maerki


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



Re: Turkish character support

2006-09-10 Thread Onur Senturk
Did you have the opportunity to try it with arial?
The thing is that I have to generate the pdf with Times new roman fonts.
On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
As I suspected, your copy/paste garbled the file. I didn't get the rightcharacters.Anyway, with your attached file the base 14 fonts included in FOP don't
work but Arial and Verdana work. So, if you generate the font metricsfile for one of those fonts and configure it with FOP, it works. As Isaid it's just a matter of choosing a font which contains the missing
characters.On 10.09.2006 18:22:32 Onur Senturk wrote: So you mean, I can use the Arial fonts with no problems, right? I'll attach the xml right away. On 9/10/06, Jeremias Maerki 
[EMAIL PROTECTED] wrote:   Hmm, that document renders just fine with the Base14 serif font. Also  fonts like Arial or Verdana will come out just fine. Given the fact that
  you've pasted the file into an ISO-8859-9 encoded mail with an UTF-8  header leaves me with an uncertainty if I'm really displaying the right  characters. You should usually attach XML files to a mail, not
  copy/paste them to avoid any nasty side-effects.snip/Jeremias Maerki-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- Onur Şentürk 


Re: Png output and transparent background

2006-09-10 Thread Jeremias Maerki
As an RFE, entering this in bugzilla would have been a valid approach,
yes. But I've already done the necessary change in FOP Trunk:
http://svn.apache.org/viewvc?view=revrev=441965

It was easy enough. For you this means, you should add the config
setting below to your FOP configuration file:

cfg
  !-- snipped --
  renderer mime=image/png
transparent-page-backgroundtrue/transparent-page-background
fonts!-- described elsewhere --/fonts
  /renderer
  !-- snipped --
cfg

Let me know if it works.

On 07.09.2006 21:55:35 Peter wrote:
 Gentlepeople,
  
 I am considering entering this in bugzilla. 
  
 Just to make sure: would that be the correct approach?
  
 Thanks,
 
  
 
 Peter
 
  
 
   _  
 
 From: Peter [mailto:[EMAIL PROTECTED] 
 Sent: dinsdag 5 september 2006 14:58
 To: 'fop-users@xmlgraphics.apache.org'
 Subject: RE: Png output and transparent background
 
  
 
 Hello,
 
  
 
 I have the *impression* this is related to some code in
 org.apache.fop.render.java2d.Java2DRenderer#getPageImage, namely
 
  
 
 // draw page frame
 
 graphics.setColor(Color.white);
 
 graphics.fillRect(0, 0, pageWidth, pageHeight);
 
 graphics.setColor(Color.black);
 
 graphics.drawRect(-1, -1, pageWidth + 2, pageHeight + 2);
 
 graphics.drawLine(pageWidth + 2, 0, pageWidth + 2, pageHeight +
 2);
 
 graphics.drawLine(pageWidth + 3, 1, pageWidth + 3, pageHeight +
 3);
 
 graphics.drawLine(0, pageHeight + 2, pageWidth + 2, pageHeight +
 2);
 
 graphics.drawLine(1, pageHeight + 3, pageWidth + 3, pageHeight +
 3);
 
  
 
  
 
  
 
 Depending on the use case having a white page background and black frame
 might be fine. In my case it is not what I want.
 
  
 
 Would this be considered a bug or a feature, and/or would it make sense to
 add some kind of option to either enable or disable this part of the code?
 
  
 
 Thanks,
 
  
 
 Peter
 
   _  
 
 From: Peter [mailto:[EMAIL PROTECTED] 
 Sent: dinsdag 5 september 2006 11:54
 To: 'fop-users@xmlgraphics.apache.org'
 Subject: Png output and transparent background
 
  
 
 FOP Fans,
 
  
 
 I am (a beginning fop user) using fop with png output (tried both the trunk
 and 0.92 beta) and was wondering whether there is a possibility to set the
 page background to transparent.
 
  
 
 I tried background-color=transparent but that does not seem to work.
 
  
 
 Any guidance would be greatly appreciated,
 
  
 
 Thanks,
 
  
 
 Peter
 
  
 
  
 



Jeremias Maerki


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



Re: Wrapping long character strings

2006-09-10 Thread Jeremias Maerki
overflow won't help here. wrap-option only controls whether to wrap or
not, not how to wrap. XSL-FO uses country, language and script to
indirectly specify how line-breaking should be done. script is not
supported and country/language are currently only used to select the
right hyphenation pattern file. It's currently not possible to better
control how line breaking is done.

The only possible thing is to try to write a hyphenation pattern file
which will allow you to better specify additional word-breaking points.
I've never done that myself, but there should be some documentation on
the web (the patterns are originally from TeX) and I think some ideas
have been thrown around on this mailing list before. So searching the
archives might help. At any rate, there's no easy way.

On 10.09.2006 16:56:46 Wyatt Tellis wrote:
 The asterisks are only one example. What about other character strings? 
 Unfortunately I have no control over what data is put in the report, but 
 I have to make sure that all characters are presented to the reader. I 
 can implement the (#x200B;) workaround, but would prefer a FO only 
 solution. Is there some value of either the overflow or wrap-option 
 attributes that might help with this situation? I'm trying to emulate 
 the behavior of apps such as MS Word or Notepad that do the line 
 wrapping automatically (I really don't want hyphenation because these 
 are not true English words).
 
 -Wyatt
 
 Jeremias Maerki wrote:
  I'd have to look up whether according to UAX#14/TR14 we would be allowed
  to break between two * characters in the first place. Not that FOP
  already implements the full rule set, yet! At any rate, I'd try to
  insert a zero-width space (#x200B;) after each * character to allow
  for breaks in between. Maybe that helps.
  
  On 09.09.2006 04:43:02 Wyatt Tellis wrote:
  I'm building a medical report printing application and I'm having 
  trouble forcing long characters strings (not really words) to wrap. FOP 
  gives the error: Line 1 of a paragraph overflows the available area. 
  (fo:block...  For example I may have a series of 80 '*' characters. I 
  would like to have that string wrap to 2 lines instead of  continuing 
  over the edge of the page.  Per the wiki 
  (http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessages),
   
  I've tried using the wrap-option and overflow attributes to get the 
  strings to wrap with no luck. Hyphenation doesn't work either. I'm using 
  0.92.beta. Is there a way to get this to work in FOP?


Jeremias Maerki


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



Re: Turkish character support

2006-09-10 Thread Onur Senturk
So you mean, I can use the Arial fonts with no problems, right?
I'll attach the xml right away.
On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
Hmm, that document renders just fine with the Base14 serif font. Alsofonts like Arial or Verdana will come out just fine. Given the fact that
you've pasted the file into an ISO-8859-9 encoded mail with an UTF-8header leaves me with an uncertainty if I'm really displaying the rightcharacters. You should usually attach XML files to a mail, notcopy/paste them to avoid any nasty side-effects.
On 10.09.2006 18:02:46 Onur Senturk wrote: this is an example fo document: ?xml version=1.0 encoding=utf-8? fo:root xmlns:fo=
http://www.w3.org/1999/XSL/Format xmlns:html= http://www.w3.org/1999/xhtml writing-mode=lr-tb hyphenate=true text-align=start role=htmlfo:layout-master-setfo:simple-page-master
 page-width=auto page-height=auto master-name=all-pagesfo:region-body column-gap=12pt column-count=1 margin-left=2.5cm margin-bottom=
2.5cm margin-right=2.5cm margin-top=2.5cm/fo:region-before display-align=before extent=2.5cm region-name=page-header/fo:region-after display-align=after extent=
 2.5cm region-name=page-footer/fo:region-start extent=2.5cm/fo:region-end extent=2.5cm//fo:simple-page-master/fo:layout-master-set
 fo:page-sequence hyphenate=true language=TR master-reference=all-pagesfo:title/fo:static-content flow-name=page-headerfo:block font-size=small text-align=center
 space-before=0.5in space-before.conditionality=retain//fo:static-contentfo:static-content flow-name=page-footerfo:block font-size=small text-align=center
 space-after=0.5in space-after.conditionality=retain- fo:page-number/ -/fo:block/fo:static-contentfo:flow flow-name=xsl-region-bodyfo:block role=body
 fo:block space-before=1em space-after=1em role=pabcēdefgšhżijklmnoöprsžtuüvyz/fo:block /fo:block/fo:flow/fo:page-sequence
 /fo:root On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:   The # means you're using a font that does not contain a particular
  character you're using. You may need to try a different font. If you  post an example FO document here that contains some of the characters  you're missing, we might be able to give you a few more suggestions.
   On 10.09.2006 17:24:07 Onur Senturk wrote:   There is still something wrong. The special characters still appear as  #   what should i do?
 On 9/10/06, Onur Senturk [EMAIL PROTECTED] wrote:   ok, now i'm trying to do the things you told me, on this version.
  thanks:)   On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:   
 0.92beta, of course. On 10.09.2006 16:03:07 Onur Senturk wrote:  by the way, which version do you suggest me to use? 
0.92beta or  0.20.5  i'm currently using 20.5Jeremias Maerki-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- Onur Şentürk 
?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; 
xmlns:html=http://www.w3.org/1999/xhtml; writing-mode=lr-tb hyphenate=true 
text-align=start role=htmlfo:layout-master-setfo:simple-page-master 
page-width=auto page-height=auto master-name=all-pagesfo:region-body 
column-gap=12pt column-count=1 margin-left=2.5cm margin-bottom=2.5cm 
margin-right=2.5cm margin-top=2.5cm/fo:region-before 
display-align=before extent=2.5cm 
region-name=page-header/fo:region-after display-align=after 
extent=2.5cm region-name=page-footer/fo:region-start 
extent=2.5cm/fo:region-end 
extent=2.5cm//fo:simple-page-master/fo:layout-master-set

fo:page-sequence hyphenate=true language=TR 
master-reference=all-pagesfo:title/fo:static-content 
flow-name=page-headerfo:block font-size=small text-align=center 
space-before=0.5in 
space-before.conditionality=retain//fo:static-contentfo:static-content 
flow-name=page-footerfo:block font-size=small text-align=center 
space-after=0.5in space-after.conditionality=retain- fo:page-number/ 
-/fo:block/fo:static-contentfo:flow flow-name=xsl-region-bodyfo:block 
role=body
fo:block space-before=1em space-after=1em 
role=pabcçdefgğhıijklmnoöprsştuüvyz/fo:block
/fo:block/fo:flow/fo:page-sequence
/fo:root-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
Yes, it works with the Arial and TimesNewRoman fonts that come with
Windows.

On 10.09.2006 18:41:56 Onur Senturk wrote:
 Did you have the opportunity to try it with arial?
 The thing is that I have to generate the pdf with Times new roman fonts.
 
 
 On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
 
  As I suspected, your copy/paste garbled the file. I didn't get the right
  characters.
 
  Anyway, with your attached file the base 14 fonts included in FOP don't
  work but Arial and Verdana work. So, if you generate the font metrics
  file for one of those fonts and configure it with FOP, it works. As I
  said it's just a matter of choosing a font which contains the missing
  characters.
 
  On 10.09.2006 18:22:32 Onur Senturk wrote:
   So you mean, I can use the Arial fonts with no problems, right?
   I'll attach the xml right away.
  
  
   On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
   
Hmm, that document renders just fine with the Base14 serif font.
  Also
fonts like Arial or Verdana will come out just fine. Given the fact
  that
you've pasted the file into an ISO-8859-9 encoded mail with an UTF-8
header leaves me with an uncertainty if I'm really displaying the
  right
characters. You should usually attach XML files to a mail, not
copy/paste them to avoid any nasty side-effects.
  snip/


Jeremias Maerki


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



Re: Turkish character support

2006-09-10 Thread Onur Senturk
can you do me a favor and send me your configuration file with the fonts?
i still couldn't manage to get the pdf with right fonts :(
On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
Yes, it works with the Arial and TimesNewRoman fonts that come withWindows.On 10.09.2006 18:41:56 Onur Senturk wrote:
 Did you have the opportunity to try it with arial? The thing is that I have to generate the pdf with Times new roman fonts. On 9/10/06, Jeremias Maerki 
[EMAIL PROTECTED] wrote:   As I suspected, your copy/paste garbled the file. I didn't get the right  characters.   Anyway, with your attached file the base 14 fonts included in FOP don't
  work but Arial and Verdana work. So, if you generate the font metrics  file for one of those fonts and configure it with FOP, it works. As I  said it's just a matter of choosing a font which contains the missing
  characters.   On 10.09.2006 18:22:32 Onur Senturk wrote:   So you mean, I can use the Arial fonts with no problems, right?   I'll attach the xml right away.
   On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:   Hmm, that document renders just fine with the Base14 serif font.
  Alsofonts like Arial or Verdana will come out just fine. Given the fact  thatyou've pasted the file into an ISO-8859-9 encoded mail with an UTF-8
header leaves me with an uncertainty if I'm really displaying the  rightcharacters. You should usually attach XML files to a mail, notcopy/paste them to avoid any nasty side-effects.
  snip/Jeremias Maerki-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- Onur Şentürk 


Re: outputting TIFF-G images

2006-09-10 Thread Jeremias Maerki
One more thing: The TIFFRenderer currently uses the internal codecs from
XML Graphics Commons to encode TIFF images. These do not support writing
CCITT-G4 encoded images. We could switch to the ImageWriters I wrote for
Batik and which are now available in XML Graphics Commons. They allow an
abstraction from the underlying codec for image writing. There are
implementations of the ImageWriter that write images through ImageIO
which might have CCITT-capable codecs available but the code will have
to be extended to choose the compression algorithm. All in all, no easy
solution to your requirement but certainly not much more than half a day
of work.

On 10.09.2006 12:54:46 Jeremias Maerki wrote:
 There's a configuration value you can set to modify the compression used
 but it's poorly designed (requiring an integer value) and undocumented.
 Furthermore, it does not support setting CCITT-G4 compression.
 Generating monochrome (1bit) images has also not been implemented, yet.
 
 To implement all this, changes would have to be made in:
 - Java2DRenderer.getPageImage(): Extract code into a protected method to
 instantiate the BufferedImage that we paint on. Right now, it always
 allocates an 24 bit RGB image with an 8-bit alpha channel.
 - TIFFRenderer.LazyPageImagesIterator.next(): Code to handle 1bit images.
 - TIFFRenderer.configure(): provide better configuration using names for
 compression methods.
 - Override the new protected method described above to create the
 Buffered image depending on the configuration.
 
 If you don't want to hack FOP code, the work-around is to convert the
 generated TIFF file after generation to CCITT format somehow. Obvious,
 isn't it? :-)
 
 On 08.09.2006 11:04:22 Oliver Hernàndez Valls wrote:
  Hi all,
  I'm working with fop to generate MTIFF text images. At the moment i'm 
  using fop-trunk because no justification functionality is working in fop 
  0.92 for tiffs.
  Right now I've all the functionality to generate parametrized text 
  images implemented. By default fop uses packbits compression and colored 
  image coding.
  I'd like to change the tiff coding to TIFF-G because generated images 
  with the default tiff coding are very big (around 9000 kB) and 
  coloration is not needed for the images I'm generating.
  I'm using the new FOUserAgent parameter setTargetResolution(int), but 
  I can't see any way to change the default encoding for tiff images.
  Some time ago I readed this somewhere in the source code: //TODO 
  Support output of monochrome bitmaps (fax-style), but don't know if it 
  has something to do with changing tiff coding.
  
  Any hint/workarround/documentation please?
  
  Thanks a lot, salut / cheers !
 
 
 Jeremias Maerki


Jeremias Maerki


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



Re: Turkish character support

2006-09-10 Thread Onur Senturk
this is an example fo document:


?xml version=1.0 encoding=utf-8?fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format xmlns:html=
http://www.w3.org/1999/xhtml writing-mode=lr-tb hyphenate=true text-align=start role=htmlfo:layout-master-setfo:simple-page-master page-width=auto page-height=auto master-name=all-pagesfo:region-body column-gap=12pt column-count=1 margin-left=
2.5cm margin-bottom=2.5cm margin-right=2.5cm margin-top=2.5cm/fo:region-before display-align=before extent=2.5cm region-name=page-header/fo:region-after display-align=after extent=
2.5cm region-name=page-footer/fo:region-start extent=2.5cm/fo:region-end extent=2.5cm//fo:simple-page-master/fo:layout-master-set
fo:page-sequence hyphenate=true language=TR master-reference=all-pagesfo:title/fo:static-content flow-name=page-headerfo:block font-size=small text-align=center space-before=
0.5in space-before.conditionality=retain//fo:static-contentfo:static-content flow-name=page-footerfo:block font-size=small text-align=center space-after=
0.5in space-after.conditionality=retain- fo:page-number/ -/fo:block/fo:static-contentfo:flow flow-name=xsl-region-bodyfo:block role=body
fo:block space-before=1em space-after=1em role=pabcçdefgğhıijklmnoöprsştuüvyz/fo:block/fo:block/fo:flow/fo:page-sequence/fo:root

On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
The # means you're using a font that does not contain a particularcharacter you're using. You may need to try a different font. If you
post an example FO document here that contains some of the charactersyou're missing, we might be able to give you a few more suggestions.On 10.09.2006 17:24:07 Onur Senturk wrote: There is still something wrong. The special characters still appear as #
 what should i do? On 9/10/06, Onur Senturk [EMAIL PROTECTED] wrote:   ok, now i'm trying to do the things you told me, on this version. thanks
  :)   On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:0.92beta, of course.  
   On 10.09.2006 16:03:07 Onur Senturk wrote:by the way, which version do you suggest me to use? 0.92beta or 0.20.5i'm currently using 20.5Jeremias Maerki
-To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]-- Onur Şentürk 


Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
Sent to you off-list.

Sanity check: You've added a font-family=TimesNewRoman or something
like that to your FO document so FOP chooses the right font, haven't you?

On 10.09.2006 18:54:44 Onur Senturk wrote:
 can you do me a favor and send me your configuration file with the fonts?
 i still couldn't manage to get the pdf with right fonts :(
 
 
 On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
 
  Yes, it works with the Arial and TimesNewRoman fonts that come with
  Windows.
 
  On 10.09.2006 18:41:56 Onur Senturk wrote:
   Did you have the opportunity to try it with arial?
   The thing is that I have to generate the pdf with Times new roman fonts.
  
  
   On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
   
As I suspected, your copy/paste garbled the file. I didn't get the
  right
characters.
   
Anyway, with your attached file the base 14 fonts included in FOP
  don't
work but Arial and Verdana work. So, if you generate the font metrics
file for one of those fonts and configure it with FOP, it works. As I
said it's just a matter of choosing a font which contains the missing
characters.
   
On 10.09.2006 18:22:32 Onur Senturk wrote:
 So you mean, I can use the Arial fonts with no problems, right?
 I'll attach the xml right away.


 On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
 
  Hmm, that document renders just fine with the Base14 serif font.
Also
  fonts like Arial or Verdana will come out just fine. Given the
  fact
that
  you've pasted the file into an ISO-8859-9 encoded mail with an
  UTF-8
  header leaves me with an uncertainty if I'm really displaying the
right
  characters. You should usually attach XML files to a mail, not
  copy/paste them to avoid any nasty side-effects.
snip/
 



Jeremias Maerki


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



Re: Turkish character support

2006-09-10 Thread Onur Senturk
I generate my fo file from an html file. I think i missed that part...
I'll check about that
On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:
Sent to you off-list.Sanity check: You've added a font-family=TimesNewRoman or something
like that to your FO document so FOP chooses the right font, haven't you?On 10.09.2006 18:54:44 Onur Senturk wrote: can you do me a favor and send me your configuration file with the fonts? i still couldn't manage to get the pdf with right fonts :(
 On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:   Yes, it works with the Arial and TimesNewRoman fonts that come with
  Windows.   On 10.09.2006 18:41:56 Onur Senturk wrote:   Did you have the opportunity to try it with arial?   The thing is that I have to generate the pdf with Times new roman fonts.
   On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote:   As I suspected, your copy/paste garbled the file. I didn't get the
  rightcharacters.   Anyway, with your attached file the base 14 fonts included in FOP  don'twork but Arial and Verdana work. So, if you generate the font metrics
file for one of those fonts and configure it with FOP, it works. As Isaid it's just a matter of choosing a font which contains the missingcharacters.
   On 10.09.2006 18:22:32 Onur Senturk wrote: So you mean, I can use the Arial fonts with no problems, right? I'll attach the xml right away.
 On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: 
  Hmm, that document renders just fine with the Base14 serif font.Also  fonts like Arial or Verdana will come out just fine. Given the
  factthat  you've pasted the file into an ISO-8859-9 encoded mail with an  UTF-8  header leaves me with an uncertainty if I'm really displaying the
right  characters. You should usually attach XML files to a mail, not  copy/paste them to avoid any nasty side-effects.snip/
 Jeremias Maerki-To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]-- Onur Şentürk 


Re: Turkish character support

2006-09-10 Thread Onur Senturk
I finally did it. The reason why i was unable to get the fonts was because the font-family was not mentioned in the fo file. Now its ok. Thanks a lot.
On 9/10/06, Onur Senturk [EMAIL PROTECTED] wrote:


I generate my fo file from an html file. I think i missed that part...
I'll check about that

On 9/10/06, Jeremias Maerki [EMAIL PROTECTED]
 wrote: 
Sent to you off-list.Sanity check: You've added a font-family=TimesNewRoman or something 
like that to your FO document so FOP chooses the right font, haven't you?On 10.09.2006 18:54:44 Onur Senturk wrote: can you do me a favor and send me your configuration file with the fonts? i still couldn't manage to get the pdf with right fonts :( 
 On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: 
  Yes, it works with the Arial and TimesNewRoman fonts that come with   Windows.   On 10.09.2006 18:41:56 Onur Senturk wrote:   Did you have the opportunity to try it with arial?
   The thing is that I have to generate the pdf with Times new roman fonts.On 9/10/06, Jeremias Maerki 
[EMAIL PROTECTED] wrote:   As I suspected, your copy/paste garbled the file. I didn't get the   rightcharacters.   
Anyway, with your attached file the base 14 fonts included in FOP  don'twork but Arial and Verdana work. So, if you generate the font metrics file for one of those fonts and configure it with FOP, it works. As I
said it's just a matter of choosing a font which contains the missingcharacters.On 10.09.2006 18:22:32 Onur Senturk wrote:
 So you mean, I can use the Arial fonts with no problems, right? I'll attach the xml right away.  On 9/10/06, Jeremias Maerki 
[EMAIL PROTECTED] wrote:Hmm, that document renders just fine with the Base14 serif font.
Also  fonts like Arial or Verdana will come out just fine. Given the   factthat  you've pasted the file into an ISO-8859-9 encoded mail with an
  UTF-8  header leaves me with an uncertainty if I'm really displaying the right  characters. You should usually attach XML files to a mail, not
  copy/paste them to avoid any nasty side-effects.snip/  Jeremias Maerki-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]

-- Onur Şentürk -- Onur Şentürk