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 

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

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 co

Re: Turkish character support

2006-09-10 Thread Onur Senturk
this is an example fo document:   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="html"> - - abcçdefgğhıijklmnoöprsştuüvyz   On 9/10/06, Jeremias Maerki <[EMAIL PROTECTED]> wrote: The "#" means you're usi

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 abstrac

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

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 PROTEC

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

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 hyphenatio

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=rev&rev=441965 It was easy enough. For you this means, you should add the config setting below to your FOP configuration file:

Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
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. Y

Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
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:0

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

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 s

Re: Turkish character support

2006-09-10 Thread Onur Senturk
Here is the log of the procedure:   FOP ExampleXML2PDF Preparing... Input: XML (C:\html2pdf\a.html) Stylesheet: C:\html2pdf\xhtml2fo.xsl Output: PDF (C:\fop-0.92beta\pdf_olarank\onur.pdf) Transforming... 10.Eyl.2006 18:26:24 org.apache.fop.apps.FopFactory getBaseURLfromConfig INFO: hyphenation-bas

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

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 (​) workaround, but would prefer a FO only solution. Is there

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.5Jeremia

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] Fo

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.ht

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 u

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 al

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

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 layo

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

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: Sam Jeremias Maerki-2 wrote: > > Just a hunch: > Make sure you call setFontBaseURL() after you specify a userconfig.xml > (if any)

Re: Turkish character support

2006-09-10 Thread Onur Senturk
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 byadjusting the user configuration file. Use the conf/fop.xc

Re: fopFactory setFontBaseURL

2006-09-10 Thread Jeremias Maerki
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.s

Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
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

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:

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

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

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

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

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 overri

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. Manue

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 someth

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 (​) after each "*" character to allow for breaks in between. May

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. Sometime

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 t

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

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

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:

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 st

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