"Yuwen Dai" on  wrote...
| Dear all,
| 
| Does `convert' supports fonts other than iso-8859? And what's the syntax
| following the `-font' option? I once wanted to use a Chinese fonts to add
| text on to a picture under Debian Linux.  The text was a messed code.
| 
| 
It support any font in X window, TTF, or Type-1 formats.

TTF fonts usally use a UTF specification, and the microsoft windows font
"SimSun" has chinese characters in it in UTF encoding.

I example this on
  http://www.imagemagick.org/Usage/text/#chinese

A quick search of the iso-8859 did not turn up a chinese version, though
I do know the chinese themselves prefer a different encoding for documents
and text, they developed called gb2312.



Linux systems can convert gb2312 to utf-8 using a command like

   iconv -f gb2312 -t utf8 text > tex.utf8

But I have found it to be error prone, as the tinest error (one
character out) and the text becomes unconverable (iconv just aborts),
or incorrect (16 bit charcaters are out of sync)



A better way of converting (or at least printing) gb2312 text I found to
be to display the text in  firefox using a header like...

=======8<--------
<HTML>
<HEAD>
<META http-equiv=Content-type content="text/html; charset=gb2312">
<TITLE>.....</TITLE>
</HEAD><BODY>

.....

=======8<--------

In printing firefox handles the conversion to UTF for postscript output
much more gracfully.  But I have not figured out an automated way to do
this.


Why do I know this?

My wife is from mainland china, and she asks me to print chinese books
for her to read from chinese web sites. Difficult as I myself do not
read chinese, but I manage to get it working. :-)


Any extra information you have on this, IM or otherwise can be mailed to me.
If it is IM related I am sure I'll publish in IM examples for others to
use.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
 `` When you type to Unix, a gnome deep in the system is
        gathering your characters and saving them in a secret place. ''
                                                    Unix 6th edition manual
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to