ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Rogers, Michael K" <mroge02@emory.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Small caps?
Date: Wed, 25 Jul 2012 04:59:55 +0000	[thread overview]
Message-ID: <3BF6D929-59A0-497A-AF97-E0538AFD3C62@emory.edu> (raw)
In-Reply-To: <CAH-HCWXd1LexyHopq8v=LSBX0XUe9DCkdYOvD6Rf6cqNpA3QcA@mail.gmail.com>


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 <return> -- 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
___________________________________________________________________________________


  parent reply	other threads:[~2012-07-25  4:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-24 19:11 Shriramana Sharma
2012-07-24 19:25 ` Wolfgang Schuster
2012-07-24 19:29   ` Shriramana Sharma
2012-07-24 21:21     ` Hans Hagen
2012-07-24 21:52       ` Khaled Hosny
2012-07-24 19:34 ` Marco
2012-07-25  2:33   ` Shriramana Sharma
2012-07-25  3:08     ` Aditya Mahajan
2012-07-25  4:39       ` Shriramana Sharma
2012-07-25  4:59     ` Rogers, Michael K [this message]
2012-07-25  5:06       ` Shriramana Sharma
2012-07-25  7:04         ` Marco
2012-07-25  7:43           ` Mojca Miklavec
2012-07-25 13:12             ` Wolfgang Schuster
2012-07-25 12:34         ` Rogers, Michael K
2012-07-25  7:35     ` Hans Hagen
2012-07-25  7:41       ` Mojca Miklavec
2012-07-25  7:53         ` Hans Hagen
2012-07-25  8:16           ` Shriramana Sharma
2012-07-25  8:22             ` luigi scarso
2012-07-25  8:24             ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BF6D929-59A0-497A-AF97-E0538AFD3C62@emory.edu \
    --to=mroge02@emory.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).