Re: fop 0.20.5 and chinese pdf

2007-03-22 Thread Jeremias Maerki
Actually, there is a FOP Serializer in Cocoon that is compatible with
FOP 0.93 but I think there's no Cocoon release that incorporates it, yet.
See:
http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-fop/cocoon-fop-ng-impl/

On 22.03.2007 09:05:34 mahmoudi ould abdel vetah wrote:
 thank you a lot Jeremias, with your arialuni.ttf.xml, it works ;). so the
 problem was  certainly caused by the generation of my arialuni.ttf.xml...i
 use fop 0.20.5 version and perhaps my version contains some problems or
 bugs...i wish to change my version but i didn't find a cocoon fop serialiser
 for fop 0.93 versions.
snip/



Jeremias Maerki


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



Re: fop 0.20.5 and chinese pdf

2007-03-21 Thread mahmoudi ould abdel vetah

thank you for your help, but i didn't succed to generate chinese pdf ;( i
tried all the fonts mentioned in previous mails, (simsun arialuni) i tried
command line with no result to. is there somthing that i have to do to
configure chinese language  in my PC? perhaps it is a storage problem?
(utf8)..if someone have an idea of the problem, it will be helpfull ;)

thanks.


2007/3/16, Stefan Heuer [EMAIL PROTECTED]:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Take in mind the file contains the metrics of more than 50.000 glyphs.
Unless you get an error generating the metrics file with this explanation:
http://xmlgraphics.apache.org/fop/0.93/fonts.html#truetype-metrics
your file should be alright.

My metrics file has 710.171 Bytes on Win XP.

Stefan


mahmoudi ould abdel vetah schrieb:
 thanks for your explanation ;)

 i don't really know what is the pb...i tested command line with no
 success, i re-generated my xml file but his weight still near to
 8ko.. can someone please send me his ARAIALUNI.XML file in order to
  test my application with?

 thank you for your help.




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+moIirQ0Ts08AdMRAtbTAJ95mZNhEELfvaXG25yMmsU9vNle8ACeK5Va
k1cIX+WslMwAzyAkf1iaFYw=
=o6Bx
-END PGP SIGNATURE-


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




Re: fop 0.20.5 and chinese pdf

2007-03-21 Thread Chris Bowditch

mahmoudi ould abdel vetah wrote:

thank you for your help, but i didn't succed to generate chinese pdf ;( 
i tried all the fonts mentioned in previous mails, (simsun arialuni) i 
tried command line with no result to. is there somthing that i have to 
do to configure chinese language  in my PC? perhaps it is a storage 
problem? (utf8)..if someone have an idea of the problem, it will be 
helpfull ;)


It is possible to get Chinese glyphs into a PDF using FOP. its difficult 
to say why you haven't managed it. What symptoms are you observing? # is 
PDF, or some other error? Perhaps if you post a snippet of you fop.xconf 
file we might be able to offer more help.


Chris

snip/




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



Re: fop 0.20.5 and chinese pdf

2007-03-16 Thread Stefan Heuer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hi,

I also configured FOP to embed MS Arial Unicode font. But I use Fop
0.93. The structure of the userconfig file changed between FOP 0.20.5
and FOP 0.93.

However, for FOP 0.93 the attribute kerning controls the embedding
of used glyphs and the entire font. I can't say where to read about, I
only tested for myself.
This entry:
font
metrics-url=I:\workspace\UserManual_SC-Commander\lib\fonts\arialuni.xml
 kerning=no

embed-url=I:\workspace\UserManual_SC-Commander\lib\fonts\ARIALUNI.TTF
font-triplet name=ArialUnicodeMS style=normal
weight=normal/
/font
produced a PDF file in similar size to file without embedding fonts.

But:
font
metrics-url=I:\workspace\UserManual_SC-Commander\lib\fonts\arialuni.xml
 kerning=yes

embed-url=I:\workspace\UserManual_SC-Commander\lib\fonts\ARIALUNI.TTF
font-triplet name=ArialUnicodeMS style=normal
weight=normal/
/font
gives also a ~23MB PDF file.

OK, this for FOP 0.93, but perhaps there is a attribute for the
userconfig for FOP 0.20.5.


Stefan


Kai Mütz schrieb:
 mahmoudi ould abdel vetah  wrote:
 thanks,

 Markus, the command line is a good idea, i will try this.

 Kai, what was the weight of your ttf file? (23MO or more?). i'm agree
 with you that it's possible that my xml file was wrongly generated!

 23MB

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


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFF+lnMirQ0Ts08AdMRAq+TAJ0Y2DBxHxZc5TIICTgN4PN7IUlRkACdEv8+
iIdttG6BpyOj5tJ4GbK8gRs=
=FlGf
-END PGP SIGNATURE-


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



Re: fop 0.20.5 and chinese pdf

2007-03-16 Thread mahmoudi ould abdel vetah

thanks for your explanation ;)

i don't really know what is the pb...i tested command line with no success,
i re-generated my xml file but his weight still near to 8ko.. can someone
please send me his ARAIALUNI.XML file in order to test my application with?

thank you for your help.


2007/3/16, Stefan Heuer [EMAIL PROTECTED]:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I also configured FOP to embed MS Arial Unicode font. But I use Fop
0.93. The structure of the userconfig file changed between FOP 0.20.5
and FOP 0.93.

However, for FOP 0.93 the attribute kerning controls the embedding
of used glyphs and the entire font. I can't say where to read about, I
only tested for myself.
This entry:
font
metrics-url=I:\workspace\UserManual_SC-Commander\lib\fonts\arialuni.xml
kerning=no

embed-url=I:\workspace\UserManual_SC-Commander\lib\fonts\ARIALUNI.TTF
   font-triplet name=ArialUnicodeMS style=normal
weight=normal/
/font
produced a PDF file in similar size to file without embedding fonts.

But:
font
metrics-url=I:\workspace\UserManual_SC-Commander\lib\fonts\arialuni.xml
kerning=yes

embed-url=I:\workspace\UserManual_SC-Commander\lib\fonts\ARIALUNI.TTF
   font-triplet name=ArialUnicodeMS style=normal
weight=normal/
/font
gives also a ~23MB PDF file.

OK, this for FOP 0.93, but perhaps there is a attribute for the
userconfig for FOP 0.20.5.


Stefan


Kai Mütz schrieb:
 mahmoudi ould abdel vetah  wrote:
 thanks,

 Markus, the command line is a good idea, i will try this.

 Kai, what was the weight of your ttf file? (23MO or more?). i'm agree
 with you that it's possible that my xml file was wrongly generated!

 23MB

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


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+lnMirQ0Ts08AdMRAq+TAJ0Y2DBxHxZc5TIICTgN4PN7IUlRkACdEv8+
iIdttG6BpyOj5tJ4GbK8gRs=
=FlGf
-END PGP SIGNATURE-


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




Re: fop 0.20.5 and chinese pdf

2007-03-16 Thread Stefan Heuer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hi,

Take in mind the file contains the metrics of more than 50.000 glyphs.
Unless you get an error generating the metrics file with this explanation:
http://xmlgraphics.apache.org/fop/0.93/fonts.html#truetype-metrics
your file should be alright.

My metrics file has 710.171 Bytes on Win XP.

Stefan


mahmoudi ould abdel vetah schrieb:
 thanks for your explanation ;)

 i don't really know what is the pb...i tested command line with no
 success, i re-generated my xml file but his weight still near to
 8ko.. can someone please send me his ARAIALUNI.XML file in order to
  test my application with?

 thank you for your help.




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFF+moIirQ0Ts08AdMRAtbTAJ95mZNhEELfvaXG25yMmsU9vNle8ACeK5Va
k1cIX+WslMwAzyAkf1iaFYw=
=o6Bx
-END PGP SIGNATURE-


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



RE: fop 0.20.5 and chinese pdf

2007-03-15 Thread Jeff Vannest
Arial Unicode MS font should work. Someone else will need to answer the
version question.

Jeff




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



Re: fop 0.20.5 and chinese pdf

2007-03-15 Thread mahmoudi ould abdel vetah

thank you for your reply,

i used this font but i unfortunately get my pdf with # caracters...and my
pdf weight was something like 20Mo! (because this font is embedded in the
pdf, i think)

is there other font that i can try? or it's a limitation of my fop version (
0.20.5)?

thanks.


2007/3/15, Jeff Vannest [EMAIL PROTECTED]:


Arial Unicode MS font should work. Someone else will need to answer the
version question.

Jeff




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




Re: fop 0.20.5 and chinese pdf

2007-03-15 Thread Markus Schütz

Hi,

it is definitely possible with FOP 0.20.5 - at least I succeeded in 
publishing Chinese documents (running FOP from the command line).

Besides Arial Unicode MS, SIMHEI and SIMSUN should work.
You will have to use the usual FOP tools to convert the TTF files into 
XML metric files required by FOP.


I cannot tell you whether it still works inside cocoon (I never tried to 
do that), but neither do I know any reason why it should fail.


Kind regards,
Markus

mahmoudi ould abdel vetah escribió:

hello,
 
I'm using fop with cocoon and i publish pdf in two languages (french, 
english). Now i want to add chinese content to my publications. so my 
questions are :
 
- can i publish pdf with chinese caracters with fop 0.20.5?
- wich font i have to use in order to have chinese caracters (i know 
how to configure new font with userconfig.xml)?
 
thanks for your help.
 
ps: i don't want to upgrade to new fop versions now (using fop 
embedded in cocoon).



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



Re: fop 0.20.5 and chinese pdf

2007-03-15 Thread mahmoudi ould abdel vetah

tkanks,

i tried simsun and arial Uni with no result. i will try the other fonts that
you mentioned and i will be backon the same server i publish word
documents (using html!) with chinese caracters by using simsun with no pb.

is it normal that the xml generated from the arial TTF weights 8KO while the
weight of the ttf file is 23MO?

thanks




2007/3/15, [EMAIL PROTECTED] [EMAIL PROTECTED]:



I publish Chinese docs in 0.20.3 using the MSSONG font.  Works great - the
only downside is you need to embed the font in the PDF to get it to work and
that results in a larger PDF file.




  *Markus Schütz [EMAIL PROTECTED]*

03/15/2007 11:22 AM   Please respond to
fop-users@xmlgraphics.apache.org

   To
fop-users@xmlgraphics.apache.org  cc
  Subject
Re: fop 0.20.5 and chinese pdf




Hi,

it is definitely possible with FOP 0.20.5 - at least I succeeded in
publishing Chinese documents (running FOP from the command line).
Besides Arial Unicode MS, SIMHEI and SIMSUN should work.
You will have to use the usual FOP tools to convert the TTF files into
XML metric files required by FOP.

I cannot tell you whether it still works inside cocoon (I never tried to
do that), but neither do I know any reason why it should fail.

Kind regards,
Markus

mahmoudi ould abdel vetah escribió:
 hello,

 I'm using fop with cocoon and i publish pdf in two languages (french,
 english). Now i want to add chinese content to my publications. so my
 questions are :

 - can i publish pdf with chinese caracters with fop 0.20.5?
 - wich font i have to use in order to have chinese caracters (i know
 how to configure new font with userconfig.xml)?

 thanks for your help.

 ps: i don't want to upgrade to new fop versions now (using fop
 embedded in cocoon).


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





Re: fop 0.20.5 and chinese pdf

2007-03-15 Thread Markus Schütz
I guess you still have the problem that your fonts are not correctly 
embedded.
For convenience, you can throw the TTFs and XML font files in the same 
folder where you have your userconfig.xml file.
Also, make sure that the paths to all the font files in your userconfig 
file are correct!
Did you try to run FOP from the command line? Maybe that helps you to 
figure out what the problem actually is.


Well, 23 MB sound a bit much, on the other hand, version 0.20.5 and its 
predecessors are not famous for effective PDF compression. Since you 
want to publish your documents using Cocoon, I suppose you want them 
on-the-fly, with no postprocessing. Saving the PDF file with Adobe 
Acrobat will definitely let off  air, but maybe this is not an option.


Kind regards,
Markus

mahmoudi ould abdel vetah escribió:

tkanks,
 
i tried simsun and arial Uni with no result. i will try the other 
fonts that you mentioned and i will be backon the same server i 
publish word documents (using html!) with chinese caracters by using 
simsun with no pb.
 
is it normal that the xml generated from the arial TTF weights 8KO 
while the weight of the ttf file is 23MO?
 
thanks
 
 



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



RE: fop 0.20.5 and chinese pdf

2007-03-15 Thread Kai Mütz
mahmoudi ould abdel vetah  wrote:
 tkanks,

 i tried simsun and arial Uni with no result. i will try the other
 fonts that you mentioned and i will be backon the same server i
 publish word documents (using html!) with chinese caracters by using
 simsun with no pb.

 is it normal that the xml generated from the arial TTF weights 8KO
 while the weight of the ttf file is 23MO?

The XML metric file I generated with fop 0.93 has 707KB. Perhaps the metric
file was not generated correctly.

Kai


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



Re: fop 0.20.5 and chinese pdf

2007-03-15 Thread Jeff Vannest
Yes, embedding is really the only way to go, and yes, the file will be PDF
smaller because only the glyphs that are used are embedded, not all glyphs
in the font.

Jeff




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



Re: fop 0.20.5 and chinese pdf

2007-03-15 Thread mahmoudi ould abdel vetah

thanks,

Markus, the command line is a good idea, i will try this.

Kai, what was the weight of your ttf file? (23MO or more?). i'm agree with
you that it's possible that my xml file was wrongly generated!

thanks



2007/3/15, Kai Mütz [EMAIL PROTECTED]:


mahmoudi ould abdel vetah  wrote:
 tkanks,

 i tried simsun and arial Uni with no result. i will try the other
 fonts that you mentioned and i will be backon the same server i
 publish word documents (using html!) with chinese caracters by using
 simsun with no pb.

 is it normal that the xml generated from the arial TTF weights 8KO
 while the weight of the ttf file is 23MO?

The XML metric file I generated with fop 0.93 has 707KB. Perhaps the
metric
file was not generated correctly.

Kai


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




RE: fop 0.20.5 and chinese pdf

2007-03-15 Thread Kai Mütz
mahmoudi ould abdel vetah  wrote:
 thanks,
 
 Markus, the command line is a good idea, i will try this.
 
 Kai, what was the weight of your ttf file? (23MO or more?). i'm agree
 with you that it's possible that my xml file was wrongly generated! 

23MB

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