From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57458 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Microtype in ConTeXt Date: Thu, 25 Mar 2010 15:28:05 +0100 Message-ID: <4BAB72F5.2070502@googlemail.com> References: <93EE34C4-74F0-4167-884B-039D47790A9B@gmail.com> <4BAB6E95.2060705@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269527304 6980 80.91.229.12 (25 Mar 2010 14:28:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2010 14:28:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 25 15:28:20 2010 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 1Nuo2l-0004PG-UQ for gctc-ntg-context-518@m.gmane.org; Thu, 25 Mar 2010 15:28:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CDDD1C9CBC; Thu, 25 Mar 2010 15:28:15 +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 16F09ejuHpsz; Thu, 25 Mar 2010 15:28:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1A7AC9C33; Thu, 25 Mar 2010 15:28:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96923C9C33 for ; Thu, 25 Mar 2010 15:28:11 +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 yUO5g25woSJQ for ; Thu, 25 Mar 2010 15:28:08 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by balder.ntg.nl (Postfix) with ESMTP id 31FE0C9C0E for ; Thu, 25 Mar 2010 15:28:08 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id d23so1740036fga.2 for ; Thu, 25 Mar 2010 07:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=lDDMevK1M1Vud40K1BG3QojnNLa+HaFzsDqMcJ9axm8=; b=nseZI6NqbGuI/877bBOZE5UEr59Tgj6qMu0LnfjhYxuCXR/HQDD35J6MSHUO+DDtDb dbLXwyreGZncxA9D3aLiNhITVYyv5x4nB403LX2a2CabPl5zmb/i9i24KpW0RTYZERUW JNQiOJ4COdt9d2EjDKGpQC6l91lGOJny5t7rs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=kjHvlihkf24+7p08+2cUIdL0YcXQG9A6OhPD8+VqTCdetDhI9k9gf4sDZtl1u/D31U soOxdYvZpLngeGfWul1TLg2IXssnXb/uUAc7IaqNELu/FTGWVfzT0g76Br/xxa3ZF/AP X3KmgZJZ2ZQzNtQEdKv6RopYKfYz/zEd/MWPc= Original-Received: by 10.87.69.29 with SMTP id w29mr2029173fgk.47.1269527287756; Thu, 25 Mar 2010 07:28:07 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B293341.dip.t-dialin.net [91.41.51.65]) by mx.google.com with ESMTPS id 3sm2526241fge.5.2010.03.25.07.28.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Mar 2010 07:28:06 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: <4BAB6E95.2060705@wxs.nl> 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:57458 Archived-At: Am 25.03.10 15:09, schrieb Hans Hagen: >> 1. I understand that ConTeXt can do margin kerning and font >> expansion, but is there a way to setup a configuration file for each >> font set. Like the mt-foo.cfg file for font family foo when using >> microtype in latex. > you can define additional sets indeed an dpass the defined set as > value to the protrusion and expansion features The MKIV interface (Lua only) is not very user friendly but since Steffen Wolfrum is the only one who use his own verctors this hadn't been a problem in the past. >> 2. Is there a way to do letterspace in ConTeXt. I understand there is >> a command called \stretched. But what I want is the feature like the >> tracking option in microtype package, which can automatically >> letterspace all small caps. Moreover is there a way to define new >> sets of fonts for letterspace. For example I defined a new font shape >> called \capshape, which use case tags of OpenType, and I want to use >> letterspace this shape with certain amount all the time because I am >> not satisfied with the space provided by the cpsp tag of OpenType. > i have no clue what microtype does (nor time to look into it) but you > can just define a command that switches the font and enables > intercharacter spacing, something > > \definecharacterkerning[mykerning] > > \setupcharacterkerning[mykerning][\c!factor=.125] > > \def\MySc > {\groupedcommand > {\sc\setcharacterkerning[mykerning]} > {}} Who about something like (pseudocode) \definecharacterkerning[letterspace] \def\letterspace {\bgroup \dosingleempty\doletterspace} \def\doletterspace[#1]#2% use \groupedcommand? {\iffirstargument \setupcharacterkerning[letterspace][factor=\ctxlua{tex.sprint(#1/1000)}]}% \fi \setcharacterkerning[letterspace]#2% \egroup} \starttext text \letterspace{text} text \letterspace[200]{text} text \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________