Re: fop with oc4j

2006-10-17 Thread Onur Senturk
i see, i'll try that out immediately
thanks a lot
On 10/16/06, Glen Mazza [EMAIL PROTECTED] wrote:
On 16.10.2006 14:26:51 Onur Senturk wrote:hi, i'm trying to use fop with oc4j but i think the xml parsers are
conflicting. when i try to use xerces, the application doesn't start. When iuse the xml parser of the oc4j, i cannot make fop work.what should i do? does anyone have an idea? thanks.
Hi Onur, I converted a FOP-based web app from Tomcat to Oracle AppServer a few months back.Yes, you will need to switch to the ApacheXML libraries, but you will also probably need to temporarily activate
OAS classloader logging to try to figure out what the loading problem is(the application doesn't start problem you mentioned above.)Everyapplication is different, and all have their initial installation
headaches.(It turned out for me, for example, that I was missingcommons-logging.jar, but the *only* way I could figure that out was byrunning OAS classloader logging and viewing the log files.)If thisdoesn't work, and you're desperate, another piece of advice I can offer
is to *greatly* simplify your webapp--deploy a skeleton of it--andincrementally put more into it, using process of elimination todetermine at what point the webapp fails.I gave links to informationabout OAS classloader logging and switching parsing libraries in a blog
entry below:http://jroller.com/page/gmazza?entry=migrating_spring_based_webapp_fromGlen-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]-- Onur Şentürk 


Problem with inserting a table with fo:table

2006-09-11 Thread Onur Senturk
I'm trying to insert a table in the xml file but when trying to convert the fo to pdf i get the following error.Why is this so?WARNING: Warning(Unknown location): fo:table, table-layout=auto is currently not supported by FOP
-- Onur Şentürk


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


Re: Turkish character support

2006-09-09 Thread Onur Senturk
I still couldn't manage to do it. What are the main steps in modifying fop configuration when trying to get the output in different encoding?
On 9/8/06, Pascal Sancho [EMAIL PROTECTED] wrote:
 -Original Message- From: Onur Senturk [mailto:
[EMAIL PROTECTED]] Sent: Friday, September 08, 2006 10:56 AM When using turkish characters, do i also have to use hyphenation?Hyphenation does not depend on font file or chararacter set.
It only depends on document language.Using hyphenation needs to:- define used language: see language property in fo:page-sequence- enable/disable hyphenation as you want:see hyphenate property, that applies only on fo:block or fo:character
- make sure you have appropriate hyphenation file;AFAIK, greek is only available in a TEX format (see [1])You'll propably need to transform it in a FOP comprehensive format.[1] 
http://marc.theaimsgroup.com/?l=fop-userm=114424812107072w=2 Do i have to include other types of fonts or embed them into the pdf file?You should include|embed all used fonts, depending on your font-family properties
 On 8/31/06, Jeremias Maerki [EMAIL PROTECTED] wrote: Do you have to do it from Java code? Isn't it simpler to do it from the
 command-line? After all, for a font you only have to do this once. Anyway, I'd remove the -fn parameter from the command-line. I've never needed that and I've never tested it, so I don't even
 know what it does exactly. Maybe that helps. 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);
   but a fatal exception occured and i couldn't generate the xml file.   Next i tried to run this command:   String[] st = *new* String[3];
   *int* i=0;   st[i++] = -fn times_new;   st[i++] = c:\\times.ttf; 
  st[i++] = c:\\times.xml;   df.main(st);   But nothing seemed to happen either. This message appeared at the console:
   [INFO] PFM Reader v1.1   [INFO]   [INFO] java org.apache.fop.fonts.apps.PFMReader [options] metricfile.pfm
  xmlfile.xml   [INFO] where options can be:   [INFO] -fn fontname   [INFO] default is to use the fontname in the .pfm file, but
   [INFO] you can override that name to make sure that the   [INFO] embedded font is used (if you're embedding fonts)   [INFO] instead of installed fonts when viewing
 documents with Acrobat  Reader. Now what should i do? I'm really stuck :(   On 8/31/06, Jeremias Maerki  
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote:Turkish characters are likely not to be supported
 by the default fonts.   Have   you configured a font with FOP that contains all the Turkish characters   you need? Please see the FOP website for details to
 configure fonts   depending on the FOP version you use. On 31.08.2006 13:35:22 Onur Senturk wrote:Hi i'm trying to use the program called html2pdf
 which uses apache's fop   toconvert html to pdf, i mean fo to pdf. i can create the pdf but I've gotsome problem with the turkish character support.
 The pdf doesn't show   theturkish characters properly. What should i do? How can you help me?   --
Onur ªentürk Jeremias MaerkiPascal-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- Onur Şentürk 


Re: Turkish character support

2006-09-08 Thread Onur Senturk
When using turkish characters, do i also have to use hyphenation? Do i have to include other types of fonts or embed them into the pdf file?On 8/31/06, Jeremias Maerki
 [EMAIL PROTECTED] wrote:
Do you have to do it from Java code? Isn't it simpler to do it from thecommand-line? After all, for a font you only have to do this once.Anyway, I'd remove the -fn parameter from the command-line. I've never
needed that and I've never tested it, so I don't even know what it doesexactly. Maybe that helps.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); but a fatal exception occured and i couldn't generate the xml file.
 Next i tried to run this command: String[] st = *new* String[3]; *int* i=0; st[i++] = -fn times_new; st[i++] = c:\\times.ttf;
 st[i++] = c:\\times.xml; df.main(st); But nothing seemed to happen either. This message appeared at the console: [INFO] PFM Reader v1.1
 [INFO] [INFO] java org.apache.fop.fonts.apps.PFMReader [options] metricfile.pfm xmlfile.xml [INFO] where options can be: [INFO] -fn fontname
 [INFO] default is to use the fontname in the .pfm file, but [INFO] you can override that name to make sure that the [INFO] embedded font is used (if you're embedding fonts)
 [INFO] instead of installed fonts when viewing documents with Acrobat Reader. Now what should i do? I'm really stuck :( On 8/31/06, Jeremias Maerki 
[EMAIL PROTECTED] wrote:  Turkish characters are likely not to be supported by the default fonts.  Have  you configured a font with FOP that contains all the Turkish characters
  you need? Please see the FOP website for details to configure fonts  depending on the FOP version you use.   On 31.08.2006 13:35:22 Onur Senturk wrote:   Hi i'm trying to use the program called html2pdf which uses apache's fop
  to   convert html to pdf, i mean fo to pdf. i can create the pdf but I've got   some problem with the turkish character support. The pdf doesn't show  the   turkish characters properly. What should i do? How can you help me?
 --   Onur ªentürkJeremias Maerki-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- Onur Şentürk


Turkish character support

2006-08-31 Thread Onur Senturk
Hi i'm trying to use the program called html2pdf which uses apache's fop to convert html to pdf, i mean fo to pdf. i can create the pdf but I've got some problem with the turkish character support. The pdf doesn't show the turkish characters properly. What should i do? How can you help me?
-- Onur Şentürk


Re: Turkish character support

2006-08-31 Thread Onur Senturk
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);
but a fatal exception occured and i couldn't generate the xml file.
Next i tried to run this command:
String[] st = new String[3];
int i=0;
st[i++] = -fn times_new;
st[i++] = c:\\times.ttf;
st[i++] = c:\\times.xml;

df.main(st);
But nothing seemed to happen either. This message appeared at the console:
[INFO] PFM Reader v1.1
[INFO] 
[INFO] java org.apache.fop.fonts.apps.PFMReader [options] metricfile.pfm xmlfile.xml
[INFO] where options can be:
[INFO] -fn fontname
[INFO] default is to use the fontname in the .pfm file, but
[INFO] you can override that name to make sure that the
[INFO] embedded font is used (if you're embedding fonts)
[INFO] instead of installed fonts when viewing documents with Acrobat Reader.

Now what should i do? I'm really stuck :(
On 8/31/06, Jeremias Maerki [EMAIL PROTECTED] wrote:

Turkish characters are likely not to be supported by the default fonts. Haveyou configured a font with FOP that contains all the Turkish characters
you need? Please see the FOP website for details to configure fontsdepending on the FOP version you use.On 31.08.2006 13:35:22 Onur Senturk wrote: Hi i'm trying to use the program called html2pdf which uses apache's fop to
 convert html to pdf, i mean fo to pdf. i can create the pdf but I've got some problem with the turkish character support. The pdf doesn't show the turkish characters properly. What should i do? How can you help me?
 -- Onur ªentürkJeremias Maerki-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- Onur Şentürk