From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67163 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Producing quotesingle glyph Date: Sat, 19 Mar 2011 09:05:33 +0100 Message-ID: References: <20110319002912.GS29732@rae.vm.bytemark.co.uk> 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: dough.gmane.org 1300521963 14326 80.91.229.12 (19 Mar 2011 08:06:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 08:06:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 19 09:05:59 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0rAc-0005Qc-7y for gctc-ntg-context-518@m.gmane.org; Sat, 19 Mar 2011 09:05:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 675C9CAA6F; Sat, 19 Mar 2011 09:05:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k3Bb4Cfc9MBm; Sat, 19 Mar 2011 09:05:40 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9591BCAB05; Sat, 19 Mar 2011 09:05:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 789FFCAB05 for ; Sat, 19 Mar 2011 09:05:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tcuTSlYIfBAj for ; Sat, 19 Mar 2011 09:05:37 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 786E4CAAF9 for ; Sat, 19 Mar 2011 09:05:37 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2J85fMK024954 for ; Sat, 19 Mar 2011 09:05:42 +0100 Original-Received: by qwa26 with SMTP id 26so4376206qwa.14 for ; Sat, 19 Mar 2011 01:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mgP2blFG/CmGK+4tZs77/7IGLgStPQC9W5CiycvE73o=; b=MZjZRk1VdmKbRimcexpJQlzSanSpl8qTB29RpkwQ8/6+9A6Ccf9kgWVgER9M+0qMFM b86u/zUTwsy4QDkRpD0Secjko8bD7FQoSsilc3jH/7b5Ain8RzPx9OSSw7NIosdhiWH+ xi5kTHddGNwuluuOv+WekFRnk4eTmq+2rZubI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lVOrDHQhkDqzJj4zVtrgyaL1lCymXVEiSaZPwTiBDaj/o1DjM/+l4AFJGP9Yl/YbhM ATlBtrPCHRQAkDDOfaKR+fNW1HZt6FPG3kserQYMAudtT8Xs8aWpODRINz/VzK02QaQ7 EnlLIQywRKnk28VpMmsgY04VJd+S9cdbDWS0I= Original-Received: by 10.229.46.129 with SMTP id j1mr1704442qcf.95.1300521933444; Sat, 19 Mar 2011 01:05:33 -0700 (PDT) Original-Received: by 10.229.89.69 with HTTP; Sat, 19 Mar 2011 01:05:33 -0700 (PDT) In-Reply-To: <20110319002912.GS29732@rae.vm.bytemark.co.uk> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEkU5Fvz - de262aeef75c - 20110319 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:67163 Archived-At: On Sat, Mar 19, 2011 at 01:29, Pontus Lurcock wrote: > Hello, > > This may be a stupid question, but I can't work out how to produce the > ' character (quotesingle, unicode 0x0027) glyph in a document. Just > typing the character in the source produces a quoteright as expected. > Here are my other attempts: > > \starttext > \quotesingle > \getnamedglyphdirect{lm}{quotesingle} > \uchar{00}{39} > \stoptext > > They all produce quoteright as well. Does anyone have a better > suggestion? I'm using MkIV, version 2011.02.25 22:03. In font-ini.mkiv you can find \definefontfeature [default] [%mode=node, liga=yes,kern=yes,tlig=yes,trep=yes] % texligatures=yes,texquotes=yes You can find those features defined in font-otc.lua, but in short: trep is responsible for auto-replacing 0x0027 into 0x2019. If you want to disable that behaviour, you need to turn trep feature off, for example with \definefontfeature[default][liga=yes,kern=yes,tlig=yes] % trep=no to be more explicit Sometimes you need to load the font after redefining the features, but I'm not sure when that is and maybe I'm wrong (it might be true for Type1 fonts or I may be wrong completely). Mojca PS: just as a thought ... it might make sense to map 0x27 to some (constant) private range slot and make it accessible with some control sequence. I don't know to what extent that would be usable though, so maybe that's just a way too silly idea. ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________