From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34179 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: xetext-pdftex differences Date: Tue, 10 Apr 2007 21:27:47 +0200 Message-ID: <6faad9f00704101227u1fd43e52wf55050e5cc918374@mail.gmail.com> References: <20070408221618732639.581a6a4d@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1176234299 10138 80.91.229.12 (10 Apr 2007 19:44:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2007 19:44:59 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 10 21:43:59 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HbM0T-0000W1-VB for gctc-ntg-context-518@m.gmane.org; Tue, 10 Apr 2007 21:27:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8161820009; Tue, 10 Apr 2007 21:27:57 +0200 (CEST) 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 04005-04; Tue, 10 Apr 2007 21:27:52 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7869120004; Tue, 10 Apr 2007 21:27:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 04E0520004 for ; Tue, 10 Apr 2007 21:27:51 +0200 (CEST) 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 04211-01-5 for ; Tue, 10 Apr 2007 21:27:48 +0200 (CEST) Original-Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.178]) by ronja.ntg.nl (Postfix) with ESMTP id 57FAF1FFFE for ; Tue, 10 Apr 2007 21:27:48 +0200 (CEST) Original-Received: by ik-out-1112.google.com with SMTP id c28so1518347ika for ; Tue, 10 Apr 2007 12:27:48 -0700 (PDT) Original-Received: by 10.78.158.11 with SMTP id g11mr1136871hue.1176233267400; Tue, 10 Apr 2007 12:27:47 -0700 (PDT) Original-Received: by 10.78.155.2 with HTTP; Tue, 10 Apr 2007 12:27:47 -0700 (PDT) In-Reply-To: <20070408221618732639.581a6a4d@st.estfiles.de> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:34179 Archived-At: On 4/8/07, Steffen Wolfrum wrote: > Hi, > > as there are some on this list working/playing with xetex/context: > Where do I go when I experience differences between context/pdftext and c= ontext/xetex? What do you mean? > For example with context/xetex I get ... > > ! Undefined control sequence. > \stopframedtext ->\dostopframedtext Which version of ConTeXt? It works OK here with 2007.03.22, but I need to try the new beta. In principle this should not happen, it's probably a bug or some other local problem. > ... and I do get "SS" instead of eszett ("=DF") with the following: Interesting effect ... (as if the encoding was unknown) > \usetypescriptfile[type-gyr] > \usetypescript[times][ec] This should be \usetypescript[times][uc] but in principle it shouldn't work without additional definitions in typescript files. See below. > \mainlanguage[de] > \enableregime[utf] > \setupbodyfont[times,9pt] Or, to prevent from an additional source of problems (overloading times properly): \definetypeface[times][rm][serif][termes][default][encoding=3Duc] \setupbodyfont[times,9pt] > Hello Thermes! 1234567890 =FC=F6=F6=E4=DF > > > Whom to tell this? Mailing list is the perfect place. OK, so here are some additional definitions (which should probably go to type-gyre.tex one day): A complete list of synonyms: \definetypescriptprefix [n:adventor] [TeXGyreAdventor] % gothic URW Got= hic L \definetypescriptprefix [n:bonum] [TeXGyreBonum] % bookman URW Bookman L \definetypescriptprefix [n:chorus] [TeXGyreChorus] % chancery URW Chancery L \definetypescriptprefix [n:cursor] [TeXGyreCursor] % curier Nimbus Mono L \definetypescriptprefix [n:heros] [TeXGyreHeros] % helvetica Nimbus Sans L \definetypescriptprefix [n:pagella] [TeXGyrePagella] % palatino URW Palladio L \definetypescriptprefix [n:schola] [TeXGyreSchola] % schoolbook Century Schoolbook L \definetypescriptprefix [n:termes] [TeXGyreTermes] % times Nimbus Roman No9 L \definetypescriptprefix [f:adventor] [ag] \definetypescriptprefix [f:bonum] [bk] \definetypescriptprefix [f:chorus] [zc] \definetypescriptprefix [f:cursor] [cr] \definetypescriptprefix [f:heros] [hv] \definetypescriptprefix [f:pagella] [pl] \definetypescriptprefix [f:schola] [cs] \definetypescriptprefix [f:termes] [tm] Then you need definitions for uc encoding: \starttypescript [serif] [adventor,bonum,heros,pagella,schola,termes] [uc] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Regular] [file:texgyre\typescripttwo-regular] [encoding=3D\typescriptthree] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Italic] [file:texgyre\typescripttwo-italic] [encoding=3D\typescriptthree] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Bold] [file:texgyre\typescripttwo-bold] [encoding=3D\typescriptthree] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldItalic] [file:texgyre\typescripttwo-bolditalic] [encoding=3D\typescriptthree] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Caps] [\typescriptprefix{n:\typescripttwo}-Regular] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-ItalicCaps] [\typescriptprefix{n:\typescripttwo}-Italic] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldCaps] [\typescriptprefix{n:\typescripttwo}-Bold] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps] [\typescriptprefix{n:\typescripttwo}-BoldItalic] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Slanted] [\typescriptprefix{n:\typescripttwo}-Italic] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldSlanted] [\typescriptprefix{n:\typescripttwo}-BoldItalic] \stoptypescript % definitions for SmallCaps are wrong, since they're a feature in OT fonts and that is a bit broken (or at least not stable enough) at the moment. And you also need the following: % ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x \starttypescript [serif] [times] [uc] \definefontsynonym [Times-Roman] [TeXGyreTermes-Regular] [encoding=3D\typescriptthree] \definefontsynonym [Times-Italic] [TeXGyreTermes-Italic] [encoding=3D\typescriptthree] \definefontsynonym [Times-Bold] [TeXGyreTermes-Bold] [encoding=3D\typescriptthree] \definefontsynonym [Times-BoldItalic] [TeXGyreTermes-BoldItalic] [encoding=3D\typescriptthree] \definefontsynonym [Times-Caps] [TeXGyreTermes-Caps] [encoding=3D\typescriptthree] \definefontsynonym [Times-Slanted] [Times-Italic] \definefontsynonym [Times-BoldSlanted] [Times-BoldItalic] \stoptypescript Something strange is happening though. If you load these definitions with XeTeX, it works OK. If one loads them with pdfTeX, it doesn't work, since TeXGyreTermes-Regular isn't defined. When I think a bit, I understand why it's not defined (because it's part of "termes" family, not part of "times" family), but I don't understand why these definitions work in XeTeX then. Of course one could also say \definefontsynonym [Times-Roman] [file:texgyretermes-regular] [encodin= g=3Duc] but there should be a better way than to define the same font twice. Is there any nice way to make "times" aware of "TeXGyreTermes-*" font names? At the beginning I had problems with XeTeX as well since Times resolved to 'Times Roman:mapping=3Dtex-text', which resolved to the name 'mapping=3Dtex-text' (a side effect of recent that should probably be fixed somehow in the near future), but that problem disappeared later. I had to temporary fix this (leftovers before TeXGyre family managed to overload everything perhaps?): \starttypescript[serif][times][uc] \definefontsynonym[Times-Roman] [Times Roman] [encoding=3Duc] \definefontsynonym[Times-Italic] [Times Italic] [encoding=3Duc] \definefontsynonym[Times-Bold] [Times Bold] [encoding=3Duc] \definefontsynonym[Times-BoldItalic][Times Bold Italic][encoding=3Duc] \stoptypescript Mojca