cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nafise hassani <nafisehas...@yahoo.com>
Subject Re:producing arabic pdf
Date Thu, 23 Dec 2004 13:14:30 GMT
hi
I attach 2 files with name : right arabic.doc and
wrong arabic.jpg the right one is the format that I
want my produced pdf to show and the wrong one is the
image of the outputted pdf which I got 

any suggestion??? 


--- nafise hassani <nafisehasani@yahoo.com> wrote:

> hi
> I look at the arail.ttf.xml file which
> org.apache.fop.fonts.apps.TTFReader makes it I found
> that some charachter's unicode does'nt exist in it
> for
> example arabic lowercase charachres
> this leads to showing lowercase chars same as
> uppercase
> mmmmmm????   
> --- gounis@osmosis.gr wrote:
> 
> > 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?
> > > > 
> > > > ...
> > > > <fo:block text-align="left" font-size="10pt"
> > > > font-family="Arial" 
> > > > line-height="14pt" border-bottom="black
> solid">
> > > > 
> > > > </fo:block>
> > > > ...
> > > > 
> > > > --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:
> > > > > 
> > > > > <?xml version="1.0"?>
> > > > > <configuration>
> > > > >   <fonts>
> > > > >     <font
> > > > metrics-file="D:/fop-fonts/arial.ttf.xml" 
> > > > >           kerning="yes"
> > > > > embed-file="C:/WINNT/Fonts/arial.ttf">
> > > > >       <font-triplet name="Arial"
> > style="normal"
> > > > > weight="normal"/>
> > > > >       <font-triplet name="ArialMT"
> > style="normal"
> > > > > weight="normal"/>
> > > > >     </font>
> > > > > </fonts>
> > > > > </configuration>
> > > > > 
> > > > > Also in my sitemap.xmap I edit the fo2pdf
> > > > serializer
> > > > > like this:
> > > > > 
> > > > > <map:serializer name="fo2pdf"
> > > > >
> > > >
> >
> src="org.apache.cocoon.serialization.FOPSerializer"
> > > > > mime-type="application/pdf">
> > > > >
> > <user-config>D:/fop-fonts/config.xml</user-config>
> > > > > </map:serializer>
> > > > > 
> > > > > 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:
> > > > > > <configuration>
> > > > > > 	<fonts>
> > > > > > 		<font
> > > > metrics-file="c:/fop-fonts/arial.ttf.xml" 
> > > > > > kerning="yes"
> > > > > > embed-file="c:/fop-fonts/win/arial.ttf">
> > > > > > 			<font-triplet name="Arial"
> style="normal"
> > 
> > > > > > weight="normal"/>
> > > > > > 			<font-triplet name="ArialMT"
> > style="normal" 
> > > > > > weight="normal"/>
> > > > > > 		</font>
> > > > > > 		<font
> > > > metrics-file="c:/fop-fonts/arialb.ttf.xml" 
> > > > > > kerning="yes"
> > > > > > embed-file="c:/fop-fonts/win/arialb.ttf">
> > > > > > 			<font-triplet name="Arial"
> style="normal"
> > 
> > > > > > weight="bold"/>
> > > > > > 			<font-triplet name="ArialMT"
> > style="normal" 
> > > > > > weight="bold"/>
> > > > > > 		</font>
> > > > > > 		<font
> > > > metrics-file="c:/fop-fonts/arialbi.ttf.xml" 
> > > > > > kerning="yes"
> > > > > > embed-file="c:/fop-fonts/win/arialbi.ttf">
> > > > > > 			<font-triplet name="Arial"
> style="italic"
> > 
> > > > > > weight="bold"/>
> > > > > > 			<font-triplet name="ArialMT"
> > style="italic" 
> > > > > > weight="bold"/>
> > > > > > 		</font>
> > > > > > 		<font
> > > > metrics-file="c:/fop-fonts/ariali.ttf.xml" 
> > > > > > kerning="yes"
> > > > > > embed-file="c:/fop-fonts/win/ariali.ttf">
> > > > > > 			<font-triplet name="Arial"
> style="italic"
> > 
> > > > > > weight="normal"/>
> > > > > > 			<font-triplet name="ArialMT"
> > style="italic" 
> > > > > > weight="normal"/>
> > > > > > 		</font>
> > > > > > 	</fonts>
> > > > > > </configuration>
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > and finaly you have to register this
> > fop-confing
> > > > in
> > > > > > your sitemap:
> > > > > > ...
> > > > > > 			<map:serializer
> > > > > > logger="sitemap.serializer.fo2pdf"
> > > > > > mime-type="application/pdf" name="fo2pdf"
> > > > > >
> > > >
> >
> src="org.apache.cocoon.serialization.FOPSerializer">
> > > > > > 			
> > > > > >
> > > >
> > <user-config>c:\fop-fonts\config.xml</user-config>
> > > > > > 			</map:serializer>
> > > > > > ...
> > > > > > 
> > > > > > 
> > > > > > --stavros
> 
=== message truncated ===


		
__________________________________ 
Do you Yahoo!? 
Send holiday email and support a worthy cause. Do good. 
http://celebrity.mail.yahoo.com
Mime
View raw message