From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45736 Path: news.gmane.org!not-for-mail From: "Bart C. Wise" Newsgroups: gmane.comp.tex.context Subject: Re: XeTeX, Adobe Garmond & dash, quotes, etc. Date: Thu, 20 Nov 2008 22:40:30 -0700 Message-ID: <200811202240.31602.bntgcontext@wiseguysweb.com> References: <200811202114.58311.bntgcontext@wiseguysweb.com> <6faad9f00811202044x4025f5d3qdc88ef9abacffae0@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227246150 32151 80.91.229.12 (21 Nov 2008 05:42:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2008 05:42:30 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 21 06:43:29 2008 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 1L3One-00035E-7o for gctc-ntg-context-518@m.gmane.org; Fri, 21 Nov 2008 06:43:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7BBB81FB6D; Fri, 21 Nov 2008 06:42:14 +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 28575-05-3; Fri, 21 Nov 2008 06:41:16 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 794FB1FB49; Fri, 21 Nov 2008 06:41:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5A00B1FB49 for ; Fri, 21 Nov 2008 06:41:14 +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 28575-05-2 for ; Fri, 21 Nov 2008 06:40:37 +0100 (CET) Original-Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) by ronja.ntg.nl (Postfix) with ESMTP id E33281FB30 for ; Fri, 21 Nov 2008 06:40:36 +0100 (CET) Original-Received: from mx04.mta.xmission.com ([166.70.13.214]) by out02.mta.xmission.com with esmtp (Exim 4.62) (envelope-from ) id 1L3Olf-0004YR-Ne for ntg-context@ntg.nl; Thu, 20 Nov 2008 22:41:23 -0700 Original-Received: from bwise.fttp.xmission.com ([166.70.232.60] helo=zeus.localnet) by mx04.mta.xmission.com with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1L3Omh-0001TT-21 for ntg-context@ntg.nl; Thu, 20 Nov 2008 22:42:27 -0700 User-Agent: KMail/1.10.3 (Linux/2.6.27-7-generic; KDE/4.1.3; i686; ; ) In-Reply-To: <6faad9f00811202044x4025f5d3qdc88ef9abacffae0@mail.gmail.com> Content-Disposition: inline X-XM-SPF: eid=; ; ; mid=; ; ; hst=mx04.mta.xmission.com; ; ; ip=166.70.232.60; ; ; frm=bntgcontext@wiseguysweb.com; ; ; spf=none X-XM-DomainKey: sender_domain=wiseguysweb.com; ; ; sender=bntgcontext@wiseguysweb.com; ; ; status=no signature X-SA-Exim-Connect-IP: 166.70.232.60 X-SA-Exim-Rcpt-To: ntg-context@ntg.nl X-SA-Exim-Mail-From: bntgcontext@wiseguysweb.com X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;ntg-context@ntg.nl X-Spam-Relay-Country: X-SA-Exim-Version: 4.2.1 (built Thu, 07 Dec 2006 04:40:56 +0000) X-SA-Exim-Scanned: Yes (on mx04.mta.xmission.com) 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:45736 Archived-At: Mojca, Thanks for all you time in helping out. I'm still having problems. The \quote and \quotation work. However, as you pointed out, the en, em and apostrophe do not work. In addition, [features=default] did not compile, but [feature=default] did. Here's what I'm working with: \starttypescript[serif][agaramond] \definefontsynonym[AGaramondRegular][name:AGaramond-Regular] [feature=default] \definefontsynonym[AGaramondItalic] [name:AGaramond-Italic][feature=default] \definefontsynonym[AGaramondBold] [name:AGaramond-Bold] [feature=default] \definefontsynonym[AGaramondBoldIt] [name:AGaramond-BoldItalic] [feature=default] \stoptypescript \starttypescript[serif][agaramond][name] \definefontsynonym [Serif] [AGaramondRegular] \definefontsynonym [SerifItalic] [AGaramondItalic] \definefontsynonym [SerifBold] [AGaramondBold] \definefontsynonym [SerifBoldItalic] [AGaramondBoldIt] \stoptypescript \starttypescript[agaramond] \definetypeface[agaramond][rm][serif][agaramond][default][feature=default] \stoptypescript \usetypescript[agaramond] \setupbodyfont[agaramond, 12pt] \definefontfeature[default] [liga=yes, kern=yes, tlig=yes, script=latn, mapping=tex-text] Any more hints? Bart On Thursday 20 November 2008 09:44:05 pm Mojca Miklavec wrote: > On Fri, Nov 21, 2008 at 5:14 AM, Bart C. Wise wrote: > > The code below is used to load the Adobe Garmond fonts. The problem is > > that quotes (``) produces two single quotes. Similar with dashes: an en > > dash produces to dashes, an em dash likewise produces three dashes. What > > am I doing wrong (again)! > > Hello, > > If you are using pdfTeX, then it's the "fault" of your fonts. (The one > that prepared the metrics "forgot" to add the proper ligatures to the > font. This is not trivial to make.) But then - if you are using > pdfTeX, there should be no "name:" in font declaration. name: is more > or less reserved for filename of otf/ttf fonts in XeTeX and LuaTeX. > > If you are using XeTeX or LuaTeX, then you should remove all the [ec] > brackets and replace [encoding=ec] with [features=default]. > > Some clarification is needed though: > > 1.) You could (in theory) use some replacements for `` and " to > produce proper quotation marks, but for Unicode-aware engines that's > highly deprecated. Better use \quotation{Here's a nicely looking > quote.} or proper quotation marks. The sequence `` was a pure hack (in > my opinion), but a sensible one in that time since there were no > quotation marks neither on keyboards nor in encodings when Knuth wrote > TeX. \quotation is a cleaner way to produce quotation marks. (I'm a > bit biased though. Knuthian quotation marks never worked for my > language, so I always had to figure out how to get the proper ones, > and \quotation was the proper solution for me.) > > 2.) in LuaTeX and XeTeX there are three replacements left by default: > endash, emdash and apostrophe. The main reason being that it's still a > bit too difficult to: > - find endash and emdash on keyboards > - see the difference between the two, esp. in fixed width fonts > - change the habit and type proper apostrophe instead of corresponding > ascii character: ' > > 3.) For some reason, "features=default" doesn't work as it should > since "script=latn" has been left out some time ago, so you need to > fix definition of "default" font features. (Or maybe someone else > knows how to handle this in a better way. This is what I do. I do not > claim that it's the right way to do it.) > > \definefontfeature > [default] > [liga=yes,kern=yes,tlig=yes,script=latn] > > > \starttypescript[serif][agaramond][ec] > > \definefontsynonym[AGaramondRegular][name:AGaramond-Regular] > > [encoding=ec] \definefontsynonym[AGaramondItalic] > > [name:AGaramond-Italic][encoding=ec] \definefontsynonym[AGaramondBold] > > [name:AGaramond-Bold] [encoding=ec] \definefontsynonym[AGaramondBoldIt] > > [name:AGaramond-BoldItalic] [encoding=ec] > > \stoptypescript > > > > \starttypescript[serif][agaramond][name] > > \definefontsynonym [Serif] [AGaramondRegular] > > \definefontsynonym [SerifItalic] [AGaramondItalic] > > \definefontsynonym [SerifBold] [AGaramondBold] > > \definefontsynonym [SerifBoldItalic] [AGaramondBoldIt] > > \stoptypescript > > > > \starttypescript[agaramond][ec] > > \definetypeface[agaramond][rm][serif][agaramond][default][encoding=ec] > > \stoptypescript > > > > \usetypescript[agaramond][ec] > > \setupbodyfont[agaramond, 12pt] > > > > \starttext > > ``Here's a lousy looking quote.'' > > Here are a couple of dashes: -- > > Here are three: --- > > \stoptext > > > > Thanks, > > Bart > > Mojca > ___________________________________________________________________________ >________ If your question is of interest to others as well, please add an > entry to the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context webpage : > http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________ >________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________