From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77561 Path: news.gmane.org!not-for-mail From: "Rogers, Michael K" Newsgroups: gmane.comp.tex.context Subject: Re: Small caps? Date: Wed, 25 Jul 2012 04:59:55 +0000 Message-ID: <3BF6D929-59A0-497A-AF97-E0538AFD3C62@emory.edu> References: <20120724213437.10149b34@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343192411 24660 80.91.229.3 (25 Jul 2012 05:00:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 05:00:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 25 07:00:10 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Stthf-0004sB-Dk for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jul 2012 07:00:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6CA3C102A8; Wed, 25 Jul 2012 07:00:06 +0200 (CEST) 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 u6hpPJbxqXgc; Wed, 25 Jul 2012 07:00:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 140B21020A; Wed, 25 Jul 2012 07:00:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 66E301020A for ; Wed, 25 Jul 2012 07:00:02 +0200 (CEST) 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 gLlNbZjLs3Lc for ; Wed, 25 Jul 2012 07:00:00 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C7044101FA for ; Wed, 25 Jul 2012 07:00:00 +0200 (CEST) Original-Received: from ws-mr1.cc.emory.edu (ws-mr1.cc.emory.edu [170.140.50.231]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6P4xwnY008025 for ; Wed, 25 Jul 2012 06:59:59 +0200 Original-Received: from e14edge2w.Emory.Edu (emoryfloatdmz.cc.emory.edu [170.140.52.254]) by ws-mr1.cc.emory.edu (8.13.8/8.13.8) with ESMTP id q6P4xvN2002066 for ; Wed, 25 Jul 2012 00:59:57 -0400 Original-Received: from E14HYBRID1N.Enterprise.emory.net (170.140.30.28) by e14edge2w.Emory.Edu (170.140.108.22) with Microsoft SMTP Server (TLS) id 14.2.283.3; Wed, 25 Jul 2012 00:59:56 -0400 Original-Received: from E14MBX23N.Enterprise.emory.net ([fe80::b473:ef05:b37f:5ccd]) by e14hybrid1n.Enterprise.emory.net ([2002:aa8c:1e1c::aa8c:1e1c]) with mapi id 14.02.0298.004; Wed, 25 Jul 2012 00:59:57 -0400 Thread-Topic: [NTG-context] Small caps? Thread-Index: AQHNadAvS6HMpC8h5U+LoOSMIEWypZc40zLJgAC32oCAACkLgA== In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [170.140.30.131] Content-ID: X-Emory-MailScanner-Information: Please contact the ISP for more information X-Emory-MailScanner-ID: q6P4xvN2002066 X-Emory-MailScanner: Found to be clean X-Emory-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.01, required 8, autolearn=disabled, T_RP_MATCHES_RCVD -0.01) X-Emory-MailScanner-From: mroge02@emory.edu X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=170.140.50.231; country=US; region=GA; city=Atlanta; postalcode=30322; latitude=33.7952; longitude=-84.3248; metrocode=524; areacode=404; http://maps.google.com/maps?q=33.7952,-84.3248&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHCsXXON - 8055c8f0ca16 - 20120725 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77561 Archived-At: On Jul 24, 2012, at 10:33 PM, Shriramana Sharma wrote: > Hi -- is there absolutely no way for obtaining these "fake small caps" > in ConTeXT? Here's a hack, which sort of works, definitely doesn't handle -- there must be a better way. I hope you don't mind my using your text as text. :-) \usemodule[simplefonts] \setmainfont[DejaVuSansCondensed] \def\smallcaps{\begingroup\obeyspaces\let\myspace=\space\dosmallcaps} \def\dosmallcaps#1{\dosc#1\end\endgroup} \def\dosc#1{% \ifx#1\end \let\next=\relax \else\if#1\space \myspace\let\myspace=\relax% skip repeated spaces \else\ifnum\lccode`#1=`#1{\tfx \uppercase{#1}}% change \tfx to your desired size \else #1\fi \let\myspace=\space \fi \let\next=\dosc \fi\next} \starttext Not everyone is a typographer to produce the appropriate fine-typography glyphs for their favourite font to cater to a particular style. Why should the system impose \smallcaps{"super-duper" Typography} on users when they are willing to settle for less? \smallcaps{Watch out for returns.} \stoptext Alternatively, you could settle for a font that has small caps. ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___________________________________________________________________________________ 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 ___________________________________________________________________________________