From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18466 Path: main.gmane.org!not-for-mail From: h h extern Newsgroups: gmane.comp.tex.context Subject: encoding problem Date: Thu, 24 Feb 2005 22:59:32 +0100 Message-ID: <421E4E44.1080506@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109282324 24907 80.91.229.2 (24 Feb 2005 21:58:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2005 21:58:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 24 22:58:43 2005 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 1D4R0I-0003sm-7l for gctc-ntg-context-518@m.gmane.org; Thu, 24 Feb 2005 22:58:38 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3F21F127E8; Thu, 24 Feb 2005 23:02:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19158-01; Thu, 24 Feb 2005 23:02:34 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA7AE127E2; Thu, 24 Feb 2005 22:59:45 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E4134127E2 for ; Thu, 24 Feb 2005 22:59:43 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19006-03-5 for ; Thu, 24 Feb 2005 22:59:43 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 008AE127DE for ; Thu, 24 Feb 2005 22:59:42 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j1OLxZbS002335; Thu, 24 Feb 2005 22:59:35 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 7BE681A219; Thu, 24 Feb 2005 22:47:06 +0100 (CET) Original-Received: from [127.0.0.1] (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id 36D7B17B8A; Thu, 24 Feb 2005 21:47:03 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: dabifml@gmx.net, mailing list for ConTeXt users X-Virus-Scanned: ClamAV 0.80/705/Fri Feb 11 17:51:32 2005 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by 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: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: main.gmane.org gmane.comp.tex.context:18466 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18466 Was this problem solved? If not, the problem may be in not loading a map file; typescripts take care of this. btw, one you see the light, typescripts are not that hard, see examples in wiki, Bill M's font page and Adam L's myways. Hans >>>>>> Hello, I'm working on some XSL stylesheets for translating XML documents into Context. Although I've read the document "Fonts in Context" and understood that one could use typescripts for managing fonts, in the context of my stylesheets I'd rather like to stick to the \definebodyfont command, because so far it works and I'm a bit confused about all those indirections one has to use when defining typescripts. The only thing which doesn't seem to work are font encodings. Please, take a look at the following document: %-------------------------------------------- \enableregime[il1] \mainlanguage[de] \language[de] \setupencoding[default=texnansi] \definefontsynonym[NewCenturySchoolbook][pncr8r][encoding=texnansi] \definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt][rm] [tf=NewCenturySchoolbook sa 1] \definefont[nctr][NewCenturySchoolbook at 10pt] \setupbodyfont[10pt] \starttext {\nctr \showcharacters} {\showcharacters} \stoptext %-------------------------------------------- Defining the font "directly" with \definefont leads to a texnansi-encoded table of characters, so that I could use the special German umlaut characters (which is my intention, of course). The definition of the font with \definebodyfont produces a default-encoded table with characters, which are *not* texnansi-encoded, because all the umlaut characters are missing. At least using Windows XP, TexLive 2004 distribution (MikTeX). I don't understand why this happens for two reasons: 1. Both commands (\definebodyfont and \definefont) use the same synonym for the font, with an explicitely defined texnansi-encoding. 2. The default encoding of the whole document was set to texnansi. It is getting even more disturbing when I'm setting the body font size to 12pt. (Using the command \setupbodyfont[12pt]). Then both tables are showing a texnansi-encoded font. What has font size to do with encodings? Since I don't want to use a body font size of 12pt in all of my documents, only to be able to use German umlaut characters, any hints to what I'm doing wrong here would be appreciated very much. Thanks in advance, Stefan Ohletz _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------