Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 43140 invoked from network); 23 Dec 2004 09:12:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Dec 2004 09:12:25 -0000 Received: (qmail 3653 invoked by uid 500); 23 Dec 2004 09:12:18 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 3583 invoked by uid 500); 23 Dec 2004 09:12:18 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 3544 invoked by uid 99); 23 Dec 2004 09:12:17 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=FORGED_RCVD_HELO,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from zeus.osmosis.gr (HELO osmosis.gr) (216.194.67.12) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 23 Dec 2004 01:12:13 -0800 Received: by osmosis.gr (Postfix, from userid 502) id 9425332816B; Thu, 23 Dec 2004 09:12:09 +0000 (EET) Received: from localhost (localhost [127.0.0.1]) by osmosis.gr (Postfix) with ESMTP id 8C6892D827C for ; Thu, 23 Dec 2004 11:12:09 +0200 (EET) Date: Thu, 23 Dec 2004 11:12:09 +0200 (EET) From: gounis@osmosis.gr To: dev@cocoon.apache.org Subject: Re:producing arabic pdf In-Reply-To: <20041223085919.53075.qmail@web53504.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, 23 Dec 2004, nafise hassani wrote: hi nafise sorry but all this in your new pdf are "to greek" for me so i cant realise the problem i understand only that you have now arabic fonts --stavros > hi > thanks, really thanks > but now another problem arise alll the arabic > alphabets > printed separately please have a look at new > arabic.pdf > attached > suggestion?? > --- gounis@osmosis.gr wrote: > > > > > hi nafise > > > > did you set the font in your fo-xsl? > > > > ... > > > font-family="Arial" > > line-height="14pt" border-bottom="black solid"> > > > > > > ... > > > > --stavros > > > > > > > > On Wed, 22 Dec 2004, nafise hassani wrote: > > > > > hi > > > I did all the things that gounis said > > > my config.xml file look like this: > > > > > > > > > > > > > > > > metrics-file="D:/fop-fonts/arial.ttf.xml" > > > kerning="yes" > > > embed-file="C:/WINNT/Fonts/arial.ttf"> > > > > > weight="normal"/> > > > > > weight="normal"/> > > > > > > > > > > > > > > > Also in my sitemap.xmap I edit the fo2pdf > > serializer > > > like this: > > > > > > > > > > src="org.apache.cocoon.serialization.FOPSerializer" > > > mime-type="application/pdf"> > > > D:/fop-fonts/config.xml > > > > > > > > > And in D:\fop-fonts I have the arail.ttf.xml and > > put > > > my config.xml file there too > > > BUT its make no difference > > > (my arabic pdf is attached to this mail too) > > > is there any fault in charachter setting not > > fonts?? > > > I think the serializer has a problem with my > > charset > > > not font > > > > > > any suggestion ??? > > > please help > > > > > > > > > > > > --- gounis@osmosis.gr wrote: > > > > > > > > > > > > > > > > > > > hi nafise > > > > > > > > you have to use compiled fonts > > > > > > > > http://xml.apache.org/fop/fonts.html > > > > > > > > and then force cocoon to use those fonts > > > > for this you have to create a fop-config.xml > > > > in web-inf > > > > > > > > for example the content of my fop-config: > > > > > > > > > > > > > metrics-file="c:/fop-fonts/arial.ttf.xml" > > > > kerning="yes" > > > > embed-file="c:/fop-fonts/win/arial.ttf"> > > > > > > > weight="normal"/> > > > > > > > weight="normal"/> > > > > > > > > > metrics-file="c:/fop-fonts/arialb.ttf.xml" > > > > kerning="yes" > > > > embed-file="c:/fop-fonts/win/arialb.ttf"> > > > > > > > weight="bold"/> > > > > > > > weight="bold"/> > > > > > > > > > metrics-file="c:/fop-fonts/arialbi.ttf.xml" > > > > kerning="yes" > > > > embed-file="c:/fop-fonts/win/arialbi.ttf"> > > > > > > > weight="bold"/> > > > > > > > weight="bold"/> > > > > > > > > > metrics-file="c:/fop-fonts/ariali.ttf.xml" > > > > kerning="yes" > > > > embed-file="c:/fop-fonts/win/ariali.ttf"> > > > > > > > weight="normal"/> > > > > > > > weight="normal"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > and finaly you have to register this fop-confing > > in > > > > your sitemap: > > > > ... > > > > > > > logger="sitemap.serializer.fo2pdf" > > > > mime-type="application/pdf" name="fo2pdf" > > > > > > src="org.apache.cocoon.serialization.FOPSerializer"> > > > > > > > > > > c:\fop-fonts\config.xml > > > > > > > > ... > > > > > > > > > > > > --stavros > > > > > > > > > > > > [cocoon doc] > > > > > > > > > > http://cocoon.apache.org/2.1/userdocs/serializers/pdf-serializer.html > > > > > > > > On Wed, 22 Dec 2004, nafise hassani wrote: > > > > > > > > > hi > > > > > I use cocoon as a framework and I want to > > output a > > > > pdf > > > > > using "fo2pdf" serializer also I want to > > create > > > > arabic > > > > > content in my pdfs I set the charencoding in > > my > > > > xml > > > > > file(src for generator) to "UTF-8" and prepare > > > > arabic > > > > > content in them > > > > > but outputted pdf can't display the arabic > > char > > > > > correctly > > > > > > > > > > any suggestion??????? > > > > > is there any fault in cocoon "fo2pdf" > > serializer > > > > for > > > > > showing charachters in languages like > > arabic???? > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > > Do you Yahoo!? > > > > > Yahoo! Mail - You care about security. So do > > we. > > > > > http://promotions.yahoo.com/new_mail > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Take Yahoo! Mail with you! Get it on your mobile > > phone. > > > http://mobile.yahoo.com/maildemo > > > > > > > > __________________________________ > Do you Yahoo!? > Send a seasonal email greeting and help others. Do good. > http://celebrity.mail.yahoo.com