From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24368 Path: news.gmane.org!not-for-mail From: Richard Gabriel Newsgroups: gmane.comp.tex.context Subject: Problems creating tfms for an Unicode font Date: Thu, 15 Dec 2005 10:58:32 +0100 Message-ID: <20051215095832.7ab14ad3@mx1.kerio.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1903799406==" X-Trace: sea.gmane.org 1134640808 2703 80.91.229.2 (15 Dec 2005 10:00:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 10:00:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 15 11:00:02 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Empsp-0002Xf-LN for gctc-ntg-context-518@m.gmane.org; Thu, 15 Dec 2005 10:58:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 78F14127F0; Thu, 15 Dec 2005 10:58:42 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09605-05; Thu, 15 Dec 2005 10:58:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 31AB4127DC; Thu, 15 Dec 2005 10:58:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D909C127DC for ; Thu, 15 Dec 2005 10:58:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09762-02 for ; Thu, 15 Dec 2005 10:58:34 +0100 (CET) Original-Received: from mx1.kerio.com (mx1.kerio.com [195.39.55.2]) by ronja.ntg.nl (Postfix) with ESMTP id 89580127C5 for ; Thu, 15 Dec 2005 10:58:33 +0100 (CET) Original-Received: from 192.168.10.80 ([192.168.10.80]) by mx1.kerio.com for ntg-context@ntg.nl; Thu, 15 Dec 2005 10:58:33 +0100 Original-To: ntg-context@ntg.nl X-Mailer: Kerio MailServer 6.1.2 WebMail X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24368 Archived-At: This is a multi-part message in MIME format. --===============1903799406== Content-Type: multipart/alternative; boundary="----------heal-the-world-d2e5f1b0a1e21e2b911090bfba5624e1" This is a multi-part message in MIME format. ------------heal-the-world-d2e5f1b0a1e21e2b911090bfba5624e1 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello ConTeXters, in consequence to the Hans' prompt, I've tried to create enc and tfm fil= es for some Japanese fonts. Namely, I've tried the Mona (http://monafont= .sourceforge.net/index-e.html) and MS Mincho (distributed with Windows X= P). I've done these steps: 1) Created a TTX representation of the font with the ttx utility (http:/= /sourceforge.net/projects/fonttools/) ttx -t cmap -t name msmincho.ttf 2) Created the enc files using the Adam Lindsay's XSL stylesheet (http:/= /www.ntg.nl/maps/pdf/30=5F10.pdf) I've googled out that Japanse "Katakana" and "Hiragana" characters are l= ocated at Unicode offsets 0x30, 0x32, 0x33 and 0xff. So I've created fou= r enc files the following way java -jar saxon8.jar msmincho.ttx ttx2enc.xsl "vector=3D30" >msmincho30.= enc The files are created without errors, but I cannot judge if they are cor= rect... 3) Tried to create the appropriate tfm files with the ttf2tfm utility.= =20 ttf2tfm msmincho.ttf -T msmincho30.enc msmincho30.tfm I got a lot of warnings of style: --- cut --- ttf2tfm: WARNING: Cannot find character `uni3064' specified in input encoding. ttf2tfm: WARNING: Cannot find character `uni3065' specified in input encoding. --- cut --- and finally this error: --- cut --- Using msmincho30.enc as input encoding. ttf2tfm: ERROR: No TTF characters. --- cut --- No tfm file was created. Could somebody advise/help me=3F I really haven't any experience with fo= nt conversion and cannot realize what's goings wrong... If somebody is willing to help, I'll send him the appropriate files (I c= an't post them here - it's over 5MB zipped...). Thanks, Richard ------------heal-the-world-d2e5f1b0a1e21e2b911090bfba5624e1 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello ConTeXters,

in consequence to the Hans' prompt, I've tried = to create enc and tfm files for some Japanese fonts. Namely, I've tried = the Mona (http://monafont.sourceforge.net/index-e.html) and MS Mincho (d= istributed with Windows XP).

I've done these steps:

1) Cre= ated a TTX representation of the font with the ttx utility (http://sourc= eforge.net/projects/fonttools/)
ttx -t cmap -t name msmincho.ttf
<= br>2) Created the enc files using the Adam Lindsay's XSL stylesheet (http://www.ntg.= nl/maps/pdf/30=5F10.pdf)
I've googled out that J= apanse "Katakana" and "Hiragana" characters are located at Unicode offse= ts 0x30, 0x32, 0x33 and 0xff. So I've created four enc files the followi= ng way
java -jar saxon8.jar msmincho.ttx ttx2enc.xsl "vector=3D30" &g= t;msmincho30.enc

The files are created without errors, but I cann= ot judge if they are correct...

3) Tried to create the appropriat= e tfm files with the ttf2tfm utility.
ttf2tfm msmincho.ttf -T msminc= ho30.enc msmincho30.tfm

I got a lot of warnings of style:
--- = cut ---
ttf2tfm: WARNING: Cannot find character `uni3064'
 &n= bsp;       specified in input encoding.ttf2tfm: WARNING: Cannot find character `uni3065'
   =       specified in input encoding.
--- cut -= --

and finally this error:

--- cut ---
Using msmincho30= .enc as input encoding.
ttf2tfm: ERROR: No TTF characters.
--- cut= ---

No tfm file was created.


Could somebody advise/he= lp me=3F I really haven't any experience with font conversion and cannot= realize what's goings wrong...
If somebody is willing to help, I'll = send him the appropriate files (I can't post them here - it's over 5MB z= ipped...).

Thanks,
Richard


------------heal-the-world-d2e5f1b0a1e21e2b911090bfba5624e1-- --===============1903799406== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1903799406==--