Re: step-by-step instructions how to print Chinese in PDF?

2002-05-12 Thread J.Pietschmann
Argyn Kuketayev wrote:
Now I have another issue: unless I put full file path of font description
xml (like "c:/temp/msmincho.xml"), FOP cannot find it. I thought that
baseDir in userconfig.xml must set the folder to search for fonts, but it
doesn't. What's the directory for FOP to search for files?
There is none. This is a known deficiency. The baseDir is
used for the config files itself and for resolving
relative URIs, as they occur in external-graphics.
J.Pietschmann


RE: step-by-step instructions how to print Chinese in PDF?

2002-05-12 Thread Argyn Kuketayev
Thank you, guys!

Now it works. The problem was stupid and simple: mismatch in font names,
file names and templates.

Now I have another issue: unless I put full file path of font description
xml (like "c:/temp/msmincho.xml"), FOP cannot find it. I thought that
baseDir in userconfig.xml must set the folder to search for fonts, but it
doesn't. What's the directory for FOP to search for files?

Argyn

-Original Message-
From: Peter B. West [mailto:[EMAIL PROTECTED]
Sent: Friday, May 10, 2002 7:50 PM
To: [EMAIL PROTECTED]
Subject: Re: step-by-step instructions how to print Chinese in PDF?


Argyn,

This is a stab in the dark, but I am surprised to see "Arial" associated 
with an ideographic font.  If the font information tells you that Arial 
is present, then what I suspect is that the font bundles Arial with its 
ideographic font(s) so that the users have the resources to process both 
Western and ideographic text.  The other suspicious note in this is the 
use of serif and sans-serif.  These terms have a very specific meaning 
in Western fonts, but I cannot see any application for them in an 
ideographic font.

Bottom line is that when you specify "Arial" or "sans-serif" you are 
specifying a non-ideographic font, so it is not surprising that you are 
not seeing any ideographic characters.  What other font-names are 
available to you in msmincho.ttc?  Mincho?  If so, try that in your 
userconfig, and forget the "family" until you find out what a meaningful 
"family" value would be for an ideographic font.

Peter

Argyn Kuketayev wrote:

>I'm using Cocoon 2.0.1. 
>
>here's what I put inside my userconfig.xml
>
> 
>   
>   
>   
>   
>  

> 
>
>I generated msminch.xml file with TTFReader utility from msmincho.ttc file.
>I tried an option with file-embed too.
>
>My PDF file doesn't show me chinese letters, it puts "#" instead.
>
>I know that my XML-FO file is Ok. All fonts are on my PC, so I can see
>Chinese in Internet Explorer.
>
>What shall I look into to find my problem?
>
>  
>



Re: step-by-step instructions how to print Chinese in PDF?

2002-05-10 Thread Peter B. West
Argyn,
This is a stab in the dark, but I am surprised to see "Arial" associated 
with an ideographic font.  If the font information tells you that Arial 
is present, then what I suspect is that the font bundles Arial with its 
ideographic font(s) so that the users have the resources to process both 
Western and ideographic text.  The other suspicious note in this is the 
use of serif and sans-serif.  These terms have a very specific meaning 
in Western fonts, but I cannot see any application for them in an 
ideographic font.

Bottom line is that when you specify "Arial" or "sans-serif" you are 
specifying a non-ideographic font, so it is not surprising that you are 
not seeing any ideographic characters.  What other font-names are 
available to you in msmincho.ttc?  Mincho?  If so, try that in your 
userconfig, and forget the "family" until you find out what a meaningful 
"family" value would be for an ideographic font.

Peter
Argyn Kuketayev wrote:
I'm using Cocoon 2.0.1. 

here's what I put inside my userconfig.xml

  
  
  
  
  


I generated msminch.xml file with TTFReader utility from msmincho.ttc file.
I tried an option with file-embed too.
My PDF file doesn't show me chinese letters, it puts "#" instead.
I know that my XML-FO file is Ok. All fonts are on my PC, so I can see
Chinese in Internet Explorer.
What shall I look into to find my problem?
 




Re: step-by-step instructions how to print Chinese in PDF?

2002-05-10 Thread J.Pietschmann
Argyn Kuketayev wrote:
it's msmincho.ttc. I ran ttfreader, it generated me the HUGE xml file ~400k.
How should I extract the only required fonts?
You don't. Chinese fonts are huge. You should already be
aware of that.
> I don't specify any fonts
> explicitely inside my FO file, only font family serif or sans-serif.
I'm not sure what you want to say.
Register your font using some name, like "msmincho", in
your userconfig.xml. Write a small FO file using some
chinese characters, should work best if you assured they
have glyphs in the font. Run FOP. If this doesn't work,
use font-family="msmincho" on the enclosing block. If
this still doesn't work, ask your boss for another
assignment.
J.Pietschmann


RE: step-by-step instructions how to print Chinese in PDF?

2002-05-10 Thread Argyn Kuketayev
I'm using Cocoon 2.0.1. 

here's what I put inside my userconfig.xml

 
   
   
   
   
   
 

I generated msminch.xml file with TTFReader utility from msmincho.ttc file.
I tried an option with file-embed too.

My PDF file doesn't show me chinese letters, it puts "#" instead.

I know that my XML-FO file is Ok. All fonts are on my PC, so I can see
Chinese in Internet Explorer.

What shall I look into to find my problem?

Argyn



> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 10, 2002 5:37 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: step-by-step instructions how to print Chinese in PDF?
> 
> 
> > After you've located a font, check with the font directory to get
> > the windows file name. It should be a TrueType font file ending
> > in .ttf.
> 
> 
> it's msmincho.ttc. I ran ttfreader, it generated me the HUGE 
> xml file ~400k.
> 
> How should I extract the only required fonts? I don't specify 
> any fonts
> explicitely inside my FO file, only font family serif or sans-serif.
> 
> Argyn
> 


RE: step-by-step instructions how to print Chinese in PDF?

2002-05-10 Thread Argyn Kuketayev
> After you've located a font, check with the font directory to get
> the windows file name. It should be a TrueType font file ending
> in .ttf.


it's msmincho.ttc. I ran ttfreader, it generated me the HUGE xml file ~400k.

How should I extract the only required fonts? I don't specify any fonts
explicitely inside my FO file, only font family serif or sans-serif.

Argyn


Re: step-by-step instructions how to print Chinese in PDF?

2002-05-10 Thread Balaji Loganathan
Nice reply :)

 --- "J.Pietschmann" <[EMAIL PROTECTED]> wrote: >
Argyn Kuketayev wrote:
>  > I don't see anything about Chinese letters in
> font metrics xml files. Btw, I
>  > don't speak Chinese :) I can't change locale or
> regional settings on the PC
>  > due to deployment restrictions. What glyphs are
> for Chinese? I'm using UTF-8
>  > encoding.
> 
> You are supposed to try a *bit* harder. The Unicode
> consortium
>   http://www.unicode.org
> is responsible for allocating character codes. The
> have a sort
> of character names index online
>   http://www.unicode.org/charts/charindex.html
> You'll have to search this, or by The Unicode Book
>   http://www.amazon.com/exec/obidos/ASIN/0201616335/
> and look up character codes which you need. I don't
> speak chinese,
> nor do I have any chinese fonts on my computer, I
> can't help you
> any further on this particular problem.
> Once you know which Unicode codepoints you are going
> to use,
> locate a font. Look into you Windows Font directory,
> or, better,
> use the character table utility. The character table
> utility
> will tell you for the selected fonts whether it is a
> unicode
> font, and if so, you can pick a character and get
> the Unicode
> code point.
> After you've located a font, check with the font
> directory to get
> the windows file name. It should be a TrueType font
> file ending
> in .ttf.
> Follow the instructions in docs/html-docs/fonts.html
> to generate
> a font metrics file and register the font with FOP.
> You'll have
> to do this yourself.
> Prepare a FO document with some characters you think
> should be
> chinese script, and run it through FOP. It is
> possible that you
> are required to explicitely select the font with the
> proper glyphs.
> If you see sharp signs ('#') where you expect the
> chinese script
> to be this means you've screwed up somewhere.
> 
> J.Pietschmann
>  

http://messenger.yahoo.com.au - Yahoo! Messenger
- A great way to communicate long-distance for FREE!


Re: step-by-step instructions how to print Chinese in PDF?

2002-05-10 Thread J.Pietschmann
Argyn Kuketayev wrote:
> I don't see anything about Chinese letters in font metrics xml files. Btw, I
> don't speak Chinese :) I can't change locale or regional settings on the PC
> due to deployment restrictions. What glyphs are for Chinese? I'm using UTF-8
> encoding.
You are supposed to try a *bit* harder. The Unicode consortium
 http://www.unicode.org
is responsible for allocating character codes. The have a sort
of character names index online
 http://www.unicode.org/charts/charindex.html
You'll have to search this, or by The Unicode Book
 http://www.amazon.com/exec/obidos/ASIN/0201616335/
and look up character codes which you need. I don't speak chinese,
nor do I have any chinese fonts on my computer, I can't help you
any further on this particular problem.
Once you know which Unicode codepoints you are going to use,
locate a font. Look into you Windows Font directory, or, better,
use the character table utility. The character table utility
will tell you for the selected fonts whether it is a unicode
font, and if so, you can pick a character and get the Unicode
code point.
After you've located a font, check with the font directory to get
the windows file name. It should be a TrueType font file ending
in .ttf.
Follow the instructions in docs/html-docs/fonts.html to generate
a font metrics file and register the font with FOP. You'll have
to do this yourself.
Prepare a FO document with some characters you think should be
chinese script, and run it through FOP. It is possible that you
are required to explicitely select the font with the proper glyphs.
If you see sharp signs ('#') where you expect the chinese script
to be this means you've screwed up somewhere.
J.Pietschmann


RE: step-by-step instructions how to print Chinese in PDF?

2002-05-09 Thread Argyn Kuketayev


> -Original Message-
> From: J.Pietschmann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 07, 2002 5:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: step-by-step instructions how to print Chinese in PDF?
> 
> 
> Argyn Kuketayev wrote:
> > I have to print documents with Chinese (and other 
> languages). I couldn't
> > find a clear instruction how to do it.
> 
> Find a font containing glyphs for your script.
> Configure it for use by FOP as describet in
>docs/html-docs/fonts.html

I installed W2k Pro, US version. I can see Chinese letters in IE.

Now, how do make FOP show Chinese letters in my PDF? 

I don't see anything about Chinese letters in font metrics xml files. Btw, I
don't speak Chinese :) I can't change locale or regional settings on the PC
due to deployment restrictions. What glyphs are for Chinese? I'm using UTF-8
encoding.

many thanks,
Argyn


Re: step-by-step instructions how to print Chinese in PDF?

2002-05-07 Thread J.Pietschmann
Argyn Kuketayev wrote:
I have to print documents with Chinese (and other languages). I couldn't
find a clear instruction how to do it.
Find a font containing glyphs for your script.
Configure it for use by FOP as describet in
  docs/html-docs/fonts.html
Use an XML capable editor which allows you to input the
characters directly and encodes the file as UTF-8 or
UTF-16 or some ISO-8859-* (that's what you see in
test_ja.fo), or use an ASCII-editor and use XML character
references (something like Ω, which would give you
an Ohm sign, the same glyph as greek upper case omega).
The Unicode consortium http://www.unicode.org has
character tables online.
J.Pietschmann


step-by-step instructions how to print Chinese in PDF?

2002-05-07 Thread Argyn Kuketayev
I have to print documents with Chinese (and other languages). I couldn't
find a clear instruction how to do it.

Can anybody help? 

\fop-0.20.3\docs\examples\advanced folder didn't help me much.

thanx,
Argyn