From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11509 Path: main.gmane.org!not-for-mail From: Jens-Uwe Morawski Newsgroups: gmane.comp.tex.context Subject: Re: Re: 8r vs. ec vs. texnansi Date: Wed, 19 Mar 2003 17:08:18 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20030319170818.1b481f12.morawski@gmx.net> References: <20030220163139.GA25234@idi.ntnu.no> <5.1.0.14.0.20030220182954.0234dfc0@server-1> <20030318131323.GB12151@idi.ntnu.no> <87el54vhdz.fsf@gundla.ch> <20030318184827.1399fd6e.morawski@gmx.net> <87wuiwti3w.fsf_-_@gundla.ch> <20030319145107.6f996f14.morawski@gmx.net> <87wuivcvaf.fsf@gundla.ch> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048089786 8724 80.91.224.249 (19 Mar 2003 16:03:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2003 16:03:06 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Mar 19 17:03:03 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18vg1v-0002GG-00 for ; Wed, 19 Mar 2003 17:03:03 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3657910B1B; Wed, 19 Mar 2003 17:03:04 +0100 (MET) Original-Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by ref.ntg.nl (Postfix) with SMTP id 4CECD10AB6 for ; Wed, 19 Mar 2003 17:00:28 +0100 (MET) Original-Received: (qmail 14927 invoked by uid 0); 19 Mar 2003 16:00:27 -0000 Original-Received: from port1018.fra.ginko.net (HELO melior.localdomain) (212.202.66.2) by mail.gmx.net (mp023-rz3) with SMTP; 19 Mar 2003 16:00:27 -0000 Original-To: ntg-context@ntg.nl In-Reply-To: <87wuivcvaf.fsf@gundla.ch> X-Mailer: Sylpheed version 0.8.9 (GTK+ 1.2.10; i586-pc-linux-gnu) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11509 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11509 On Wed, 19 Mar 2003 14:58:48 +0100 Patrick Gundlach wrote: > Jens-Uwe Morawski writes: > > Hello Jens and others, > > > some time ago Hans and me discussed how to make TS1 symbols available. > > I've never tried it but it sounds interesting since it is an unified > > way to access the symbols. For example for Palatino > > > > > > add to the typescripts > > > > \definefontsynonym [PalatinoSymbols] [] > > \definefontsynonym [PalatinoSymbolsBold] [] > > > > \definefontsynonym [SerifSymbols] [PalatinoSymbols] > > \definefontsynonym [SerifSymbolsBold] [PalatinoSymbolsBold] > > > > and define the symbols in a symbol-typescript > > > > \definesymbol[textregistered] [{\symbol[\currentencoding-registered]}] > > \definesymbol[ec-registered][\getglygh{SerifSymbols}{\char123}] > > > > this could add the capability that the LaTeX textcomp package provides > > At a quick glance this would fail for example for the euro > sign/ec. (Not there in ec). Why not access the existing virtual fonts > or generate new ones if needed? (phvr8c.vf for example - let us not > fall back to the urw/adobe discussion yet :) your glance was too quick. :) The chain is: starting with texteuro symbol --> if in ec-encoding it becomes ec-texteuro symbol --> it takes char 0xBF from the current ...Symbol... font (the symbol macro should be able to resolve Serif.., Sans..., Serif...Bold etc automatically) --> the current ...Symbol... font is *NOT* a EC-encoded font but a TS1 (aka 8c) encoded one that is associated via typescript with the T1 encoded font (as i have already written above: ) This would easily allow for other text encodings to define the usual symbols, for example for 8r one can declare either \definesymbol[8r-texteuro][\getglygh{Serif}{\char128}] or better \definefontsynonym [SerifSymbols] [Serif] \definesymbol[8r-texteuro][\getglygh{SerifSymbols}{\char128}] since in 8r or texnansi there are no special symbol fonts. Thus, when you switch the encoding in your document from ec to 8r to texnansi then the euro is from the users view always the symbol texteuro, but for ec taken from the associated 8c-font and for 8r or texnansi taken directly from the text-font. So, we should look if the macro-names from textcomp package conflict with macro-names already defined in ConTeXT. If there is no conflict we can define all text-symbols according to 'textcomp' in some typescripts: \starttypescript[textsymbols] ... \definesymbol[texteuro] [{\symbol[\currentencoding-texteuro]}] ... \stoptypescript \starttypescript[textsymbols][ec] ... \definesymbol[ec-texteuro] [\getglygh{Textsymbol}{\char191}] ... \stoptypescript \starttypescript[textsymbols][8r] ... \definesymbol[8r-texteuro] [\getglygh{Textsymbol}{\char128}] ... \stoptypescript the font typescripts then have to declare what 'Textsymbol' is: \starttypescript [serif] [Adobe Times] [name] \definefontsynonym [Serif] [Times-Roman] \definefontsynonym [SerifBold] [Times-Bold] \definefontsynonym [SerifItalic] [Times-Italic] \definefontsynonym [SerifSlanted] [Times-Italic] \definefontsynonym [SerifBoldItalic] [Times-BoldItalic] \definefontsynonym [SerifBoldSlanted] [Times-BoldItalic] \definefontsynonym [SerifCaps] [Times-Roman] \definefontsynonym [TextsymbolSerif] [TextsymbolTimes-Roman] \definefontsynonym [TextsymbolSerifBold] [TextsymbolTimes-Bold] \definefontsynonym [TextsymbolSerifItalic] [TextsymbolTimes-Italic] \definefontsynonym [TextsymbolSerifSlanted] [TextsymbolTimes-Italic] \definefontsynonym [TextsymbolSerifBoldItalic] [TextsymbolTimes-BoldItalic] \definefontsynonym [TextsymbolSerifBoldSlanted] [TextsymbolTimes-BoldItalic] \definefontsynonym [TextsymbolSerifCaps] [TextsymbolTimes-Roman] \stoptypescript \starttypescript [serif] [Adobe Times] [ec] \definefontsynonym [Times-Roman] [ptmr8t] [encoding=ec] \definefontsynonym [Times-Bold] [ptmb8t] [encoding=ec] \definefontsynonym [Times-Italic] [ptmri8t] [encoding=ec] \definefontsynonym [Times-BoldItalic] [ptmbi8t] [encoding=ec] \definefontsynonym [TextsymbolTimes-Roman] [ptmr8c] \definefontsynonym [TextsymbolTimes-Bold] [ptmb8c] \definefontsynonym [TextsymbolTimes-Italic] [ptmri8c] \definefontsynonym [TextsymbolTimes-BoldItalic] [ptmbi8c] \stoptypescript % the encoding=?? is only needed for mapping input; since we access symbols % directly (\char...) the encoding for 'Textsymbol' fonts should not be important \starttypescript [serif] [Adobe Times] [8r] \definefontsynonym [Times-Roman] [ptmr8r] [encoding=8r] \definefontsynonym [Times-Bold] [ptmb8r] [encoding=8r] \definefontsynonym [Times-Italic] [ptmri8r] [encoding=8r] \definefontsynonym [Times-BoldItalic] [ptmbi8r] [encoding=8r] \definefontsynonym [TextsymbolTimes-Roman] [ptmr8r] [encoding=8r] \definefontsynonym [TextsymbolTimes-Bold] [ptmb8r] [encoding=8r] \definefontsynonym [TextsymbolTimes-Italic] [ptmri8r] [encoding=8r] \definefontsynonym [TextsymbolTimes-BoldItalic] [ptmbi8r] [encoding=8r] \stoptypescript Jens